initial commit
This commit is contained in:
24
production/admin/index.php
Normal file
24
production/admin/index.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
include '../php/classes/page.php';
|
||||
$page = new Page();
|
||||
$page->init_user();
|
||||
|
||||
# make sure the user is logged in before he has access to the
|
||||
# admin section
|
||||
if(!$page->user()->check_role('admin'))
|
||||
{
|
||||
$page->addMessage('You must login to use the administrator pages.');
|
||||
$page->display('menu',false);
|
||||
$page->content('admin/login.php');
|
||||
}
|
||||
else
|
||||
$page->content('admin/index.php');
|
||||
|
||||
$page->attr('title','Discipling the Nations: Administrator Area');
|
||||
$page->menu('admin/menu.php');
|
||||
$page->addCSSFile('admin.css');
|
||||
|
||||
$page->process();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user