X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=479e75cf9ff0a43010091226ff8cc217e4510d97;hb=a8bbdc31576415bf9b1d1100785f8ad4f53a37e4;hp=db9921d1960afb4b9d6b7f14adb23b29ae01c7fa;hpb=e9f6461f24218e72efea648c5f8c23159ca0f909;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index db9921d..479e75c 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)."'); + $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_name [UID: $user_id; GID: $user_gid]
+
+ Logged in as $user_name [UID: $user_id; GID: $user_gid]
+ Page loaded at $time +