<?php
/**
- ** left_main.php
- ** Copyright (c) 1999-2000 The SquirrelMail development team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** This is the code for the left bar. The left bar shows the folders
- ** available, and has cookie information.
- **
- ** $Id$
- **/
+ * left_main.php
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This is the code for the left bar. The left bar shows the folders
+ * available, and has cookie information.
+ *
+ * $Id$
+ */
require_once('../src/validate.php');
require_once('../functions/array.php');
if ($numMessages > 0) {
$urlMailbox = urlencode($real_box);
$line .= "\n<small>\n";
- $line .= " (<B><A HREF=\"empty_trash.php\" style=\"text-decoration:none\">"._("purge")."</A></B>)";
+ $line .= " (<A HREF=\"empty_trash.php\" style=\"text-decoration:none\">"._("empty")."</A>)";
$line .= "\n</small>\n";
}
}
echo '<CENTER><FONT SIZE=4><B>';
echo _("Folders") . "</B><BR></FONT>\n\n";
- if ($hour_format == 1) {
- if ($date_format == 4)
- $hr = "G:i:s";
- else
- $hr = "G:i";
- } else {
- if ($date_format == 4)
- $hr = "g:i:s a";
- else
- $hr = "g:i a";
- }
+ if ($date_format != 6) {
+ /* First, display the clock. */
+ if ($hour_format == 1) {
+ if ($date_format == 4) {
+ $hr = "G:i:s";
+ } else {
+ $hr = "G:i";
+ }
+ } else {
+ if ($date_format == 4) {
+ $hr = "g:i:s a";
+ } else {
+ $hr = "g:i a";
+ }
+ }
- switch( $date_format ) {
- case 1:
- $clk = date("m/d/y ".$hr, time());
- break;
- case 2:
- $clk = date("d/m/y ".$hr, time());
- break;
- case 4:
- case 5:
- $clk = date($hr, time());
- break;
- default:
- $clk = date("D, ".$hr, time());
+ switch( $date_format ) {
+ case 1:
+ $clk = date("m/d/y ".$hr, time());
+ break;
+ case 2:
+ $clk = date("d/m/y ".$hr, time());
+ break;
+ case 4:
+ case 5:
+ $clk = date($hr, time());
+ break;
+ default:
+ $clk = date("D, ".$hr, time());
+ }
+ $clk = str_replace(' ',' ',$clk);
+
+ echo '<CENTER><SMALL>' . str_replace(' ',' ',_("Last Refresh"))
+ . ": $clk</SMALL></CENTER>";
}
- echo '<center><small>' . _("Last Refresh") . ":<br>$clk";
- echo '</small></center>';
+ /* Next, display the refresh button. */
echo '<SMALL>(<A HREF="../src/left_main.php" TARGET="left">';
echo _("refresh folder list");
echo '</A>)</SMALL></CENTER><BR>';
$delimeter = sqimap_get_delimiter($imapConnection);
+ /* Lastly, display the folder list. */
if (isset($collapse_folders) && $collapse_folders) {
/* If directed, collapse or uncollapse a folder. */
if (isset($fold)) {