Current Path : /var/www/axolotl/data/www/b24.axolotl.ru/public_html/bitrix/modules/webdebug.utilities/ |
Current File : /var/www/axolotl/data/www/b24.axolotl.ru/public_html/bitrix/modules/webdebug.utilities/options.php |
<? namespace WD\Utilities; use \WD\Utilities\Adv, \WD\Utilities\Helper, \WD\Utilities\Options; # Include module $strModuleId = pathinfo(__DIR__, PATHINFO_BASENAME); \Bitrix\Main\Loader::includeModule($strModuleId); Helper::loadMessages(); # Check rights $strRight = $APPLICATION->getGroupRight($strModuleId); if($strRight < 'R'){ return; } # Tabs $arTabs = [ [ 'DIV' => 'general', 'OPTIONS' => [ 'general/general.php', 'general/interface.php', 'general/iblock.php', 'general/http_headers.php', 'general/admin_auth.php', ], ], [ 'DIV' => 'developers', 'OPTIONS' => [ 'developers/general.php', 'developers/fastsql.php', ], ], [ 'DIV' => 'backups', 'OPTIONS' => [ 'backups/general.php', ], ], [ 'DIV' => 'rights', 'RIGHTS' => true, ], ]; # Advertising Adv::showAdv(); # Display all $obOptions = new Options($strModuleId, $arTabs, [ 'TAB_CONTROL_NAME' => 'wdu', 'DISABLED' => $strRight <= 'R', ]); ?>