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 87dbab9b54c7326111116e124e4b5ac4b61d1c6c..18314c1dbf66275c46bb310a120a607c1b98995d 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 8fcc2e51db7e84e6dcc163bda7258f36ae83ecd4..d5e47691dd0b6066fa4e975862d999c80b29699d 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 3071e422e3105839f113bf4c2f66a75c0dbd52b8..ffe3117b2de2ca22bf10529eb927212e51cdc1b3 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;
    }