LAYOUT: made login/logout message in stats.php look nicer
authorArun Persaud <arun@nubati.net>
Fri, 14 Dec 2007 11:07:39 +0000 (12:07 +0100)
committerArun Persaud <arun@nubati.net>
Fri, 14 Dec 2007 11:07:39 +0000 (12:07 +0100)
title says it all ;)

stats.php

index 21b67ed3a7f8242a1d27e5f12711fa7f2fd05285..5bbca267f136609cbff7d288feca10926cbe2b4b 100644 (file)
--- a/stats.php
+++ b/stats.php
@@ -28,7 +28,8 @@ if(myisset("logout"))
     session_unset();
     session_destroy();
     $_SESSION = array();
-    echo "you are now logged out!";
+    echo "<div class=\"message\"><span class=\"bigger\">You are now logged out!</span><br />\n".
+      "(<a href=\"$host\">This will take you back to the home-page</a>)</div>";
   }
 /* user status page */
 else if( isset($_SESSION["name"]) )
@@ -233,7 +234,8 @@ else if( isset($_SESSION["name"]) )
  else
    {
      /* send them back to the login page */
-     echo "<p>Please log in</p>";
+    echo "<div class=\"message\"><span class=\"bigger\">You need to log in!</span><br />\n".
+      "(<a href=\"$host\">This will take you back to the login-page</a>)</div>";
    }
 
 output_footer();