summaryrefslogtreecommitdiff
path: root/installer/init_var.php
diff options
context:
space:
mode:
Diffstat (limited to 'installer/init_var.php')
-rw-r--r--installer/init_var.php18
1 files changed, 6 insertions, 12 deletions
diff --git a/installer/init_var.php b/installer/init_var.php
index 42d50c0a..471de7e7 100644
--- a/installer/init_var.php
+++ b/installer/init_var.php
@@ -1,13 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.");
-if (!file_exists(VARPATH)) {
- if (!@mkdir(VARPATH)) {
- throw new Exception("Unable to create directory '" . VARPATH . "'");
- }
- chmod(VARPATH, 0777);
-}
-foreach (array("resizes", "modules", "uploads", "logs", "albums", "thumbs") as $dir) {
- if (!@mkdir("var/$dir")) {
- throw new Exception("Unable to create directory '$dir'");
- }
- chmod("var/$dir", 0777);
-} \ No newline at end of file
+mkdir("var/albums");
+mkdir("var/resizes");
+mkdir("var/thumbs");
+mkdir("var/logs");
+mkdir("var/uploads");
+mkdir("var/modules");