Browse Source

Fixes

master
M@dD3n 2 years ago
parent
commit
23df692ef7
  1. 13
      functions/func.common.php

13
functions/func.common.php

@ -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…
Cancel
Save