diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 19:29:56 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 19:29:56 +1100 |
| commit | 971a473e09334d48d68eecff4dfadadfb342f662 (patch) | |
| tree | c9e9b291d37b30d479aa860743da4b5054b89173 /inc/config.php | |
| parent | 2c3b5d1dc2be51ac578aa91c6494ad497344db4e (diff) | |
Fixed up a small config bug
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/inc/config.php b/inc/config.php index 29d0d807..b3c2597a 100644 --- a/inc/config.php +++ b/inc/config.php @@ -303,32 +303,4 @@ // Always act as if they had typed "noko" in the email field no mattter what $config['always_noko'] = false; - - $config['url_match'] = '/^' . - (preg_match($config['url_regex'], $config['root']) ? '' : - (@$_SERVER['HTTPS']?'https':'http') . - ':\/\/'.$_SERVER['HTTP_HOST']) . - preg_quote($config['root'], '/') . - '(' . - str_replace('%s', '\w{1,8}', preg_quote($config['board_path'], '/')) . - '|' . - str_replace('%s', '\w{1,8}', preg_quote($config['board_path'], '/')) . - preg_quote($config['file_index'], '/') . - '|' . - str_replace('%s', '\w{1,8}', preg_quote($config['board_path'], '/')) . - str_replace('%d', '\d+', preg_quote($config['file_page'], '/')) . - '|' . - preg_quote($config['file_mod'], '/') . - '\?\/.+' . - ')$/i'; - - if($config['root_file']) { - chdir($config['root_file']); - } - - if($config['verbose_errors']) { - error_reporting(E_ALL); - ini_set('display_errors', 1); - } - ?>
\ No newline at end of file |
