beautified a bit of code and made stuff a bit more efficient.
authornehresma <nehresma@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Dec 1999 17:16:36 +0000 (17:16 +0000)
committernehresma <nehresma@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Dec 1999 17:16:36 +0000 (17:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@54 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/display_messages.php
src/move_messages.php
src/right_main.php

index 87dbab9..18314c1 100644 (file)
@@ -45,7 +45,6 @@
       echo "      </TABLE>";
       echo "   </TD></TR>";
       echo "</TABLE>";
       echo "      </TABLE>";
       echo "   </TD></TR>";
       echo "</TABLE>";
-      echo "</BODY></HTML>";
    }
 
     function messages_deleted_message($mailbox, $sort, $startMessage) {
    }
 
     function messages_deleted_message($mailbox, $sort, $startMessage) {
@@ -63,6 +62,5 @@
       echo "      </FONT></CENTER>";
       echo "   </TD></TR>";
       echo "</TABLE>";
       echo "      </FONT></CENTER>";
       echo "   </TD></TR>";
       echo "</TABLE>";
-      echo "</BODY></HTML>";
     }
 ?>
     }
 ?>
index 8fcc2e5..d5e4769 100644 (file)
@@ -1,3 +1,4 @@
+<HTML><BODY TEXT=\"#000000\" BGCOLOR=\"#FFFFFF\" LINK=\"#0000EE\" VLINK=\"#0000EE\" ALINK=\"#0000EE\">
 <?
    include("../config/config.php");
    include("../functions/mailbox.php");
 <?
    include("../config/config.php");
    include("../functions/mailbox.php");
@@ -6,7 +7,6 @@
    include("../functions/display_messages.php");
    include("../functions/imap.php");
 
    include("../functions/display_messages.php");
    include("../functions/imap.php");
 
-   echo "<HTML><BODY TEXT=\"#000000\" BGCOLOR=\"#FFFFFF\" LINK=\"#0000EE\" VLINK=\"#0000EE\" ALINK=\"#0000EE\">";
    $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
 
    // switch to the mailbox, and get the number of messages in it.
    $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
 
    // switch to the mailbox, and get the number of messages in it.
@@ -42,3 +42,4 @@
    fputs($imapConnection, "1 logout");
 
 ?>
    fputs($imapConnection, "1 logout");
 
 ?>
+</BODY></HTML>
index 3071e42..ffe3117 100644 (file)
@@ -54,6 +54,7 @@
    if (!isset($mailbox)) {
       displayPageHeader("None");
       general_info($motd, $org_logo, $version, $org_name);
    if (!isset($mailbox)) {
       displayPageHeader("None");
       general_info($motd, $org_logo, $version, $org_name);
+      echo "</BODY></HTML>";
       exit;
    }
 
       exit;
    }