set_up_language($squirrelmail_language, true);
include_once(SM_PATH . 'functions/display_messages.php' );
+ sqsession_destroy();
logout_error( _("Unknown user or password incorrect.") );
- session_destroy();
exit;
}
} else {
function sqimap_append_done ($imap_stream) {
fputs ($imap_stream, "\r\n");
$tmp = fgets ($imap_stream, 1024);
+ if (preg_match("/(.*)(BAD|NO)(.*)$/", $tmp, $regs)) {
+ set_up_language($squirrelmail_language);
+ echo "<br><b><font color=$color[2]>\n" .
+ _("ERROR : Bad or malformed request.") .
+ "</b><br>\n" .
+ _("Server responded: ") .
+ $message . "</font><br>\n";
+ exit;
+ }
}
function sqimap_get_user_server ($imap_server, $username) {
require_once(SM_PATH . 'functions/display_messages.php');
}
$base_uri = sqm_baseuri();
-@session_destroy();
/*
* In case the last session was not terminated properly, make sure
* we get a new one.
*/
-$cookie_params = session_get_cookie_params();
-setcookie(session_name(), '', 0, $cookie_params['path'],
- $cookie_params['domain']);
-setcookie('username', '', 0, $base_uri);
-setcookie('key', '', 0, $base_uri);
+
+sqsession_destroy();
+
header('Pragma: no-cache');
do_hook('login_cookie');
} else {
$base_uri = $_SESSION['base_uri'];
}
-
+sqsession_destroy();
do_hook('logout');
-setcookie('username', '', 0, $base_uri);
-setcookie('key', '', 0, $base_uri);
-session_destroy();
if ($signout_page) {
header('Status: 303 See Other');