From becb5e1267866b1fa858c08125fdba81003dfc65 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Thu, 3 Jan 2008 14:06:16 +0100 Subject: BUGIFX: output was displayed twice the login information was displayed twice, also formatted the output a bit nicer in html --- index.php | 2 -- output.php | 8 ++++---- 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 "
\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; } -- cgit v1.2.3-18-g5258