2require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/prolog_admin_before.php");
10 if (!
$USER->CanDoOperation(
'fileman_admin_files') && !
$USER->CanDoOperation(
'fileman_edit_existent_files'))
32 $obSite = CSite::GetByID(
$_REQUEST[
"site"]);
33 if ($arSite = $obSite->Fetch())
59 if (isset($_POST[
"pageTitle"]) && $_POST[
"pageTitle"] <>
'')
63 if (isset($_POST[
"PROPERTY"]) && is_array($_POST[
"PROPERTY"]))
65 foreach ($_POST[
"PROPERTY"] as $arProperty)
67 $arProperty[
"CODE"] = (isset($arProperty[
"CODE"]) ? trim($arProperty[
"CODE"]) :
"");
68 $arProperty[
"VALUE"] = (isset($arProperty[
"VALUE"]) ? trim($arProperty[
"VALUE"]) :
"");
70 if (preg_match(
"/[a-zA-Z_-~]+/i", $arProperty[
"CODE"]))
80 $arUndoParams =
array(
81 'module' =>
'fileman',
82 'undoType' =>
'edit_file',
83 'undoHandler' =>
'CFileman::UndoEditFile',
86 'content' =>
$f->GetContents()
98 if (isset($_GET[
'subdialog']) && $_GET[
'subdialog'] ==
'Y')
99 echo
"<script>structReload('".urlencode(
$_REQUEST[
"path"]).
"');</script>";
107if (CModule::IncludeModule(
"fileman") && is_callable(Array(
"CFileMan",
"GetPropstypes")))
115 $pageTitle = (isset($_POST[
"pageTitle"]) && $_POST[
"pageTitle"] <>
'' ? $_POST[
"pageTitle"] :
"");
117 if (isset($_POST[
"PROPERTY"]) && is_array($_POST[
"PROPERTY"]))
119 foreach ($_POST[
"PROPERTY"] as $arProperty)
121 if (isset($arProperty[
"VALUE"]) && $arProperty[
"VALUE"] <>
'')
141 $tagPropertyCode = COption::GetOptionString(
"search",
"page_tag_property",
"tags");
144 if (
$strWarning !=
"" && isset($_POST[
"TAGS"]) && $_POST[
"TAGS"] <>
'')
184 <p><a href=
"/bitrix/admin/fileman_html_edit.php?lang=<?=urlencode($lang)?>&site=<?=urlencode($site)?>&path=<?=urlencode($path)?>&back_url=<?=urlencode($back_url)?>"><?=
GetMessage(
"PAGE_PROP_EDIT_IN_ADMIN")?></a></p>
192<table
class=
"bx-width100" id=
"bx_page_properties">
195 <td colspan=
"2"><?=
GetMessage(
"PAGE_PROP_FOLDER_NAME")?></td>
199 <td
class=
"bx-popup-label bx-width30"><?=
GetMessage(
"PAGE_PROP_NAME")?>:</td>
200 <td><input type=
"text" style=
"width:90%;" name=
"pageTitle" value=
"<?=htmlspecialcharsEx($pageTitle)?>"></td>
204 <td colspan=
"2"><div
class=
"empty"></div></td>
211 <table cellspacing=
"0">
213 <td><?=
GetMessage(
"PAGE_PROP_WINDOW_TITLE")?></td>
214 <td
id=
"bx_page_prop_name">&
nbsp;</td>
228 <tr
style=
"height:30px;">
229 <td
class=
"bx-popup-label bx-width30"><?=(
242 <input type=
"hidden" name=
"PROPERTY[<?=$propertyIndex?>][CODE]" value=
"<?=htmlspecialcharsEx($propertyCode)?>" />
244 <div
id=
"bx_view_property_<?=$propertyIndex?>" style=
"overflow:hidden;padding:2px 12px 2px 2px; border:1px solid white; width:90%; cursor:text; box-sizing:border-box; -moz-box-sizing:border-box;background-color:transparent; background-position:right; background-repeat:no-repeat;" onclick=
"BXEditProperty(<?=$propertyIndex?>)" onmouseover=
"this.style.borderColor = '#434B50 #ADC0CF #ADC0CF #434B50';" onmouseout=
"this.style.borderColor = 'white'" class=
"edit-field"><?=
htmlspecialcharsEx($inheritValue)?></div>
246 <div
id=
"bx_edit_property_<?=$propertyIndex?>" style=
"display:none;"></div>
250 <input type=
"text" name=
"PROPERTY[<?=$propertyIndex?>][VALUE]" value=
"<?=htmlspecialcharsEx($propertyValue)?>" style=
"width:90%;"><input type=
"hidden" name=
"PROPERTY[<?=$propertyIndex?>][CODE]" value=
"<?=htmlspecialcharsEx($propertyCode)?>" />
264 <input type=
"hidden" name=
"PROPERTY[<?=$propertyIndex?>][CODE]" value=
"<?=htmlspecialcharsEx($propertyCode)?>" />
266 <div
id=
"bx_view_property_<?=$propertyIndex?>" style=
"overflow:hidden;padding:2px 12px 2px 2px; border:1px solid white; width:90%; cursor:text; box-sizing:border-box; -moz-box-sizing:border-box;background-color:transparent; background-position:right; background-repeat:no-repeat;" onclick=
"BXEditProperty(<?=$propertyIndex?>)" onmouseover=
"this.style.borderColor = '#434B50 #ADC0CF #ADC0CF #434B50'" onmouseout=
"this.style.borderColor = 'white'" class=
"edit-field"><?=
htmlspecialcharsEx(
$propertyValue)?></div>
268 <div
id=
"bx_edit_property_<?=$propertyIndex?>" style=
"display:none;"></div>
277 <tr
id=
"bx_user_property_<?=$propertyIndex?>">
278 <td
class=
"bx-popup-label bx-width30"><?=
htmlspecialcharsEx(mb_strtoupper($propertyCode))?><input type=
"hidden" name=
"PROPERTY[<?=$propertyIndex?>][CODE]" value=
"<?=htmlspecialcharsEx(mb_strtoupper($propertyCode))?>" />:</td>
279 <td><input type=
"text" name=
"PROPERTY[<?=$propertyIndex?>][VALUE]" value=
"<?=htmlspecialcharsEx($propertyValue)?>" style=
"width:90%;"></td>
288<?
if (CModule::IncludeModule(
"search") && isset($tagPropertyCode)):?>
291 <td colspan=
"2"><div
class=
"empty"></div></td>
295 <table cellspacing=
"0">
297 <td><?=
GetMessage(
"PAGE_PROP_TAGS_NAME")?></td>
298 <td
id=
"bx_page_tags">&
nbsp;</td>
305 <td
class=
"bx-popup-label bx-width30"><?=
GetMessage(
"PAGE_PROP_TAGS")?>:</td>
311<input type=
"hidden" name=
"save" value=
"Y" />
318window.BXBlurProperty =
function(element, propertyIndex)
320 var viewProperty = document.getElementById(
"bx_view_property_" + propertyIndex);
322 if (element.value ==
"" || element.value == viewProperty.innerHTML)
324 var editProperty = document.getElementById(
"bx_edit_property_" + propertyIndex);
326 viewProperty.style.display =
"block";
327 editProperty.style.display =
"none";
329 while (editProperty.firstChild)
330 editProperty.removeChild(editProperty.firstChild);
334window.BXEditProperty =
function(propertyIndex)
336 if (document.getElementById(
"bx_property_input_" + propertyIndex))
339 var editProperty = document.getElementById(
"bx_edit_property_" + propertyIndex);
340 var viewProperty = document.getElementById(
"bx_view_property_" + propertyIndex);
342 viewProperty.style.display =
"none";
343 editProperty.style.display =
"block";
345 var input = document.createElement(
"INPUT");
348 input.name =
"PROPERTY["+propertyIndex+
"][VALUE]";
349 input.style.width =
"90%";
350 input.style.padding =
"2px";
351 input.id =
"bx_property_input_" + propertyIndex;
353 input.value = viewProperty.innerHTML;
355 editProperty.appendChild(input);
361window.BXFolderEditHint =
function()
363 var td = document.getElementById(
"bx_page_prop_name");
366 oBXHint =
new BXHint(
"<?=GetMessage("PAGE_PROP_DESCIPTION
")?>");
367 td.appendChild(oBXHint.oIcon);
370 var td = document.getElementById(
"bx_page_tags");
373 oBXHint =
new BXHint(
"<?=GetMessage("PAGE_PROP_TAGS_DESCIPTION
")?>");
374 td.appendChild(oBXHint.oIcon);
379 for (var index = 0; index < jsInheritProps.length; index++)
380 oBXHint =
new BXHint(
"<?=GetMessage("PAGE_PROP_INHERIT_TITLE
")?>", document.getElementById(
"bx_view_property_"+ jsInheritProps[index]), {
"width":200});
383window.BXFolderEditHint();
387<?require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/epilog_admin_js.php");?>
if($canUseYandexMarket) $strWarning
static GetPropstypes($site="")
static ShowUndoMessage($ID)
static Add($params=array())
for($fileNumber="";; $fileNumber++) $pageTitle
</td ></tr ></table ></td ></tr ><?endif?><? $propertyIndex=0;foreach( $arGlobalProperties as $propertyCode=> $propertyValue
BXEditProperty(<?=$propertyIndex?>)" onmouseover $propertyIndex
if($_SERVER $arFilemanProperties["REQUEST_METHOD"]=="POST" &&isset($_REQUEST["save"]) && $strWarning=="")
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_PROP_TAGS")?> array( $site)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_PROP_TAGS")?> $tagPropertyValue
$_SERVER["DOCUMENT_ROOT"]
SetPrologProperty($prolog, $property_key, $property_val)
SetPrologTitle($prolog, $title)
foreach(['Bitrix\\Main'=> '/lib', 'Psr\\Container'=> '/vendor/psr/container/src', 'Psr\\Log'=> '/vendor/psr/log/src', 'Psr\\Http\\Message'=> '/vendor/psr/http-message/src', 'Psr\\Http\\Client'=> '/vendor/psr/http-client/src', 'Http\\Promise'=> '/vendor/php-http/promise/src', 'PHPMailer\\PHPMailer'=> '/vendor/phpmailer/phpmailer/src', 'GeoIp2'=> '/vendor/geoip2/geoip2/src', 'MaxMind\\Db'=> '/vendor/maxmind-db/reader/src/MaxMind/Db', 'PhpParser'=> '/vendor/nikic/php-parser/lib/PhpParser', 'Recurr'=> '/vendor/simshaun/recurr/src/Recurr',] as $namespace=> $namespacePath) $documentRoot
if(!defined('SITE_ID')) $lang
check_bitrix_sessid($varname='sessid')
ParseFileContent($filesrc, $params=[])
IsModuleInstalled($module_id)
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
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)