403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/forum.interface/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/forum.interface/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');
		else
		{
			if(mb_strpos($item, "%u") !== false)
				$item = $GLOBALS["APPLICATION"]->UnJSEscape($item);
		}
	}
}

array_walk($_REQUEST, '__UnEscape');
if (($_REQUEST["action"] == "set_filter") && check_bitrix_sessid() && $GLOBALS["USER"]->IsAuthorized())
{
	$res = CUserOptions::GetOption("forum", "Filter", "");
	$res = (CheckSerializedData($res) ? @unserialize($res, ["allowed_classes" => false]) : array());
	if (!is_array($res))
		$res = array();

	if ($_REQUEST["filter_show"] == "show" && !in_array($_REQUEST["filter_name"], $res))
	{
		$res[] = $_REQUEST["filter_name"];
		CUserOptions::SetOption("forum", "Filter", serialize($res));
	}
	elseif ($_REQUEST["filter_show"] == "hide" && in_array($_REQUEST["filter_name"], $res))
	{
		foreach ($res as $key => $val)
		{
			if ($val == $_REQUEST["filter_name"])
				unset($res[$key]);
		}
		CUserOptions::SetOption("forum", "Filter", serialize($res));
	}
}
elseif ($_REQUEST["action"] == "set_filter")
{
	$res = $_SESSION["FORUM"]["SHOW_FILTER"];
	if (!is_array($res))
		$res = array();

	if ($_REQUEST["filter_show"] == "show" && !in_array($_REQUEST["filter_name"], $res))
	{
		$res[] = $_REQUEST["filter_name"];
	}
	elseif ($_REQUEST["filter_show"] == "hide" && in_array($_REQUEST["filter_name"], $res))
	{
		foreach ($res as $key => $val)
		{
			if ($val == $_REQUEST["filter_name"])
				unset($res[$key]);
		}
	}
	
	$_SESSION["FORUM"]["SHOW_FILTER"] = $res;
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit