From 27e81758213e8b7c60ed55241fec8e9b3bc3c553 Mon Sep 17 00:00:00 2001 From: gustavf Date: Thu, 29 Jun 2000 12:09:39 +0000 Subject: [PATCH] Added session variable $is_logged_in. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@569 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/webmail.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/webmail.php b/src/webmail.php index 7da0d2b5..33a0aca7 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -25,10 +25,19 @@ 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 "