Пример #1
0
// ini_set('open_basedir','/');
// phpinfo();
ob_start();
header("Cache-Control: public");
header("Expires: " . date("r", time() + 3600));
header('Content-Type: text/html; charset=UTF-8');
//echo "<h1>", date("H:i:s"), "</h1>";
// цепляем все функции
require "main.php";
//var_dump(mysql::query('UPDATE  bikes SET  front_page_time =  "2012-10-13" WHERE id =965')); die;
if (DEBUG_SITE == 1) {
    // время выполнения скрипта
    require_once 'plagin/Benchmark/Profiler.php';
    global $profiler;
    $profiler = new Benchmark_Profiler(TRUE);
    $profiler->start();
    // время
    $profiler->enterSection('head');
}
// выводим заголовки
echo head1();
if (DEBUG_SITE == 1) {
    // время
    $profiler->leaveSection('head');
}
unset($_SESSION['GLOBAL_MESSAGE']);
if (!isset($_SESSION['currency'])) {
    $_SESSION['currency'] = SHOW_CURRENCY;
}
if (!isset($_GET['action'])) {
    $_GET['action'] = "index";