Revision 320
Added by stefan over 19 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,$startmemory;
|
|
| 253 |
$vars = array('[YEAR]', '[PROCESS_TIME]', '[MEMORY_USAGE]');
|
|
| 252 |
global $starttime; |
|
| 253 |
$vars = array('[YEAR]', '[PROCESS_TIME]');
|
|
| 254 | 254 |
$processtime=array_sum(explode(" ",microtime()))-$starttime;
|
| 255 |
$values = array(date($date_format),$processtime,memory_get_usage()-$startmemory);
|
|
| 255 |
$values = array(date($date_format),$processtime); |
|
| 256 | 256 |
echo str_replace($vars, $values, WEBSITE_FOOTER); |
| 257 | 257 |
} |
| 258 | 258 |
} |
Also available in: Unified diff
Due to compatibility reasons, removed support for MEMORY_USAGE again. Updated CHANGELOG.