<label for="database">Database Name</label> <div><input type="text" id="database" name="database" value="<?php echo $DDWPDC->getConfigConstant('DB_NAME'); ?> " /></div> <label for="prefix">Table Prefix</label> <div><input type="text" id="prefix" name="prefix" value="<?php echo $DDWPDC->getConfigTablePrefix(); ?> " /></div> </blockquote> <label for="old_domain">Old Domain</label> <div>http://<input type="text" id="old_domain" name="old_domain" value="<?php echo $DDWPDC->getOldDomain(); ?> " /></div> <label for="new_domain">New Domain</label> <div>http://<input type="text" id="new_domain" name="new_domain" value="<?php echo $DDWPDC->getNewDomain(); ?> " /></div> <input type="submit" id="submit_button" name="submit_button" value="Change Domain!" /> </form> </div> <div id="right"> <?php if (count($DDWPDC->errors) > 0) {
</div> <div class="clear"></div> <div id="left"> <form method="post" action="<?php echo basename(__FILE__); ?> "> <h3>Database Connection Settings</h3> <blockquote> <?php // Try to Auto-Detect Settings from wp-config.php file and pre-populate fields. if ($DDWPDC->isConfigLoaded()) { $DDWPDC->actions[] = 'Attempting to auto-detect form field values.'; } if ($DDWPDC->isConfigLoaded()) { $DDWPDC->actions[] = 'Go to: ' . '<a href="http://' . $DDWPDC->getOldDomain() . '">Frontend</a> - <a href="http://' . $DDWPDC->getOldDomain() . '/wp-admin/">Backend</a>'; } ?> <label for="host">Host</label> <div><input type="text" id="host" name="host" value="<?php echo $DDWPDC->getConfigConstant('DB_HOST'); ?> " /></div> <label for="username">User</label> <div><input type="text" id="username" name="username" value="<?php echo $DDWPDC->getConfigConstant('DB_USER'); ?> " /></div> <label for="password">Password</label>