diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-20 00:54:02 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-20 00:54:02 +0000 |
commit | 681197a265f1dd3873780fdcf0b5f1e8fa0150ab (patch) | |
tree | fe8aafe29cf5f3d6d5a285c330147c9e3f3668c0 /installer/init_var.php | |
parent | d51955c8efa78d7f0a0ca8c138c2eebaf5ecb975 (diff) |
Web based installer. It's still got some rough edges, but you can now
do a complete CLI or web based install.
Diffstat (limited to 'installer/init_var.php')
-rw-r--r-- | installer/init_var.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/installer/init_var.php b/installer/init_var.php index 7c5509f5..94dd5c67 100644 --- a/installer/init_var.php +++ b/installer/init_var.php @@ -1,8 +1,8 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <?php -mkdir("var/albums"); -mkdir("var/resizes"); -mkdir("var/thumbs"); -mkdir("var/logs"); -mkdir("var/uploads"); -mkdir("var/modules"); +!file_exists(VARPATH . "albums") && mkdir(VARPATH . "albums"); +!file_exists(VARPATH . "resizes") && mkdir(VARPATH . "resizes"); +!file_exists(VARPATH . "thumbs") && mkdir(VARPATH . "thumbs"); +!file_exists(VARPATH . "logs") && mkdir(VARPATH . "logs"); +!file_exists(VARPATH . "uploads") && mkdir(VARPATH . "uploads"); +!file_exists(VARPATH . "modules") && mkdir(VARPATH . "modules"); |