<?php
/**
* AdminPage.class.php
*
* This file contains the definition for the AdminPage class
*
* @package Pages
* @author John Diamond <hide@address.com>
* @copyright John Diamond <hide@address.com>
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
*/
require_once 'SolidStatePage.class.php';
/**
* AdminPage
*
* Provides a base for Pages that restrict access to user's with "Administrator"
* privileges.
*
* @package Pages
* @author John Diamond <hide@address.com>
*/
class SolidStateAdminPage extends SolidStatePage {
/**
* Control Access
*
* Determine if the user has Administrator status.
*
* @return boolean True if access is granted, false otherwise
*/
function control_access() {
// return true if user is "Administrator" type
return ( $_SESSION['client']['userdbo']->getType() == "Administrator" );
}
}