diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 19:57:16 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 19:57:16 +1100 |
| commit | ec5b31455767f33b2b89604f21978ddb04d0c558 (patch) | |
| tree | db93f57e10f4bfae59cf7d20358600786403dc52 /inc/config.php | |
| parent | 36b9b07156f217eda468b1370162c497b97f07ff (diff) | |
Commented out no-longer-needed code
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index 109e99e9..bb130bc4 100644 --- a/inc/config.php +++ b/inc/config.php @@ -125,14 +125,33 @@ define('ALWAYS_NOKO', false, true); - define('URL_MATCH', '/^' . (@$_SERVER['HTTPS']?'https':'http').':\/\/'.$_SERVER['HTTP_HOST'] . '(' . preg_quote(ROOT, '/') . '|' . preg_quote(ROOT, '/') . '' . preg_quote(FILE_INDEX, '/') . '|' . preg_quote(ROOT, '/') . '' . str_replace('%d', '\d+', preg_quote(FILE_PAGE, '/')) . ')$/', true); + define('URL_MATCH', '/^' . + (@$_SERVER['HTTPS']?'https':'http').':\/\/'.$_SERVER['HTTP_HOST'] . + '(' . + preg_quote(ROOT, '/') . + str_replace('%s', '\w{1,8}', preg_quote(BOARD_PATH, '/')) . + '|' . + preg_quote(ROOT, '/') . + str_replace('%s', '\w{1,8}', preg_quote(BOARD_PATH, '/')) . + preg_quote(FILE_INDEX, '/') . + '|' . + preg_quote(ROOT, '/') . + str_replace('%s', '\w{1,8}', preg_quote(BOARD_PATH, '/')) . + str_replace('%d', '\d+', preg_quote(FILE_PAGE, '/')) . + ')$/', true); + var_dump(URL_MATCH); if(ROOT_FILE) { chdir(ROOT_FILE); } + + /* + Multi-board support removes any use for this. + if(!defined('IS_INSTALLATION')) { if(!file_exists(DIR_IMG)) @mkdir(DIR_IMG, 0777) or error("Couldn't create " . DIR_IMG . ". Install manually.", true); if(!file_exists(DIR_THUMB)) @mkdir(DIR_THUMB, 0777) or error("Couldn't create " . DIR_IMG . ". Install manually.", true); if(!file_exists(DIR_RES)) @mkdir(DIR_RES, 0777) or error("Couldn't create " . DIR_IMG . ". Install manually.", true); } + */ ?>
\ No newline at end of file |
