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 = ''; } ?>
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 )); ?> |