$sitenumber = myhtmlspecialchars($_POST["sitenumber"]); $number = myhtmlspecialchars($_POST["number"]); DBClarGiveUp($number, $sitenumber, $_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usernumber"], $_SESSION["usertable"]["usersitenumber"]); MSGError("Clarification returned."); ForceLoad("clar.php"); } if (isset($_POST["answer"]) && isset($_POST["Submit"]) && ($_POST["Submit"] == "Answer" || $_POST["Submit"] == "No response") && is_numeric($_POST["number"]) && isset($_POST["sitenumber"]) && isset($_POST["number"]) && is_numeric($_POST["sitenumber"])) { if ($_POST["confirmation"] == "confirm") { $ans = myhtmlspecialchars($_POST["answer"]); $sitenumber = myhtmlspecialchars($_POST["sitenumber"]); $number = myhtmlspecialchars($_POST["number"]); if ($_POST["Submit"] == "No response") { $ans = 'No response. ' . $ans; } if (trim($ans) == "") { DBClarGiveUp($number, $sitenumber, $_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usernumber"], $_SESSION["usertable"]["usersitenumber"]); MSGError("Clarification returned."); } else { if (isset($_POST["answerall"])) { $type = 'all'; } else { if (isset($_POST["answersite"])) { $type = 'site'; } else { $type = 'none'; } } DBUpdateClar($_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usersitenumber"], $_SESSION["usertable"]["usernumber"], $sitenumber, $number, $ans, $type); } } ForceLoad("clar.php");
function DBChiefClarGiveUp($number, $site, $contest) { return DBClarGiveUp($number, $site, $contest, -1, -1); }