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

require('includes/Configuration.php');
require('includes/TableName.php');
require('includes/classes/General.php');
require('includes/classes/Memcached.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();

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

if(isset($_COOKIE[$config->cookie_name]) && !is_array($_SESSION['userInfo'])) {
	$userSession = new User;
	$userSession->generateSession($_COOKIE[$config->cookie_name]);
}

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