Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/components/bitrix/photogallery.detail.list/
Upload File :
Current File : /var/www/homesaver/www/bitrix/components/bitrix/photogallery.detail.list/user_settings.php

<?define("STOP_STATISTICS", true);
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
// **************************************************************************************
if(!function_exists("__UnEscape"))
{
	function __UnEscape(&$item, $key)
	{
		if(is_array($item))
			array_walk($item, '__UnEscape');
		elseif (mb_strpos($item, "%u") !== false)
			$item = $GLOBALS["APPLICATION"]->UnJSEscape($item);
	}
}

array_walk($_REQUEST, '__UnEscape');
if (check_bitrix_sessid() && $GLOBALS["USER"]->IsAuthorized())
{
	$_REQUEST["picture_sight"] = (empty($_REQUEST["picture_sight"]) && !empty($_REQUEST["PICTURES_SIGHT"]) ? $_REQUEST["PICTURES_SIGHT"] : $_REQUEST["picture_sight"]);
	$arTemplateParams = CUserOptions::GetOption('photogallery', 'template');
	$arTemplateParams = (!is_array($arTemplateParams) ? array() : $arTemplateParams);
	if ($_REQUEST["picture_sight"] && check_bitrix_sessid() && $arTemplateParams["sight"] != $_REQUEST["picture_sight"]):
		$arTemplateParams['sight'] = $_REQUEST["picture_sight"]; 
		CUserOptions::SetOption('photogallery', 'template', $arTemplateParams);
	endif;
}
?>