fixed login problems
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 7 Mar 2000 12:34:01 +0000 (12:34 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 7 Mar 2000 12:34:01 +0000 (12:34 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@279 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php
functions/prefs.php
src/webmail.php

index c18cfa7414d9c61e6606af85d03c22d5e24b674a..26d9107c40d5a96a156279d21d90f5fe2d8d8d61 100755 (executable)
             } else if (substr($read, 0, 7) == "a001 NO") {
                ?>
                   <html>
-                     <body bgcolor=<? echo $color[4] ?>>
+                     <body bgcolor=ffffff>
                         <br>
-                        <table width=70% noborder bgcolor=<? echo $color[4] ?> align=center>
+                        <center>
+                        <table width=70% noborder bgcolor=ffffff align=center>
                            <tr>
-                              <td bgcolor=<? echo $color[0] ?>>
-                                 <font color=<? echo $color[2] ?>>
+                              <td bgcolor=dcdcdc>
+                                 <font color=cc0000>
                                  <center>
                                  <? echo _("ERROR") ?>
                                  </center>
                            </tr>
                            <tr>
                               <td>
-                                 <font color=<? echo $color[2] ?>>
                                  <center>
                                  <? echo _("Unknown user or password incorrect.") ?><br>
                                  <a href="login.php"><? echo _("Click here to try again") ?></a>
                                  </center>
-                                 </font>
                               </td>
                            </tr>
                         </table>
+                        </center>
                      </body>
                   </html>
                <?
index 254d10cc54e48c6b16283b28551805f01fb7f733..30bfd06ada945e97d99af38d1076571d01ccbdc7 100644 (file)
@@ -81,7 +81,6 @@
             exit;
          }
       }
-      return;
    }
 
 
index c30b0b355b0ffb5d34747a3a81ce01ce4a8dfb51..50d8c6119711092bd29613b36fc5ff2f0fab0268 100644 (file)
 <?
    include ("../config/config.php");
    include ("../functions/prefs.php");
+   include ("../functions/imap.php");
 
+   // verify that username and password are correct
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   
    include ("../src/load_prefs.php");
    
    echo "<TITLE>";