Revision 1637
Added by darkviper over 12 years ago
initialize.php | ||
---|---|---|
19 | 19 |
/* -------------------------------------------------------- */ |
20 | 20 |
// Must include code to stop this file being accessed directly |
21 | 21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); }
|
|
22 |
if(!defined('WB_URL')) { throw new IllegalFileException(); }
|
|
23 | 23 |
/* -------------------------------------------------------- */ |
24 | 24 |
/** |
25 | 25 |
* sanitize $_SERVER['HTTP_REFERER'] |
... | ... | |
50 | 50 |
$_SERVER['HTTP_REFERER'] = $sTmpReferer; |
51 | 51 |
} |
52 | 52 |
|
53 |
if( !defined('ADMIN_URL')) { define('ADMIN_URL', WB_URL.'/admin'); } |
|
54 |
if( !defined('WB_PATH')) { define('WB_PATH', dirname(dirname(__FILE__))); } |
|
55 |
if( !defined('ADMIN_PATH')) { define('ADMIN_PATH', WB_PATH.'/admin'); } |
|
53 | 56 |
|
54 | 57 |
if (file_exists(WB_PATH.'/framework/class.database.php')) { |
55 | 58 |
// sanitize $_SERVER['HTTP_REFERER'] |
Also available in: Unified diff
made handling of config.php a little bit more easy