Esempio n. 1
0
<?php

$auth = new Auth();
$config = new Config();
if ($auth->isAdmin()) {
    echo Comman::loadView('admin-dashboard');
} else {
    header("location:" . $config->site_address . "login");
}
Esempio n. 2
0
<?php

echo Comman::loadView('admin-header');
echo Comman::loadView('admin-footer');
Esempio n. 3
0
<?php

$auth = new Auth();
$config = new Config();
if ($auth->isAdmin()) {
    echo Comman::loadView('admin-dashboard');
} else {
    if ($auth->isItAuthUser()) {
        echo Comman::loadView('student-dashboard');
    } else {
        header("location:" . $config->site_address . "login");
    }
}