The maintainer was successfully added into the database
\n"; //delete the item from the queue mysql_query("DELETE from appMaintainerQueue where queueId = ".$_REQUEST['queueId'].";"); $goodtogo = 1; /* set to 1 so we send the response email */ } else { //error $statusMessage = "Database Error!
".mysql_error()."
$statusMessage
", 'green'); } else if (($_REQUEST['reject'] || ($_REQUEST['sub'] == 'reject')) && $_REQUEST['queueId']) { if (lookupEmail($ob->userId)) { $ms = "Application Maintainer Request Report\n"; $ms .= "----------------------------------\n\n"; $ms .= "Your application to be the maintainer of ".appIdToName($ob->appId).versionIdToName($ob->versionId)." was rejected. "; $ms .= $_REQUEST['replyText']; $ms .= ""; $ms .= "-The AppDB admins\n"; mail(stripslashes(lookupEmail($ob->userId)),'[AppDB] Maintainer Request Report',$ms); } //delete main item $query = "DELETE from appMaintainerQueue where queueId = ".$_REQUEST['queueId'].";"; $result = mysql_query($query); echo html_frame_start("Delete maintainer application",400,"",0); if(!$result) { //error echo "Internal Error: unable to delete selected maintainer application!
\n"; } else { //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(); } } ?>