summaryrefslogtreecommitdiff
path: root/installer/data/init_var.php
diff options
context:
space:
mode:
Diffstat (limited to 'installer/data/init_var.php')
-rw-r--r--installer/data/init_var.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/installer/data/init_var.php b/installer/data/init_var.php
deleted file mode 100644
index 42d50c0a..00000000
--- a/installer/data/init_var.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?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