Current Path : /var/www/axolotl/data/www/voronezh.axolotls.ru/bitrix/modules/main/include/ |
Current File : /var/www/axolotl/data/www/voronezh.axolotls.ru/bitrix/modules/main/include/epilog_admin_after.php |
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2013 Bitrix */ /** * Bitrix vars * @global CUser $USER * @global CMain $APPLICATION * @global CDatabase $DB */ define("START_EXEC_EPILOG_AFTER_1", microtime()); $GLOBALS["BX_STATE"] = "EA"; global $USER, $APPLICATION, $DB; foreach(GetModuleEvents("main", "OnEpilog", true) as $arEvent) ExecuteModuleEventEx($arEvent); $buffer = $APPLICATION->EndBufferContentMan(); //used in debug_info.php $main_exec_time = round((getmicrotime()-START_EXEC_TIME), 4); if(!defined("ADMIN_AJAX_MODE") && ($_REQUEST["mode"] != 'excel')) { $canEditPHP = $USER->CanDoOperation('edit_php'); $bShowTime = ($_SESSION["SESS_SHOW_TIME_EXEC"] == 'Y'); $bShowStat = ($DB->ShowSqlStat && $canEditPHP); $bShowCacheStat = (\Bitrix\Main\Data\Cache::getShowCacheStat() && ($canEditPHP || $_SESSION["SHOW_CACHE_STAT"]=="Y")); if($bShowTime || $bShowStat || $bShowCacheStat) { ob_start(); include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/interface/debug_info.php"); $buffer .= ob_get_clean(); } } //it's possible to have no response on update $response = \Bitrix\Main\Context::getCurrent()->getResponse(); if(!$response) { echo $buffer; $buffer = ""; } CMain::FinalActions($buffer);