/FileXch/branches/php-impl/admin.php |
---|
0,0 → 1,29 |
<?php |
$isEntryPoint = true; |
include("lib/common.php"); |
try { |
// remove a session |
if($id = $_GET["remove"]) { |
$id = $p->integer($id, false, "ID"); |
$sm->remove($id); |
dataCollected(); |
http_redirect("admin.php"); |
} |
// show the list |
else { |
$aliveList = $sm->listAlive(); |
$aliveSummary = $sm->summaryAlive(); |
$removedList = $sm->listRemoved(); |
$removedSummary = $sm->summaryRemoved(); |
dataCollected(); |
include("pages/admin_list.php"); |
} |
} |
catch(Exception $ex) { |
generalError(); |
} |
?> |