mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
Change sep to SEP
This commit is contained in:
parent
60fbae908e
commit
a3e797a6e8
10
logout.php
10
logout.php
@ -25,17 +25,17 @@
|
||||
|
||||
if ($phpgw->session->verify($sessionid))
|
||||
{
|
||||
if (file_exists($phpgw_info['server']['temp_dir'] . sep . $sessionid))
|
||||
if (file_exists($phpgw_info['server']['temp_dir'] . SEP . $sessionid))
|
||||
{
|
||||
$dh = opendir($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 . $sessionid . sep . $file);
|
||||
unlink($phpgw_info['server']['temp_dir'] . SEP . $sessionid . SEP . $file);
|
||||
}
|
||||
}
|
||||
rmdir($phpgw_info['server']['temp_dir'] . sep . $sessionid);
|
||||
rmdir($phpgw_info['server']['temp_dir'] . SEP . $sessionid);
|
||||
}
|
||||
$phpgw->common->hook('logout');
|
||||
$phpgw->session->destroy();
|
||||
@ -45,4 +45,4 @@
|
||||
Setcookie('domain');
|
||||
|
||||
$phpgw->redirect($phpgw_info['server']['webserver_url'].'/login.php?cd=1');
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user