summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--installer/data/init_var.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/installer/data/init_var.php b/installer/data/init_var.php
new file mode 100644
index 00000000..6f83ac0e
--- /dev/null
+++ b/installer/data/init_var.php
@@ -0,0 +1,24 @@
+<?php defined("SYSPATH") or die("No direct script access.");
+function create_var_directories() {
+ if (!@mkdir("resizes");) {
+ throw new Exception("Unable to create directory 'resizes'");
+ }
+ if (!@mkdir("g3_installer");) {
+ throw new Exception("Unable to create directory 'g3_installer'");
+ }
+ if (!@mkdir("modules");) {
+ throw new Exception("Unable to create directory 'modules'");
+ }
+ if (!@mkdir("uploads");) {
+ throw new Exception("Unable to create directory 'uploads'");
+ }
+ if (!@mkdir("logs");) {
+ throw new Exception("Unable to create directory 'logs'");
+ }
+ if (!@mkdir("albums");) {
+ throw new Exception("Unable to create directory 'albums'");
+ }
+ if (!@mkdir("thumbs");) {
+ throw new Exception("Unable to create directory 'thumbs'");
+ }
+} \ No newline at end of file