diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-18 01:05:18 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-18 01:05:18 +0000 |
commit | 465735a25ced20b4442c033a081ec308fb1b1ad3 (patch) | |
tree | 1519486c703d053734715f1a776edab1d0ea83ed | |
parent | f47fa55891102201b09ca2deaa6affe583147d64 (diff) |
-rw-r--r-- | installer/data/init_var.php | 24 |
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 |