From: Arun Persaud Date: Thu, 3 Jan 2008 13:06:16 +0000 (+0100) Subject: BUGIFX: output was displayed twice X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=becb5e1267866b1fa858c08125fdba81003dfc65;p=e-DoKo.git BUGIFX: output was displayed twice the login information was displayed twice, also formatted the output a bit nicer in html --- 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 "
\n"; + echo "\n
"; echo $name; - echo " logout\n"; - echo "
"; + echo " logout"; + echo "
\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 "
last login: ".date("r",$unixtime)."
"; + echo "
last login: ".date("r",$unixtime)."
\n"; }; return; }