Ejemplo n.º 1
0
			COption::SetOptionString("pull", $key, $value);
		}
	}
	elseif(strlen($_POST['Update'])>0)
	{
		$send = false;
		if ($_POST['path_to_publish'] != "" && CPullOptions::GetPublishUrl() != $_POST['path_to_publish'])
			CPullOptions::SetPublishUrl($_POST['path_to_publish']);
		if ($_POST['path_to_listener'] != "" && CPullOptions::GetListenUrl() != $_POST['path_to_listener'])
		{
			CPullOptions::SetListenUrl($_POST['path_to_listener']);
			$send = true;
		}
		if ($_POST['path_to_websocket'] != "" && CPullOptions::GetWebSocketUrl() != $_POST['path_to_websocket'])
		{
			CPullOptions::SetWebSocketUrl($_POST['path_to_websocket']);
			$send = true;
		}
		if (isset($_POST['websocket']))
		{
			if (!CPullOptions::GetWebSocketStatus())
			{
				CPullOptions::SetWebSocketStatus('Y');
				$send = true;
			}
		}
		else
		{
			if (CPullOptions::GetWebSocketStatus())
			{
				CPullOptions::SetWebSocketStatus('N');