2000-08-18 05:24:22 +02:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare - administration *
|
|
|
|
* http://www.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$ */
|
|
|
|
|
|
|
|
if ($confirm) {
|
2000-09-05 20:36:13 +02:00
|
|
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
2000-09-05 20:36:13 +02:00
|
|
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
2000-08-18 05:24:22 +02:00
|
|
|
include("../header.inc.php");
|
2000-09-05 05:24:51 +02:00
|
|
|
if ($ksessionid == $phpgw_info["user"]["sessionid"]) {
|
2000-08-18 05:24:22 +02:00
|
|
|
Header("Location: " . $phpgw->link("currentusers.php"));
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($confirm) {
|
2000-09-28 16:36:38 +02:00
|
|
|
$phpgw->db->query("delete from sessions where session_id='$ksession'");
|
2000-08-18 05:24:22 +02:00
|
|
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/admin/currentusers.php",
|
|
|
|
"cd=19"));
|
|
|
|
} else {
|
|
|
|
?>
|
|
|
|
<center>
|
|
|
|
<table border=0 with=65%>
|
|
|
|
<tr colspan=2>
|
|
|
|
<td align=center>
|
2000-09-07 22:49:55 +02:00
|
|
|
<?php echo lang("Are you sure you want to kill this session ?"); ?>
|
2000-08-18 05:24:22 +02:00
|
|
|
<td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2000-09-07 22:49:55 +02:00
|
|
|
<a href="<?php echo $phpgw->link("currentusers.php") . "\">" . lang("No"); ?></a>
|
2000-08-18 05:24:22 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="<?php echo $phpgw->link("killsession.php","ksession=$ksession&confirm=true")
|
2000-09-07 22:49:55 +02:00
|
|
|
. "\">" . lang("Yes"); ?></a>
|
2000-08-18 05:24:22 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</center>
|
|
|
|
<?
|
|
|
|
}
|
|
|
|
|