|
|
@ -1131,8 +1131,9 @@ |
|
|
|
if (defined('SQL_PROFILING') && SQL_PROFILING) |
|
|
|
if (defined('SQL_PROFILING') && SQL_PROFILING) |
|
|
|
$data .= "\r\n" . "<!-- ------ SQL Queries: ".$AVE_DB->DBProfilesGet('count')." for ".$AVE_DB->DBProfilesGet('time')." sec ----- -->"; |
|
|
|
$data .= "\r\n" . "<!-- ------ SQL Queries: ".$AVE_DB->DBProfilesGet('count')." for ".$AVE_DB->DBProfilesGet('time')." sec ----- -->"; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (defined('PROFILING') && PROFILING == 'full') |
|
|
|
else if (defined('PROFILING') && PROFILING == 'full') { |
|
|
|
$data .= Debug::displayInfo(); |
|
|
|
$data .= Debug::displayInfo(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($Gzip && (defined('GZIP_COMPRESSION') && GZIP_COMPRESSION)) |
|
|
|
if ($Gzip && (defined('GZIP_COMPRESSION') && GZIP_COMPRESSION)) |
|
|
@ -1141,6 +1142,16 @@ |
|
|
|
header ('Content-Encoding: gzip'); |
|
|
|
header ('Content-Encoding: gzip'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (UGROUP !== 1 && (defined('PROFILING') && PROFILING == 'full')) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$data .= "\r\n" . "<!-- ------ Time generation: ".Debug::getStatistic('time')." sec ----- -->"; |
|
|
|
|
|
|
|
$data .= "\r\n" . "<!-- ------ Memory usage: ".Debug::getStatistic('memory')." ----- -->"; |
|
|
|
|
|
|
|
$data .= "\r\n" . "<!-- ------ Memory peak usage: ".Debug::getStatistic('peak')." ----- -->"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (defined('SQL_PROFILING') && SQL_PROFILING) |
|
|
|
|
|
|
|
$data .= "\r\n" . "<!-- ------ SQL Queries: ".$AVE_DB->DBProfilesGet('count')." for ".$AVE_DB->DBProfilesGet('time')." sec ----- -->"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
header ('X-Engine: AVE.cms'); |
|
|
|
header ('X-Engine: AVE.cms'); |
|
|
|
header ('X-Engine-Copyright: 2007-' . date('Y') . ' (c) AVE.cms'); |
|
|
|
header ('X-Engine-Copyright: 2007-' . date('Y') . ' (c) AVE.cms'); |
|
|
|
header ('X-Engine-Site: https://www.ave-cms.ru'); |
|
|
|
header ('X-Engine-Site: https://www.ave-cms.ru'); |
|
|
|