diff --git a/install.php b/install.php old mode 100644 new mode 100755 index c66f82c3..83a1f2f3 --- a/install.php +++ b/install.php @@ -145,8 +145,10 @@ function eok($name, $value) { } // }}} function do_install() { // {{{ - if(isset($_POST['database_dsn'])) { - install_process($_POST['database_dsn']); + if(isset($_POST['database_type']) && isset($_POST['database_host']) && isset($_POST['database_user']) && isset($_POST['database_name'])) { + global $database_dsn; + $database_dsn = "{$_POST['database_type']}:user={$_POST['database_user']};password={$_POST['database_password']};host={$_POST['database_host']};dbname={$_POST['database_name']}"; + install_process(); } else if(file_exists("auto_install.conf")) { install_process(trim(file_get_contents("auto_install.conf"))); @@ -197,11 +199,34 @@ function begin() { // {{{ $thumberr $dberr -