diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-03 17:56:54 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-03 17:56:54 +1100 |
| commit | a0b0b7971f829d4e8c23638fdd1127573819b2bc (patch) | |
| tree | 51e539e7985b2c441bef88092003183645eb389d /inc | |
| parent | 0944edfd4af94c57ff9d4042de625cf5d235c0c5 (diff) | |
Added a "test installation/configuration" file.
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/config.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/config.php b/inc/config.php index f2d5d309..f0414cda 100644 --- a/inc/config.php +++ b/inc/config.php @@ -69,8 +69,9 @@ 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, '/')) . ')$/'); - 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."); - + if(!defined(IS_INSTALLATION)) { + 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 |
