function edit($act_as_admin) { global $del_x, $cancel, $sess, $ok_edit; if (isset($ok_edit)) { proceed($act_as_admin); } elseif (isset($cancel)) { cancel(); } else { del($act_as_admin); } /*$sess->unregister("mytrail"); $sess->unregister("action"); $sess->unregister("thislink"); */ }
else if($_POST['interface'] == "work") { //header("Location: ../Mockups/workInterface.php"); } else { //header("Location: ../Mockups/delegationInterface.php"); }*/ } } else { $com2 = "INSERT INTO DOC_Timestamps (userId) VALUES (:id)"; executeSQL_Safe_U($com2, $dbConn, ":id", $_SESSION['userID']); $com3 = "SELECT MAX(timestampId) as timeId FROM DOC_Timestamps WHERE userId = :id"; $ret = executeSQL_Safe($com3, $dbConn, ":id", $_SESSION['userID']); $_SESSION['sessionId'] = $ret[0]['timeId']; header(proceed($_POST)); //header("Location: ../Mockups/mockup.php"); } } //Make a new timestamp } } } } function proceed($_POST) { if ($_POST['interface'] == "complete") { return "Location: ../Mockups/mockup.php"; } else { if ($_POST['interface'] == "work") { return "Location: ../Mockups/workInterface.php";