summaryrefslogtreecommitdiff
path: root/installer/data/init_var.php
blob: 6f83ac0e1f32f5dc7682033ca1f24bc99a4a990a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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'");
  }
}