mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-11 09:11:05 +01:00
55 lines
1.8 KiB
PHP
Executable File
55 lines
1.8 KiB
PHP
Executable File
<?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$ */
|
|
|
|
$phpgw_info = array();
|
|
if ($confirm) {
|
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
|
}
|
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
|
include("../header.inc.php");
|
|
if ($ksessionid == $phpgw_info["user"]["sessionid"])
|
|
{
|
|
Header("Location: " . $phpgw->link("/admin/currentusers.php"));
|
|
$phpgw->common->phpgw_exit();
|
|
}
|
|
|
|
if ($confirm)
|
|
{
|
|
$phpgw->db->query("delete from phpgw_sessions where session_id='$ksession'");
|
|
Header("Location: " . $phpgw->link("/admin/currentusers.php","cd=19"));
|
|
}
|
|
else
|
|
{
|
|
?>
|
|
<center>
|
|
<table border="0" with="65%">
|
|
<tr colspan="2">
|
|
<td align="center">
|
|
<?php echo lang('Are you sure you want to kill this session ?'); ?>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<a href="<?php echo $phpgw->link('/admin/currentusers.php') . '">' . lang('No'); ?></a>
|
|
</td>
|
|
<td>
|
|
<a href="<?php echo $phpgw->link('/admin/killsession.php','ksession=' . $ksession . '&confirm=true') . '">' . lang('Yes'); ?></a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
<?php
|
|
$phpgw->common->phpgw_footer();
|
|
}
|
|
?>
|