$res_login = $account["name"]; if (!$authClass->isAdmin() && $res_login != $AUTH_login) { errorPage("Reserving of preprint nbrs for others is only " . "permitted for administrative staff."); } $res_gecos = $account["gecos"]; $res_ppn = pp_reserveNumber($nor_pp_year, $res_UID, $field, $authors, $title); // reread back the record $q = $dbClass->query("SELECT * FROM publications WHERE Year={$nor_pp_year} AND Report={$res_ppn} AND Field='{$field}'"); $row = $dbClass->next_record($q); $_POST["rowId"] = $row["RowId"]; require "update_preprint.inc.php"; mail2secretary("Reserved"); mail_PPsubmitter("Reserved"); logIt("submit", pp_preprintID($nor_pp_year, $res_ppn), $res_gecos); echo x("p", x("i", "Preprint number <b>{$res_ppn}</b> has been reserved for {$res_gecos}<br>Please quote:")); show_preprint($_POST["rowId"], "index.php", $showcancelButton = False); endPage(); // ========================================================================== /// @fn void ( void ) /// /// ... /// /// @global /// @parameter ... /// @return ... /// @gobals[out] - none /// @sideeffect - none /// /// @calledby ... // ========================================================================== function pp_reserveNumber($res_year, $res_UID, $field, $authors, $title)
mail2secretary("Registered"); echo "<p>Your preprint has been registered, and is waiting for acceptance</p>\n"; echo "<p><a href='show_preprints.php'>Return to preprints</a>.</p>"; show_preprint($rowId, "show_preprints.php"); break; case NOR_PP_MODE_DELETE: nor_pp_require_row_owner($rowId, $AUTH_login); startPage("Delete Preprint"); echo "<h2>Do you want to delete this preprint ?</h2>\n"; show_preprint($rowId, "delete_preprint.php"); break; case NOR_PP_MODE_ACCEPT: if ($authClass->isAdmin()) { startPage("Accept Preprint"); echo "<h2>Do you want to accept the following preprint ?</h2>\n"; show_preprint($rowId, "accept_preprint.php"); } else { startPage("Not Authorized"); echo "<p><i>Only authorized users can accept a preprint.</i></p>\n"; } break; } endPage(); // // Functions // // ========================================================================== /// @fn void ( void ) /// /// ... ///