<?php break; case "2": ?> <?php // Exit if accessed directly if (!defined('DUPLICATOR_INIT')) { $_baseURL = strlen($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST']; $_baseURL = "http://" . $_baseURL; header("HTTP/1.1 301 Moved Permanently"); header("Location: {$_baseURL}"); exit; } $dbh = DupUtil::db_connect($_POST['dbhost'], $_POST['dbuser'], $_POST['dbpass'], $_POST['dbname'], $_POST['dbport']); $all_tables = DupUtil::get_database_tables($dbh); $active_plugins = DupUtil::get_active_plugins($dbh); $old_path = $GLOBALS['FW_WPROOT']; $new_path = DupUtil::set_safe_path($GLOBALS['CURRENT_ROOT_PATH']); $new_path = strrpos($old_path, '/') + 1 == strlen($old_path) ? DupUtil::add_slash($new_path) : $new_path; ?> <script type="text/javascript"> /** ********************************************** * METHOD: * Timeout (10000000 = 166 minutes) */ Duplicator.runUpdate = function() { //Validation var wp_username = $.trim($("#wp_username").val()).length || 0; var wp_password = $.trim($("#wp_password").val()).length || 0;