Location: PHPKode > projects > Pal Vibes > palvibes/includes/AdminApplicationTop.php
<?php
/*
 * Created on 2008-07-30
 *
 * Main header function of all admin applications
 */

require('includes/Configuration.php');
require('includes/TableName.php');
require('includes/classes/General.php');
require('includes/classes/BasePdo.php');
require('includes/classes/Config.php');
require('includes/classes/Referer.php');
require('includes/classes/User.php');
require('includes/classes/Bug.php');

session_start();

if(!is_array($_SESSION['adminInfo']) && !stripos($_SERVER['PHP_SELF'], 'AdminLogin.php')) {
	header("location: AdminLogin.php");
}

$config = new Config;
$config->load();

if(isset($_GET['language'])) {
	$_SESSION['language'] = $_GET['language'];
	$language = $_SESSION['language'];
}
else if(isset($_SESSION['language'])) {
	$language = $_SESSION['language'];
}
else {
	$language = $config->language;
}

require('includes/languages/'.$language.'.php');
$referer = new Referer;
?>
Return current item: Pal Vibes