2000-08-18 05:24:22 +02:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
|
|
|
* 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$ */
|
|
|
|
|
2000-09-05 20:36:13 +02:00
|
|
|
$phpgw_info["flags"]["disable_message_class"] = True;
|
|
|
|
$phpgw_info["flags"]["disable_send_class"] = True;
|
|
|
|
$phpgw_info["flags"]["disable_nextmatchs_class"] = True;
|
|
|
|
$phpgw_info["flags"]["disable_template_class"] = True;
|
|
|
|
$phpgw_info["flags"]["currentapp"] = "logout";
|
|
|
|
$phpgw_info["flags"]["noheader"] = True;
|
2000-08-18 05:24:22 +02:00
|
|
|
|
2000-11-30 09:15:33 +01:00
|
|
|
include("./header.inc.php");
|
2000-08-18 05:24:22 +02:00
|
|
|
|
2000-08-26 22:12:01 +02:00
|
|
|
$sep = $phpgw->common->filesystem_separator();
|
2000-08-24 23:21:21 +02:00
|
|
|
|
2000-08-18 05:24:22 +02:00
|
|
|
/*
|
2000-09-28 02:50:18 +02:00
|
|
|
|
2000-08-18 05:24:22 +02:00
|
|
|
if ($installed[cron_apps] != "Y") {
|
|
|
|
$dh = opendir($phpgw_info["server"]["temp_dir"]);
|
|
|
|
while ($dir = readdir($dh)) {
|
|
|
|
if ($dir != "." && $dir != "..") {
|
|
|
|
if (substr($dir,0,strlen(time())) <= (time() - 3600)) {
|
2000-08-24 23:21:21 +02:00
|
|
|
echo $phpgw_info["server"]["temp_dir"] . $sep . $dir;
|
|
|
|
$fh = opendir($phpgw_info["server"]["temp_dir"] . $sep . $dir);
|
2000-08-18 05:24:22 +02:00
|
|
|
while ($file = readdir($fh)) {
|
|
|
|
if ($file != "." && $file != "..") {
|
2000-08-24 23:21:21 +02:00
|
|
|
unlink($phpgw_info["server"]["temp_dir"] . $sep . $dir . $sep . $file);
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
|
|
|
}
|
2000-08-24 23:21:21 +02:00
|
|
|
rmdir($phpgw_info["server"]["temp_dir"] . $sep . $dir);
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ($phpgw->session->verify($sessionid)) {
|
2000-09-03 16:32:13 +02:00
|
|
|
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 . $sessionid . $sep . $file);
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
2000-09-03 16:32:13 +02:00
|
|
|
}
|
|
|
|
rmdir($phpgw_info["server"]["temp_dir"] . $sep . $sessionid);
|
|
|
|
}
|
|
|
|
$phpgw->session->destroy();
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
2000-10-05 09:11:49 +02:00
|
|
|
Setcookie("sessionid");
|
|
|
|
Setcookie("kp3");
|
2000-11-23 10:04:10 +01:00
|
|
|
Setcookie("domain");
|
2000-08-18 05:24:22 +02:00
|
|
|
|
2000-11-30 09:15:33 +01:00
|
|
|
$phpgw->redirect($phpgw_info["server"]["webserver_url"]."/login.php?cd=1");
|
2000-09-07 22:49:55 +02:00
|
|
|
?>
|