Location: PHPKode > projects > Kwalbum > kwalbum/pages/AdminPage.php
<?php
/* 2.0.3: 2008-10-02
 * 2.0.2 updated: 2008-10-01
 * 2.0 created: 2008-08-29
 */
require_once 'include/IPage.php';

class AdminPage implements IPage
{
	private $userCount, $tagCount, $locationCount;
	private $peopleCount, $trashCount;

	function GetHead(& $title)
	{
		if (false == USER_IS_ADMIN)
			return;

		global $DB, $URLP;
		$title = 'Admin Options';
		$this->userCount = $DB->GetCount(USER_TABLE);
		$this->locationCount = $DB->GetCount(LOCATION_TABLE);
		$this->tagCount = $DB->GetCount(TAG_TABLE);
		$this->peopleCount = $DB->GetCount(PEOPLE_TABLE);
		$this->trashCount = $DB->GetCount(ITEM_TABLE, 'ItemIsHidden=5');
		return '';
	}

	function ShowBody()
	{
		if (false == USER_IS_ADMIN)
			return;
		global $URLP, $DB;
		$url = $URLP->GetExtendedURL();
		require_once 'include/funcCheckVersion.php';
		require 'AdminPage.html.php';
	}
}
?>
Return current item: Kwalbum