Revision 1639
Added by Luisehahne over 13 years ago
| initialize.php | ||
|---|---|---|
| 50 | 50 |
$_SERVER['HTTP_REFERER'] = $sTmpReferer; |
| 51 | 51 |
} |
| 52 | 52 |
|
| 53 |
$starttime = array_sum(explode(" ",microtime()));
|
|
| 54 |
if(!defined('DEBUG')){ define('DEBUG', false); }// Include config file
|
|
| 53 | 55 |
if( !defined('ADMIN_DIRECTORY')) { define('ADMIN_DIRECTORY', 'admin'); }
|
| 54 | 56 |
if(!preg_match('/xx[a-z0-9_][a-z0-9_\-\.]+/i', 'xx'.ADMIN_DIRECTORY)) {
|
| 55 | 57 |
throw new RuntimeException('Invalid admin-directory: ' . ADMIN_DIRECTORY);
|
Also available in: Unified diff
+ Installer add const DEBUG to config.php
! move const DEBUG and var $starttime from index.php to initialize.php