14$context = Application::getInstance()->getContext();
19Loc::loadMessages(__FILE__);
23 $APPLICATION->AuthForm(Loc::getMessage(
"ACCESS_DENIED"));
29 "TAB" => Loc::getMessage(
"REST_TAB_SET"),
30 "TITLE" => Loc::getMessage(
"REST_TAB_TITLE_SET"),
34 "TAB" => Loc::getMessage(
"REST_TAB_LOG"),
35 "TITLE" => Loc::getMessage(
"REST_TAB_TITLE_LOG"),
43 'BLOCK_NEW_USER_LF_SITE' =>
'N',
47 'CODE' =>
'enable_mod_zip',
48 'NAME' => Loc::getMessage(
'REST_OPT_ENABLE_MOD_ZIP') .
':',
54 'CODE' =>
'import_max_size',
55 'NAME' => Loc::getMessage(
'REST_OPT_MAX_IMPORT_SIZE') .
':',
65 'CODE' =>
'client_id',
66 'NAME' => Loc::getMessage(
'REST_OPT_LOG_FILTER_CLIENT_ID') .
' (client_id):',
70 'CODE' =>
'password_id',
71 'NAME' => Loc::getMessage(
'REST_OPT_LOG_FILTER_PASSWORD_ID') .
' (password_id):',
76 'NAME' => Loc::getMessage(
'REST_OPT_LOG_FILTER_SCOPE') .
' (scope):',
81 'NAME' => Loc::getMessage(
'REST_OPT_LOG_FILTER_METHOD') .
' (method):',
86 'NAME' => Loc::getMessage(
'REST_OPT_LOG_FILTER_USER_ID') .
' (user_id):',
96 include_once(
'default_option.php');
118 switch (
$option[
'PARAMS'][
'TYPE']):
144 if (array_key_exists(
'ACTIVE',
$_REQUEST))
147 if ($ACTIVE > 0 && $ACTIVE <= 86400)
149 LoggerManager::getInstance()->setEndTimeLogging(time() + $ACTIVE);
150 LoggerManager::getInstance()->setLevel(
'info');
151 LoggerManager::getInstance()->setType(
'db');
155 LoggerManager::getInstance()->deactivate();
169 LoggerManager::getInstance()->setFilterOptions($filters);
174 '?mid=' . urlencode(
$mid) .
175 '&lang=' . urlencode(LANGUAGE_ID) .
176 '&back_url_settings=' . urlencode(
$backUrl) .
182<form method=
"post" name=
"intr_opt_form" action=
"<? echo $APPLICATION->GetCurPage() ?>?mid=<?=urlencode($mid)?>&lang=<? echo LANGUAGE_ID ?>">
188 <?
if (
$option[
'CODE'] ==
'header'):?>
194 <?
if (isset(
$option[
'PARAMS'])):?>
211 $val = \COption::getOptionString(
218 <td valign=
"top" width=
"40%"><?
219 if (
$params[
'TYPE'] ==
'checkbox')
228 <td valign=
"middle" width=
"60%">
229 <?
if (
$params[
'TYPE'] ==
'checkbox'): ?>
232 name=
"<?=\htmlspecialcharsbx($option['CODE'])?>"
233 id=
"<?=\htmlspecialcharsbx($option['CODE'])?>"
235 <?=(
$val ==
'Y') ?
'checked="checked" ' :
'';?>
240 size=
"<?=$params['SIZE']?>"
242 value=
"<?=\htmlspecialcharsbx($val)?>"
243 name=
"<?=\htmlspecialcharsbx($option['CODE'])?>"
251 $ACTIVE = \COption::GetOptionInt(
'rest',
'log_end_time', 0) >= time();
254 <td valign=
"top" width=
"40%">
257 <td valign=
"middle" width=
"60%">
267 <td valign=
"top" width=
"40%">
270 <td valign=
"top" width=
"60%">
272 $interval = max(0, COption::GetOptionInt(
"rest",
"log_end_time") - time());
273 $hours = sprintf(
"%02d", intval($interval / 3600));
274 $interval -=
$hours * 3600;
275 $minutes = sprintf(
"%02d", intval($interval / 60));
276 $interval -= $minutes * 60;
277 $seconds = sprintf(
"%02d", intval($interval));
278 echo
GetMessage(
"REST_OPT_MINUTES",
array(
"#HOURS#" =>
$hours,
"#MINUTES#" => $minutes,
"#SECONDS#" => $seconds));
283 <td valign=
"top" width=
"40%">
284 <label
for=
"ACTIVE_CKBOX"><? echo
GetMessage(
"REST_OPT_SET_IN_ACTIVE") ?></label>:
286 <td valign=
"top" width=
"60%">
287 <input type=
"checkbox" name=
"ACTIVE" value=
"0" id=
"ACTIVE_CKBOX">
292 <td valign=
"top" width=
"40%">
295 <td valign=
"top" width=
"60%">
296 <
select name=
"ACTIVE" id=
"ACTIVE_LIST">
297 <option value=
"0"><? echo
GetMessage(
"REST_OPT_INTERVAL_NO") ?></option>
298 <option value=
"600"><? echo
GetMessage(
"REST_OPT_INTERVAL_600_SEC") ?></option>
299 <option value=
"3600"><? echo
GetMessage(
"REST_OPT_INTERVAL_3600_SEC") ?></option>
300 <option value=
"86400"><? echo
GetMessage(
"REST_OPT_INTERVAL_24_HOURS") ?></option>
304 <td valign=
"top" width=
"40%">
305 <label
for=
"clear_data"><? echo
GetMessage(
"REST_OPT_CLEAR_DATA") ?>:</label>
307 <td valign=
"top" width=
"60%">
308 <input type=
"checkbox" name=
"clear_data" id=
"clear_data" value=
"y">
315 <td valign=
"top" width=
"40%">
316 <? echo
GetMessage(
"REST_OPT_LOG_RECS_COUNT") ?>:
318 <td valign=
"top" width=
"60%">
319 <a href=
"<? echo htmlspecialcharsbx("/bitrix/admin/perfmon_table.php?
lang=
".LANGUAGE_ID."&table_name=b_rest_log&by=ID&order=desc
") ?>"><? echo \Bitrix\Rest\LogTable::getCountAll(); ?></a>
324 <td colspan=
"2"><?=
GetMessage(
"REST_OPT_LOG_FILTERS")?></td>
327 $filters = @unserialize(
328 \
Bitrix\Main\Config\Option::get(
'rest',
'log_filters',
''),
330 'allowed_classes' =>
false
333 if (!is_array($filters))
340 <label
for=
"<? echo htmlspecialcharsbx($option['CODE']) ?>"><? echo
$option[
"NAME"] ?></label>
342 <td valign=
"middle" width=
"60%">
345 size=
"<?=$option['SIZE']?>"
347 value=
"<?=\htmlspecialcharsbx($filters[$option["CODE
"]])?>"
348 name=
"<?=\htmlspecialcharsbx("log_filters[
".$option['CODE']."]
")?>"
349 id=
"<?=\htmlspecialcharsbx($option['CODE'])?>"
356 <input type=
"submit" name=
"Apply" value=
"<?=GetMessage("MAIN_APPLY
")?>" title=
"<?=GetMessage("MAIN_OPT_APPLY_TITLE
")?>">
357 <input type=
"button" title=
"<?echo GetMessage("MAIN_HINT_RESTORE_DEFAULTS
")?>" OnClick=
"RestoreDefaults();" value=
"<?echo GetMessage("MAIN_RESTORE_DEFAULTS
")?>">
363 value=
"<?=Loc::getMessage('MAIN_OPT_CANCEL')?>"
364 title=
"<?=Loc::getMessage('MAIN_OPT_CANCEL_TITLE')?>"
365 onclick=
"window.location='<?=\htmlspecialcharsbx(CUtil::addslashes($backUrl)) ?>'"/>
366 <input type=
"hidden" name=
"back_url_settings" value=
"<?=\htmlspecialcharsbx($backUrl)?>"/>
371 function RestoreDefaults()
373 if(confirm(
'<?echo AddSlashes(GetMessage("MAIN_HINT_RESTORE_DEFAULTS_WARNING"))?>'))
374 window.location =
"<?echo $APPLICATION->GetCurPage()?>?RestoreDefaults=Y&lang=<?=LANGUAGE_ID?>&mid=<?echo urlencode($mid)?>&<?echo bitrix_sessid_get()?>";
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
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($request->getPost('Update') !==null) elseif( $request->getPost( 'Apply') !==null) elseif($request->getPost('RestoreDefaults') !==null) $backUrl
if(CIMConvert::ConvertCount() > 0) $arDefaultValues['default']
while($row=$res->fetch()) $allOptions[]
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
IsModuleInstalled($module_id)
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
GetMessage($name, $aReplace=null)
LocalRedirect($url, $skip_security_check=false, $status="302 Found")
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
<? endif;?> window document title
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']