mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 03:03:26 +02:00
Move admin code to App\Admin class
Removed old myaac_admin_menu code Add logged() + accountLogged() functions
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
<?php
|
||||
|
||||
use MyAAC\Services\LoginService;
|
||||
|
||||
define('MYAAC_ADMIN', true);
|
||||
|
||||
require '../../common.php';
|
||||
require SYSTEM . 'functions.php';
|
||||
require SYSTEM . 'init.php';
|
||||
require SYSTEM . 'login.php';
|
||||
|
||||
if(!admin())
|
||||
$loginService = new LoginService();
|
||||
$loginService->checkLogin();
|
||||
|
||||
if(!admin()) {
|
||||
die('Access denied.');
|
||||
}
|
||||
|
||||
if(!function_exists('phpinfo'))
|
||||
if(!function_exists('phpinfo')) {
|
||||
die('phpinfo() disabled on this web server.');
|
||||
}
|
||||
|
||||
phpinfo();
|
||||
|
Reference in New Issue
Block a user