2000-08-18 05:24:22 +02:00
|
|
|
<?php
|
2001-03-31 13:43:14 +02:00
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare *
|
|
|
|
* http://www.phpgroupware.org *
|
|
|
|
* Written by Joseph Engo <jengo@phpgroupware.org> *
|
|
|
|
* -------------------------------------------- *
|
|
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU General Public License as published by the *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
$phpgw_info = array();
|
|
|
|
$phpgw_info['flags'] = array(
|
|
|
|
'disable_template_class' => True,
|
|
|
|
'currentapp' => 'logout',
|
|
|
|
'noheader' => True,
|
|
|
|
'nofooter' => True,
|
|
|
|
'nonavbar' => True
|
|
|
|
);
|
|
|
|
|
|
|
|
include('./header.inc.php');
|
|
|
|
|
|
|
|
if ($phpgw->session->verify($sessionid))
|
|
|
|
{
|
2001-06-13 08:22:36 +02:00
|
|
|
if (file_exists($phpgw_info['server']['temp_dir'] . SEP . $sessionid))
|
2001-03-31 13:43:14 +02:00
|
|
|
{
|
2001-06-13 08:22:36 +02:00
|
|
|
$dh = opendir($phpgw_info['server']['temp_dir'] . SEP . $sessionid);
|
2001-03-31 13:43:14 +02:00
|
|
|
while ($file = readdir($dh))
|
|
|
|
{
|
|
|
|
if ($file != '.' && $file != '..')
|
|
|
|
{
|
2001-06-13 08:22:36 +02:00
|
|
|
unlink($phpgw_info['server']['temp_dir'] . SEP . $sessionid . SEP . $file);
|
2001-03-31 13:43:14 +02:00
|
|
|
}
|
|
|
|
}
|
2001-06-13 08:22:36 +02:00
|
|
|
rmdir($phpgw_info['server']['temp_dir'] . SEP . $sessionid);
|
2001-03-31 13:43:14 +02:00
|
|
|
}
|
2001-06-07 03:44:09 +02:00
|
|
|
$phpgw->common->hook('logout');
|
2001-03-31 13:43:14 +02:00
|
|
|
$phpgw->session->destroy();
|
|
|
|
}
|
|
|
|
Setcookie('sessionid');
|
|
|
|
Setcookie('kp3');
|
|
|
|
Setcookie('domain');
|
|
|
|
|
|
|
|
$phpgw->redirect($phpgw_info['server']['webserver_url'].'/login.php?cd=1');
|
2001-06-13 08:22:36 +02:00
|
|
|
?>
|