Fixed wrong message being show on login.php

This commit is contained in:
jengo 2000-09-03 13:02:32 +00:00
parent c09da12906
commit 441e583de2
2 changed files with 7 additions and 6 deletions

View File

@ -14,6 +14,7 @@
if (! $sessionid) {
Header("Location: login.php");
exit;
}
$phpgw_flags = array("noheader" => True, "nonavbar" => True, "currentapp" => "home");

View File

@ -52,19 +52,19 @@
if ($phpgw->session->verify($sessionid)) {
if (file_exists($phpgw_info["server"]["temp_dir"] . $sep . $phpgw->session->id)) {
$dh = opendir($phpgw_info["server"]["temp_dir"] . $sep . $phpgw->session->id);
if (file_exists($phpgw_info["server"]["temp_dir"] . $sep . $sessionid)) {
$dh = opendir($phpgw_info["server"]["temp_dir"] . $sep . $sessionid);
while ($file = readdir($dh)) {
if ($file != "." && $file != "..") {
unlink($phpgw_info["server"]["temp_dir"] . $sep . $phpgw->session->id
unlink($phpgw_info["server"]["temp_dir"] . $sep . $sessionid
. $sep . $file);
}
}
rmdir($phpgw_info["server"]["temp_dir"] . $sep . $phpgw->session->id);
rmdir($phpgw_info["server"]["temp_dir"] . $sep . $sessionid);
}
$phpgw->session->destroy($phpgw->session->id);
$phpgw->db->query("delete from app_sessions where sessionid='" . $phpgw->session->id . "'");
$phpgw->session->destroy($sessionid);
$phpgw->db->query("delete from app_sessions where sessionid='" . $sessionid . "'");
}
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=1");