require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/prolog.php");
if (!$USER->CanDoOperation('fileman_view_file_structure') && !$USER->CanDoOperation('edit_other_settings'))
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/include.php");
function GetProperties($componentName, $curTemplate = '')
{
$stid = (isset($_GET['stid'])) ? $_GET['stid'] : '';
$curTemplate = (!$curTemplate || $curTemplate == '.default') ? '' : CUtil::JSEscape($curTemplate);
$arTemplates = CComponentUtil::GetTemplatesList($componentName, $stid);
$arCurVals = isset($_POST['curval']) ? CEditorUtils::UnJSEscapeArray($_POST['curval']) : Array();
$loadHelp = (isset($_GET['loadhelp']) && $_GET['loadhelp']=="Y") ? true : false;
if (is_array($arTemplates))
{
foreach ($arTemplates as $k => $arTemplate)
{
push2arComp2Templates($arTemplate['NAME'], $arTemplate['TEMPLATE'], $arTemplate['TITLE'], $arTemplate['DESCRIPTION']);
$tName = (!$arTemplate['NAME'] || $arTemplate['NAME'] == '.default') ? '' : $arTemplate['NAME'];
if ($tName == $curTemplate)
{
$arTemplateProps = CComponentUtil::GetTemplateProps($componentName, $arTemplate['NAME'], $stid, $arCurVals);
if (is_array($arTemplateProps))
foreach ($arTemplateProps as $k => $arTemplateProp)
push2arComp2TemplateProps($componentName,$k,$arTemplateProp);
}
}
}
$arProps = CComponentUtil::GetComponentProps($componentName, $arCurVals);
if ($loadHelp && is_array($arProps['PARAMETERS']))
fetchPropsHelp($componentName);
$bGroup = (isset($arProps['GROUPS']) && count($arProps['GROUPS']) > 0);
if (is_array($arProps['GROUPS']))
{
foreach ($arProps['GROUPS'] as $k => $arGroup)
{
?>window.arComp2Groups.push({name: '
Fatal error: Uncaught Error: Class "CUtil" not found in D:\ktt\ttepla.com\public_html\bitrix\modules\fileman\admin\fileman_load_comp2_params.php:42
Stack trace:
#0 {main}
thrown in D:\ktt\ttepla.com\public_html\bitrix\modules\fileman\admin\fileman_load_comp2_params.php on line 42