Session destroy on install finish added.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 9 Nov 2010 13:49:38 +0000 (13:49 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 9 Nov 2010 13:49:38 +0000 (13:49 +0000)
CHANGELOG.txt
install/index.php

index 192556c3c3a055224542f919801a69d50111bfae..8419c9bb1ce45167b684563da907c9d344b84801 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+09-Nov-2010 Janusz Dobrowolski
+# Session destroy added on install finish.
+$ /install/index.php
+
 08-Nov-2010 Janusz Dobrowolski
 # Fixed support for report translations in extension modules
 $ /includes/main.inc
@@ -61,7 +65,7 @@ $ /sales/sales_order_entry.php
   /sales/includes/sales_ui.inc
 
 05-Nov-2010 Janusz Dobrowolski
-# Fixed admin username update and error when no prefix is selected in installer.
+# [0000276] Fixed admin username update and error when no prefix is selected in installer.
 $ /install/index.php
 
 04-Nov-2010 Janusz Dobrowolski
index ec6146e4d9d37aeede82474e0e3a9cbf1fd0381f..9e8ce243c7fd25e8dc5a2eb1e1b632edeab4495d 100644 (file)
@@ -152,7 +152,7 @@ function do_install() {
                $admin = get_user_by_login('admin');
                update_user_prefs($admin['id'], array(
                        'language' => $_POST['lang'], 
-                       'user_id' => $con['admin']
+                       '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 +176,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 +386,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;