Exemple #1
0
	}
	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['nginx_command_per_hit'] != "" && CPullOptions::GetCommandPerHit() != $_POST['nginx_command_per_hit'])
		{
			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;