use Bitrix\Main\Loader,
Bitrix\Main\Localization\Loc,
Bitrix\Main\Config\Option,
CLite as Solution,
Aspro\Lite\PhoneAuth;
define('NOT_CHECK_PERMISSIONS', true);
define('STATISTIC_SKIP_ACTIVITY_CHECK', true);
define('STOP_STATISTICS', true);
define('PUBLIC_AJAX_MODE', true);
$SITE_ID = $_REQUEST['site_id'] ?? 's1';
define('SITE_ID', $SITE_ID);
$SITE_DIR = $_REQUEST['site_dir'] ?? '/';
define('SITE_DIR', $SITE_DIR);
$SITE_TEMPLATE_PATH = preg_replace('/\/js\/'.preg_quote(basename(__FILE__)).'$/i', '', $_SERVER['SCRIPT_NAME']);
define('SITE_TEMPLATE_PATH', $SITE_TEMPLATE_PATH);
require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');
Loader::includeModule(Solution::moduleID);
$arSite = CSite::GetByID($SITE_ID)->Fetch();
$SITE_DIR = preg_replace('/\/+/', '/', '/'.$arSite['DIR'].'/');
$arFrontParametrs = Solution::GetFrontParametrsValues($SITE_ID, $SITE_DIR);
$tmp = $arFrontParametrs['DATE_FORMAT'];
$DATE_MASK = ($tmp == 'DOT' ? 'dd.mm.yyyy': ($tmp == 'HYPHEN' ? 'dd-mm-yyyy': ($tmp == 'SPACE' ? 'dd mm yyyy': ($tmp == 'SLASH' ? 'dd/mm/yyyy': 'dd:mm:yyyy'))));
$VALIDATE_DATE_MASK = ($tmp == 'DOT' ? '^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4}$': ($tmp == 'HYPHEN' ? '^[0-9]{1,2}\-[0-9]{1,2}\-[0-9]{4}$': ($tmp == 'SPACE' ? '^[0-9]{1,2} [0-9]{1,2} [0-9]{4}$': ($tmp == 'SLASH' ? '^[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{4}$': '^[0-9]{1,2}\:[0-9]{1,2}\:[0-9]{4}$'))));
$DATE_PLACEHOLDER = ($tmp == 'DOT' ? GetMessage('DATE_FORMAT_DOT') : ($tmp == 'HYPHEN' ? GetMessage('DATE_FORMAT_HYPHEN') : ($tmp == 'SPACE' ? GetMessage('DATE_FORMAT_SPACE') : ($tmp == 'SLASH' ? GetMessage('DATE_FORMAT_SLASH') : GetMessage('DATE_FORMAT_COLON')))));
$DATETIME_MASK = $DATE_MASK.' h:s';
$DATETIME_PLACEHOLDER = ($tmp == 'DOT' ? GetMessage('DATE_FORMAT_DOT') : ($tmp == 'HYPHEN' ? GetMessage('DATE_FORMAT_HYPHEN') : ($tmp == 'SPACE' ? GetMessage('DATE_FORMAT_SPACE') : ($tmp == 'SLASH' ? GetMessage('DATE_FORMAT_SLASH') : GetMessage('DATE_FORMAT_COLON'))))).' '.GetMessage('TIME_FORMAT_COLON');
$VALIDATE_DATETIME_MASK = ($tmp == 'DOT' ? '^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4} [0-9]{1,2}\:[0-9]{1,2}$': ($tmp == 'HYPHEN' ? '^[0-9]{1,2}\-[0-9]{1,2}\-[0-9]{4} [0-9]{1,2}\:[0-9]{1,2}$': ($tmp == 'SPACE' ? '^[0-9]{1,2} [0-9]{1,2} [0-9]{4} [0-9]{1,2}\:[0-9]{1,2}$': ($tmp == 'SLASH' ? '^[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{4} [0-9]{1,2}\:[0-9]{1,2}$': '^[0-9]{1,2}\:[0-9]{1,2}\:[0-9]{4} [0-9]{1,2}\:[0-9]{1,2}$'))));
// get banner`s index of current preset
$currentBannerIndex = Solution::getCurrentPresetBannerIndex($SITE_ID);
list($bPhoneAuthSupported, $bPhoneAuthShow, $bPhoneAuthRequired, $bPhoneAuthUse) = PhoneAuth::getOptions();
?>
var arAsproOptions = window[solutionName] = ({
SITE_DIR: '
Notice: Undefined variable: SITE_DIR in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 45
',
SITE_ID: '
Notice: Undefined variable: SITE_ID in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 46
',
SITE_TEMPLATE_PATH: '
Notice: Undefined variable: SITE_TEMPLATE_PATH in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 47
',
SITE_ADDRESS: '
Notice: Undefined variable: arSite in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 48
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 48
',
FORM: ({
ASK_FORM_ID: 'ASK',
SERVICES_FORM_ID: 'SERVICES',
FEEDBACK_FORM_ID: 'FEEDBACK',
CALLBACK_FORM_ID: 'CALLBACK',
RESUME_FORM_ID: 'RESUME',
TOORDER_FORM_ID: 'TOORDER'
}),
PAGES : ({
"CATALOG_PAGE_URL" : "
Notice: Undefined variable: arFrontParametrs in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 58
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 58
",
"COMPARE_PAGE_URL" : "
Notice: Undefined variable: arFrontParametrs in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 59
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 59
",
"SEARCH_PAGE_URL" : "
Notice: Undefined variable: arFrontParametrs in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 60
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 60
",
"BASKET_PAGE_URL" : "
Notice: Undefined variable: arFrontParametrs in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 61
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 61
",
"SHARE_BASKET_PAGE_URL" : "
Notice: Undefined variable: arFrontParametrs in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 62
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 62
",
"ORDER_PAGE_URL" : "
Notice: Undefined variable: arFrontParametrs in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 63
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 63
",
"PERSONAL_PAGE_URL" : "
Notice: Undefined variable: arFrontParametrs in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 64
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 64
",
"SUBSCRIBE_PAGE_URL" : "
Notice: Undefined variable: arFrontParametrs in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 65
Notice: Trying to access array offset on value of type null in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 65
",
}),
PRICES : ({
"MIN_PRICE" : "
Fatal error: Uncaught Error: Class 'Option' not found in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php:68
Stack trace:
#0 {main}
thrown in /home/venkisochi/web/venki-sochi.ru/public_html/bitrix/templates/aspro-lite/js/setTheme.php on line 68