Project

General

Profile

« Previous | Next » 

Revision 320

Added by stefan about 18 years ago

Due to compatibility reasons, removed support for MEMORY_USAGE again. Updated CHANGELOG.

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.6.3 -------------------------------------
14 14
01-Mar-2006 Stefan Braunewell
15
#	Fixed ticket #68 - Safari problem with displaying all parents.
15 16
#	Fixed ticket #136 - mailing forgotten password in admin login screen leads 
16 17
	to fatal error.
17
+	Added support for tag [MEMORY_USAGE] in page footer.
18 18
!	Renamed tag [PROCESSTIME] to [PROCESS_TIME]
19 19
------------------------------------- 2.6.2 -------------------------------------
20 20
03-Feb-2006 Stefan Braunewell (very big special thanks to John and Alex)
trunk/wb/framework/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
}
trunk/wb/index.php
24 24
*/
25 25

  
26 26
$starttime = array_sum(explode(" ",microtime()));
27
$startmemory = memory_get_usage();
28 27

  
29 28
// Include config file
30 29
require_once(dirname(__FILE__).'/config.php');

Also available in: Unified diff