Added session variable $is_logged_in.
authorgustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 29 Jun 2000 12:09:39 +0000 (12:09 +0000)
committergustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 29 Jun 2000 12:09:39 +0000 (12:09 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@569 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/webmail.php

index 7da0d2b5d3f53b2041ef23781bdcad77224aee64..33a0aca7ab235ece7c972d56cbef3360cd2f1536 100644 (file)
    include ("../config/config.php");
    include ("../functions/prefs.php");
    include ("../functions/imap.php");
+   if (!isset($plugin_php))
+      include ("../functions/plugin.php");
+
+   if ($is_logged_in != true) {
+      do_hook ("login_before");
+      // verify that username and password are correct
+      $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+      do_hook ("login_verified");
+   }
+
+   session_register ("is_logged_in");
+   $is_logged_in = true;
 
-   // verify that username and password are correct
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
-   
    include ("../src/load_prefs.php");
 
    echo "<html><head\n";