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/ajax/ |
Upload File : |
<?php /** * ����� "��������� ����������� D7" ��� ������� * �������� ���� �����: www.realcommenter.com * �������� ���� �����������: burlaka.studio * ����� � ����������: ������� ������� (AlexeyGfi) -> alexeygfi@gmail.com */ use Bitrix\Main\Localization\Loc; use Burlakastudio\Realcommenter\DEBUGGER; use Burlakastudio\Realcommenter\TOOLS; require_once 'ajax_header_init.php'; if (!$access_granted) { DEBUGGER::error( Loc::getMessage('DOMAIN_ACCESS_DENIED') ); $json_return['ERROR'][] = Loc::getMessage('DOMAIN_ACCESS_DENIED'); } else { require_once 'ajax_second_line_validator.php'; } if ($json_return['ERROR']) { echo TOOLS::json_encode($json_return); die; } /** * ���� ��� == ��� �������� ������� */ Loc::loadLanguageFile(__FILE__); $json_return['request'] = $posts; //����� ������� ��� GET ��� � POST /** @var string $requestType */ $requestType = htmlspecialchars($request->get('request_type')); switch ($requestType) { case 'expand' : require_once '_tree_expand.php'; break; case 'pagenav': require_once '_tree_pagenav.php'; break; case 'voting' : require_once '_tree_voting.php'; break; // admin :: case 'admin_tools' : require_once '_admin_tools.php'; break; case 'HIDE' : require_once '_admin_HIDE.php'; break; case 'FREEZE' : require_once '_admin_FREEZE.php'; break; case 'ACTIVE' : require_once '_admin_ACTIVE.php'; break; case 'APPROVE' : require_once '_admin_APPROVE.php'; break; case 'DELETE' : require_once '_admin_DELETE.php'; break; case 'DELETE_MULTIPLE' : require_once '_admin_DELETE_MULTIPLE.php'; break; case 'UN_BAN' : case 'SEND_TO_BAN' : case 'INCREESE_WARNING' : require_once '_admin_sanction.php'; break; case 'MORE_FROM' : require_once '_admin_more_from.php'; break; case 'REQUEST_INFO' : require_once '_admin_reveal_request_data.php'; break; default: //� ����������� �� ���� ���� - ������ ���� ����� �������� $actionFilename = __DIR__ . '/_tree_' . $requestType . '.php'; if (file_exists($actionFilename)) { require_once $actionFilename; } } require_once 'ajax_footer.php';