hasPriv("admin")) util_show_error_page_and_exit("Insufficient privileges."); if ($aClean['sSub']) { if ($aClean['iMaintainerId']) { //get data $sQuery = "SELECT maintainerId, appId, versionId,". "userId, maintainReason, superMaintainer,". "UNIX_TIMESTAMP(submitTime) as submitTime ". "FROM appMaintainers WHERE maintainerId = '?' AND queued = 'true'"; $hResult = query_parameters($sQuery, $aClean['iMaintainerId']); $oRow = mysql_fetch_object($hResult); $oUser = new User($oRow->userId); mysql_free_result($hResult); } else { //error no Id! util_show_error_page_and_exit("
MaintainerId Not Found!
"); } //process according to which request was submitted and optionally the sub flag if (!$aClean['sAdd'] && !$aClean['sReject'] && $aClean['iMaintainerId']) { apidb_header("Admin Maintainer Queue"); echo '"; apidb_footer(); exit; } else if ($aClean['sAdd'] && $aClean['iMaintainerId']) { /* create this maintainer object */ $oMaintainer = new maintainer($aClean['iMaintainerId']); $sStatusMessage = $oMaintainer->unQueue($aClean['sReplyText']); //done addmsg("$sStatusMessage
", 'green'); } else if (($aClean['sReject'] || ($aClean['sSub'] == 'sReject')) && $aClean['iMaintainerId']) { $oMaintainer = new maintainer($aClean['iMaintainerId']); $hResult = $oMaintainer->reject($aClean['sReplyText']); if(!$hResult) addmsg("unable to delete selected maintainer application", "red"); echo html_frame_start("Delete maintainer application",400,"",0); if($hResult) { //success echo "Maintainer application was successfully deleted from the Queue.
\n"; } echo html_frame_end(" "); echo html_back_link(1,'adminMaintainerQueue.php'); } else { //error no sub! addmsg('Internal Routine Not Found!
', 'red'); } } /* display the list of all outstanding maintainer requests */ { apidb_header("Admin Maintainer Queue"); echo '"; apidb_footer(); } } ?>