root/trunk/index.php

Revision 1111, 1.1 KB (checked in by ort, 13 months ago)

перенос константы с версией в loader.php, теперь версия доступна в крон файлах и подобных

Line 
1<?php
2/*-------------------------------------------------------
3*
4*   LiveStreet Engine Social Networking
5*   Copyright © 2008 Mzhelskiy Maxim
6*
7*--------------------------------------------------------
8*
9*   Official site: www.livestreet.ru
10*   Contact e-mail: rus.engine@gmail.com
11*
12*   GNU General Public License, version 2:
13*   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14*
15---------------------------------------------------------
16*/
17error_reporting(E_ALL);
18ini_set('display_errors', 1);
19
20header('Content-Type: text/html; charset=utf-8');
21
22set_include_path(get_include_path().PATH_SEPARATOR.dirname(__FILE__));
23chdir(dirname(__FILE__));
24
25// Получаем объект конфигурации
26require_once("./config/loader.php");
27require_once(Config::Get('path.root.engine')."/classes/Engine.class.php");
28
29$oProfiler=ProfilerSimple::getInstance(Config::Get('path.root.server').'/logs/'.Config::Get('sys.logs.profiler_file'),Config::Get('sys.logs.profiler'));
30$iTimeId=$oProfiler->Start('full_time');
31
32$oRouter=Router::getInstance();
33$oRouter->Exec();
34
35$oProfiler->Stop($iTimeId);
36?>
Note: See TracBrowser for help on using the browser.