<?php
if ($Siteman->userinfo["level"] >= 4) {
if (isset($_GET["mdo"])) {
$mdo = $_GET["mdo"];
}
else {
$mdo = "default";
}
switch ($mdo) {
case "delete":
$delete = $_GET["id"];
$db->delete(array("table" => "guestbook","where" => array("id = $delete"),"db" => "siteman"));
$mdo = "default";
break 1;
}
}
?>