mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 19:39:16 -04:00
12 lines
395 B
PHP
12 lines
395 B
PHP
<?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'");
|
|
}
|
|
} |