2define(
'BX_PUBLIC_MODE',
true);
4require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/prolog_admin_before.php");
5require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/prolog_admin_js.php");
8if (!(
$USER->CanDoOperation(
'edit_php')))
13require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/fileman/include.php");
80 $filesrc_tmp =
$f->GetContents();
88 if($arSiteTemplate[
"CONDITION"] ==
'')
102 $filesrc_tmp = CFileman::GetTemplateContent($arTemplates[
$i][
"file"], LANGUAGE_ID,
array(
$site_template));
108 $filesrc_tmp = CFileman::GetTemplateContent($arTemplates[0][
"file"], LANGUAGE_ID,
array(
$site_template));
120 $filesrc_for_save = $_POST[
'filesrc'];
127 if($str_err && ($err = $str_err ->GetString()))
136 $arUndoParams =
array(
137 'module' =>
'fileman',
138 'undoType' =>
'edit_file',
139 'undoHandler' =>
'CFileman::UndoEditFile',
140 'arContent' =>
array(
142 'content' =>
$f->GetContents()
150 if (($err = $str_err->GetString()))
168 if(COption::GetOptionString(
"fileman",
"log_page",
"Y")==
"Y")
180<script bxrunfirst=
"true">
182top.BX.reload(
'<?=CUtil::JSEscape($_REQUEST["back_url"])?>',
true);
189 $filesrc_tmp = $filesrc_for_save;
213echo
'<a href="/bitrix/admin/fileman_file_edit.php?path='.urlencode(
$path).
'&full_src=Y&site='.
$site.
'&lang='.LANGUAGE_ID.
'&back_url='.urlencode($_GET[
"back_url"]).(!
$bEdit?
'&new=Y&filename='.urlencode(
$filename).
'&template='.urlencode(
$template):
'').($_REQUEST[
"templateID"]<>
''?
'&templateID='.urlencode(
$_REQUEST[
"templateID"]):
'').
'" title="'.
htmlspecialcharsbx(
$path).
'">'.
GetMessage(
"public_file_edit_edit_cp").
'</a>';
220?><script>BX.WindowManager.Get().setAutosave();</script><?
224<input type=
"hidden" name=
"site" value=
"<?= htmlspecialcharsbx($site) ?>">
225<input type=
"hidden" name=
"path" value=
"<?= htmlspecialcharsbx(urlencode($path)) ?>">
226<input type=
"hidden" name=
"save" value=
"Y">
227<input type=
"hidden" name=
"lang" value=
"<?echo LANGUAGE_ID ?>">
228<input type=
"hidden" name=
"save" value=
"Y">
229<input type=
"hidden" name=
"template" value=
"<?echo htmlspecialcharsbx($template)?>">
230<input type=
"hidden" name=
"back_url" value=
"<?=htmlspecialcharsbx($back_url)?>">
231<input type=
"hidden" name=
"templateID" value=
"<?=htmlspecialcharsbx($_REQUEST["templateID
"])?>">
236<div
id=
"bx_additional_params">
237 <input type=
"hidden" name=
"new" value=
"y">
238 <?echo
GetMessage(
"FILEMAN_FILEEDIT_NAME")?><br>
240 if (isset($filename2))
243 <input type=
"text" name=
"filename" style=
"width:100%" size=
"40" maxlength=
"255" value=
"<?echo htmlspecialcharsbx($filename)?>"><br><br>
251if(COption::GetOptionString(
'fileman',
"use_code_editor",
"Y") ==
"Y" && CModule::IncludeModule(
'fileman'))
253 $forceSyntax =
false;
258 $forceSyntax =
'sql';
262 $forceSyntax =
'css';
268var border =
null, ta =
null, wnd = BX.WindowManager.Get();
270function TAResize(data)
273 var CE = window.BXCodeEditors[
'<?= $ceid?>'];
276 CE.Resize(data.width - 10, data.height - 60);
282 ta = BX(
'bx-filesrc');
284 border = parseInt(BX.style(ta,
'border-left-width')) + parseInt(BX.style(ta,
'border-right-width'));
288 var add = BX(
'bx_additional_params');
291 ta.style.height = (data.height - border - wnd.PARTS.HEAD.offsetHeight - (add ? add.offsetHeight : 0) - 35) +
'px';
293 ta.style.width = (data.width - border - 10) +
'px';
296BX.addCustomEvent(wnd,
'onWindowResizeExt', TAResize);
297TAResize(wnd.GetInnerPos());
300BX.addCustomEvent(window,
'OnCodeEditorReady',
function(){TAResize(wnd.GetInnerPos());});
309require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/epilog_admin_js.php");
if($canUseYandexMarket) $strWarning
static GetTemplateList($site_id)
static Log($SEVERITY, $AUDIT_TYPE_ID, $MODULE_ID, $ITEM_ID, $DESCRIPTION=false, $SITE_ID=false)
static CheckOnAllowedComponents($str)
static __CheckSite($site)
static GetFileExtension($path)
static CheckFileName($str)
static Init($arExt=array(), $bReturn=false)
static ShowUndoMessage($ID)
static Add($params=array())
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
bx_acc_lim_group_list limitGroupList[] multiple<?=$group[ 'ID']?> ID selected margin top
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
</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."%"