Revision 316
Added by stefan over 18 years ago
frontend.functions.php | ||
---|---|---|
249 | 249 |
// Function for page footer |
250 | 250 |
if (!function_exists('page_footer')) { |
251 | 251 |
function page_footer($date_format = 'Y') { |
252 |
global $starttime; |
|
253 |
$vars = array('[YEAR]', '[PROCESSTIME]');
|
|
252 |
global $starttime,$startmemory;
|
|
253 |
$vars = array('[YEAR]', '[PROCESS_TIME]', '[MEMORY_USAGE]');
|
|
254 | 254 |
$processtime=array_sum(explode(" ",microtime()))-$starttime; |
255 |
$values = array(date($date_format),$processtime); |
|
255 |
$values = array(date($date_format),$processtime,memory_get_usage()-$startmemory);
|
|
256 | 256 |
echo str_replace($vars, $values, WEBSITE_FOOTER); |
257 | 257 |
} |
258 | 258 |
} |
Also available in: Unified diff
Added support for tag [MEMORY_USAGE] in page footer. Renamed tag [PROCESSTIME] to [PROCESS_TIME]