<?php
/**
 *	Filename: index.php
 *	Function: This file is the main root file for ReqAdmin. It is 		
 *          only file that will be directly requested, and 		
 *          depending on the request, will branch different		
 *          content												
 */

// send anti caching headers
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

// include language
include_once("includes/lang/spanish.inc.php");

// send the charset header
header("Content-Type: text/html; charset=$charset");

// accesscontrol.php checks to see if the user is logged in. If not, a log in form is shown
include_once("includes/session.php");

if(!$session->logged_in)
{
	include_once ("includes/accesscontrol.inc.php");
}
else
{
	header("Location: index2.php");
}
?>