Exemplo n.º 1
0
		{
			CPullOptions::SetCommandPerHit($_POST['nginx_command_per_hit']);
		}
		if ($_POST['path_to_listener_secure'] != "" && CPullOptions::GetListenSecureUrl() != $_POST['path_to_listener_secure'])
		{
			CPullOptions::SetListenSecureUrl($_POST['path_to_listener_secure']);
			$send = true;
		}
		if ($_POST['path_to_mobile_listener'] != "" && CPullOptions::GetListenUrl("", true) != $_POST['path_to_mobile_listener'])
		{
			CPullOptions::SetListenUrl($_POST['path_to_mobile_listener'], true);
			$send = true;
		}
		if ($_POST['path_to_mobile_listener_secure'] != "" && CPullOptions::GetListenSecureUrl("", true) != $_POST['path_to_mobile_listener_secure'])
		{
			CPullOptions::SetListenSecureUrl($_POST['path_to_mobile_listener_secure'], true);
			$send = true;
		}
		if ($_POST['path_to_websocket'] != "" && CPullOptions::GetWebSocketUrl() != $_POST['path_to_websocket'])
		{
			CPullOptions::SetWebSocketUrl($_POST['path_to_websocket']);
			if (isset($_POST['websocket']))
				$send = true;
		}
		if ($_POST['nginx_version'] != "" && CPullOptions::GetQueueServerVersion() != $_POST['nginx_version'])
		{
			CPullOptions::SetQueueServerVersion($_POST['nginx_version']);
			if (isset($_POST['websocket']))
				$send = true;
		}
		$websocketEnabled = CPullOptions::GetWebSocket();