X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=c1d366072753d374a9be4b8e8c349ac8d29970ac;hb=aaafc8b77f4965c7f8a011ca0f2f18341766e94a;hp=9e4a67d3ad7a03b954809ada83a66c9547c5b6ba;hpb=6d98215bad86f1b8e33e79e084e529e4a8dbf631;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 9e4a67d..c1d3660 100755 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ require_once('sklad.conf.php'); set_include_path(DIR_LIB.PATH_SEPARATOR.get_include_path()); -require_once('Sklad_LMS-fake.class.php'); +require_once('Sklad_Auth.class/common.php'); require_once('HTTP_Auth.class.php'); require_once('Locale.class.php'); require_once('Barcode.class.php'); @@ -151,18 +151,25 @@ class HTML { * @author Tomas Mudrunka */ class Sklad_HTML extends HTML { //TODO: Split into few more methods - function header($title='', $uid=0, $user='') { + function header($title='', $user=array()) { $home = URL_HOME; $script = $_SERVER['SCRIPT_NAME']; $search = htmlspecialchars(@trim($_GET['q'])); $message = strip_tags(@trim($_GET['message']),''); $instance = INSTANCE_ID != '' ? '/'.INSTANCE_ID : ''; + $user_id = htmlspecialchars($user['id']); + $user_gid = htmlspecialchars($user['gid']); + $user_name = htmlspecialchars($user['name']); + $time = date('r'); //$title = T($title); //TODO $html = $this->head("SōkoMan$title"); $html .= <<SōkoMan$instance$title -
Loged in as $user [UID $uid]
+
+ Logged in as $user_name [UID: $user_id; GID: $user_gid]
+ Page loaded at $time +