Файл: mob-site/engine/config.php
Строк: 33
<?php
header("Content-type:text/html; charset=utf-8");
//Ставим сессию
require_once ENGINE.'main/Session.php';
Session::activation();
//Уровень отображения ошибок
error_reporting(E_ALL &~E_NOTICE);
//Подключение всех includes файлов
$includes = @scandir(ENGINE.'includes');
unset($includes[0]);
unset($includes[1]);
if(!empty($includes)){
foreach($includes as $include){
@require_once ENGINE.'includes/'.$include;
}
}
//Для тем и страниц
$title = 'Лёгкий выигрыш';
//Подключим файл доп.функций
require_once ENGINE.'main/Simple.php';
if(isset($_GET['mod'])){
$module = htmlspecialchars($_GET['mod']);
if($module == 'logout'){
Session::logout();
Simple::redirect('/', 'До свидания, ждём вас ещё:)');
}else{
if(Simple::dostup($module) == false){
Simple::redirect('/', 'Модуль недоступен!');
}else{
function __autoload($className){
require_once ROOT."mods/".htmlspecialchars($_GET['mod'])."/classes/{$className}.class.php";}
require_once ROOT.'mods/'.htmlspecialchars($_GET['mod']).'/main.php';
}
}
} else{
$index_template = 'index.tpl.php';
}
?>