Файл: onlinepoisk.wm-scripts.ru/index.php
Строк: 29
<?php
session_start();
date_default_timezone_set('Europe/Moscow');
define('ROOT', __DIR__);
require_once ROOT.'/vendor/silex/autoload.php';
require_once ROOT . '/autoload.php';
require_once ROOT . '/helpers.php';
$app = new SilexApplication();
$app['debug'] = 'localhost' == $_SERVER['HTTP_HOST'];
//ini_set("display_errors", "on");
require_once ROOT . '/services.php';
require_once ROOT . '/controllers.php';
$app->run();
function getlang($request_id, $type = 0)
{
if($_COOKIE['lang']) @include ('lang/'.$_COOKIE['lang'].'.php');
else @include ('lang/ru.php');
if($type==0) echo $arr[''.$request_id.''];
else return $arr[''.$request_id.''];
}
$cache = ModelCache::find('all', array('conditions' => array('expiredAt < ?', date("Y-m-d H:i:s"))));
foreach ( $cache as $c ) $c->delete();