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/letme.watchman/admin/ |
Upload File : |
<?php // phpcs:ignoreFile use Bitrix\Main\Application; use Letme\Watchman\Issues\Model\IssueTable; use Tightenco\Collect\Support\Collection; require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php"; \Bitrix\Main\Loader::includeModule('letme.watchman'); global $APPLICATION; $APPLICATION->SetTitle(GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_TITLE')); $right = $APPLICATION->GetGroupRight("letme.watchman"); if($right === "D") { $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); } $dumper = (new \Symfony\Component\VarDumper\Dumper\HtmlDumper()); $dumper->setTheme('light'); $context = Application::getInstance()->getContext(); $request = $context->getRequest(); /** @var \Letme\Watchman\Issues\Model\Issue $issue */ $issue = IssueTable::getById($request->get('ID'))->fetchObject(); $report = \Letme\Watchman\Report\Report::fromJSON($issue->getDescription()); require $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"; require __DIR__ . '/issue/request_handler.php'; $aMenu[] = [ "TEXT" => GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_MENU_DELETE'), "LINK" => \Letme\Watchman\Common\Helper::getPage('issue', ['ID' => $issue->getId(), 'action' => 'delete']), "TITLE" => GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_MENU_DELETE'), "ICON" => 'btn_delete' ]; $context = new CAdminContextMenu($aMenu); $aTabs = [ [ "DIV" => "edit1", "TAB" => GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_TAB'), "ICON" => "sale", "TITLE" => GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_TAB') ] ]; $tabControl = new CAdminTabControl("tabControl", $aTabs); $context->Show(); $tabControl->Begin(); $tabControl->BeginNextTab(); ?> <tr> <td class="adm-detail-content-cell-l"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_REQUEST')?>:</td> <td class="adm-detail-content-cell-r"><?=$report->getRequestUri()?></td> </tr> <tr> <td class="adm-detail-content-cell-l"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_METHOD')?>:</td> <td class="adm-detail-content-cell-r"><?=$report->getMethodType()?></td> </tr> <tr> <td class="adm-detail-content-cell-l"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_USER_ID')?>:</td> <td class="adm-detail-content-cell-r"><?=$report->getUserId()?></td> </tr> <tr> <td class="adm-detail-content-cell-l"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_LAST_UPDATE')?>:</td> <td class="adm-detail-content-cell-r"><?=$issue->getLastUpdate()?></td> </tr> <tr> <td class="adm-detail-content-cell-l"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_COUNT')?>:</td> <td class="adm-detail-content-cell-r"><?=$issue->getCounter()?></td> </tr> <tr> <td class="adm-detail-content-cell-l"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_MESSAGE')?>:</td> <td class="adm-detail-content-cell-r"><?=$report->getException()->message?></td> </tr> <tr> <td class="adm-detail-content-cell-l"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_FILE')?>:</td> <td class="adm-detail-content-cell-r"><?=$report->getException()->file?>:<?=$report->getException()->line?></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr class="heading"> <td colspan="2"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_TRICE')?>:</td> </tr> <td colspan="2" style="font-size:100%;"> <pre><?=print_r($report->getException()->traceAsString, true)?></pre> </td> <!--GET--> <tr class="heading"> <td colspan="2"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_GET')?>:</td> </tr> <tr> <td class="adm-detail-content-cell-l"></td> <td class="adm-detail-content-cell-r"> <?=$dumper->dump((new \Symfony\Component\VarDumper\Cloner\VarCloner())->cloneVar($report->getServerSnapshot()->get), true)?> </td> </tr> <!--GET END--> <!--POST--> <tr class="heading"> <td colspan="2"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_POST')?>:</td> </tr> <tr> <td class="adm-detail-content-cell-l"></td> <td class="adm-detail-content-cell-r"> <?=$dumper->dump((new \Symfony\Component\VarDumper\Cloner\VarCloner())->cloneVar($report->getServerSnapshot()->post), true)?> </td> </tr> <!--GET POST--> <tr class="heading"> <td colspan="2"><?=GetMessage('LETME_WATCHMAN_RU_PAGE_ISSUE_SERVER')?>:</td> </tr> <?php foreach (Collection::make($report->getServerSnapshot()->server)->except('HTTP_COOKIE') as $code => $value) :?> <tr> <td class="adm-detail-content-cell-l"><?=$code?>:</td> <td class="adm-detail-content-cell-r"><?=$value?></td> </tr> <?php endforeach;?> <tr class="heading"> <td colspan="2">Cookies:</td> </tr> <?php foreach (parsCook($report->getServerSnapshot()->server['HTTP_COOKIE'] ?: '') as $code => $value) :?> <tr> <td class="adm-detail-content-cell-l"><?=$code?>:</td> <td class="adm-detail-content-cell-r"><?=htmlspecialchars($value)?></td> </tr> <?php endforeach;?> <?php $tabControl->EndTab(); $tabControl->End(); function parsCook(string $cookiesString) { $cookies = []; foreach (explode('; ', $cookiesString) as $cookie) { list($name, $value) = explode('=', $cookie, 2); $value = str_split($value, 80); $cookies[$name] = implode('<br>', $value); ; } return $cookies; } ?> <?php require $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php";