if(strlen($_GET['RestoreDefaults'])>0) { $arDefValues = $arDefaultValues['default']; foreach($arDefValues as $key=>$value) { 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; } }
{ 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; } 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']) {