summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-01-03 14:06:16 +0100
committerArun Persaud <arun@nubati.net>2008-01-03 18:12:52 +0100
commitbecb5e1267866b1fa858c08125fdba81003dfc65 (patch)
treef5fe6fb4a8f09c573d4bc48018f6ce1345d2ee83
parentd8999b1d541c0a76d20fd44a57a4d493bef41f79 (diff)
downloade-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.php2
-rw-r--r--output.php8
2 files changed, 4 insertions, 6 deletions
diff --git a/index.php b/index.php
index fe674be..20fc573 100644
--- a/index.php
+++ b/index.php
@@ -313,8 +313,6 @@ else if(myisset("me"))
exit();
}
- output_status();
-
if(isset($_SESSION["name"]))
output_status($_SESSION["name"]);
diff --git a/output.php b/output.php
index e3a14d0..1adc1a7 100644
--- a/output.php
+++ b/output.php
@@ -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;
}