Source for file index.php
Documentation is available at index.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
header("Cache-control: private"); // necessary for IE and FF to display form data afer clicking the back button
include_once("../config/define.php");
// check if session is not expired
if(!isset ($_SESSION['authenticated'])) {
if(!empty($_SERVER["QUERY_STRING"])) $page = "login.php?page=". rawurlencode("index.php?". $_SERVER["QUERY_STRING"]);
else $page = "login.php";
if(isset ($_REQUEST['rub'])) $rub= $_REQUEST['rub'];
if(!isset ($_REQUEST['todo'])) {
if($l21auth->isSimpleUser()) {
header("Location: login.php");
// Set_Cookie_last_page() must be after define.php include
$l21auth->setCookieLastPage();
* Section include if dir exists
$rub_link= "index.php?rub=". $rub;
include_once(SQL. '.inc.php');
if(file_exists($sql_inc_file)) include_once($sql_inc_file);
$debug_line->setEndTime();
include_once(THEME_ADMIN_PATH. "index.php");
$sql_object -> DBClose();
if(isset ($Dbg)) $Dbg->display();
|