34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
||
//echo '<pre>' . print_r($_SESSION['user'],1) . '</pre>';
|
||
include_once "inc/attendancelog.php";
|
||
global $DB;
|
||
if (isset($_SESSION['user']['fio'])){
|
||
$class = new attendancelog($DB, $_SESSION['user']['fio']);
|
||
$dostup = $class->currentUserInfo();
|
||
if($dostup != 0){
|
||
$OUT = $class->HTML();
|
||
}else{
|
||
$OUT = '<h1>У вас нет доступа к модулю!</h1>';
|
||
}
|
||
} else {
|
||
|
||
}
|
||
|
||
//#МОДУЛИ
|
||
//RewriteRule ^modul/([^/]*)/([^/]*)/p([[0-9]+]*)/$ /index.php?modul=$1&page=$2&p=$3 [L]
|
||
//RewriteRule ^modul/([^/]*)/([^/]*)/([^/]*)/([[0-9]+]*)/$ /index.php?modul=$1&page=$2&des=$3&id=$4 [L]
|
||
//RewriteRule ^modul/([^/]*)/([^/]*)/([^/]*)/$ /index.php?modul=$1&page=$2&des=$3 [L]
|
||
//RewriteRule ^modul/([^/]*)/([^/]*)/$ /index.php?modul=$1&page=$2 [L]
|
||
//RewriteRule ^modul/([^/]*)/$ /index.php?modul=$1 [L]
|
||
//RewriteRule ^modul/$ /index.php?modul [L]
|
||
//$OUT .= '<pre>'.print_r($_GET,1).'</pre>';
|
||
|
||
//https://eios.mkgtu.ru/modul/aiassistant/admin/edit/12/
|
||
//Array
|
||
//(
|
||
// [modul] => aiassistant
|
||
// [page] => admin
|
||
// [des] => edit
|
||
// [id] => 12
|
||
//)
|
||
//$out = $smarty->fetch('moduls/skudp/tpl/index.html');
|