0,0 → 1,37 |
<?php |
$isEntryPoint = true; |
include("lib/common.php"); |
|
$redirect = false; |
|
try { |
// purge all |
if($_GET["purge"] !== null) { |
$sm->purge(); |
|
dataCollected(); |
http_redirect("removed.php"); |
} |
|
// restore a session |
else if($id = $_GET["restore"]) { |
$id = $p->integer($id, false, "ID"); |
$sm->restore($id); |
|
dataCollected(); |
http_redirect("removed.php"); |
} |
|
// show the removed lsit |
else { |
$removedList = $sm->listRemoved(); |
$removedSummary = $sm->summaryRemoved(); |
|
dataCollected(); |
include("pages/removed_list.php"); |
} |
} |
catch(Exception $ex) { |
generalError(); |
} |
?> |