mode == DUPX_InstallerMode::StandardInstall; $is_overwrite_mode = ($state->mode == DUPX_InstallerMode::OverwriteInstall && $GLOBALS['DUPX_AC']->installSiteOverwriteOn); if ($is_standard_mode) { $ovr_dbhost = NULL; $ovr_dbname = NULL; $ovr_dbuser = NULL; $ovr_dbpass = NULL; $dbhost = $GLOBALS['DUPX_AC']->dbhost; $dbname = $GLOBALS['DUPX_AC']->dbname; $dbuser = $GLOBALS['DUPX_AC']->dbuser; $dbpass = $GLOBALS['DUPX_AC']->dbpass; $dbFormDisabledString = ''; } else { $wpConfigPath = "{$GLOBALS['DUPX_ROOT']}/wp-config.php"; $outerWPConfigPath = dirname($GLOBALS['DUPX_ROOT'])."/wp-config.php"; require_once($GLOBALS['DUPX_INIT'].'/lib/config/class.wp.config.tranformer.php'); $config_transformer = file_exists($wpConfigPath) ? new DupLiteWPConfigTransformer($wpConfigPath) : new DupLiteWPConfigTransformer($outerWPConfigPath); function dupxGetDbConstVal($constName) { if ($GLOBALS['config_transformer']->exists('constant', $constName)) { $configVal = $GLOBALS['config_transformer']->get_value('constant', $constName); $constVal = htmlspecialchars($configVal); } else { $constVal = ''; } return $constVal; } $ovr_dbhost = dupxGetDbConstVal('DB_HOST'); $ovr_dbname = dupxGetDbConstVal('DB_NAME'); $ovr_dbuser = dupxGetDbConstVal('DB_USER'); $ovr_dbpass = dupxGetDbConstVal('DB_PASSWORD'); $dbhost = ''; $dbname = ''; $dbuser = ''; $dbpass = ''; } ?>
Setup
Database Connection
Ready to connect to existing sites database?
The existing sites database settings should have been applied below. If you want to connect to this database and replace all its data then keep these values. To use different database settings click the 'Reset button' to clear the values. To apply the current sites database use the 'Apply Button'.

Warning: Please note that reusing an existing site's database will overwrite all of its data. If you're not 100% sure about using these database settings, then create a new database and use the new credentials instead.
Action:
Host:
Database:
Warning: The selected 'Action' above will remove all data from this database!
Notice: The selected 'Action' will rename all existing tables from the database name above with a prefix ''. The prefix is only applied to existing tables and not the new tables that will be installed.
Notice: The 'Manual SQL execution' action will prevent the SQL script in the archive from running. The database above should already be pre-populated with data which will be updated in the next step. No data in the database will be modified until after Step 3 runs.
User:
Password: 'valid database user password', 'value' => $dbpass )); ?>

Options

Validation
Retry Test
To continue click the 'Test Database' button
to perform a database integrity check.