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 '
',"\n"; $x = new TableVE("view"); //help Maintainer::ObjectDisplayQueueProcessingHelp(); $oMaintainer = new maintainer($aClean['iMaintainerId']); $oMaintainer->OutputEditor(); echo "\n"; //email response echo '',"\n"; echo "\n"; /* Add button */ echo '',"\n"; /* Reject button */ echo '',"\n"; echo '',"\n"; echo '',"\n"; echo '
Email reply
' ,"\n"; echo '
' ,"\n"; echo '
'; echo html_back_link(1,'adminMaintainerQueue.php'); 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 '
',"\n"; /* retrieve a list of queued entries */ $hResult = Maintainer::ObjectGetEntries(true); if(!$hResult || !mysql_num_rows($hResult)) { //no apps in queue echo html_frame_start("","90%"); echo '

The Maintainer Queue is empty.

',"\n"; echo '

There is nothing for you to do. Check back later.

',"\n"; echo html_frame_end(" "); } else { //help maintainer::ObjectDisplayQueueProcessingHelp(); //show applist echo html_frame_start("","90%","",0); echo "\n\n"; echo "\n"; maintainer::ObjectOutputHeader(); echo " \n"; echo "\n\n"; $iRowCount = 1; while($oRow = mysql_fetch_object($hResult)) { $oMaintainer = Maintainer::ObjectGetObjectFromObjectGetEntriesRow($oRow); if ($iRowCount % 2 == 1) { $sBGColor = 'color0'; } else { $sBGColor = 'color1'; } echo "\n"; $oMaintainer->ObjectOutputTableRow(); echo " \n"; echo "\n\n"; $iRowCount++; } echo "
Action
[maintainerId\">answer]
\n\n"; echo html_frame_end(" "); echo "
"; apidb_footer(); } } ?>