mirror of
https://github.com/avecms/AVE.cms.git
synced 2025-01-22 07:20:07 +00:00
Fixes
This commit is contained in:
parent
304c1c5cb1
commit
23df692ef7
@ -1131,8 +1131,9 @@
|
||||
if (defined('SQL_PROFILING') && SQL_PROFILING)
|
||||
$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();
|
||||
}
|
||||
}
|
||||
|
||||
if ($Gzip && (defined('GZIP_COMPRESSION') && GZIP_COMPRESSION))
|
||||
@ -1141,6 +1142,16 @@
|
||||
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-Copyright: 2007-' . date('Y') . ' (c) AVE.cms');
|
||||
header ('X-Engine-Site: https://www.ave-cms.ru');
|
||||
|
Loading…
x
Reference in New Issue
Block a user