From 27cbc14d28d072c37474ac1e96d677b88dde27ba Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 15 Jun 2008 23:43:19 -0700 Subject: NEW FEATURE: login button added a login button to the top right, in case you were not logged in. output_status can now be called in only one place, ie index.php and all pages will get the menu... Signed-off-by: Arun Persaud --- index.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 76bbc29..9702800 100644 --- a/index.php +++ b/index.php @@ -8,13 +8,11 @@ error_reporting(E_ALL); */ session_start(); - include_once("config.php"); /* needs to be first in list, since other includes use this */ include_once("./include/output.php"); /* html output only */ include_once("./include/db.php"); /* database only */ include_once("./include/functions.php"); /* the rest */ - /* make sure that user has set all variables in config.php */ config_check(); @@ -28,7 +26,7 @@ if(DB_open()<0) exit(); } -/* done major error checking, output header of HTML page */ +/* done major error checking, output5B header of HTML page */ output_header(); /* The rest of the file consists of handling user input. @@ -81,6 +79,11 @@ switch($action) require './include/welcome.php'; } +/* ask for login or display login info, needs to go at the end, so that we have the + * session-variable already set. + */ +output_status(); + output_footer(); DB_close(); -- cgit v1.2.3-18-g5258