Sort maintainers in adminMaintainers.php by their name. Add header for each maintainer that has a summary of the number of applications and versions they maintain

This commit is contained in:
Chris Morgan
2005-08-25 03:24:31 +00:00
committed by WineHQ
parent 82c3000190
commit 58d4e45b08
2 changed files with 49 additions and 1 deletions

View File

@@ -247,6 +247,19 @@ class User {
return mysql_num_rows($hResult);
}
function getMaintainerCount($bSuperMaintainer)
{
if(!$this->isLoggedIn()) return 0;
$sQuery = "SELECT count(*) as cnt from appMaintainers WHERE userid = '$this->iUserId' AND superMaintainer = '$bSuperMaintainer'";
$hResult = query_appdb($sQuery);
if(!$hResult)
return 0;
$ob = mysql_fetch_object($hResult);
return $ob->cnt;
}
/**
* Add the user as a maintainer
*/