Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/burlakastudio.realcommenter/lib/ |
Upload File : |
<?php /** * ����� "��������� ����������� D7" ��� ������� * �������� ���� �����: www.realcommenter.com * �������� ���� �����������: burlaka.studio * ����� � ����������: ������� ������� (AlexeyGfi) -> alexeygfi@gmail.com */ namespace Burlakastudio\Realcommenter; use Bitrix\Main\Localization\Loc; class OptionsDb { public static function getModuleOptions() { /** * TABS * INFO (label, title) * sections * options * default_values * sections * options * default_values */ /** * �����! ���������� �� ����� ������ ����� (domain_for_security). * ��� ����� ������� (��-�����, �� ����� ������), * �� � ��������� ��������� ��� ������: * �������� � ����� ������� ������ ������ ����� */ /** * � ���������� ����������� ���� ������� � ����� ����: * 1008lab.bitrixlabs.ru:443 */ $server_host = \Bitrix\Main\Application::getInstance()->getContext()->getServer()->get('HTTP_HOST'); $server_host = preg_replace('~\:.*$~is' . BX_UTF_PCRE_MODIFIER, '', $server_host); return [ // 'edit1' => [ // 'INFO' => [ // "TAB" => \Bitrix\Main\Localization\Loc::getMessage( "MAIN_TAB_SET" ), // "TITLE" => \Bitrix\Main\Localization\Loc::getMessage( "MAIN_TAB_TITLE_SET" ), // ], // 'FOREWORD' => Loc::getMessage( "TEST_FOREWORD" ), // 'LIST' => [ // 'max_image_size' => [ // 'DEFAULT' => '', // 'TYPE' => 'number', // 'MIN' => 0, // 'MAX' => 100000 // ], // ] // ], 'itape_admin_tab' => [ 'LIST' => [ 'domain_for_security' => [ 'DEFAULT' => $server_host . ',' ], 'manager_email' => [ 'DEFAULT' => '', ], 'admin_email' => [ 'DEFAULT' => '', ], 'security_inform_email' => [ 'DEFAULT' => '', ], 'garbage_url_keys' => [ 'DEFAULT' => 'SECTION_ID,NEWS_ID,ELEMENT_ID,ID,IBLOCK_ID,id,sec', 'TYPE' => 'text' ], 'user_path_template' => [ 'DEFAULT' => '/personal/profile/' ], 'time_for_edit' => [ 'DEFAULT' => '10' ], 'fade_out_period' => [ 'DEFAULT' => '1h' ], 'ufo_message' => [ 'DEFAULT' => Loc::getMessage('UFO_MESSAGE') ], // !!! Don't remove or move or rename // \Burlakastudio\Realcommenter\URL::pageTitleCheckAndSync // ...look at this array 'page_title_lead_field' => [ 'TYPE' => 'list', 'LIST' => [ 'browserTitle' => [ 'LABEL' => Loc::getMessage('LEAD_BROWSER_TITLE') ], 'h1Title' => [ 'LABEL' => Loc::getMessage('LEAD_H1'), //'DISABLED' => true ] ], 'DEFAULT' => 'browserTitle' ], 'keep_actual' => [ 'TYPE' => 'checkbox', 'DEFAULT' => false ], ] ], 'itape_decoration_tab' => [ 'LIST' => [ 'resize_avatar_width' => [ 'DEFAULT' => 22, ], 'resize_avatar_height' => [ 'DEFAULT' => 22, ], 'resize_small_width' => [ 'DEFAULT' => 125, ], 'resize_small_height' => [ 'DEFAULT' => 125, ], 'resize_gallery_width' => [ 'DEFAULT' => 640, ], 'resize_gallery_height' => [ 'DEFAULT' => 480, ], 'custom_gallery_image_data_attribute' => [ 'DEFAULT' => 'data-image-id', ], 'show_clear_zero_in_complex_voting' => [ 'TYPE' => 'checkbox', 'DEFAULT' => false ], 'custom_css_code' => [ 'TYPE' => 'text' ], 'custom_css_active' => [ 'TYPE' => 'checkbox', 'DEFAULT' => false ], ] ], 'itape_editor_tab' => [ 'LIST' => [ 'use_visual_editor' => [ 'TYPE' => 'checkbox', 'DEFAULT' => true ], 'video_frame_width' => [ 'TYPE' => 'number', 'DEFAULT' => 560 ], 'video_frame_height' => [ 'TYPE' => 'number', 'DEFAULT' => 315 ], 'allow_detecting_video' => [ 'TYPE' => 'checkbox', 'DEFAULT' => true ], 'use_link_detector' => [ 'TYPE' => 'checkbox', 'DEFAULT' => true ], 'close_link_by_noindex' => [ 'TYPE' => 'checkbox', 'DEFAULT' => false ], 'close_rel_by_nofollow' => [ 'TYPE' => 'checkbox', 'DEFAULT' => false ], ] ], 'itape_stopfilter_tab' => [ 'FOREWORD' => Loc::getMessage('itape_stopfilter_tab_FOREWORD'), 'LIST' => [ 'stop_words_simple' => [ 'TYPE' => 'text', 'DEFAULT' => '' ], 'stop_words_rexp' => [ 'TYPE' => 'text', 'DEFAULT' => Loc::getMessage('stop_words_simple_example') ], 'tag_allowed' => [ 'TYPE' => 'text', 'DEFAULT' => <<<SWR span em i strong b br ul li blockquote noindex SWR ], 'tag_rejected' => [ 'TYPE' => 'text', 'DEFAULT' => <<<SWR div p script style link object meta iframe form applet body embed frameset html video param SWR ], 'clear_not_allowed_and_go' => [ 'TYPE' => 'checkbox', 'DEFAULT' => true ], ] ], 'itape_recaptcha_tab' => [ 'FOREWORD' => Loc::getMessage('itape_recaptcha_tab_FOREWORD'), 'LIST' => [ 'use_recaptcha' => [ 'TYPE' => 'checkbox', 'DEFAULT' => false ], 'recaptcha_version' => [ 'TYPE' => 'list', 'LIST' => [ 2 => [ 'LABEL' => 'reCaptcha2' ], 3 => [ 'LABEL' => 'reCaptcha3', //'DISABLED' => true ] ], 'DEFAULT' => 2 ], 'recaptcha_sitekey' => [ 'TYPE' => 'string', 'DEFAULT' => '' ], 'recaptcha_secretkey' => [ 'TYPE' => 'string', 'DEFAULT' => '' ], 'recaptcha3_sitekey' => [ 'TYPE' => 'string', 'DEFAULT' => '' ], 'recaptcha3_secretkey' => [ 'TYPE' => 'string', 'DEFAULT' => '' ], ] ], /** * ������� � ��������� ����� * * ����� � ��� * ��������� �������������� �� �������� ���� * ����� ����� ������ ��������� ���� �������������� * ����� ����� ������ �������� ��� (��� - �� ����� �����) */ 'warnings_and_ban' => [ 'INFO' => [ 'TAB' => Loc::getMessage('warnings_and_ban_TAB'), 'TITLE' => Loc::getMessage('warnings_and_ban_TITLE') ], 'FOREWORD' => Loc::getMessage('warnings_and_ban_FOREWORD'), 'LIST' => [ 'use_warnings_and_ban' => [ 'TYPE' => 'checkbox', 'DEFAULT' => false, ], 'allowedWarnings' => [ 'TYPE' => 'number', 'DEFAULT' => 3, ], 'warningDropDaysPeriod' => [ 'TYPE' => 'number', 'DEFAULT' => 3, ], 'banDropDaysPeriod' => [ 'TYPE' => 'number', 'DEFAULT' => 0, ], ] ], 'additional_fields' => [ 'INFO' => [ 'TAB' => Loc::getMessage('additional_fields_TAB'), 'TITLE' => Loc::getMessage('additional_fields_TITLE') ], 'FOREWORD' => Loc::getMessage('additional_fields_tab_FOREWORD'), 'LIST' => [] ], 'filter_and_sorting' => [ 'INFO' => [ 'TAB' => Loc::getMessage('filter_and_sorting_TAB'), 'TITLE' => Loc::getMessage('filter_and_sorting_TITLE') ], 'FOREWORD' => Loc::getMessage('filter_and_sorting_tab_FOREWORD'), 'LIST' => [] ], ]; } }