getConfigKey('is_upgrade'); // process submitted data if (isset($_POST['submit'])) { // process POSTed data $zc_install->validateDatabaseSetup($_POST); $zc_install->logDetails('Installer - Page: database_setup -- collected information: ' . str_replace(array($zc_install->getConfigKey('DB_SERVER_PASSWORD'), $_POST['db_pass']), '*****', print_r($zc_install->getConfigKey(), true)), 'database_setup1'); if (ZC_UPG_DEBUG !== false) $zc_install->throwException('DIAGNOSTIC: database_setup -- session vars: ' . str_replace(array($zc_install->getConfigKey('DB_SERVER_PASSWORD'), $_POST['db_pass']), '*****', print_r($_SESSION, true)), 'database_setup'); if (!$zc_install->fatal_error) { //now let's connect to the database and load the tables: if ($is_upgrade) { //if upgrading, move on to the upgrade page // update post-install settings such as paths $zc_install->dbAfterLoadActions(); header('location: index.php?main_page=database_upgrade' . zcInstallAddSID() ); exit; } elseif ($_POST['submit']==SAVE_DATABASE_SETTINGS) { // not upgrading - load the fresh database if ($zc_show_progress == 'yes') { ?>