blob: 76a1855a3e91a36887943fb1a4cd3f0b83101a0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<?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($dir)) {
throw new Exception("Unable to create directory '$dir'");
}
}
|