| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/public_html/central/ajuda/ |
Upload File : |
<?php
/******************************************************************************
* Administration Users <administration_user.php>
*
* Author: Michael McMullen <michael.mcmullen@tutelagesystems.com>
******************************************************************************/
require_once '../System/configuration.php';
class AdministrationUserPage extends MasterTemplate
{
var $template = 'admin_user.html';
var $output = array();
function AdministrationUserPage()
{
// Call the Master Template Constructor
parent::__construct();
// Validate for Administrator
if(! isset($_SESSION['administration']))
{
$this->redirect('login.php');
}
// Add a Crumb
$this->AddBreadCrumb('Welcome', $this->output['webRoot']);
$this->AddBreadCrumb('Administration', 'administration.php');
$this->AddBreadCrumb('User Management', null);
// Gather Categories
$this->output['users'] = $this->FetchUsers();
// Render the Template
$this->RenderTemplate();
}
// Renders the index template (called from master)
function outputBody()
{
$body = new HTML_Template_Flexy($this->config['flexy']);
$body->compile($this->template);
$body->outputObject($this);
}
function FetchUsers()
{
$users = array();
$user_db = DB_DataObject::factory('users');
$user_db->user_active = 1;
$user_db->orderBy('user_name');
$user_db->find();
while($user_db->fetch())
{
$users[] = $user_db->toArray();
}
return $users;
}
}
new AdministrationUserPage();