Exemplo n.º 1
0
 public function __construct()
 {
     $config = \VV\FrontSite::o()->getConfig('articles');
     $this->_iblockId = $config['iblock'];
     $this->_cacheTime = 7 * 24 * 60 * 60;
     $this->_cacheDir = 'cosmo/tags';
 }
Exemplo n.º 2
0
 public function __construct($image = '')
 {
     $this->_originalFilename = $image;
     if (!$this->_originalFilename) {
         $this->_isExist = false;
     }
     if ('development' == \VV\FrontSite::o()->debug->environment && $this->_originalFilename) {
         //  �� ������������� �������� ������� ���� ���� � �������
         $this->_debugDownloadFile($this->_originalFilename);
     }
     $config = \VV\FrontSite::o()->getConfig('images');
     $this->_imageServer = $config['image_server'];
 }
Exemplo n.º 3
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/' . $_SERVER['APPLICATION_ENV'] . '/FrontSite.php';
$route = \VV\FrontSite::o()->router->setUrl($_SERVER['REQUEST_URI'])->dispatch();
if ($route) {
    // ���� ������
    if ($route['ajax']) {
        require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
        header('Content-Type:' . $route['ajax']);
        $APPLICATION->IncludeComponent('im:block', $route['module'], $route['params']);
    } else {
        // ������ ������ layout
        \VV\FrontSite::o()->setLayout($route['layout']);
        require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php";
        $APPLICATION->IncludeComponent('im:block', $route['module'], $route['params']);
        require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php";
    }
} else {
    // �� ������, �������� ��������
    require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
    include $_SERVER['DOCUMENT_ROOT'] . '/bitrix/urlrewrite.php';
}