X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=11bb1ef4faf53c7cbb22a2949581efda04d3bd80;hb=fbf1a4e63bb82818dcebfa9b7a26a71c1c8de17e;hp=7bde575b2316de018ac7681e3cc5214319f8d7db;hpb=63747dad1820d275e25472ae8ae3d612cddf9aef;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 7bde575..11bb1ef 100755 --- a/index.php +++ b/index.php @@ -151,18 +151,25 @@ class HTML { * @author Tomas Mudrunka */ class Sklad_HTML extends HTML { //TODO: Split into few more methods - function header($title='', $uid=0, $user='') { + 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']); + $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 +