diff options
author | Arun Persaud <arun@nubati.net> | 2008-01-03 14:06:16 +0100 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-01-03 18:12:52 +0100 |
commit | becb5e1267866b1fa858c08125fdba81003dfc65 (patch) | |
tree | f5fe6fb4a8f09c573d4bc48018f6ce1345d2ee83 | |
parent | d8999b1d541c0a76d20fd44a57a4d493bef41f79 (diff) | |
download | e-DoKo-becb5e1267866b1fa858c08125fdba81003dfc65.tar.gz e-DoKo-becb5e1267866b1fa858c08125fdba81003dfc65.tar.bz2 e-DoKo-becb5e1267866b1fa858c08125fdba81003dfc65.zip |
BUGIFX: output was displayed twice
the login information was displayed twice, also formatted the output a bit nicer in html
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | output.php | 8 |
2 files changed, 4 insertions, 6 deletions
@@ -313,8 +313,6 @@ else if(myisset("me")) exit(); } - output_status(); - if(isset($_SESSION["name"])) output_status($_SESSION["name"]); @@ -372,10 +372,10 @@ function output_status() $name = $_SESSION["name"]; /* logout info */ - echo "<div class=\"status\">\n"; + echo "\n<div class=\"status\">"; echo $name; - echo " <a href=\"index.php?logout=1\">logout</a>\n"; - echo "</div>"; + echo " <a href=\"index.php?logout=1\">logout</a>"; + echo "</div>\n"; /* last logon time */ $myid = DB_get_userid_by_name($name); @@ -386,7 +386,7 @@ function output_status() $unixtime = strtotime($time); date_default_timezone_set($zone); - echo "<div class=\"lastlogin\">last login: ".date("r",$unixtime)."</div>"; + echo "<div class=\"lastlogin\">last login: ".date("r",$unixtime)."</div>\n"; }; return; } |