+
+ $_SESSION['wa_current_user']->cur_con = 0;
+
+ update_company_prefs(array('coy_name'=>$con['name']));
+ $admin = get_user_by_login('admin');
+ update_user_prefs($admin['id'], array(
+ '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'."));
+ return false;
+ }
+