X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=db9921d1960afb4b9d6b7f14adb23b29ae01c7fa;hb=e9f6461f24218e72efea648c5f8c23159ca0f909;hp=404ad79addbc6f71d3ce496911f25ff6ecb203be;hpb=d9d47bd38e8c626e9c5db71a6db13a0ff0eb0ba1;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 404ad79..db9921d 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,17 +151,21 @@ class HTML { * @author Tomas Mudrunka */ class Sklad_HTML extends HTML { //TODO: Split into few more methods - function header($title='') { + 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']); //$title = T($title); //TODO $html = $this->head("SōkoMan$title"); $html .= <<SōkoMan$instance$title +

SōkoMan$instance$title

+
Loged in as $user_name [UID: $user_id; GID: $user_gid]