} $Info->change_grader($grader); $Conf->ajaxExit(array("ok" => null, "grader_email" => $_POST["grader"])); } if (isset($_REQUEST["setcommit"]) && isset($_REQUEST["grade"]) && check_post() && $Info->can_have_grades() && $Me->isPC && $Me != $User) { $Info->mark_grading_commit(); } if (isset($_REQUEST["setcommit"])) { go($Info->hoturl("pset")); } // maybe set partner/repo if (isset($_REQUEST["set_partner"])) { ContactView::set_partner_action($User); } if (isset($_REQUEST["set_seascode_repo"])) { ContactView::set_seascode_repo_action($User); } // save line notes if ($Me->isPC && $Me != $User && check_post() && isset($_REQUEST["savelinenote"]) && isset($_REQUEST["file"]) && isset($_REQUEST["line"])) { $lineid = $_REQUEST["line"]; if (ctype_digit($lineid)) { $lineid = "b" . $lineid; } if ($note = defval($_REQUEST, "note", null)) { $note = array(isset($_REQUEST["iscomment"]) && $_REQUEST["iscomment"], $note, $Me->contactId); } $Info->update_commit_info(array("linenotes" => array($_REQUEST["file"] => array($lineid => $note ? $note : null)))); if (isset($_REQUEST["ajax"])) { $Conf->ajaxExit(array("ok" => true, "savednote" => $note ? $note[1] : "", "iscomment" => $note && $note[0])); } redirectSelf();