diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-02 22:37:56 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-02 22:37:56 +1100 |
| commit | 284b3843c1cd38302412ae153790bfdb40b71307 (patch) | |
| tree | 0374a7a282d43607851971d8178183457427a3d0 /inc | |
| parent | 44061cd8d822c9678b8868299c6c470c53220813 (diff) | |
Fixed config.php
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/config.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/config.php b/inc/config.php index 466a6ec3..5069b804 100644 --- a/inc/config.php +++ b/inc/config.php @@ -67,8 +67,8 @@ define('URL_MATCH', '/^' . (@$_SERVER['HTTPS']?'https':'http').':\/\/'.$_SERVER['HTTP_HOST'] . '(\/|\/' . preg_quote(FILE_INDEX, '/') . '|\/' . str_replace('%d', '\d+', preg_quote(FILE_PAGE, '/')) . ')$/'); - if(!file_exists(DIR_IMG)) mkdir(DIR_IMG); - if(!file_exists(DIR_THUMB)) mkdir(DIR_THUMB); - if(!file_exists(DIR_RES)) mkdir(DIR_RES); + if(!file_exists(DIR_IMG)) mkdir(DIR_IMG) or error("Couldn't create " . DIR_IMG . ". Install manually."); + if(!file_exists(DIR_THUMB)) mkdir(DIR_THUMB) or error("Couldn't create " . DIR_IMG . ". Install manually."); + if(!file_exists(DIR_RES)) mkdir(DIR_RES) or error("Couldn't create " . DIR_IMG . ". Install manually."); ?>
\ No newline at end of file |
