From 1dbc789375ed20415ea03d1744a76a8ef68a8033 Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Fri, 6 Feb 2015 10:59:54 +0100
Subject: Updated information about installing folders
---
install/index.php | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'install')
diff --git a/install/index.php b/install/index.php
index 5d6b7fa..afa7b9b 100644
--- a/install/index.php
+++ b/install/index.php
@@ -98,6 +98,15 @@ if (isset($_GET['create_tables'])) {
}
}
+
+if (isset($_GET['create_folders'])) {
+ if (!mkdir(constants::files_folder)) {
+ echo "Creating folder `" . constants::files_folder . "` failed.
";
+ }
+ if (!mkdir(constants::files_folder . constants::files_folder_trash)) {
+ echo "Creating folder `" . constants::files_folder_trash . "` failed.
";
+ }
+}
?>
When you're done, it would be the neatest to remove the /install folder (even though this whole control panel should not be accessible for the public).
\ No newline at end of file -- cgit v1.2.3