diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 19:31:52 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 19:31:52 +1100 |
| commit | 5719bcc2f05cc6ea12ab69d464d55de00121a395 (patch) | |
| tree | 70f1f3f28b48119c80f8f48a31e7aa5dd6e515dd | |
| parent | 60886aa0d3ccdc7770bae184b2f8a370c5be7f9e (diff) | |
chmod directories to 777 by default
| -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 ca687da6..4f9617d5 100644 --- a/inc/config.php +++ b/inc/config.php @@ -131,8 +131,8 @@ chdir(ROOT_FILE); } if(!defined('IS_INSTALLATION')) { - if(!file_exists(DIR_IMG)) @mkdir(DIR_IMG) or error("Couldn't create " . DIR_IMG . ". Install manually.", true); - if(!file_exists(DIR_THUMB)) @mkdir(DIR_THUMB) or error("Couldn't create " . DIR_IMG . ". Install manually.", true); - if(!file_exists(DIR_RES)) @mkdir(DIR_RES) or error("Couldn't create " . DIR_IMG . ". Install manually.", true); + 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 |
