mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-21 03:49:21 -04:00
24 lines
784 B
PHP
24 lines
784 B
PHP
<?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'");
|
|
}
|
|
} |