Added creating of dirs when installing

This commit is contained in:
kolaente 2018-03-07 12:49:35 +01:00
parent 90e121d367
commit 96425173e0
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 11 additions and 0 deletions

View File

@ -96,6 +96,17 @@ if (isset($_POST['submit']))
exit;
}
// Creaete folders
if (!file_exists('../config/'))
{
mkdir('../config');
}
if (!file_exists('../content/.system/'))
{
mkdir('../content/.system/', null, true);
}
//Database
$db = new db($_POST['db_host'], $_POST['db_name'], $_POST['db_user'], $_POST['db_pw'], $_POST['db_prefix']);