Глобальная проверка на доступ к системе
This commit is contained in:
parent
b4345c1e55
commit
980b761c4b
9
out.php
9
out.php
|
@ -3,10 +3,13 @@
|
|||
include_once "inc/attendancelog.php";
|
||||
global $DB;
|
||||
if (isset($_SESSION['user']['fio'])){
|
||||
// $class = new attendancelog($DB, $_SESSION['user']['fio']);
|
||||
$class = new attendancelog($DB, $_SESSION['user']['fio']);
|
||||
$OUT = $class->HTML();
|
||||
|
||||
$dostup = $class->currentUserInfo();
|
||||
if($dostup != 0){
|
||||
$OUT = $class->HTML();
|
||||
}else{
|
||||
$OUT = '<h1>У вас нет доступа к модулю!</h1>';
|
||||
}
|
||||
} else {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue