Getting ready for 1.2.0 release.
[squirrelmail.git] / plugins / mail_fetch / fetch.php
index 400707a6dd7465bac30c96be330d1cedc39b006d..be8134e721f864add4ca7dff0df41eff4094c099 100644 (file)
@@ -1,25 +1,33 @@
 <?php
-   /*
-    *  Mail Fetch
-    *
-    */
 
-   chdir('..');
-   require_once('../src/validate.php');
-   require_once('../functions/page_header.php');
-   require_once('../functions/imap.php');
-   require_once('../src/load_prefs.php');
-   require_once('../plugins/mail_fetch/class.POP3.php');
-   require_once('../functions/i18n.php');
-   require_once( '../plugins/mail_fetch/functions.php' );
+   /**
+    **  mail_fetch/fetch.php
+    **
+    **  Copyright (c) 1999-2002 The SquirrelMail Project Team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    **  Fetch code.
+    **
+    **  $Id$
+    **/
+
+    chdir('..');
+    require_once('../src/validate.php');
+    require_once('../functions/page_header.php');
+    require_once('../functions/imap.php');
+    require_once('../src/load_prefs.php');
+    require_once('../plugins/mail_fetch/class.POP3.php');
+    require_once('../functions/i18n.php');
+    require_once( '../plugins/mail_fetch/functions.php' );
+
+
+    function Mail_Fetch_Status($msg) {
+        echo '<table width="90%"><tr><td>' .
+            htmlspecialchars( $msg ) .
+            '</td></tr></table>';
+        flush();
+    }
 
-    
-function Mail_Fetch_Status($msg) {
-    echo '<table width=90%><tr><td>' . 
-         htmlspecialchars( $msg ) . 
-         '</td></tr></table>';
-    flush();
-}
     displayPageHeader($color, 'None');
 
     $mailfetch_server_number = getPref($data_dir, $username, "mailfetch_server_number");
@@ -105,7 +113,7 @@ function Mail_Fetch_Status($msg) {
         
         $pop3 = new POP3($mailfetch_server, 60);
         
-        echo "<br><table width=90%><tr bgcolor=\"$color[9]\"><td><b>" . 
+        echo "<br><table width=\"90%\"><tr bgcolor=\"$color[9]\"><td><b>" . 
             _("Fetching from ") . 
             (($mailfetch_alias_[$i_loop] == '')?$mailfetch_server:$mailfetch_alias_[$i_loop]) . 
             "</b></td></tr></table>";
@@ -123,7 +131,7 @@ function Mail_Fetch_Status($msg) {
         Mail_Fetch_Status(_("Opening POP server"));
         $Count = $pop3->login($mailfetch_user, $mailfetch_pass);
         if (($Count == false || $Count == -1) && $pop3->ERROR != '') {
-            Mail_Fetch_Status(_("Login Failed:") . $pop3->ERROR );
+            Mail_Fetch_Status(_("Login Failed:") . ' ' . $pop3->ERROR );
             continue;
         }
         
@@ -221,4 +229,4 @@ function Mail_Fetch_Status($msg) {
 ?>
 </center>
 </body>
-</html>
\ No newline at end of file
+</html>