From: Janusz Dobrowolski Date: Tue, 1 Dec 2009 07:27:31 +0000 (+0000) Subject: Fixed error handling (removal of config.php after error). X-Git-Tag: 2.3-final~1108 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=cb99202095f93652ae733751be6e83eb49173d2e;p=fa-stable.git Fixed error handling (removal of config.php after error). --- diff --git a/install/save.php b/install/save.php index b11263a3..801c2a1a 100644 --- a/install/save.php +++ b/install/save.php @@ -53,6 +53,7 @@ function display_error($message) // Specify that session support is enabled $_SESSION['session_support'] = 'Enabled'; // Redirect to first page again and exit + @unlink($path_to_root."/config.php"); // remove just created config file header('Location: index.php?sessions_checked=true'); exit(); } @@ -295,9 +296,7 @@ if ($admin_password != $admin_repassword) } // End admin user details code -if (!file_exists($path_to_root . "/config.php")) { - copy($path_to_root. "/config.default.php", $path_to_root. "/config.php"); -} +copy($path_to_root. "/config.default.php", $path_to_root. "/config.php"); include_once($path_to_root . "/includes/db/connect_db.inc"); include_once($path_to_root . "/admin/db/maintenance_db.inc");