X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=index.php;h=40b215fcf0d8121e33284b10d2548b4f67bd4f7f;hb=d516a31d1ee927ed08b0147808b5a7d890742ace;hp=7bde575b2316de018ac7681e3cc5214319f8d7db;hpb=63747dad1820d275e25472ae8ae3d612cddf9aef;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 7bde575..40b215f 100755 --- a/index.php +++ b/index.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 -
Loged in as $user [UID $uid]
+
+ Logged in as $user_name [UID: $user_id; GID: $user_gid]
+ Page loaded at $time +