mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fixed wrong message being show on login.php
This commit is contained in:
parent
c09da12906
commit
441e583de2
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
if (! $sessionid) {
|
if (! $sessionid) {
|
||||||
Header("Location: login.php");
|
Header("Location: login.php");
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw_flags = array("noheader" => True, "nonavbar" => True, "currentapp" => "home");
|
$phpgw_flags = array("noheader" => True, "nonavbar" => True, "currentapp" => "home");
|
||||||
|
12
logout.php
12
logout.php
@ -52,19 +52,19 @@
|
|||||||
|
|
||||||
|
|
||||||
if ($phpgw->session->verify($sessionid)) {
|
if ($phpgw->session->verify($sessionid)) {
|
||||||
if (file_exists($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 . $phpgw->session->id);
|
$dh = opendir($phpgw_info["server"]["temp_dir"] . $sep . $sessionid);
|
||||||
while ($file = readdir($dh)) {
|
while ($file = readdir($dh)) {
|
||||||
if ($file != "." && $file != "..") {
|
if ($file != "." && $file != "..") {
|
||||||
unlink($phpgw_info["server"]["temp_dir"] . $sep . $phpgw->session->id
|
unlink($phpgw_info["server"]["temp_dir"] . $sep . $sessionid
|
||||||
. $sep . $file);
|
. $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->session->destroy($sessionid);
|
||||||
$phpgw->db->query("delete from app_sessions where sessionid='" . $phpgw->session->id . "'");
|
$phpgw->db->query("delete from app_sessions where sessionid='" . $sessionid . "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=1");
|
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=1");
|
||||||
|
Loading…
Reference in New Issue
Block a user