Show the number of maintainers on the administrators menu
This commit is contained in:
@@ -19,7 +19,7 @@ function global_admin_menu() {
|
|||||||
$g->add("List Users", $apidb_root."admin/");
|
$g->add("List Users", $apidb_root."admin/");
|
||||||
$g->add("View App Queue (".getQueuedAppCount().")", $apidb_root."admin/adminAppQueue.php");
|
$g->add("View App Queue (".getQueuedAppCount().")", $apidb_root."admin/adminAppQueue.php");
|
||||||
$g->add("View Maintainer Queue (".getQueuedMaintainerCount().")", $apidb_root."admin/adminMaintainerQueue.php");
|
$g->add("View Maintainer Queue (".getQueuedMaintainerCount().")", $apidb_root."admin/adminMaintainerQueue.php");
|
||||||
$g->add("View Maintainers", $apidb_root."admin/adminMaintainers.php");
|
$g->add("View Maintainers (".getMaintainerCount().")", $apidb_root."admin/adminMaintainers.php");
|
||||||
|
|
||||||
$g->addmisc(" ");
|
$g->addmisc(" ");
|
||||||
$g->add("Comment manager", $apidb_root."admin/adminCommentView.php");
|
$g->add("Comment manager", $apidb_root."admin/adminCommentView.php");
|
||||||
|
|||||||
@@ -189,6 +189,15 @@ function getQueuedMaintainerCount()
|
|||||||
return $ob->queued_maintainers;
|
return $ob->queued_maintainers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* get the total number of maintainers and applications in the appMaintainers table */
|
||||||
|
function getMaintainerCount()
|
||||||
|
{
|
||||||
|
$qstring = "SELECT count(*) as maintainers FROM appMaintainers";
|
||||||
|
$result = mysql_query($qstring);
|
||||||
|
$ob = mysql_fetch_object($result);
|
||||||
|
return $ob->maintainers;
|
||||||
|
}
|
||||||
|
|
||||||
/* Get the number of users in the database */
|
/* Get the number of users in the database */
|
||||||
function getNumberOfComments()
|
function getNumberOfComments()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user