X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=43acfb25ba8c55bdac5b38eb8dca07e01a337d62;hb=0646d9ef395a35591e9539aaca5ec4d21aa7aa29;hp=9e4a67d3ad7a03b954809ada83a66c9547c5b6ba;hpb=6d98215bad86f1b8e33e79e084e529e4a8dbf631;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 9e4a67d..43acfb2 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'); @@ -73,6 +73,10 @@ class HTML { return "$title"; } + function img_link($src, $link='#void', $title='img_link', $internal=true, $translate=true, $options='width=64') { + return $this->link($this->img($src,$title,$options),$link,$internal,$translate); + } + function input($name=false, $value=false, $type='text', $placeholder=false, $options=false, $prefix='') { $html = T($prefix)."'); + $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 +