Project

General

Profile

« Previous | Next » 

Revision 1694

Added by Dietmar about 12 years ago

+ add var $iPhpDeclaredClasses = sizeof(get_declared_classes() set by PHP in initialize.php

View differences:

initialize.php
3 3
 *
4 4
 * @category        framework
5 5
 * @package         initialize
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.x
......
69 68
	}
70 69
/* -------------------------------------------------------- */
71 70
	$starttime = array_sum(explode(" ",microtime()));
71
	$iPhpDeclaredClasses =  sizeof(get_declared_classes());
72 72
	SetInstallPathConstants();
73 73
	SanitizeHttpReferer(WB_URL); // sanitize $_SERVER['HTTP_REFERER']
74 74
	if(!class_exists('WbAutoloader', false)){ include(dirname(__FILE__).'/WbAutoloader.php'); }
......
94 94
	while($setting = $get_settings->fetchRow()) {
95 95
		$setting_name=strtoupper($setting['name']);
96 96
		$setting_value=$setting['value'];
97
		if ($setting_value=='false')
98
			$setting_value=false;
99
		if ($setting_value=='true')
100
			$setting_value=true;
97
//		if ($setting_value=='') {$setting_value=false;}
98
		if ($setting_value=='false'){$setting_value=false;}
99
		if ($setting_value=='true'){$setting_value=true;}
101 100
		@define($setting_name,$setting_value);
102 101
	}
103 102
	@define('DO_NOT_TRACK', (isset($_SERVER['HTTP_DNT'])));

Also available in: Unified diff