Phalcon Framework 3.4.5

Phalcon\Cache\Exception: Cache file /home/esk00474/public_html/public/../app/../data/cache/backend/860960031d75428e8d80fdcb6bd0d596ada1a999baa5 could not be written

/home/esk00474/public_html/app/modules/Application/Mvc/Model/Model.php (166)
#0Phalcon\Cache\Backend\File->save(860960031d75428e8d80fdcb6bd0d596ada1a999baa5, Object(Phalcon\Mvc\Model\Resultset\Simple), 300)
/home/esk00474/public_html/app/modules/Application/Mvc/Model/Model.php (166)
<?php
 
/**
 * Model
 */
 
namespace Application\Mvc\Model;
 
class Model extends \Phalcon\Mvc\Model
{
    const CACHE_LIFETIME = 300;
 
    protected $translations_array = []; // Массив переводов
 
    public $translations = [];
    public $fields = [];
 
    public static $lang = LANG; // Язык по-умолчанию
    public static $custom_lang = ''; // Используется для создания карты сайта
    private static $translateCache = true; // Флаг использования кеша переводов
 
    /**
     * Translate. Для реализации мультиязычной схемы, необходимо скопировать в вашу модель следующие методы:
     * Start Copy:
     */
    protected $translateModel; // translate // Название связанного класса с переводами, например = 'Page\Model\Translate\PageTranslate'
 
    public function initialize()
    {
        $this->hasMany("id", $this->translateModel, "foreign_id"); // translate
    }
    //End Copy
 
    /**
     * Метод вызывается после извлечения всех полей в модели
     */
    public function afterFetch()
    {
        if ($this->translateModel && defined('LANG')) {
            // Если есть массив переводов и установлена константа активного языка или другого языка
            if(self::$custom_lang){
                self::setLang(self::$custom_lang);
            } else {
                self::setLang(LANG); // Устанавливаем текущий язык
            }
 
            $this->initTranslationsArray(); // Извлекаем переводы со связанной таблицы переводов
            $this->initTranslations();
        }
    }
 
    /**
     * Очищение кеша переводов
     * Метод вызывается после обновления значений в модели
     */
    public function afterUpdate()
    {
        $this->deleteTranslateCache();
    }
 
    /**
     * Установка языка
     */
    public static function setLang($lang)
    {
        self::$lang = $lang;
    }
 
    /**
     * Установка другого языка  для карты сайта
     */
    public static function setCustomLang($lang)
    {
        self::$custom_lang = $lang;
    }
 
    /**
     * Установка флага использования кеша.
     * Нужно устанавливать до вызова других методов модели.
     * Пример:
     *
     * ModelName::setTranslateCache(false); // Устанавливаем флаг. Отключение кеша необходимо при работе с моделями в админке
     * $entries = ModelName::find(); // Извлекаем данные
     */
    public static function setTranslateCache($value)
    {
        self::$translateCache = (bool) $value;
    }
 
    /**
     * Извлечение единичного перевода по имени переменной
     */
    public function getMLVariable($key)
    {
        if (array_key_exists($key, $this->translations)) {
            return $this->translations[$key];
        }
 
    }
 
    public function setMLVariable($key, $value, $lang = null)
    {
        if (!$this->getId()) {
            return false;
        }
        $model = new $this->translateModel();
        if (!$lang) {
            $lang = self::$lang;
        }
        $conditions = "foreign_id = :foreign_id: AND lang = :lang: AND key = :key:";
        $parameters = [
            'foreign_id' => $this->getId(),
            'lang'       => $lang,
            'key'        => $key
        ];
        $entity = $model->findFirst([
            $conditions,
            'bind' => $parameters]);
        if (!$entity) {
            $entity = new $this->translateModel();
            $entity->setForeignId($this->getId());
            $entity->setLang($lang);
            $entity->setKey($key);
        }
        $entity->setValue($value);
        $entity->save();
    }
 
    public function translateCacheKey()
    {
        if (!$this->getId()) {
            return false;
        }
        $query = 'foreign_id = ' . $this->getId() . ' AND lang = "' . self::$lang . '"';
        $key = HOST_HASH . md5($this->getSource() . '_translate ' . $query);
        return $key;
    }
 
    public function deleteTranslateCache()
    {
        if (!$this->getId()) {
            return false;
        }
        $cache = $this->getDi()->get('cache');
        $cache->delete($this->translateCacheKey());
    }
 
    /**
     * Извлечение массива переводов
     */
    private function initTranslationsArray()
    {
        if (!$this->getId()) {
            return false;
        }
        $model = new $this->translateModel();
        $query = 'foreign_id = ' . $this->getId() . ' AND lang = "' . self::$lang . '"';
        $params = ['conditions' => $query];
 
        if (self::$translateCache) {
            $cache = $this->getDi()->get('cache');
            $data = $cache->get($this->translateCacheKey());
            if (!$data) {
                $data = $model->find($params);
                if ($data) {
                    $cache->save($this->translateCacheKey(), $data, self::CACHE_LIFETIME);
                }
            }
        } else {
            $data = $model->find($params);
        }
 
        $this->translations_array = $data;
    }
 
    public function initTranslations()
    {
        if (!empty($this->translations_array)) {
            foreach ($this->translations_array as $translation) {
                $this->translations[$translation->getKey()] = $translation->getValue();
            }
        }
    }
 
}
#1Application\Mvc\Model\Model->initTranslationsArray()
/home/esk00474/public_html/app/modules/Application/Mvc/Model/Model.php (47)
<?php
 
/**
 * Model
 */
 
namespace Application\Mvc\Model;
 
class Model extends \Phalcon\Mvc\Model
{
    const CACHE_LIFETIME = 300;
 
    protected $translations_array = []; // Массив переводов
 
    public $translations = [];
    public $fields = [];
 
    public static $lang = LANG; // Язык по-умолчанию
    public static $custom_lang = ''; // Используется для создания карты сайта
    private static $translateCache = true; // Флаг использования кеша переводов
 
    /**
     * Translate. Для реализации мультиязычной схемы, необходимо скопировать в вашу модель следующие методы:
     * Start Copy:
     */
    protected $translateModel; // translate // Название связанного класса с переводами, например = 'Page\Model\Translate\PageTranslate'
 
    public function initialize()
    {
        $this->hasMany("id", $this->translateModel, "foreign_id"); // translate
    }
    //End Copy
 
    /**
     * Метод вызывается после извлечения всех полей в модели
     */
    public function afterFetch()
    {
        if ($this->translateModel && defined('LANG')) {
            // Если есть массив переводов и установлена константа активного языка или другого языка
            if(self::$custom_lang){
                self::setLang(self::$custom_lang);
            } else {
                self::setLang(LANG); // Устанавливаем текущий язык
            }
 
            $this->initTranslationsArray(); // Извлекаем переводы со связанной таблицы переводов
            $this->initTranslations();
        }
    }
 
    /**
     * Очищение кеша переводов
     * Метод вызывается после обновления значений в модели
     */
    public function afterUpdate()
    {
        $this->deleteTranslateCache();
    }
 
    /**
     * Установка языка
     */
    public static function setLang($lang)
    {
        self::$lang = $lang;
    }
 
    /**
     * Установка другого языка  для карты сайта
     */
    public static function setCustomLang($lang)
    {
        self::$custom_lang = $lang;
    }
 
    /**
     * Установка флага использования кеша.
     * Нужно устанавливать до вызова других методов модели.
     * Пример:
     *
     * ModelName::setTranslateCache(false); // Устанавливаем флаг. Отключение кеша необходимо при работе с моделями в админке
     * $entries = ModelName::find(); // Извлекаем данные
     */
    public static function setTranslateCache($value)
    {
        self::$translateCache = (bool) $value;
    }
 
    /**
     * Извлечение единичного перевода по имени переменной
     */
    public function getMLVariable($key)
    {
        if (array_key_exists($key, $this->translations)) {
            return $this->translations[$key];
        }
 
    }
 
    public function setMLVariable($key, $value, $lang = null)
    {
        if (!$this->getId()) {
            return false;
        }
        $model = new $this->translateModel();
        if (!$lang) {
            $lang = self::$lang;
        }
        $conditions = "foreign_id = :foreign_id: AND lang = :lang: AND key = :key:";
        $parameters = [
            'foreign_id' => $this->getId(),
            'lang'       => $lang,
            'key'        => $key
        ];
        $entity = $model->findFirst([
            $conditions,
            'bind' => $parameters]);
        if (!$entity) {
            $entity = new $this->translateModel();
            $entity->setForeignId($this->getId());
            $entity->setLang($lang);
            $entity->setKey($key);
        }
        $entity->setValue($value);
        $entity->save();
    }
 
    public function translateCacheKey()
    {
        if (!$this->getId()) {
            return false;
        }
        $query = 'foreign_id = ' . $this->getId() . ' AND lang = "' . self::$lang . '"';
        $key = HOST_HASH . md5($this->getSource() . '_translate ' . $query);
        return $key;
    }
 
    public function deleteTranslateCache()
    {
        if (!$this->getId()) {
            return false;
        }
        $cache = $this->getDi()->get('cache');
        $cache->delete($this->translateCacheKey());
    }
 
    /**
     * Извлечение массива переводов
     */
    private function initTranslationsArray()
    {
        if (!$this->getId()) {
            return false;
        }
        $model = new $this->translateModel();
        $query = 'foreign_id = ' . $this->getId() . ' AND lang = "' . self::$lang . '"';
        $params = ['conditions' => $query];
 
        if (self::$translateCache) {
            $cache = $this->getDi()->get('cache');
            $data = $cache->get($this->translateCacheKey());
            if (!$data) {
                $data = $model->find($params);
                if ($data) {
                    $cache->save($this->translateCacheKey(), $data, self::CACHE_LIFETIME);
                }
            }
        } else {
            $data = $model->find($params);
        }
 
        $this->translations_array = $data;
    }
 
    public function initTranslations()
    {
        if (!empty($this->translations_array)) {
            foreach ($this->translations_array as $translation) {
                $this->translations[$translation->getKey()] = $translation->getValue();
            }
        }
    }
 
}
#2Application\Mvc\Model\Model->afterFetch()
#3Phalcon\Mvc\Model->fireEvent(afterFetch)
#4Phalcon\Mvc\Model::cloneResultMap(Object(Publication\Model\Publication: 27), Array(12), null, 0, false)
#5Phalcon\Mvc\Model\Resultset\Simple->current()
#6Phalcon\Mvc\Model\Resultset->getFirst()
#7Phalcon\Mvc\Model\Query->execute()
#8Phalcon\Mvc\Model::findFirst(2038)
/home/esk00474/public_html/app/modules/Publication/Controller/IndexController.php (181)
<?php
 
namespace Publication\Controller;
 
use Application\Mvc\Controller;
use Publication\Model\Helper\PublicationHelper;
use Publication\Model\Publication;
use Phalcon\Exception;
use Publication\Model\Type;
use Cms\Model\Settings;
use Region\Model\Region;
use Phalcon\Paginator\Adapter\NativeArray;
 
class IndexController extends Controller
{
 
    public function indexAction()
    {
        $type      = $this->dispatcher->getParam('type', 'string');
        $typeModel = Type::getCachedBySlug($type);
        if (!$typeModel) {
            throw new Exception("Publication hasn't type = '$type''");
        }
 
        $typeLimit = ($typeModel->getLimit()) ? $typeModel->getLimit() : 10;
        $limit     = $this->request->getQuery('limit', 'string', $typeLimit);
        if ($limit != 'all') {
            $paginatorLimit = (int)$limit;
        } else {
            $paginatorLimit = 9999;
        }
        $page = $this->request->getQuery('page', 'int', 1);
 
        /*$publications = Publication::find(array(
            "type_id = {$typeModel->getId()}",
            "order" => "date DESC",
        ));*/
 
        $publicationHelper = new PublicationHelper();
        $fields = $publicationHelper->translateFieldsSubQuery();
 
        $columns = ['p.*', 't_slug' => 't.slug'];
        $columns = array_merge($columns, $fields);
 
        
        $qb = $this->modelsManager->createBuilder()
            ->columns($columns)
            ->addFrom('Publication\Model\Publication', 'p')
            ->having('title is not null')
            ->leftJoin('Publication\Model\Type', null, 't')
            ->andWhere('t.slug = :type:', ['type' => $type])
            ->andWhere('p.date <= NOW()')
            ->orderBy('p.date DESC');
        //Check for qounun loyihalari
        if($typeModel->id == 14){
            $qb->andWhere('exp_date IS NULL');
            $qb->orWhere('p.exp_date >= NOW()');
        }
        
        $paginator = new \Phalcon\Paginator\Adapter\QueryBuilder([
            "builder"  => $qb,
            "limit" => $paginatorLimit,
            "page"  => $page,
            "columns"  => $columns,
        ]);
 
        
 
        $this->view->paginate = $paginator->getPaginate();
 
        $settings = Settings::findFirst(1);
        $curLang = $this->helper->currentUrl(LANG);
        $meta_url = $this->helper->base_url().$curLang.$type;
        $meta_image = $this->helper->base_url().'/'.$settings->getLogo();
        
        if(!$typeModel->getMetaTitle()){
            $this->helper->title()->append($typeModel->getTitle());
            $this->helper->meta()->set('title', $typeModel->getTitle());
        }
        if($typeModel->getMetaTitle()){
            $this->helper->title()->append($typeModel->getMetaTitle());
            $this->helper->meta()->set('title', $typeModel->getMetaTitle());
        }
 
        $this->helper->meta()->set('description', $typeModel->getMetaDescription());
        $this->helper->meta()->set('type', 'article');
        $this->helper->meta()->set('site_name', $settings->getSiteName());
        $this->helper->meta()->set('url', $meta_url);
        $this->helper->meta()->set('image', $meta_image);
 
        if($typeModel->getIndexPage() == 1)        
            $this->helper->meta()->set('robots', 'noindex, nofollow');
       
        if ($page > 1) {
            $this->helper->title()->append($this->helper->translate('Страница №') . ' ' . $page);
        }
        $this->view->title  = $typeModel->getTitle();
        $this->view->format = $typeModel->getFormat();
        $this->view->type   = $type;
 
        $this->helper->menu->setActive($type);
    }
 
    public function servicesAction()
    {
        $type = 'services';        
        $typeModel = Type::getCachedBySlug($type);
        if (!$typeModel) {
            throw new Exception("Publication hasn't type = '$type'");
        }
 
        $typeLimit = ($typeModel->getLimit()) ? $typeModel->getLimit() : 10;
        $limit     = $this->request->getQuery('limit', 'string', $typeLimit);
        if ($limit != 'all') {
            $paginatorLimit = (int)$limit;
        } else {
            $paginatorLimit = 9999;
        }
        $page = $this->request->getQuery('page', 'int', 1);        
 
        $publicationHelper = new PublicationHelper();
        $fields = $publicationHelper->translateFieldsSubQuery();
 
        $columns = ['p.*', 't_slug' => 't.slug'];
        $columns = array_merge($columns, $fields);
 
        $qb = $this->modelsManager->createBuilder()
            ->columns($columns)
            ->addFrom('Publication\Model\Publication', 'p')
            ->leftJoin('Publication\Model\Type', null, 't')
            ->andWhere('t.slug = :type:', ['type' => 'services'])
            ->andWhere('p.date <= NOW()')
            ->orderBy('p.date DESC');
 
        $paginator = new \Phalcon\Paginator\Adapter\QueryBuilder([
            "builder"  => $qb,
            "limit" => $paginatorLimit,
            "page"  => $page
        ]);
 
        $this->view->paginate = $paginator->getPaginate();
 
        $settings = Settings::findFirst(1);
        $curLang = $this->helper->currentUrl(LANG);
        $meta_url = $this->helper->base_url().$curLang.$type;
        $meta_image = $this->helper->base_url().'/'.$settings->getLogo();
        
        if(!$typeModel->getMetaTitle()){
            $this->helper->title()->append($typeModel->getTitle());
            $this->helper->meta()->set('title', $typeModel->getTitle());
        }
        if($typeModel->getMetaTitle()){
            $this->helper->title()->append($typeModel->getMetaTitle());
            $this->helper->meta()->set('title', $typeModel->getMetaTitle());
        }
 
        $this->helper->meta()->set('description', $typeModel->getMetaDescription());
        $this->helper->meta()->set('type', 'article');
        $this->helper->meta()->set('site_name', $settings->getSiteName());
        $this->helper->meta()->set('url', $meta_url);
        $this->helper->meta()->set('image', $meta_image);
 
        if($typeModel->getIndexPage() == 1)        
            $this->helper->meta()->set('robots', 'noindex, nofollow');
 
        if ($page > 1) {
            $this->helper->title()->append($this->helper->translate('Страница №') . ' ' . $page);
        }
        $this->view->title  = $typeModel->getTitle();
        $this->view->format = $typeModel->getFormat();
        $this->view->type   = $type;
 
        $this->helper->menu->setActive($type);
    }
 
    public function publicationAction()
    {
        $slug = $this->dispatcher->getParam('id', 'int');
        $type = $this->dispatcher->getParam('type', 'string');
 
        $publicationResult = Publication::findFirst($slug);
        if (!$publicationResult) {
            throw new Exception("Publication '$slug.html' not found");
        }
        if ($publicationResult->getTypeSlug() != $type) {
            throw new Exception("Publication type <> $type");
        }
 
        if (!$publicationResult->getTitle()){
            return $this->redirect($this->url->get() .  LANG);
        }
 
        $settings = Settings::findFirst(1);
        $curLang = $this->helper->currentUrl(LANG);
        $meta_url = $this->helper->base_url().$curLang.$type.'/'.$slug;
        $meta_image = $this->helper->base_url().'/'.$publicationResult->p->preview_src;
 
        if(!$publicationResult->meta_title){
            $this->helper->title()->append($publicationResult->title);
            $this->helper->meta()->set('title', $publicationResult->title);
        }
        if($publicationResult->meta_title){
            $this->helper->title()->append($publicationResult->meta_title);
            $this->helper->meta()->set('title', $publicationResult->meta_title);
        }
 
        $this->helper->meta()->set('description', $publicationResult->meta_description);
        $this->helper->meta()->set('type', 'article');
        $this->helper->meta()->set('site_name', $settings->getSiteName());
        $this->helper->meta()->set('url', $meta_url);
        $this->helper->meta()->set('image', $meta_image);
 
        if($publicationResult->p->index_page == 1)        
            $this->helper->meta()->set('robots', 'noindex, nofollow');        
 
        $this->helper->menu->setActive($type);
        $lifetime = 60*60;
        $session_name = $publicationResult->getId().'_XDP_UZ';
        if(!isset($_COOKIE[$session_name])){
            session_start();
            setcookie($session_name,session_id(),time()+$lifetime);
            $viewsCount = $publicationResult->getViews() + rand(1,5);
            $publicationResult->setViews($viewsCount);
            $publicationResult->save();
        }
 
        $this->view->publicationResult = $publicationResult;
    }
 
    public function regionAction()
    {
        $id = $this->dispatcher->getParam('id', 'int');
        $region = Region::findFirst($id);
        if(!$region){
            throw new Exception("Region not found");
        }
        $paginatorLimit = 10;
        $page = $this->request->getQuery('page', 'int', 1);        
 
        $publicationHelper = new PublicationHelper();
        $fields = $publicationHelper->translateFieldsSubQuery();
 
        $columns = ['p.*', 't_slug' => 't.slug'];
        $columns = array_merge($columns, $fields);
 
        $qb = $this->modelsManager->createBuilder()
            ->columns($columns)
            ->addFrom('Publication\Model\Publication', 'p')
            ->having('title is not null')
            ->leftJoin('Publication\Model\Type', null, 't')
            ->andWhere('p.region_id = :region_id:', ['region_id' => $region->id])
            ->andWhere('p.date <= NOW()')
            ->orderBy('p.date DESC');
 
        $paginator = new \Phalcon\Paginator\Adapter\QueryBuilder([
            "builder"  => $qb,
            "limit" => $paginatorLimit,
            "page"  => $page,
            "columns"  => $columns,
        ]);
 
        $this->view->paginate = $paginator->getPaginate();
 
        $settings = Settings::findFirst(1);
        $curLang = $this->helper->currentUrl(LANG);
        $meta_url = $this->helper->base_url().$curLang.$type;
        $meta_image = $this->helper->base_url().'/'.$settings->getLogo();
        
        // if(!$typeModel->getMetaTitle()){
        //     $this->helper->title()->append($typeModel->getTitle());
        //     $this->helper->meta()->set('title', $typeModel->getTitle());
        // }
        // if($typeModel->getMetaTitle()){
        //     $this->helper->title()->append($typeModel->getMetaTitle());
        //     $this->helper->meta()->set('title', $typeModel->getMetaTitle());
        // }
        
        $this->helper->title()->append($region->getTitle());
        // $this->helper->meta()->set('description', $typeModel->getMetaDescription());
        $this->helper->meta()->set('type', 'article');
        $this->helper->meta()->set('site_name', $settings->getSiteName());
        $this->helper->meta()->set('url', $meta_url);
        $this->helper->meta()->set('image', $meta_image);
 
        // if($typeModel->getIndexPage() == 1)        
        //     $this->helper->meta()->set('robots', 'noindex, nofollow');
 
        if ($page > 1) {
            $this->helper->title()->append($this->helper->translate('Страница №') . ' ' . $page);
        }
        $this->view->title  = $region->getTitle();
        $this->view->format = 'grid';
        $this->view->contact = $region->getText();
        $this->view->manager = $region;
        // $this->view->type   = $type;
 
        $this->helper->menu->setActive($type);
    }
 
    public function tagsAction()
    {
        $tag = $this->dispatcher->getParam('tag', 'string');
 
        $typeLimit = 10;
        $limit     = $this->request->getQuery('limit', 'string', $typeLimit);
        if ($limit != 'all') {
            $paginatorLimit = (int)$limit;
        } else {
            $paginatorLimit = 9999;
        }
        $page = $this->request->getQuery('page', 'int', 1);
 
        $publicationHelper = new PublicationHelper();
        $fields = $publicationHelper->translateFieldsSubQuery();
 
        $columns = ['p.*', 't_slug' => 't.tag'];
        $columns = array_merge($columns, $fields);
 
        $qb = $this->modelsManager->createBuilder()
            ->columns($columns)
            ->addFrom('Publication\Model\Publication', 'p')
            ->leftJoin('Publication\Model\Tag', null, 't')
            ->andWhere('t.tag = :tag:', ['tag' => $tag])
            // ->join('Publication\Model\Translate\PublicationTranslateDate', 'd.foreign_id = p.id', 'd')
            // ->andWhere('d.lang = :lang:', ['lang' => LANG])
            ->andWhere('p.date <= NOW()')
            ->orderBy('p.date DESC')
            ->getQuery()
            ->execute();
 
        $data = array();
        foreach ($qb as $value) {
          if($value->title)
            $data[] = $value;
        }
 
        $paginator = new NativeArray([
            "data"  => $data,
            "limit" => $paginatorLimit,
            "page"  => $page
        ]);
 
        $this->view->paginate = $paginator->getPaginate();
 
        $settings = Settings::findFirst(1);
        $curLang = $this->helper->currentUrl(LANG);
        $meta_url = $this->helper->base_url().$curLang.'/news/'.$tag;
        $meta_image = $this->helper->base_url().'/'.$settings->getLogo();
 
        $this->helper->title()->append($this->helper->translate('News'));
        $this->helper->meta()->set('title', $this->helper->translate('News'));
 
        $this->helper->meta()->set('description', $this->helper->translate('News'));
        $this->helper->meta()->set('type', 'article');
        $this->helper->meta()->set('site_name', $settings->getSiteName());
        $this->helper->meta()->set('url', $meta_url);
        $this->helper->meta()->set('image', $meta_image);
 
        if ($page > 1) {
            $this->helper->title()->append($this->helper->translate('Страница №') . ' ' . $page);
        }
        $this->view->title  = $tag;
 
        $this->helper->menu->setActive($type);
    }
 
 
}
#9Publication\Controller\IndexController->publicationAction(partiya-yangiliklari, 2038)
#10Phalcon\Dispatcher->callActionMethod(Object(Publication\Controller\IndexController), publicationAction, Array([type] => partiya-yangiliklari, [id] => 2038))
#11Phalcon\Dispatcher->dispatch()
/home/esk00474/public_html/app/Bootstrap.php (307)
<?php
 
namespace Eskiz;
use Application\Cache\Manager as CacheManager;
 
/**
 * Bootstrap
 */
 
class Bootstrap
{
 
    public function run()
    {
        $di = new \Phalcon\DI\FactoryDefault();
 
        // Config
        require_once APPLICATION_PATH . '/modules/Cms/Config.php';
        $config = \Cms\Config::get();
        $di->set('config', $config);
 
        // Registry
        $registry = new \Phalcon\Registry();
        $di->set('registry', $registry);
 
        // Loader
        $loader = new \Phalcon\Loader();
        $loader->registerNamespaces($config->loader->namespaces->toArray());
        $loader->registerDirs([APPLICATION_PATH . "/plugins/"]);
        $loader->register();
        require_once APPLICATION_PATH . '/../vendor/autoload.php';
 
        // Database
        $db = new \Phalcon\Db\Adapter\Pdo\Mysql([
            "host"     => $config->database->host,
            "username" => $config->database->username,
            "password" => $config->database->password,
            "dbname"   => $config->database->dbname,
            "charset"  => $config->database->charset,
        ]);
        $di->set('db', $db);
 
        // View
        $this->initView($di);
 
        // URL
        $url = new \Phalcon\Mvc\Url();
        $url->setBasePath($config->base_path);
        $url->setBaseUri($config->base_path);
        $di->set('url', $url);
 
        // Cache
        $this->initCache($di);
 
        // CMS
        $cmsModel = new \Cms\Model\Configuration();
        $registry->cms = $cmsModel->getConfig(); // Отправляем в Registry
 
        // Application
        $application = new \Phalcon\Mvc\Application();
        $application->registerModules($config->modules->toArray());
 
        // Events Manager, Dispatcher
        $this->initEventManager($di);
 
        // Session
        $session = new \Phalcon\Session\Adapter\Files();
        $session->start();
        $di->set('session', $session);
 
        $acl = new \Application\Acl\DefaultAcl();
        $di->set('acl', $acl);
 
        // JS Assets
        $this->initAssetsManager($di);
 
        // Flash helper
        $flash = new \Phalcon\Flash\Session([
            'error'   => 'ui red inverted segment',
            'success' => 'ui green inverted segment',
            'notice'  => 'ui blue inverted segment',
            'warning' => 'ui orange inverted segment',
        ]);
        $di->set('flash', $flash);
 
        $di->set('helper', new \Application\Mvc\Helper());
 
        // Routing
        $this->initRouting($application, $di);
 
        $application->setDI($di);
 
        // Main dispatching process
        $this->dispatch($di);
 
    }
 
    private function initRouting($application, $di)
    {
        $router = new \Application\Mvc\Router\DefaultRouter();
        $router->setDi($di);
        foreach ($application->getModules() as $module) {
            $routesClassName = str_replace('Module', 'Routes', $module['className']);
            if (class_exists($routesClassName)) {
                $routesClass = new $routesClassName();
                $router = $routesClass->init($router);
            }
            $initClassName = str_replace('Module', 'Init', $module['className']);
            if (class_exists($initClassName)) {
                new $initClassName();
            }
        }
        $di->set('router', $router);
    }
 
    private function initAssetsManager($di)
    {
        $config = $di->get('config');
        $assetsManager = new \Application\Assets\Manager();
        $js_collection = $assetsManager->collection('js')
            ->setLocal(true)
            ->addFilter(new \Phalcon\Assets\Filters\Jsmin())
            ->setTargetPath(ROOT . '/assets/admin/js/js.js')
            ->setTargetUri('assets/admin/js/js.js')
            ->join(true);
        if ($config->assets->js) {
            foreach ($config->assets->js as $js) {
                $js_collection->addJs(ROOT . '/' . $js);
            }
        }
 
        // Admin JS Assets
        $assetsManager->collection('modules-admin-js')
            ->setLocal(true)
            ->addFilter(new \Phalcon\Assets\Filters\Jsmin())
            ->setTargetPath(ROOT . '/assets/admin/js/modules-admin.js')
            ->setTargetUri('assets/admin/js/modules-admin.js')
            ->join(true);
 
        // Admin LESS Assets
        $assetsManager->collection('modules-admin-less')
            ->setLocal(true)
            ->addFilter(new \Application\Assets\Filter\Less())
            ->setTargetPath(ROOT . '/assets/admin/js/modules-admin.less')
            ->setTargetUri('assets/admin/js/modules-admin.less')
            ->join(true)
            ->addCss(APPLICATION_PATH . '/modules/Admin/assets/admin.less');
 
        $di->set('assets', $assetsManager);
    }
 
    private function initEventManager($di)
    {
        $eventsManager = new \Phalcon\Events\Manager();
        $dispatcher = new \Phalcon\Mvc\Dispatcher();
 
        $eventsManager->attach("dispatch:beforeDispatchLoop", function ($event, $dispatcher) use ($di) {
            new \Eskiz\Plugin\CheckPoint($di->get('request'));
            new \Eskiz\Plugin\Localization($dispatcher);
            new \Eskiz\Plugin\AdminLocalization($di->get('config'));
            new \Eskiz\Plugin\Acl($di->get('acl'), $dispatcher, $di->get('view'));
            new \Eskiz\Plugin\MobileDetect($di->get('session'), $di->get('view'), $di->get('request'));
        });
 
        $eventsManager->attach("dispatch:afterDispatchLoop", function ($event, $dispatcher) use ($di) {
            new \Eskiz\Plugin\Title($di);
        });
 
        // Profiler
        $registry = $di->get('registry');
        if ($registry->cms['PROFILER']) {
            $profiler = new \Phalcon\Db\Profiler();
            $di->set('profiler', $profiler);
 
            $eventsManager->attach('db', function ($event, $db) use ($profiler) {
                if ($event->getType() == 'beforeQuery') {
                    $profiler->startProfile($db->getSQLStatement());
                }
                if ($event->getType() == 'afterQuery') {
                    $profiler->stopProfile();
                }
            });
        }
 
        $db = $di->get('db');
        $db->setEventsManager($eventsManager);
 
        $dispatcher->setEventsManager($eventsManager);
        $di->set('dispatcher', $dispatcher);
    }
 
    private function initView($di)
    {
        $view = new \Phalcon\Mvc\View();
 
        define('MAIN_VIEW_PATH', '../../../views/');
        $view->setMainView(MAIN_VIEW_PATH . 'main');
        $view->setLayoutsDir(MAIN_VIEW_PATH . '/layouts/');
        $view->setLayout('main');
        $view->setPartialsDir(MAIN_VIEW_PATH . '/partials/');
 
        // Volt
        $volt = new \Application\Mvc\View\Engine\Volt($view, $di);
        $volt->setOptions(['compiledPath' => APPLICATION_PATH . '/../data/cache/volt/']);
        $volt->initCompiler();
 
 
        $phtml = new \Phalcon\Mvc\View\Engine\Php($view, $di);
        $viewEngines = [
            ".volt"  => $volt,
            ".phtml" => $phtml,
        ];
 
        $view->registerEngines($viewEngines);
 
        $ajax = $di->get('request')->getQuery('_ajax');
        if ($ajax) {
            $view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_LAYOUT);
        }
 
        $di->set('view', $view);
 
        return $view;
    }
 
    private function initCache($di)
    {
        $config = $di->get('config');
 
        $cacheFrontend = new \Phalcon\Cache\Frontend\Data([
            "lifetime" => 60,
            "prefix"   => HOST_HASH,
        ]);
 
        $cache = null;
        switch ($config->cache) {
            case 'file':
                $cache = new \Phalcon\Cache\Backend\File($cacheFrontend, [
                    "cacheDir" => APPLICATION_PATH . "/../data/cache/backend/"
                ]);
                break;
            case 'memcache':
                $cache = new \Phalcon\Cache\Backend\Memcache(
                    $cacheFrontend, [
                    "host" => $config->memcache->host,
                    "port" => $config->memcache->port,
                ]);
                break;
            case 'memcached':
                $cache = new \Phalcon\Cache\Backend\Libmemcached(
                    $cacheFrontend, [
                    "host" => $config->memcached->host,
                    "port" => $config->memcached->port,
                ]);
                break;
        }
        $di->set('cache', $cache, true);
        $di->set('modelsCache', $cache, true);
 
        \Application\Widget\Proxy::$cache = $cache; // Modules Widget System
 
        $modelsMetadata = new \Phalcon\Mvc\Model\Metadata\Memory();
        $di->set('modelsMetadata', $modelsMetadata);
 
        $di->set('cacheManager', new CacheManager());
    }
 
    private function dispatch($di)
    {
        $router = $di['router'];
        $router->removeExtraSlashes(true);
        $router->handle();
        $view = $di['view'];
        $dispatcher = $di['dispatcher'];
        $response = $di['response'];        
        $dispatcher->setModuleName($router->getModuleName());
        $dispatcher->setControllerName($router->getControllerName());
        $dispatcher->setActionName($router->getActionName());
        $dispatcher->setParams($router->getParams());
        $moduleName = \Application\Utils\ModuleName::camelize($router->getModuleName());
        $params = $router->getParams();
        if($params){
          if(isset($params['slug'])){
            $params = $params['slug'];
            $lang = \Cms\Model\Language::findFirst("iso='{$params}'");        
            if($lang){            
                $dispatcher->setParams(array('lang'=>$lang->getIso(),'slug'=>'index')); 
                $moduleName = \Application\Utils\ModuleName::camelize('index');
            } 
          }  
        }  
 
        $ModuleClassName = $moduleName . '\Module';
        if (class_exists($ModuleClassName)) {
            $module = new $ModuleClassName;
            $module->registerAutoloaders();
            $module->registerServices($di);
        }
 
        $view->start();
 
        $registry = $di['registry'];
        if ($registry->cms['DEBUG_MODE']) {
            $debug = new \Phalcon\Debug();
            $debug->listen();
 
            $dispatcher->dispatch();
        } else {
            try {
                $dispatcher->dispatch();
            } catch (\Phalcon\Exception $e) {
                // Errors catching
                $view->setViewsDir(__DIR__ . '/modules/Index/views/');
                $view->setPartialsDir('');
                $view->e = $e;
                if ($e instanceof \Phalcon\Mvc\Dispatcher\Exception) {
                    $response->setStatusCode(404, 'Not Found');
                    $view->partial('error/error404');
                } else {
                    $response->setStatusCode(503, 'Service Unavailable');
                    $view->partial('error/error503');
                }
                $response->sendHeaders();
                echo $response->getContent();
                return;
            }
        }
 
        $view->render(
            $dispatcher->getControllerName(),
            $dispatcher->getActionName(),
            $dispatcher->getParams()
        );
 
        $view->finish();
        $response = $di['response'];
 
        // AJAX
        $request = $di['request'];
        $_ajax = $request->getQuery('_ajax');
        if ($_ajax) {
            $contents = $view->getContent();
            $return = new \stdClass();
            $return->html = $contents;
            $return->title = $di->get('helper')->title()->get();
            $return->success = true;
            if ($view->bodyClass) {
                $return->bodyClass = $view->bodyClass;
            }
            $headers = $response->getHeaders()->toArray();
            if (isset($headers[404]) || isset($headers[503])) {
                $return->success = false;
            }
            $response->setContentType('application/json', 'UTF-8');
            $response->setContent(json_encode($return));
        } else {
            $response->setContent($view->getContent());
        }
        $response->sendHeaders();
        echo $response->getContent();
    }
}
#12Eskiz\Bootstrap->dispatch(Object(Phalcon\Di\FactoryDefault))
/home/esk00474/public_html/app/Bootstrap.php (94)
<?php
 
namespace Eskiz;
use Application\Cache\Manager as CacheManager;
 
/**
 * Bootstrap
 */
 
class Bootstrap
{
 
    public function run()
    {
        $di = new \Phalcon\DI\FactoryDefault();
 
        // Config
        require_once APPLICATION_PATH . '/modules/Cms/Config.php';
        $config = \Cms\Config::get();
        $di->set('config', $config);
 
        // Registry
        $registry = new \Phalcon\Registry();
        $di->set('registry', $registry);
 
        // Loader
        $loader = new \Phalcon\Loader();
        $loader->registerNamespaces($config->loader->namespaces->toArray());
        $loader->registerDirs([APPLICATION_PATH . "/plugins/"]);
        $loader->register();
        require_once APPLICATION_PATH . '/../vendor/autoload.php';
 
        // Database
        $db = new \Phalcon\Db\Adapter\Pdo\Mysql([
            "host"     => $config->database->host,
            "username" => $config->database->username,
            "password" => $config->database->password,
            "dbname"   => $config->database->dbname,
            "charset"  => $config->database->charset,
        ]);
        $di->set('db', $db);
 
        // View
        $this->initView($di);
 
        // URL
        $url = new \Phalcon\Mvc\Url();
        $url->setBasePath($config->base_path);
        $url->setBaseUri($config->base_path);
        $di->set('url', $url);
 
        // Cache
        $this->initCache($di);
 
        // CMS
        $cmsModel = new \Cms\Model\Configuration();
        $registry->cms = $cmsModel->getConfig(); // Отправляем в Registry
 
        // Application
        $application = new \Phalcon\Mvc\Application();
        $application->registerModules($config->modules->toArray());
 
        // Events Manager, Dispatcher
        $this->initEventManager($di);
 
        // Session
        $session = new \Phalcon\Session\Adapter\Files();
        $session->start();
        $di->set('session', $session);
 
        $acl = new \Application\Acl\DefaultAcl();
        $di->set('acl', $acl);
 
        // JS Assets
        $this->initAssetsManager($di);
 
        // Flash helper
        $flash = new \Phalcon\Flash\Session([
            'error'   => 'ui red inverted segment',
            'success' => 'ui green inverted segment',
            'notice'  => 'ui blue inverted segment',
            'warning' => 'ui orange inverted segment',
        ]);
        $di->set('flash', $flash);
 
        $di->set('helper', new \Application\Mvc\Helper());
 
        // Routing
        $this->initRouting($application, $di);
 
        $application->setDI($di);
 
        // Main dispatching process
        $this->dispatch($di);
 
    }
 
    private function initRouting($application, $di)
    {
        $router = new \Application\Mvc\Router\DefaultRouter();
        $router->setDi($di);
        foreach ($application->getModules() as $module) {
            $routesClassName = str_replace('Module', 'Routes', $module['className']);
            if (class_exists($routesClassName)) {
                $routesClass = new $routesClassName();
                $router = $routesClass->init($router);
            }
            $initClassName = str_replace('Module', 'Init', $module['className']);
            if (class_exists($initClassName)) {
                new $initClassName();
            }
        }
        $di->set('router', $router);
    }
 
    private function initAssetsManager($di)
    {
        $config = $di->get('config');
        $assetsManager = new \Application\Assets\Manager();
        $js_collection = $assetsManager->collection('js')
            ->setLocal(true)
            ->addFilter(new \Phalcon\Assets\Filters\Jsmin())
            ->setTargetPath(ROOT . '/assets/admin/js/js.js')
            ->setTargetUri('assets/admin/js/js.js')
            ->join(true);
        if ($config->assets->js) {
            foreach ($config->assets->js as $js) {
                $js_collection->addJs(ROOT . '/' . $js);
            }
        }
 
        // Admin JS Assets
        $assetsManager->collection('modules-admin-js')
            ->setLocal(true)
            ->addFilter(new \Phalcon\Assets\Filters\Jsmin())
            ->setTargetPath(ROOT . '/assets/admin/js/modules-admin.js')
            ->setTargetUri('assets/admin/js/modules-admin.js')
            ->join(true);
 
        // Admin LESS Assets
        $assetsManager->collection('modules-admin-less')
            ->setLocal(true)
            ->addFilter(new \Application\Assets\Filter\Less())
            ->setTargetPath(ROOT . '/assets/admin/js/modules-admin.less')
            ->setTargetUri('assets/admin/js/modules-admin.less')
            ->join(true)
            ->addCss(APPLICATION_PATH . '/modules/Admin/assets/admin.less');
 
        $di->set('assets', $assetsManager);
    }
 
    private function initEventManager($di)
    {
        $eventsManager = new \Phalcon\Events\Manager();
        $dispatcher = new \Phalcon\Mvc\Dispatcher();
 
        $eventsManager->attach("dispatch:beforeDispatchLoop", function ($event, $dispatcher) use ($di) {
            new \Eskiz\Plugin\CheckPoint($di->get('request'));
            new \Eskiz\Plugin\Localization($dispatcher);
            new \Eskiz\Plugin\AdminLocalization($di->get('config'));
            new \Eskiz\Plugin\Acl($di->get('acl'), $dispatcher, $di->get('view'));
            new \Eskiz\Plugin\MobileDetect($di->get('session'), $di->get('view'), $di->get('request'));
        });
 
        $eventsManager->attach("dispatch:afterDispatchLoop", function ($event, $dispatcher) use ($di) {
            new \Eskiz\Plugin\Title($di);
        });
 
        // Profiler
        $registry = $di->get('registry');
        if ($registry->cms['PROFILER']) {
            $profiler = new \Phalcon\Db\Profiler();
            $di->set('profiler', $profiler);
 
            $eventsManager->attach('db', function ($event, $db) use ($profiler) {
                if ($event->getType() == 'beforeQuery') {
                    $profiler->startProfile($db->getSQLStatement());
                }
                if ($event->getType() == 'afterQuery') {
                    $profiler->stopProfile();
                }
            });
        }
 
        $db = $di->get('db');
        $db->setEventsManager($eventsManager);
 
        $dispatcher->setEventsManager($eventsManager);
        $di->set('dispatcher', $dispatcher);
    }
 
    private function initView($di)
    {
        $view = new \Phalcon\Mvc\View();
 
        define('MAIN_VIEW_PATH', '../../../views/');
        $view->setMainView(MAIN_VIEW_PATH . 'main');
        $view->setLayoutsDir(MAIN_VIEW_PATH . '/layouts/');
        $view->setLayout('main');
        $view->setPartialsDir(MAIN_VIEW_PATH . '/partials/');
 
        // Volt
        $volt = new \Application\Mvc\View\Engine\Volt($view, $di);
        $volt->setOptions(['compiledPath' => APPLICATION_PATH . '/../data/cache/volt/']);
        $volt->initCompiler();
 
 
        $phtml = new \Phalcon\Mvc\View\Engine\Php($view, $di);
        $viewEngines = [
            ".volt"  => $volt,
            ".phtml" => $phtml,
        ];
 
        $view->registerEngines($viewEngines);
 
        $ajax = $di->get('request')->getQuery('_ajax');
        if ($ajax) {
            $view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_LAYOUT);
        }
 
        $di->set('view', $view);
 
        return $view;
    }
 
    private function initCache($di)
    {
        $config = $di->get('config');
 
        $cacheFrontend = new \Phalcon\Cache\Frontend\Data([
            "lifetime" => 60,
            "prefix"   => HOST_HASH,
        ]);
 
        $cache = null;
        switch ($config->cache) {
            case 'file':
                $cache = new \Phalcon\Cache\Backend\File($cacheFrontend, [
                    "cacheDir" => APPLICATION_PATH . "/../data/cache/backend/"
                ]);
                break;
            case 'memcache':
                $cache = new \Phalcon\Cache\Backend\Memcache(
                    $cacheFrontend, [
                    "host" => $config->memcache->host,
                    "port" => $config->memcache->port,
                ]);
                break;
            case 'memcached':
                $cache = new \Phalcon\Cache\Backend\Libmemcached(
                    $cacheFrontend, [
                    "host" => $config->memcached->host,
                    "port" => $config->memcached->port,
                ]);
                break;
        }
        $di->set('cache', $cache, true);
        $di->set('modelsCache', $cache, true);
 
        \Application\Widget\Proxy::$cache = $cache; // Modules Widget System
 
        $modelsMetadata = new \Phalcon\Mvc\Model\Metadata\Memory();
        $di->set('modelsMetadata', $modelsMetadata);
 
        $di->set('cacheManager', new CacheManager());
    }
 
    private function dispatch($di)
    {
        $router = $di['router'];
        $router->removeExtraSlashes(true);
        $router->handle();
        $view = $di['view'];
        $dispatcher = $di['dispatcher'];
        $response = $di['response'];        
        $dispatcher->setModuleName($router->getModuleName());
        $dispatcher->setControllerName($router->getControllerName());
        $dispatcher->setActionName($router->getActionName());
        $dispatcher->setParams($router->getParams());
        $moduleName = \Application\Utils\ModuleName::camelize($router->getModuleName());
        $params = $router->getParams();
        if($params){
          if(isset($params['slug'])){
            $params = $params['slug'];
            $lang = \Cms\Model\Language::findFirst("iso='{$params}'");        
            if($lang){            
                $dispatcher->setParams(array('lang'=>$lang->getIso(),'slug'=>'index')); 
                $moduleName = \Application\Utils\ModuleName::camelize('index');
            } 
          }  
        }  
 
        $ModuleClassName = $moduleName . '\Module';
        if (class_exists($ModuleClassName)) {
            $module = new $ModuleClassName;
            $module->registerAutoloaders();
            $module->registerServices($di);
        }
 
        $view->start();
 
        $registry = $di['registry'];
        if ($registry->cms['DEBUG_MODE']) {
            $debug = new \Phalcon\Debug();
            $debug->listen();
 
            $dispatcher->dispatch();
        } else {
            try {
                $dispatcher->dispatch();
            } catch (\Phalcon\Exception $e) {
                // Errors catching
                $view->setViewsDir(__DIR__ . '/modules/Index/views/');
                $view->setPartialsDir('');
                $view->e = $e;
                if ($e instanceof \Phalcon\Mvc\Dispatcher\Exception) {
                    $response->setStatusCode(404, 'Not Found');
                    $view->partial('error/error404');
                } else {
                    $response->setStatusCode(503, 'Service Unavailable');
                    $view->partial('error/error503');
                }
                $response->sendHeaders();
                echo $response->getContent();
                return;
            }
        }
 
        $view->render(
            $dispatcher->getControllerName(),
            $dispatcher->getActionName(),
            $dispatcher->getParams()
        );
 
        $view->finish();
        $response = $di['response'];
 
        // AJAX
        $request = $di['request'];
        $_ajax = $request->getQuery('_ajax');
        if ($_ajax) {
            $contents = $view->getContent();
            $return = new \stdClass();
            $return->html = $contents;
            $return->title = $di->get('helper')->title()->get();
            $return->success = true;
            if ($view->bodyClass) {
                $return->bodyClass = $view->bodyClass;
            }
            $headers = $response->getHeaders()->toArray();
            if (isset($headers[404]) || isset($headers[503])) {
                $return->success = false;
            }
            $response->setContentType('application/json', 'UTF-8');
            $response->setContent(json_encode($return));
        } else {
            $response->setContent($view->getContent());
        }
        $response->sendHeaders();
        echo $response->getContent();
    }
}
#13Eskiz\Bootstrap->run()
/home/esk00474/public_html/public/index.php (20)
<?php
 
chdir(dirname(__DIR__));
 
define('ROOT', __DIR__);
define('HOST_HASH', substr(md5($_SERVER['HTTP_HOST']), 0, 12));
 
if (isset($_SERVER['APPLICATION_ENV'])) {
    $applicationEnv = ($_SERVER['APPLICATION_ENV'] ? $_SERVER['APPLICATION_ENV'] : 'production');
} else {
    $applicationEnv = (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production');
}
define('APPLICATION_ENV', $applicationEnv);
 
 
define('APPLICATION_PATH', __DIR__ . '/../app');
 
require_once APPLICATION_PATH . '/Bootstrap.php';
$bootstrap = new Eskiz\Bootstrap();
$bootstrap->run();
KeyValue
_url/partiya-yangiliklari/2038
KeyValue
CONTEXT_DOCUMENT_ROOT/home/esk00474/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT/home/esk00474/public_html
GATEWAY_INTERFACECGI/1.1
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_HOSTwww.xdp.uz
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_HOSTwww.xdp.uz
HTTP_X_FORWARDED_PORT80
HTTP_X_FORWARDED_PROTOhttp
HTTP_X_FORWARDED_SERVERwww.xdp.uz
HTTP_X_REAL_IP::ffff:3.239.40.250
PATH/bin:/usr/bin
QUERY_STRING_url=/partiya-yangiliklari/2038
REDIRECT_QUERY_STRING_url=/partiya-yangiliklari/2038
REDIRECT_REDIRECT_SCRIPT_URIhttp://www.xdp.uz/partiya-yangiliklari/2038
REDIRECT_REDIRECT_SCRIPT_URL/partiya-yangiliklari/2038
REDIRECT_REDIRECT_STATUS200
REDIRECT_REDIRECT_UNIQUE_IDYAUn7Y2lAodTNg32L1@JegAAAEo
REDIRECT_SCRIPT_URIhttp://www.xdp.uz/partiya-yangiliklari/2038
REDIRECT_SCRIPT_URL/partiya-yangiliklari/2038
REDIRECT_STATUS200
REDIRECT_UNIQUE_IDYAUn7Y2lAodTNg32L1@JegAAAEo
REDIRECT_URL/public/partiya-yangiliklari/2038
REMOTE_ADDR3.239.40.250
REMOTE_PORT37284
REQUEST_METHODGET
REQUEST_SCHEMEhttp
REQUEST_URI/partiya-yangiliklari/2038
SCRIPT_FILENAME/home/esk00474/public_html/public/index.php
SCRIPT_NAME/public/index.php
SCRIPT_URIhttp://www.xdp.uz/partiya-yangiliklari/2038
SCRIPT_URL/partiya-yangiliklari/2038
SERVER_ADDR5.182.26.11
SERVER_ADMINwebmaster@xdp.uz
SERVER_NAMEwww.xdp.uz
SERVER_PORT80
SERVER_PROTOCOLHTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWAREApache
TZAsia/Tashkent
UNIQUE_IDYAUn7Y2lAodTNg32L1@JegAAAEo
PHP_SELF/public/index.php
REQUEST_TIME_FLOAT1610950637.952
REQUEST_TIME1610950637
#Path
0/home/esk00474/public_html/public/index.php
1/home/esk00474/public_html/app/Bootstrap.php
2/home/esk00474/public_html/app/modules/Cms/Config.php
3/home/esk00474/public_html/app/config/environment/production.php
4/home/esk00474/public_html/app/config/global.php
5/home/esk00474/public_html/app/config/modules.php
6/home/esk00474/public_html/app/modules/Application/Loader/Modules.php
7/home/esk00474/public_html/vendor/autoload.php
8/home/esk00474/public_html/vendor/composer/autoload_real.php
9/home/esk00474/public_html/vendor/composer/ClassLoader.php
10/home/esk00474/public_html/vendor/composer/autoload_static.php
11/home/esk00474/public_html/vendor/symfony/polyfill-mbstring/bootstrap.php
12/home/esk00474/public_html/vendor/swiftmailer/swiftmailer/lib/swift_required.php
13/home/esk00474/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift.php
14/home/esk00474/public_html/vendor/vanchelo/phalcon-mailer/src/helpers.php
15/home/esk00474/public_html/app/modules/Application/Mvc/View/Engine/Volt.php
16/home/esk00474/public_html/app/modules/Application/Widget/Proxy.php
17/home/esk00474/public_html/app/modules/Application/Cache/Manager.php
18/home/esk00474/public_html/app/modules/Cms/Model/Configuration.php
19/home/esk00474/public_html/app/modules/Application/Acl/DefaultAcl.php
20/home/esk00474/public_html/app/config/acl.php
21/home/esk00474/public_html/app/modules/Application/Assets/Manager.php
22/home/esk00474/public_html/app/modules/Application/Assets/Filter/Less.php
23/home/esk00474/public_html/app/modules/Application/Mvc/Helper.php
24/home/esk00474/public_html/app/modules/Menu/Helper/Menu.php
25/home/esk00474/public_html/app/modules/Application/Mvc/Router/DefaultRouter.php
26/home/esk00474/public_html/app/modules/Index/Routes.php
27/home/esk00474/public_html/app/modules/Application/Mvc/Helper/CmsCache.php
28/home/esk00474/public_html/app/modules/Admin/Routes.php
29/home/esk00474/public_html/app/modules/Page/Routes.php
30/home/esk00474/public_html/app/modules/Publication/Routes.php
31/home/esk00474/public_html/app/modules/Publication/Model/Type.php
32/home/esk00474/public_html/app/modules/Application/Mvc/Model/Model.php
33/home/esk00474/public_html/app/modules/Menu/Init.php
34/home/esk00474/public_html/app/modules/Menu/Helper/Helper.php
35/home/esk00474/public_html/app/modules/Seo/Routes.php
36/home/esk00474/public_html/app/modules/Api/Routes.php
37/home/esk00474/public_html/app/modules/Employee/Routes.php
38/home/esk00474/public_html/app/modules/Webform/Routes.php
39/home/esk00474/public_html/app/modules/Portfolio/Routes.php
40/home/esk00474/public_html/app/modules/Search/Routes.php
41/home/esk00474/public_html/app/modules/Products/Routes.php
42/home/esk00474/public_html/app/modules/Products/Model/Category.php
43/home/esk00474/public_html/app/modules/Faq/Routes.php
44/home/esk00474/public_html/app/modules/Partner/Routes.php
45/home/esk00474/public_html/app/modules/Region/Routes.php
46/home/esk00474/public_html/app/modules/Documentation/Routes.php
47/home/esk00474/public_html/app/modules/Media/Routes.php
48/home/esk00474/public_html/app/modules/Comments/Routes.php
49/home/esk00474/public_html/app/modules/Block/Routes.php
50/home/esk00474/public_html/app/modules/Inquiry/Routes.php
51/home/esk00474/public_html/app/modules/Veteran/Routes.php
52/home/esk00474/public_html/app/modules/Newsletter/Routes.php
53/home/esk00474/public_html/app/modules/Application/Utils/ModuleName.php
54/home/esk00474/public_html/app/modules/Publication/Module.php
55/home/esk00474/public_html/app/plugins/CheckPoint.php
56/home/esk00474/public_html/app/plugins/Localization.php
57/home/esk00474/public_html/app/modules/Cms/Model/Translate.php
58/home/esk00474/public_html/app/plugins/AdminLocalization.php
59/home/esk00474/public_html/data/translations/admin/ru.php
60/home/esk00474/public_html/app/plugins/Acl.php
61/home/esk00474/public_html/app/plugins/MobileDetect.php
62/home/esk00474/public_html/vendor/mobiledetect/mobiledetectlib/Mobile_Detect.php
63/home/esk00474/public_html/app/modules/Publication/Controller/IndexController.php
64/home/esk00474/public_html/app/modules/Application/Mvc/Controller.php
65/home/esk00474/public_html/app/modules/Publication/Model/Publication.php
66/home/esk00474/public_html/app/modules/Publication/Model/Translate/PublicationTranslate.php
67/home/esk00474/public_html/app/modules/Application/Mvc/Model/Translate.php
Memory
Usage4194304