<?php
header("Expires: Thu, 17 May 2001 10:17:17 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
include_once("fun_admin.php");
/*
Register session variables
We register our session variables here to save us retyping the
session variable registration code in every script that requires
the session variables (which is every script!)
*/
//session_register("fname");
session_register("adminloggedIn");
session_register("UserName");
session_register("timeout");
//session_register("manager");
/*
Initialize global variables
We declare a $messages array which we will use to hold error
messages for display to users in case of errors. Declaring this
variable an array here saves us retyping it in every script that
might use the $messages array (see above).
*/
$messages=array();
/*
We initialize the following variables - $dbhost, $dbuser, $dbpass
and $dbname - with the values correct for our mysql database.
You should change these values to reflect your own database details:
*/
$dbhost="localhost";
$dbuser="root";
$dbpass="admin";
$dbname="EasyFest";
/*
Create a connection to the DB
As mentioned above, we connect to the db here to save retyping
the db connection code in every script. The 'connectToDB()'
function is found in the 'functions.php' file.
*/
connectToDB();
?>