Do vypisu pridano datum a cas
authorThomas Mudrunka <tomas@mudrunka.cz>
Fri, 23 Sep 2011 22:20:09 +0000 (00:20 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Fri, 23 Sep 2011 22:25:51 +0000 (00:25 +0200)
index.php

index db9921d1960afb4b9d6b7f14adb23b29ae01c7fa..11bb1ef4faf53c7cbb22a2949581efda04d3bd80 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -160,12 +160,16 @@ class Sklad_HTML extends HTML { //TODO: Split into few more methods
                $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 .= <<<EOF
 <h1 style="display: inline;"><a href="$script/">SōkoMan</a><small>$instance$title</small></h1>
-<div style="float:right">Loged in as <b>$user_name</b> [UID: <b>$user_id</b>; GID: <b>$user_gid</b>]</div>
+<div style="float:right; text-align:right;">
+       Logged in as <b>$user_name</b> [UID: <b>$user_id</b>; GID: <b>$user_gid</b>]<br />
+       Page loaded at $time
+</div>
 
 <style type="text/css">
 * { font-family: arial; }
This page took 0.110643 seconds and 4 git commands to generate.