summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php21
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