checkstandname($stand); returnBike($userid, $bikenum, $stand, $note, TRUE); break; case "where": logrequest($userid, $action); checksession(); $bikenum = trim($_GET["bikeno"]); checkbikeno($bikenum); where($userid, $bikenum); break; case "removenote": logrequest($userid, $action); checksession(); checkprivileges($userid); checkbikeno($bikenum); removenote($userid, $bikenum); break; case "revert": logrequest($userid, $action); checksession(); $bikenum = trim($_GET["bikeno"]); checkprivileges($userid); checkbikeno($bikenum); revert($userid, $bikenum); break; case "last": logrequest($userid, $action); checksession(); checkprivileges($userid); if ($_GET["bikeno"]) { $bikenum = trim($_GET["bikeno"]);
checkstandname($stand); returnBike($userid, $bikeno, $stand, $note, TRUE); break; case "where": logrequest($userid, $action); checksession(); $bikeno = trim($_GET["bikeno"]); checkbikeno($bikeno); where($userid, $bikeno); break; case "removenote": logrequest($userid, $action); checksession(); checkprivileges($userid); checkbikeno($bikeno); removenote($userid, $bikeno); break; case "revert": logrequest($userid, $action); checksession(); $bikeno = trim($_GET["bikeno"]); checkprivileges($userid); checkbikeno($bikeno); revert($userid, $bikeno); break; case "last": logrequest($userid, $action); checksession(); checkprivileges($userid); if ($_GET["bikeno"]) { $bikeno = trim($_GET["bikeno"]);