// verify that username and password are correct
if ($force_username_lowercase)
$login_username = strtolower($login_username);
+
$imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0);
if (!$imapConnection) {
echo "<html><body bgcolor=\"ffffff\">\n";
}
sqimap_logout($imapConnection);
- setcookie('username', $login_username, 0, $base_uri);
+ $username = $login_username;
+ session_register ('username');
setcookie('key', $key, 0, $base_uri);
do_hook ('login_verified');
}