1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Файл file_new.php

См. исходные тексты.

Функции

 BXCreateSection (&$fileContent, &$sectionFileContent, &$absoluteFilePath, &$sectionPath)

Переменные

 $createNewFolder = (isset($_REQUEST["newFolder"]) && $_REQUEST["newFolder"] == "Y")
if($createNewFolder) else
 $popupWindow
 $canEditNewPage = true
if(IsModuleInstalled("fileman")) $io = CBXVirtualIo::GetInstance()
 $path = "/"
 $documentRoot = CSite::GetSiteDocRoot($site)
 $site = SITE_ID
 $back_url = ($_REQUEST["back_url"] ?? "")
 $templateID = false
if(isset( $_REQUEST["templateID"]) &&$_REQUEST["templateID"]<> '') if($templateID===false$edit_groups = explode(",", COption::GetOptionString('fileman', 'default_edit_groups', ''))
 $arGroupList = array()
 $arEditGroups = array()
 $gr = CGroup::GetList("sort", "asc", array("ACTIVE"=>"Y", "ADMIN"=>"N", "ANONYMOUS"=>"N"))
while($group=$gr->Fetch()) $bAdmin = $USER->CanDoFileOperation("fm_edit_permission", Array($site, $path))
 $strWarning = ""
if($_SERVER else ["REQUEST_METHOD"]=="POST" &&isset($_REQUEST["save"]))
for($fileNumber="";; $fileNumber++) $pageTitle = GetMessage("PAGE_NEW_DEFAULT_TITLE").($fileNumber != "" ? " (".$fileNumber.")": "")
 $editAfterSave = true
 $addToMenu = true
 $menuName = ""
 $menuType = false
 $menuItemPosition = -1
 $pageTags = ""
 $arMenu = Array()
 $obPageTemplate = false
if($_SERVER $arFilemanProperties ["REQUEST_METHOD"]=="POST" &&isset($_REQUEST["save"]) && $strWarning=="") = Array()
 $arDirProperties = Array()
if($strWarning !="" &&isset($_POST else ["PROPERTY"]) &&is_array($_POST["PROPERTY"]))
 $arInheritProperties = $APPLICATION->GetDirPropertyList(Array($site, $path))
if(! $createNewFolder &&IsModuleInstalled("search") $bSearchExists ) = (isset($tagPropertyCode) && CModule::IncludeModule("search"))
 $arGlobalProperties = Array()
 $bPropertyExists = (!empty($arGlobalProperties) || !empty($arDirProperties) || !empty($arInheritProperties))
if(CModule::IncludeModule("fileman") &&COption::GetOptionString("fileman", "use_translit", true)) if(IsModuleInstalled("fileman") &&$canEditNewPage)( $editAfterSave ? "checked":"")?> >< label for endifif(!empty( $arMenu))( $addToMenu ? "checked" :"")?> >< label for endif $aUserGroups = $GLOBALS["USER"]->GetUserGroupArray()
 $arr = array_intersect($aUserGroups, $arEditGroups)
 $bInEditGroups = !empty($arr)
margin __pad0__
bx_acc_lim_group_list limitGroupList[] multiple<?=$group[ 'ID']?> ID selected margin top
 mid =fileman&amp
 tabControl_active_tab
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
else $wiz_template_html = ''
</td ></tr ></table ></td ></tr ><?endif?><? $propertyIndex=0;foreach( $arGlobalProperties as $propertyCode=> $propertyValue
bx popup label bx width30
bx popup label bx hidden PROPERTY[<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx( $propertyCode)?> bx_view_property_<?=$propertyIndex?> overflow
padding __pad1__
border __pad2__
width __pad3__
cursor __pad4__
box sizing
background color
background position
background repeat
hidden PROPERTY[<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx( $propertyCode)?> height
padding __pad5__
border __pad6__
width __pad7__
cursor __pad8__
BXEditProperty(<?=$propertyIndex?>)" onmouseover $propertyIndex =$propertyIndex
 endforeach
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array ( $site)
endif $jsInheritPropIds = "];"
if(errorBox) return true
window BXNewPageSave
window BXFileNameSelect
window BXBlurProperty
window BXEditProperty
window BXFolderEditHint
window BXLimitAccess
window BXLimitAccessWho
window bxNewPageWizard = new jsWizard

Функции

◆ BXCreateSection()

BXCreateSection ( & $fileContent,
& $sectionFileContent,
& $absoluteFilePath,
& $sectionPath )

@global CUser $USER @global CMain $APPLICATION

См. определение в файле file_new.php строка 14

Переменные

◆ $addToMenu

$addToMenu = true

См. определение в файле file_new.php строка 207

◆ $arDirProperties

$arDirProperties = Array()

См. определение в файле file_new.php строка 509

◆ $arEditGroups

$arEditGroups = array()

См. определение в файле file_new.php строка 146

◆ $arFilemanProperties

if ( $_SERVER $arFilemanProperties["REQUEST_METHOD"]=="POST" &&isset( $_REQUEST["save"]) &&$strWarning=="") = Array()

См. определение в файле file_new.php строка 504

◆ $arGlobalProperties

$arGlobalProperties = Array()

См. определение в файле file_new.php строка 542

◆ $arGroupList

$arGroupList = array()

См. определение в файле file_new.php строка 145

◆ $arInheritProperties

$arInheritProperties = $APPLICATION->GetDirPropertyList(Array($site, $path))

См. определение в файле file_new.php строка 526

◆ $arMenu

$arMenu = Array()

См. определение в файле file_new.php строка 216

◆ $arr

$arr = array_intersect($aUserGroups, $arEditGroups)

См. определение в файле file_new.php строка 624

◆ $aUserGroups

if (CModule::IncludeModule("fileman") &&COption::GetOptionString("fileman", "use_translit", true))if (IsModuleInstalled("fileman") && $canEditNewPage) ($editAfterSave ? "checked": "")?>> <label for endifif (!empty($arMenu)) ($addToMenu ? "checked" : "")?>> <label for endif $aUserGroups = $GLOBALS["USER"]->GetUserGroupArray()

См. определение в файле file_new.php строка 623

◆ $back_url

$back_url = ($_REQUEST["back_url"] ?? "")

См. определение в файле file_new.php строка 118

◆ $bAdmin

while ( $group=$gr->Fetch()) $bAdmin = $USER->CanDoFileOperation("fm_edit_permission", Array($site, $path))

См. определение в файле file_new.php строка 154

◆ $bInEditGroups

$bInEditGroups = !empty($arr)

См. определение в файле file_new.php строка 625

◆ $bPropertyExists

$bPropertyExists = (!empty($arGlobalProperties) || !empty($arDirProperties) || !empty($arInheritProperties))

См. определение в файле file_new.php строка 557

◆ $bSearchExists

if (! $createNewFolder &&IsModuleInstalled("search") $bSearchExists) = (isset($tagPropertyCode) && CModule::IncludeModule("search"))

См. определение в файле file_new.php строка 539

◆ $canEditNewPage

$canEditNewPage = true

См. определение в файле file_new.php строка 72

◆ $createNewFolder

$createNewFolder = (isset($_REQUEST["newFolder"]) && $_REQUEST["newFolder"] == "Y")

См. определение в файле file_new.php строка 53

◆ $documentRoot

$documentRoot = CSite::GetSiteDocRoot($site)

См. определение в файле file_new.php строка 91

◆ $edit_groups

if(isset($_REQUEST["templateID"]) && $_REQUEST["templateID"]<> '') if ( $templateID===false) $edit_groups = explode(",", COption::GetOptionString('fileman', 'default_edit_groups', ''))

См. определение в файле file_new.php строка 144

◆ $editAfterSave

$editAfterSave = true

См. определение в файле file_new.php строка 205

◆ $gr

$gr = CGroup::GetList("sort", "asc", array("ACTIVE"=>"Y", "ADMIN"=>"N", "ANONYMOUS"=>"N"))

См. определение в файле file_new.php строка 147

◆ $io

См. определение в файле file_new.php строка 84

◆ $jsInheritPropIds

endif $jsInheritPropIds = "];"

См. определение в файле file_new.php строка 811

◆ $menuItemPosition

$menuItemPosition = -1

См. определение в файле file_new.php строка 210

◆ $menuName

$menuName = ""

См. определение в файле file_new.php строка 208

◆ $menuType

$menuType = false

См. определение в файле file_new.php строка 209

◆ $obPageTemplate

$obPageTemplate = false

См. определение в файле file_new.php строка 268

◆ $pageTags

</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> $pageTags = ""

См. определение в файле file_new.php строка 212

◆ $pageTitle

for ( $fileNumber="";;$fileNumber++) $pageTitle = GetMessage("PAGE_NEW_DEFAULT_TITLE").($fileNumber != "" ? " (".$fileNumber.")": "")

См. определение в файле file_new.php строка 204

◆ $path

$path = "/"

См. определение в файле file_new.php строка 87

◆ $popupWindow

$popupWindow
Инициализатор
= new CJSPopup(
GetMessage("PAGE_NEW_WINDOW_TITLE"),
[
"SUFFIX"=> (isset($_GET['subdialog']) && $_GET['subdialog'] === 'Y'? 'subdialog':'')
]
)
Определения jspopup.php:10
GetMessage($name, $aReplace=null)
Определения tools.php:3397

См. определение в файле file_new.php строка 64

◆ $propertyIndex

BXEditProperty (<?=$propertyIndex?>)" onmouseover $propertyIndex =$propertyIndex

См. определение в файле file_new.php строка 774

◆ $propertyValue

</td></tr></table></td></tr><?endif?><? $propertyIndex = 0; foreach ($arGlobalProperties as $propertyCode => $propertyValue

См. определение в файле file_new.php строка 727

◆ $site

$site = SITE_ID

См. определение в файле file_new.php строка 94

◆ $strWarning

$strWarning = ""

См. определение в файле file_new.php строка 156

◆ $templateID

$templateID = false

См. определение в файле file_new.php строка 121

◆ $wiz_template_html

else $wiz_template_html = ''

См. определение в файле file_new.php строка 701

◆ __pad0__

margin __pad0__

См. определение в файле file_new.php строка 648

◆ __pad1__

padding __pad1__

См. определение в файле file_new.php строка 745

◆ __pad2__

border __pad2__

См. определение в файле file_new.php строка 745

◆ __pad3__

width __pad3__

См. определение в файле file_new.php строка 745

◆ __pad4__

cursor __pad4__

См. определение в файле file_new.php строка 745

◆ __pad5__

padding __pad5__

См. определение в файле file_new.php строка 767

◆ __pad6__

border __pad6__

См. определение в файле file_new.php строка 767

◆ __pad7__

width __pad7__

См. определение в файле file_new.php строка 767

◆ __pad8__

cursor __pad8__

См. определение в файле file_new.php строка 767

◆ array

◆ BXBlurProperty

window BXBlurProperty
Инициализатор
= function(element, propertyIndex)
{
var viewProperty = BX("bx_view_property_" + propertyIndex);
if (element.value == "" || element.value == viewProperty.innerHTML)
{
var editProperty = BX("bx_edit_property_" + propertyIndex);
viewProperty.style.display = "block";
editProperty.style.display = "none";
while (editProperty.firstChild)
editProperty.removeChild(editProperty.firstChild);
}
}

См. определение в файле file_new.php строка 1067

◆ BXEditProperty

BXEditProperty
Инициализатор
= function(propertyIndex)
{
if (BX("bx_property_input_" + propertyIndex))
return;
var editProperty = BX("bx_edit_property_" + propertyIndex);
var viewProperty = BX("bx_view_property_" + propertyIndex);
viewProperty.style.display = "none";
editProperty.style.display = "block";
var input = document.createElement("INPUT");
input.type = "text";
input.name = "PROPERTY["+propertyIndex+"][VALUE]";
input.style.width = "90%";
input.style.padding = "2px";
input.id = "bx_property_input_" + propertyIndex;
input.onblur = function () {BXBlurProperty(input,propertyIndex)};
input.value = viewProperty.innerHTML;
editProperty.appendChild(input);
input.focus();
input.select();
}
window BXBlurProperty
Определения file_new.php:1067

См. определение в файле file_new.php строка 1083

◆ BXFileNameSelect

window BXFileNameSelect
Инициализатор
= function()
{
var input = BX("bx_page_title");
if (input)
{
input.focus();
input.select();
}
}

См. определение в файле file_new.php строка 1054

◆ BXFolderEditHint

window BXFolderEditHint
Инициализатор
= function()
{
var td = BX("bx_page_prop_name");
if (td)
{
var oBXHint = new BXHint("<?=GetMessage("PAGE_NEW_DESCRIPTION")?>");
td.appendChild(oBXHint.oIcon);
}
td = BX("bx_page_tags");
if (td)
{
oBXHint = new BXHint("<?=GetMessage("PAGE_NEW_TAGS_DESCIPTION")?>");
td.appendChild(oBXHint.oIcon);
}
<?endif?>
for (var index = 0; index < jsInheritProps.length; index++)
oBXHint = new BXHint("<?=GetMessage("PAGE_NEW_INHERIT_TITLE")?>", BX("bx_view_property_"+ jsInheritProps[index]), {"width":200});
}
endif $jsInheritPropIds
Определения file_new.php:811
$createNewFolder
Определения file_new.php:53
endif
Определения csv_new_setup.php:990

См. определение в файле file_new.php строка 1110

◆ BXLimitAccess

window BXLimitAccess
Инициализатор
= function(bCheck)
{
BX('bx_access_limit_row').style.display = bCheck ? 'block' : 'none';
}

См. определение в файле file_new.php строка 1135

◆ BXLimitAccessWho

window BXLimitAccessWho
Инициализатор
= function(bEditors)
{
BX('bx_acc_lim_group_list_row').style.display = bEditors ? 'none' : 'block';
}

См. определение в файле file_new.php строка 1140

◆ BXNewPageSave

window BXNewPageSave
Инициализатор
= function(wizard)
{
if (BXCheckFileName(null, <?=($createNewFolder ? "true" : "false")?>))
<?=$popupWindow->jsPopup?>.PostParameters();
else
wizard.SetCurrentStep("bx_new_page_common");
}
$popupWindow
Определения access_edit.php:10

См. определение в файле file_new.php строка 1046

◆ bxNewPageWizard

window bxNewPageWizard = new jsWizard

См. определение в файле file_new.php строка 1146

◆ color

background color

См. определение в файле file_new.php строка 745

◆ else [1/3]

if(! $createNewFolder)(!createNewFolder &&fileName !="" &&fileName.substr(0, 1)==".")<?endif?> else if (fileName !="" &&validSymbols.test(fileName)) else
Инициализатор
{
Loc::loadLanguageFile(__FILE__)

См. определение в файле file_new.php строка 59

◆ else [2/3]

if ( $strWarning !="" &&isset( $_POST else["PROPERTY"]) &&is_array( $_POST["PROPERTY"]))
Инициализатор
{
$arPageSlice = ParseFileContent($fileContent ?? '')
$fileContent
Определения file_property.php:47
ParseFileContent($filesrc, $params=[])
Определения tools.php:4780

См. определение в файле file_new.php строка 519

◆ else [3/3]

if ( $_SERVER else["REQUEST_METHOD"]=="POST" &&isset( $_REQUEST["save"]))
Инициализатор
{
$currentFileDir = $documentRoot.rtrim($path, "/")."/"
$path
Определения access_edit.php:21
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
Определения autoload.php:27

См. определение в файле file_new.php строка 191

◆ endforeach

endforeach

См. определение в файле file_new.php строка 774

◆ height

hidden PROPERTY [<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx($propertyCode)?> height

См. определение в файле file_new.php строка 761

◆ mid

mid =fileman&amp

См. определение в файле file_new.php строка 657

◆ overflow

bx popup label bx width30 hidden PROPERTY [<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx($propertyCode)?> bx_view_property_<?=$propertyIndex?> overflow

См. определение в файле file_new.php строка 745

◆ position

background position

См. определение в файле file_new.php строка 745

◆ repeat

background repeat

См. определение в файле file_new.php строка 745

◆ sizing

box sizing

См. определение в файле file_new.php строка 745

◆ tabControl_active_tab

tabControl_active_tab
Инициализатор
=edit3#limitaccess" target="_blank"><?echo GetMessage("PAGE_NEW_EDITORS_DEF")?></a>
</div>
<?endif?>
<?
else: //$bAdmin
?>
<?echo GetMessage("page_new_limit_note")?>
<?endif?>
</div>
</td>
</tr>
<?
endif; //!empty($arEditGroups) || $bAdmin
?>
</table>
<table id="bx_new_page_menu" class="bx-width100" style="display:none
adm detail iblock types adm detail iblock list tr_SITE_ID display
Определения yandex_setup.php:388

См. определение в файле file_new.php строка 657

◆ top

padding top

См. определение в файле file_new.php строка 656

◆ true

if (errorBox) return true

См. определение в файле file_new.php строка 1041

◆ width

INPUT INPUT INPUT INPUT bxedtlbr heading FILEMAN_EDITOR_CONVERT_SETTINGS top FILEMAN_REPLACE_NEW_LINES_WITH_BR top checkbox replace_new_lines Y replace_new_lines top FILEMAN_USE_LCA top checkbox use_lca Y use_lca top FILEMAN_ENTITIES_GROUPS top ar_entities width

См. определение в файле file_new.php строка 677

◆ width30

bx popup label bx width30

См. определение в файле file_new.php строка 730