first commit
This commit is contained in:
18
autoload/admin/view/class.Page.php
Normal file
18
autoload/admin/view/class.Page.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace admin\view;
|
||||
|
||||
class Page {
|
||||
|
||||
public static function show()
|
||||
{
|
||||
global $user;
|
||||
|
||||
if ( !$user || !$user['admin'] )
|
||||
return \admin\view\Users::login_form();
|
||||
|
||||
$tpl = new \Tpl;
|
||||
$tpl -> content = \admin\Site::route();
|
||||
return $tpl -> render( 'site/main-layout' );
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user