63 lines
1.9 KiB
PHP
63 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* @var Wt\Core\Admin\Templater $this
|
|
*/
|
|
$moduleId = $this->getAdminPage()->getModuleId();
|
|
$app = app()::getInstance($moduleId);
|
|
$data = [];
|
|
$data['env'] = $app->env();
|
|
|
|
|
|
?>
|
|
<table cellpadding="5" border="1" style="border-collapse: collapse; width: 100%">
|
|
<?php
|
|
foreach ($data as $key => $value) {
|
|
?><tr><td><?= $key ?></td><td><?= $value ?></td></tr><?php
|
|
}
|
|
?></table>
|
|
<br><?php
|
|
|
|
?><table cellpadding="5" border="1" style="border-collapse: collapse; width: 100%">
|
|
<tr>
|
|
<?php
|
|
$initPhpSrc = getLocalPath('php_interface/init.php', BX_PERSONAL_ROOT);
|
|
$src = $app->module()->getSrc();
|
|
$html = "<div style=\"font-family: monospace; font-size: 0.9em; white-space: pre; color: grey;\">if(file_exists(\$_SERVER['DOCUMENT_ROOT'] . '$src/init.php'))
|
|
include_once \$_SERVER['DOCUMENT_ROOT'] . '$src/init.php';</div>";
|
|
?>
|
|
<td>
|
|
<?=$this->getCheckTemplate($app->isIncludeFileToInitPhp())?>
|
|
</td>
|
|
<td>
|
|
Модуль подключен в init.php
|
|
</td>
|
|
<td width="50%">
|
|
<?php
|
|
if($initPhpSrc){
|
|
?><a target="_blank" href="/bitrix/admin/fileman_file_edit.php?path=<?=urlencode($initPhpSrc)?>&full_src=Y">
|
|
<?=$initPhpSrc?>
|
|
</a><?php
|
|
} else {
|
|
?>init.php отсутствует<?php
|
|
}
|
|
?>
|
|
<br>
|
|
<?=$html?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
|
|
<?php
|
|
Bitrix\Main\Loader::includeModule('iblock');
|
|
?>
|
|
<table cellpadding="5" border="1" style="border-collapse: collapse; width: 100%">
|
|
<?php
|
|
$this->renderCustomClassChecker(
|
|
'Bitrix\IBlock\Component\ElementList',
|
|
'Bitrix\IBlock\Component\OriginElementList',
|
|
'Ixrs\Catalog\Interfaces\IBlock\Component\IElementList'
|
|
);
|
|
?>
|
|
</table>
|
|
<br>
|