3if (!defined(
'B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !==
true)
20include(
$_SERVER[
'DOCUMENT_ROOT'].
BX_ROOT.
'/modules/pull/default_option.php');
26 "TAB" => Loc::getMessage(
"PULL_TAB_SETTINGS"),
27 "ICON" =>
"pull_path",
28 "TITLE" => Loc::getMessage(
"PULL_TAB_TITLE_SETTINGS"),
34 $_POST[
'Update'].$_GET[
'RestoreDefaults'] <>
''
39 if($_GET[
'RestoreDefaults'] <>
'')
42 foreach($arDefValues as
$key=>$value)
44 COption::RemoveOption(
"pull",
$key);
46 COption::RemoveOption(
"pull",
'exclude_sites');
48 elseif($_POST[
'Update'] <>
'')
50 if ($_POST[
'push_server_mode'] ===
'N')
52 if (CPullOptions::GetQueueServerStatus())
54 CPullOptions::SendConfigDie();
55 CPullOptions::SetQueueServerStatus(
'N');
57 CPullOptions::SetQueueServerMode(CPullOptions::SERVER_MODE_PERSONAL);
58 SharedServer\Config::setRegistered(
false);
60 else if ($_POST[
'push_server_mode'] === CPullOptions::SERVER_MODE_SHARED)
62 if(!CPullOptions::IsServerShared())
64 CPullOptions::SendConfigDie();
65 CPullOptions::SetQueueServerMode(\CPullOptions::SERVER_MODE_SHARED);
71 $preferredServer = $_POST[
"cloud_server_hostname"] ??
"";
73 if($registerResult->isSuccess())
75 CPullOptions::SetQueueServerStatus(
"Y");
76 CPullOptions::SetConfigTimestamp();
86 if(CPullOptions::IsServerShared())
88 CPullOptions::SendConfigDie();
89 CPullOptions::SetQueueServerMode(CPullOptions::SERVER_MODE_PERSONAL);
92 CPullOptions::SetQueueServerStatus(
'Y');
93 SharedServer\Config::setRegistered(
false);
94 if (CPullOptions::GetSignatureKey() != $_POST[
'signature_key'] && $_POST[
'nginx_version'] > 2)
96 CPullOptions::SetSignatureKey($_POST[
'signature_key']);
98 if ($_POST[
'path_to_publish'] !=
"" && CPullOptions::GetPublishUrl() != $_POST[
'path_to_publish'])
100 CPullOptions::SetPublishUrl($_POST[
'path_to_publish']);
102 if ($_POST[
'path_to_json_rpc'] !=
"" && CPullOptions::GetJsonRpcUrl() != $_POST[
'path_to_json_rpc'])
104 CPullOptions::SetJsonRpcUrl($_POST[
'path_to_json_rpc']);
106 if ($_POST[
'path_to_modern_listener'] !=
"" && CPullOptions::GetListenUrl(
"") != $_POST[
'path_to_modern_listener'])
108 CPullOptions::SetListenUrl($_POST[
'path_to_modern_listener']);
110 if ($_POST[
'path_to_modern_listener_secure'] !=
"" && CPullOptions::GetListenSecureUrl(
"") != $_POST[
'path_to_modern_listener_secure'])
112 CPullOptions::SetListenSecureUrl($_POST[
'path_to_modern_listener_secure']);
114 if ($_POST[
'path_to_publish_web'] !=
"" && CPullOptions::GetPublishWebUrl() != $_POST[
'path_to_publish_web'])
116 CPullOptions::SetPublishWebUrl($_POST[
'path_to_publish_web']);
118 if ($_POST[
'path_to_publish_web_secure'] !=
"" && CPullOptions::GetPublishWebSecureUrl() != $_POST[
'path_to_publish_web_secure'])
120 CPullOptions::SetPublishWebSecureUrl($_POST[
'path_to_publish_web_secure']);
122 if ($_POST[
'nginx_version'] !=
"" && CPullOptions::GetQueueServerVersion() != $_POST[
'nginx_version'])
124 CPullOptions::SetQueueServerVersion($_POST[
'nginx_version']);
127 if (isset($_POST[
'websocket']) || CPullOptions::GetQueueServerVersion() > 2)
129 CPullOptions::SetWebSocket(
'Y');
133 CPullOptions::SetWebSocket(
'N');
135 if ($_POST[
'path_to_websocket'] !=
"" && CPullOptions::GetWebSocketUrl() != $_POST[
'path_to_websocket'])
137 CPullOptions::SetWebSocketUrl($_POST[
'path_to_websocket']);
139 if ($_POST[
'path_to_websocket_secure'] !=
"" && CPullOptions::GetWebSocketSecureUrl() != $_POST[
'path_to_websocket_secure'])
141 CPullOptions::SetWebSocketSecureUrl($_POST[
'path_to_websocket_secure']);
145 CPullOptions::SetConfigTimestamp();
146 CPullOptions::SendConfigDie();
148 if (isset($_POST[
'push']))
150 if (!CPullOptions::GetPushStatus())
151 CPullOptions::SetPushStatus(
'Y');
155 if (CPullOptions::GetPushStatus())
156 CPullOptions::SetPushStatus(
'N');
159 if ($_POST[
'push_message_per_hit'] !=
"")
161 CPullOptions::SetPushMessagePerHit($_POST[
'push_message_per_hit']);
164 if (isset($_POST[
'guest']))
166 if (!CPullOptions::GetGuestStatus())
167 CPullOptions::SetGuestStatus(
'Y');
171 if (CPullOptions::GetGuestStatus())
172 CPullOptions::SetGuestStatus(
'N');
175 if (isset($_POST[
'exclude_sites']))
178 foreach ($_POST[
'exclude_sites'] as
$site)
186 CPullOptions::SetExcludeSites(
$arSites);
191<form method=
"post" action=
"<?= $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialcharsbx($mid)?>&lang=<?= LANG?>">
199$ar = CPullOptions::GetDependentModule();
204$dbSites = CSite::GetList(
'',
'', Array(
"ACTIVE" =>
"Y"));
216 <td
width=
"40%"><?=Loc::getMessage(
"PULL_OPTIONS_STATUS")?>:</td>
218 <?
if(CPullOptions::ModuleEnable()): ?>
219 <span
style=
"color:green; font-weight: bold"><?=Loc::getMessage(
"PULL_OPTIONS_STATUS_Y")?></span>
221 <span
style=
"color:gray; font-weight: bold"><?=Loc::getMessage(
"PULL_OPTIONS_STATUS_N")?></span>
225<?
if(CPullOptions::ModuleEnable()): ?>
227 <td
width=
"40%"><?=Loc::getMessage(
"PULL_OPTIONS_USE")?>:</td>
232 <td
width=
"40%"></td>
233 <td
width=
"60%"></td>
236 <td
align=
"right" width=
"50%"><?=Loc::getMessage(
"PULL_OPTIONS_PUSH")?>:</td>
237 <td><input
id=
"push_enable" type=
"checkbox" size=
"40" value=
"Y" <?=(CPullOptions::GetPushStatus()?
' checked':
'')?> name=
"push"></td>
240 <td
align=
"right" width=
"50%"><?= Loc::getMessage(
"PULL_BATCH_MAX_COUNT_MESSAGES");?>:</td>
241 <td><input
id=
"push_message_per_hit" type=
"text" size=
"10" value=
"<?=\CPullOptions::GetPushMessagePerHit()?>" name=
"push_message_per_hit" <?=(!CPullOptions::GetPushStatus()?
' disabled':
'')?>></td>
244 <td
align=
"right" width=
"50%" valign=
"top"><?=Loc::getMessage(
"PULL_OPTIONS_GUEST")?>:</td>
245 <td><input type=
"checkbox" size=
"40" value=
"Y" <?=(CPullOptions::GetGuestStatus()?
' checked':
'')?> <?=(
IsModuleInstalled(
'statistic')?
'':
' disabled="true')?> name=
"guest" title=
"<?=htmlspecialcharsEx(Loc::getMessage("PULL_OPTIONS_GUEST_DESC
"))?>"></td>
248 <td
width=
"40%"></td>
249 <td
width=
"60%"></td>
252 <td
width=
"40%"><nobr><?=Loc::getMessage(
"PULL_OPTIONS_USE_PUSH_SERVER")?></nobr>:</td>
254 <
select id=
"push_server_mode" name=
"push_server_mode">
255 <option value=
"N" <?=(!\CPullOptions::IsServerShared() && !\CPullOptions::GetQueueServerStatus() ?
"selected" :
"")?>>
256 <?= Loc::getMessage(
"PULL_OPTIONS_DO_NOT_USE_PUSH_SERVER") ?>
258 <option value=
"<?=\CPullOptions::SERVER_MODE_SHARED?>" <?=(\CPullOptions::IsServerShared() ?
"selected" :
"")?>>
259 <?= Loc::getMessage(
"PULL_OPTIONS_USE_CLOUD_SERVER") ?>
261 <option value=
"<?=\CPullOptions::SERVER_MODE_PERSONAL?>" <?=(!\CPullOptions::IsServerShared() && \CPullOptions::GetQueueServerStatus() ?
"selected" :
"")?>>
262 <?= Loc::getMessage(
"PULL_OPTIONS_USE_LOCAL_SERVER") ?>
267 <tbody
id=
"pull_disabled" style=
"<?= \CPullOptions::IsServerShared() || \CPullOptions::GetQueueServerStatus() ? "display: none
" : ""?>">
269 <td colspan=
"2" align=
"center">
271 <?= Loc::getMessage(
"PULL_OPTIONS_PUSH_SERVER_IS_REQUIRED")?>
275 <tbody
id=
"pull_cloud_settings" style=
"<?= \CPullOptions::IsServerShared() ? "" : "display: none
"?>">
277 <td
align=
"right"><?=Loc::getMessage(
"PULL_OPTIONS_CLOUD_SERVER_REGISTRATION")?>:</td>
280 <span
style=
"color:green; font-weight: bold"><?= Loc::getMessage(
"PULL_OPTIONS_CLOUD_REGISTRATION_ACTIVE")?></span>
285 <span
style=
"color:red; font-weight: bold;"><?= Loc::getMessage(
"PULL_OPTIONS_CLOUD_REGISTRATION_INACTIVE")?></span>
292 <td
align=
"right"><?=Loc::getMessage(
"PULL_OPTIONS_CLOUD_SERVER_ADDRESS")?>:</td>
297 <td
align=
"right"><?=Loc::getMessage(
"PULL_OPTIONS_REGISTER_ON_CLOUD_SERVER")?>:</td>
299 <? $cloudServerResult = SharedServer\Client::getServerList();?>
300 <?
if($cloudServerResult->isSuccess()): ?>
301 <
select name=
"cloud_server_hostname">
303 <?=Loc::getMessage(
"PULL_OPTIONS_CLOUD_SERVER_ADDRESS_AUTO_SELECT")?>
305 <?
foreach ($cloudServerResult->getData()[
'serverList'] as $server): ?>
306 <option value=
"<?= htmlspecialcharsbx($server['url'])?>">
312 <span
style=
"color:red;"><?=Loc::getMessage(
"PULL_OPTIONS_CLOUD_SERVER_ADDRESS_LIST_ERROR", [
"#HOST#" =>
SharedServer\Config::getDefaultServer()])?></span>
320 <input type=
"submit" name=
"Update" value=
"<?= Loc::getMessage('PULL_OPTIONS_CLOUD_SERVER_REGISTER')?>" class=
"adm-btn-save">
326 <td colspan=
"2" align=
"center">
328 <?= Loc::getMessage(
"PULL_OPTIONS_CLOUD_ACTIVE_KEY_REQUIRED")?>
332 <tbody
id=
"pull_local_settings" style=
"<?= \CPullOptions::IsServerShared() || !CPullOptions::GetQueueServerStatus() ? "display: none
" : ""?>">
334 <td
width=
"40%" valign=
"top" style=
"padding-top:9px"><nobr><?=Loc::getMessage(
"PULL_OPTIONS_NGINX_VERSION")?></nobr>:</td>
338 <input type=
"radio" id=
"config_nginx_version_4" value=
"4" name=
"nginx_version" <?=(CPullOptions::GetQueueServerVersion() == 4?
' checked':
'')?>>
339 <?=Loc::getMessage(
"PULL_OPTIONS_NGINX_VERSION_730_2")?>
342 <?php
if (defined(
'PULL_ALLOW_VERSION_5')): ?>
345 <input type=
"radio" id=
"config_nginx_version_5" value=
"5" name=
"nginx_version" <?=(CPullOptions::GetQueueServerVersion() == 5?
' checked':
'')?>>
346 <?=Loc::getMessage(
"PULL_OPTIONS_NGINX_VERSION_760")?>
353 <td colspan=
"2" align=
"center">
355 <?=Loc::getMessage(
'PULL_NOTIFY_DEPRECATED');?>
360 <td colspan=
"2"><b><?=Loc::getMessage(
'PULL_OPTIONS_HEAD_PUB_2')?></b></td>
363 <td><?=Loc::getMessage(
"PULL_OPTIONS_PATH_TO_PUBLISH")?>:</td>
364 <td><input
id=
"config_path_to_publish" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetPublishUrl())?>" name=
"path_to_publish"></td>
367 <td><?=Loc::getMessage(
"PULL_OPTIONS_PATH_TO_JSON_RPC")?>:</td>
368 <td><input
id=
"config_path_to_json_rpc" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetJsonRpcUrl())?>" name=
"path_to_json_rpc"></td>
371 <td><?=Loc::getMessage(
"PULL_OPTIONS_SIGNATURE_KEY")?>:</td>
372 <td><input
id=
"config_signature_key" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetSignatureKey())?>" name=
"signature_key" <?=(CPullOptions::GetQueueServerVersion() > 2?
'':
'disabled="true"')?>></td>
376 <td><div
id=
"config_signature_key_error" style=
"color: darkred; font-weight: bold; <?=(CPullOptions::GetQueueServerStatus() && CPullOptions::GetQueueServerVersion() > 3 && !CPullOptions::GetSignatureKey()? '':'display: none')?>"><b><?=Loc::getMessage(
'PULL_OPTIONS_SIGNATURE_KEY_ERROR')?></b></div></td>
379 <td colspan=
"2"><b><?=Loc::getMessage(
'PULL_OPTIONS_PUBLISH_WEB_HEAD')?></b></td>
382 <td ><?=Loc::getMessage(
"PULL_OPTIONS_PATH_TO_PUBLISH_WEB")?>:</td>
383 <td><input
id=
"config_path_to_publish_web" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetPublishWebUrl())?>" name=
"path_to_publish_web" <?=(CPullOptions::GetQueueServerVersion() > 3?
'':
'disabled="true"')?>></td>
386 <td ><?=Loc::getMessage(
"PULL_OPTIONS_PATH_TO_PUBLISH_WEB_SECURE")?>:</td>
387 <td><input
id=
"config_path_to_publish_web_secure" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetPublishWebSecureUrl())?>" name=
"path_to_publish_web_secure" <?=(CPullOptions::GetQueueServerVersion() > 3?
'':
'disabled="true"')?>></td>
390 <td
width=
"40%"></td>
392 <?=Loc::getMessage(
"PULL_OPTIONS_PUBLISH_WEB_DESC")?>
396 <td colspan=
"2"><b><?=Loc::getMessage(
'PULL_OPTIONS_HEAD_SUB_MODERN')?></b></td>
399 <td ><?=Loc::getMessage(
"PULL_OPTIONS_PATH_TO_LISTENER")?>:</td>
400 <td><input
id=
"config_path_to_modern_listener" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetListenUrl())?>" name=
"path_to_modern_listener"></td>
403 <td ><?=Loc::getMessage(
"PULL_OPTIONS_PATH_TO_LISTENER_SECURE")?>:</td>
404 <td><input
id=
"config_path_to_modern_listener_secure" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetListenSecureUrl())?>" name=
"path_to_modern_listener_secure"></td>
407 <td colspan=
"2"><b><?=Loc::getMessage(
'PULL_OPTIONS_HEAD_SUB_WS')?></b></td>
410 <td
align=
"right" width=
"50%"><?=Loc::getMessage(
"PULL_OPTIONS_WEBSOCKET")?>:</td>
411 <td><input type=
"checkbox" size=
"40" value=
"Y" <?=(CPullOptions::GetWebSocket()?
' checked':
'')?>
id=
"config_websocket" name=
"websocket" <?=(CPullOptions::GetQueueServerVersion() == 2?
'':
'disabled="true"')?>></td>
414 <td ><?=Loc::getMessage(
"PULL_OPTIONS_PATH_TO_LISTENER")?>:</td>
415 <td><input
id=
"config_path_to_websocket" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetWebSocketUrl())?>" name=
"path_to_websocket" <?=(!CPullOptions::GetWebSocketStatus() ?
'disabled="true"':
'')?></td>
418 <td ><?=Loc::getMessage(
"PULL_OPTIONS_PATH_TO_LISTENER_SECURE")?>:</td>
419 <td><input
id=
"config_path_to_websocket_secure" type=
"text" size=
"40" value=
"<?=htmlspecialcharsbx(CPullOptions::GetWebSocketSecureUrl())?>" name=
"path_to_websocket_secure" <?=(!CPullOptions::GetWebSocketStatus() ?
'disabled="true"':
'')?></td>
422 <td
width=
"40%"></td>
424 <?=Loc::getMessage(
"PULL_OPTIONS_WEBSOCKET_DESC")?>
428 <tbody
id=
"pull_disabled_sites">
430 <td colspan=
"2"><b><?=Loc::getMessage(
'PULL_OPTIONS_HEAD_BLOCK')?></b></td>
433 <td><?=Loc::getMessage(
"PULL_OPTIONS_SITES")?>:</td>
435 <
select name=
"exclude_sites[]" multiple
size=
"4">
436 <option value=
""></option>
448BX.bind(BX(
'push_enable'),
'change',
function(){
449 BX(
'push_message_per_hit').disabled = !this.checked;
452BX.bind(BX(
'push_server_mode'),
'bxchange',
function() {
453 var mode = this.value;
454 var disabledServerSection = BX(
"pull_disabled");
455 var sharedServerSettings = BX(
"pull_cloud_settings");
456 var localServerSettings = BX(
"pull_local_settings");
457 var disabledSites = BX(
"pull_disabled_sites");
460 disabledServerSection.style.removeProperty(
"display");
461 sharedServerSettings.style.display =
"none";
462 localServerSettings.style.display =
"none";
465 disabledSites.style.display =
"none";
468 else if (mode ==
"<?=CPullOptions::SERVER_MODE_PERSONAL?>")
470 disabledServerSection.style.display =
"none";
471 sharedServerSettings.style.display =
"none";
472 localServerSettings.style.removeProperty(
"display");
475 disabledSites.style.removeProperty(
"display");
480 disabledServerSection.style.display =
"none";
481 sharedServerSettings.style.removeProperty(
"display");
482 localServerSettings.style.display =
"none";
485 disabledSites.style.removeProperty(
"display");
490BX.bind(BX(
'config_nginx'),
'change',
function(){
493 if (confirm(
"<?=GetMessageJS("PULL_OPTIONS_NGINX_CONFIRM
")?>"))
495 BX(
'config_nginx_version_1').disabled =
false;
496 BX(
'config_nginx_version_2').disabled =
false;
497 BX(
'config_nginx_version_3').disabled =
false;
498 BX(
'config_nginx_version_4').disabled =
false;
499 BX(
'config_path_to_publish').disabled =
false;
500 BX(
'config_path_to_json_rpc').disabled =
false;
501 BX(
'config_path_to_modern_listener').disabled =
false;
502 BX(
'config_path_to_modern_listener_secure').disabled =
false;
503 BX(
'config_signature_key').disabled =
false;
505 if (BX(
'config_nginx_version_2').checked || BX(
'config_nginx_version_3').checked || BX(
'config_nginx_version_4').checked)
507 BX(
'config_websocket').disabled =
false;
508 BX(
'config_signature_key').disabled = BX(
'config_nginx_version_2').checked;
510 if (BX(
'config_websocket').checked || BX(
'config_nginx_version_3').checked)
512 BX(
'config_path_to_websocket').disabled =
false;
513 BX(
'config_path_to_websocket_secure').disabled =
false;
515 if (BX(
'config_nginx_version_3').checked || BX(
'config_nginx_version_4').checked)
517 BX(
'config_websocket').disabled =
true;
519 if (BX(
'config_nginx_version_4').checked)
521 BX(
'config_path_to_publish_web').disabled =
false;
522 BX(
'config_path_to_publish_web_secure').disabled =
false;
523 BX.style(BX(
'config_signature_key_error'),
'display', BX(
'config_signature_key').value.toString().length>0?
'none':
'block');
527 BX(
'config_path_to_publish_web').disabled =
true;
528 BX(
'config_path_to_publish_web_secure').disabled =
true;
529 BX.style(BX(
'config_signature_key_error'),
'display',
'none');
534 BX(
'config_websocket').disabled =
true;
535 BX(
'config_signature_key').disabled =
true;
536 BX(
'config_path_to_websocket').disabled =
true;
537 BX(
'config_path_to_websocket_secure').disabled =
true;
538 BX(
'config_path_to_publish_web').disabled =
true;
539 BX(
'config_path_to_publish_web_secure').disabled =
true;
540 BX.style(BX(
'config_signature_key_error'),
'display',
'none');
545 this.checked =
false;
546 BX.style(BX(
'config_signature_key_error'),
'display',
'none');
551 BX(
'config_nginx_version_1').disabled =
true;
552 BX(
'config_nginx_version_2').disabled =
true;
553 BX(
'config_nginx_version_3').disabled =
true;
554 BX(
'config_nginx_version_4').disabled =
true;
555 BX(
'config_signature_key').disabled =
true;
556 BX(
'config_path_to_publish').disabled =
true;
557 BX(
'config_path_to_json_rpc').disabled =
true;
558 BX(
'config_path_to_modern_listener').disabled =
true;
559 BX(
'config_path_to_modern_listener_secure').disabled =
true;
561 BX(
'config_websocket').disabled =
true;
562 BX(
'config_path_to_websocket').disabled =
true;
563 BX(
'config_path_to_websocket_secure').disabled =
true;
564 BX(
'config_path_to_publish_web').disabled =
true;
565 BX(
'config_path_to_publish_web_secure').disabled =
true;
567 BX.style(BX(
'config_signature_key_error'),
'display',
'none');
570BX.bind(BX(
'config_nginx_version_1'),
'change',
function(){
572 BX(
'config_signature_key').disabled =
true;
574 BX(
'config_path_to_publish_web').disabled =
true;
575 BX(
'config_path_to_publish_web_secure').disabled =
true;
577 BX(
'config_websocket').disabled =
true;
578 BX(
'config_websocket').checked =
false;
579 BX(
'config_path_to_websocket').disabled =
true;
580 BX(
'config_path_to_websocket_secure').disabled =
true;
582 BX.style(BX(
'config_signature_key_error'),
'display',
'none');
584BX.bind(BX(
'config_nginx_version_2'),
'change',
function(){
586 BX(
'config_signature_key').disabled =
true;
588 BX(
'config_path_to_publish_web').disabled =
true;
589 BX(
'config_path_to_publish_web_secure').disabled =
true;
591 BX(
'config_websocket').disabled =
false;
592 if (BX(
'config_websocket').checked)
594 BX(
'config_path_to_websocket').disabled =
false;
595 BX(
'config_path_to_websocket_secure').disabled =
false;
598 BX.style(BX(
'config_signature_key_error'),
'display',
'none');
600BX.bind(BX(
'config_nginx_version_3'),
'change',
function(){
602 BX(
'config_signature_key').disabled =
false;
604 BX(
'config_websocket').disabled =
true;
605 BX(
'config_websocket').checked =
true;
606 BX(
'config_path_to_websocket').disabled =
false;
607 BX(
'config_path_to_websocket_secure').disabled =
false;
609 BX(
'config_websocket').disabled =
true;
610 BX(
'config_websocket').checked =
true;
611 BX(
'config_path_to_websocket').disabled =
false;
612 BX(
'config_path_to_websocket_secure').disabled =
false;
613 BX(
'config_path_to_publish_web').disabled =
true;
614 BX(
'config_path_to_publish_web_secure').disabled =
true;
616 BX.style(BX(
'config_signature_key_error'),
'display',
'none');
619BX.bind(BX(
'config_nginx_version_4'),
'change',
function(){
621 BX(
'config_signature_key').disabled =
false;
622 BX(
'config_path_to_json_rpc').disabled =
true;
624 BX(
'config_websocket').disabled =
true;
625 BX(
'config_websocket').checked =
true;
626 BX(
'config_path_to_websocket').disabled =
false;
627 BX(
'config_path_to_websocket_secure').disabled =
false;
629 BX(
'config_path_to_websocket').disabled =
false;
630 BX(
'config_path_to_websocket_secure').disabled =
false;
632 BX(
'config_path_to_publish_web').disabled =
false;
633 BX(
'config_path_to_publish_web_secure').disabled =
false;
635 BX.style(BX(
'config_signature_key_error'),
'display', BX(
'config_signature_key').value.toString().length>0?
'none':
'block');
637BX.bind(BX(
'config_nginx_version_5'),
'change',
function(){
639 BX(
'config_signature_key').disabled =
false;
640 BX(
'config_path_to_json_rpc').disabled =
false;
642 BX(
'config_websocket').disabled =
true;
643 BX(
'config_websocket').checked =
true;
644 BX(
'config_path_to_websocket').disabled =
false;
645 BX(
'config_path_to_websocket_secure').disabled =
false;
647 BX(
'config_path_to_websocket').disabled =
false;
648 BX(
'config_path_to_websocket_secure').disabled =
false;
650 BX(
'config_path_to_publish_web').disabled =
false;
651 BX(
'config_path_to_publish_web_secure').disabled =
false;
653 BX.style(BX(
'config_signature_key_error'),
'display', BX(
'config_signature_key').value.toString().length>0?
'none':
'block');
655BX.bind(BX(
'config_websocket'),
'change',
function(){
658 BX(
'config_path_to_websocket').disabled =
false;
659 BX(
'config_path_to_websocket_secure').disabled =
false;
663 BX(
'config_path_to_websocket').disabled =
true;
664 BX(
'config_path_to_websocket_secure').disabled =
true;
667BX.bind(BX(
'config_signature_key'),
'keyup',
function() {
668 BX.style(BX(
'config_signature_key_error'),
'display', this.value.toString().length>0?
'none':
'block');
670function RestoreDefaults()
672 if(confirm(
'<?= AddSlashes(Loc::getMessage('MAIN_HINT_RESTORE_DEFAULTS_WARNING
'))?>'))
673 window.location =
"<?= $APPLICATION->GetCurPage()?>?RestoreDefaults=Y&lang=<?= LANG?>&mid=<?= urlencode($mid)."&
".bitrix_sessid_get();?>";
676<input type=
"submit" name=
"Update" <?
if (
$MOD_RIGHT<
'W') echo
"disabled" ?> value=
"<?= Loc::getMessage('MAIN_SAVE')?>" class=
"adm-btn-save">
677<input type=
"reset" name=
"reset" value=
"<?= Loc::getMessage('MAIN_RESET')?>">
679<input type=
"button" <?
if (
$MOD_RIGHT<
'W') echo
"disabled" ?>
title=
"<?= Loc::getMessage('MAIN_HINT_RESTORE_DEFAULTS')?>" OnClick=
"RestoreDefaults();" value=
"<?= Loc::getMessage('MAIN_RESTORE_DEFAULTS')?>">
683 <?=Loc::getMessage(
"PULL_OPTIONS_NGINX_DOC")?> <a href=
"<?=(LANGUAGE_ID == "ru
"? "https:
static includeModule($moduleName)
static register($preferredServer="", array $options=[])
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(CIMConvert::ConvertCount() > 0) $arDefaultValues['default']
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
IsModuleInstalled($module_id)
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
global_menu_<?echo $menu["menu_id"]?> adm main menu item icon adm main menu item text text adm main menu hover adm submenu menucontainer menu_id menu_id items_id items_id desktop menu_id block none adm global submenu<?=($subMenuDisplay=="block" ? " adm-global-submenu-active" :"")?> global_submenu_<?echo $menu["menu_id"]?> text MAIN_PR_ADMIN_FAV items adm submenu items wrap adm submenu items stretch wrap BX adminMenu itemsStretchScroll()"> <table class if (!empty( $menu["items"])) elseif ( $menu[ 'menu_id']=='desktop') if ( $menu[ 'menu_id']=='desktop') endforeach
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title
if(file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/pull.php")) $pull_default_option
while($site=$dbSites->Fetch()) $arExcludeSites
if(empty($signedUserToken)) $key
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
adm detail iblock types adm detail iblock list tr_SITE_ID display