X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=40b215fcf0d8121e33284b10d2548b4f67bd4f7f;hb=d516a31d1ee927ed08b0147808b5a7d890742ace;hp=f4fd40c3afb65ca18508675fab17a4890363a0ec;hpb=5b0075faa84afd5c1ffda52926ef12fdff0cd74e;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index f4fd40c..40b215f 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)."'); $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 +

SōkoMan$instance$title

+
+ Logged in as $user_name [UID: $user_id; GID: $user_gid]
+ Page loaded at $time +