hasPriv("admin")) util_show_error_page_and_exit("Insufficient privileges."); apidb_header("Admin Maintainers"); echo '
',"\n"; if ($aClean['sSub']) { if($aClean['sSub'] == 'delete') { $oMaintainer = new maintainer($aClean['iMaintainerId']); $oMaintainer->delete(); echo html_frame_start("Delete maintainer: ".$aClean['iMaintainerId'],400,"",0); if($hResult) { // success echo "

Maintainer was successfully deleted

\n"; } echo html_frame_end(" "); echo html_back_link(1,'adminMaintainers.php'); } } else { // get available maintainers $sQuery = "SELECT * FROM appMaintainers, user_list where appMaintainers.userId = user_list.userid"; $sQuery.= " AND queued='false' ORDER BY realname;"; $hResult = query_parameters($sQuery); if(!$hResult || !mysql_num_rows($hResult)) { // no apps echo html_frame_start("","90%"); echo '

There are no application maintainers.

',"\n"; echo html_frame_end(" "); } else { // show applist echo html_frame_start("","90%","",0); echo "\n\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "\n\n"; $c = 1; $oldUserId = 0; while($oRow = mysql_fetch_object($hResult)) { $oUser = new User($oRow->userId); if ($c % 2 == 1) { $bgcolor = 'color0'; } else { $bgcolor = 'color1'; } /* if this is a new user we should print a header that has the aggregate of the applications */ /* the user super maintains and versions they maintain */ if($oRow->userId != $oldUserId) { $style = "border-top:thin solid;border-bottom:thin solid"; echo "\n"; echo " \n"; if($oUser->sRealname == "") echo " \n"; else echo " \n"; $count = Maintainer::getMaintainerCountForUser($oUser, true); if($count == 0) echo " \n"; else if($count <= 1) echo " \n"; else echo " \n"; $count = Maintainer::getMaintainerCountForUser($oUser, false); if($count == 0) echo " \n"; else if($count <= 1) echo " \n"; else echo " \n"; echo " \n"; echo "\n\n"; $oldUserId = $oRow->userId; } echo "\n"; echo " \n"; echo " \n"; if($oRow->superMaintainer) { echo " \n"; echo " \n"; } else { echo " \n"; echo " \n"; } echo " \n"; echo "\n\n"; $c++; } echo "
Submission DateMaintainerApplicationVersionAction
Maintainer summarysEmail."\"> sEmail."\">".$oUser->sRealname." ".$count." app".$count." apps ".$count." version".$count." versions 
".print_date(mysqldatetime_to_unixtimestamp($oRow->submitTime))."  sEmail."\">".$oUser->sRealname."".Application::lookup_name($oRow->appId)."*".Application::lookup_name($oRow->appId)."".Version::lookup_name($oRow->versionId)." [delete]
\n\n"; echo html_frame_end(" "); } } echo "
"; apidb_footer(); ?>