X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=install%2Findex.php;h=e9e0ef59630379763a9f41588f8940940f3f7c9d;hb=8638cffdf5eb106d2c9a6f8ee68b9f91427ace2f;hp=ec6146e4d9d37aeede82474e0e3a9cbf1fd0381f;hpb=ab7a23a7b1c8ebc19b8301391ede254cd461327a;p=fa-stable.git diff --git a/install/index.php b/install/index.php index ec6146e4..e9e0ef59 100644 --- a/install/index.php +++ b/install/index.php @@ -151,8 +151,9 @@ function do_install() { update_company_prefs(array('coy_name'=>$con['name'])); $admin = get_user_by_login('admin'); update_user_prefs($admin['id'], array( - 'language' => $_POST['lang'], - 'user_id' => $con['admin'], + 'language' => $con['lang'], + 'password' => md5($con['pass']), + 'user_id' => $con['admin'])); if (!copy($path_to_root. "/config.default.php", $path_to_root. "/config.php")) { display_error(_("Cannot save system configuration file 'config.php'.")); @@ -176,7 +177,7 @@ function do_install() { $dflt_lang = $_POST['lang']; write_lang(); if (!isset($installed_extensions)) - write_extensions(array()); + update_extensions(array()); return true; } return false; @@ -386,7 +387,8 @@ start_form(); case '6': // final screen subpage_title(_('FrontAccounting ERP has been installed successsfully.')); display_note(_('Please do not forget to remove install wizard folder.')); - $install_done = true; + session_unset(); + session_destroy(); hyperlink_no_params($path_to_root.'/index.php', _('Click here to start.')); break;