diff options
Diffstat (limited to 'install/index.php')
-rw-r--r-- | install/index.php | 10 |
1 files changed, 10 insertions, 0 deletions
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.<br/>"; + } + if (!mkdir(constants::files_folder . constants::files_folder_trash)) { + echo "Creating folder `" . constants::files_folder_trash . "` failed.<br/>"; + } +} ?> <hr/> @@ -106,6 +115,7 @@ if (isset($_GET['create_tables'])) { <ol> <li><a href="?create_tables">Create database tables</a></li> + <li><a href="?create_folders">Create folders</a></li> </ol> <p>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).</p>
\ No newline at end of file |