Version Description
Download this release
Release Info
Developer | cory@lamle.org |
Plugin | Duplicator – WordPress Migration Plugin |
Version | 1.1.16 |
Comparing to | |
See all releases |
Code changes from version 1.1.14 to 1.1.16
- define.php +30 -27
- duplicator.php +6 -5
- installer/build/ajax.step1.php +2 -1
- installer/build/ajax.step2.php +4 -4
- installer/build/assets/inc.css.php +1 -1
- installer/build/classes/class.conf.srv.php +78 -74
- installer/build/classes/class.serializer.php +2 -1
- installer/build/main.installer.php +1 -1
- installer/build/view.step1.php +38 -16
- installer/build/view.step3.php +4 -4
- readme.txt +3 -3
- views/help/gopro.php +5 -3
- views/packages/details/detail.php +2 -2
- views/packages/details/transfer.php +1 -1
- views/packages/main/controller.php +2 -2
- views/packages/main/new1.base.php +0 -234
- views/packages/main/new1.inc.form.php +12 -9
- views/packages/main/new2.base.php +0 -649
- views/packages/main/new2.scan.php +41 -18
- views/packages/main/new3.base.php +0 -204
- views/packages/main/packages.php +0 -7
define.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
//Prevent directly browsing to the file
|
3 |
if (function_exists('plugin_dir_url'))
|
4 |
{
|
5 |
-
define('DUPLICATOR_VERSION', '1.1.
|
6 |
-
define(
|
7 |
-
define(
|
8 |
-
define(
|
9 |
-
define(
|
10 |
define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
|
11 |
define('DUPLICATOR_SITE_URL', get_site_url());
|
12 |
|
@@ -19,32 +19,35 @@ if (function_exists('plugin_dir_url'))
|
|
19 |
}
|
20 |
|
21 |
//PATH CONSTANTS
|
22 |
-
|
|
|
|
|
|
|
23 |
define('DUPLICATOR_PLUGIN_PATH', str_replace("\\", "/", plugin_dir_path(__FILE__)));
|
24 |
-
|
25 |
-
|
26 |
-
define("
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
define(
|
31 |
-
|
32 |
-
|
33 |
|
34 |
//GENERAL CONSTRAINTS
|
35 |
-
define(
|
36 |
-
define(
|
37 |
-
define(
|
38 |
//SCANNER CONSTRAINTS
|
39 |
-
define(
|
40 |
-
define(
|
41 |
-
define(
|
42 |
-
define(
|
43 |
-
define(
|
44 |
-
define(
|
45 |
-
define(
|
46 |
-
define(
|
47 |
-
define(
|
48 |
|
49 |
$GLOBALS['DUPLICATOR_SERVER_LIST'] = array('Apache','LiteSpeed', 'Nginx', 'Lighttpd', 'IIS', 'WebServerX', 'uWSGI');
|
50 |
$GLOBALS['DUPLICATOR_OPTS_DELETE'] = array('duplicator_ui_view_state', 'duplicator_package_active', 'duplicator_settings');
|
2 |
//Prevent directly browsing to the file
|
3 |
if (function_exists('plugin_dir_url'))
|
4 |
{
|
5 |
+
define('DUPLICATOR_VERSION', '1.1.16');
|
6 |
+
define('DUPLICATOR_HOMEPAGE', 'http://lifeinthegrid.com/labs/duplicator');
|
7 |
+
define('DUPLICATOR_GIVELINK', 'http://lifeinthegrid.com/partner');
|
8 |
+
define('DUPLICATOR_HELPLINK', 'http://lifeinthegrid.com/duplicator-docs');
|
9 |
+
define('DUPLICATOR_CERTIFIED', 'http://lifeinthegrid.com/duplicator-hosts');
|
10 |
define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
|
11 |
define('DUPLICATOR_SITE_URL', get_site_url());
|
12 |
|
19 |
}
|
20 |
|
21 |
//PATH CONSTANTS
|
22 |
+
if (! defined('DUPLICATOR_WPROOTPATH')) {
|
23 |
+
define('DUPLICATOR_WPROOTPATH', str_replace('\\', '/', ABSPATH));
|
24 |
+
}
|
25 |
+
define('DUPLICATOR_SSDIR_NAME', 'wp-snapshots');
|
26 |
define('DUPLICATOR_PLUGIN_PATH', str_replace("\\", "/", plugin_dir_path(__FILE__)));
|
27 |
+
define('DUPLICATOR_SSDIR_PATH', str_replace("\\", "/", DUPLICATOR_WPROOTPATH . DUPLICATOR_SSDIR_NAME));
|
28 |
+
define('DUPLICATOR_SSDIR_PATH_TMP', DUPLICATOR_SSDIR_PATH . '/tmp');
|
29 |
+
define('DUPLICATOR_SSDIR_URL', DUPLICATOR_SITE_URL . "/" . DUPLICATOR_SSDIR_NAME);
|
30 |
+
define('DUPLICATOR_INSTALL_PHP', 'installer.php');
|
31 |
+
define('DUPLICATOR_INSTALL_BAK', 'installer-backup.php');
|
32 |
+
define('DUPLICATOR_INSTALL_SQL', 'installer-data.sql');
|
33 |
+
define('DUPLICATOR_INSTALL_LOG', 'installer-log.txt');
|
34 |
+
define('DUPLICATOR_INSTALL_DB', 'database.sql');
|
35 |
+
|
36 |
|
37 |
//GENERAL CONSTRAINTS
|
38 |
+
define('DUPLICATOR_PHP_MAX_MEMORY', '2048M');
|
39 |
+
define('DUPLICATOR_DB_MAX_TIME', 5000);
|
40 |
+
define('DUPLICATOR_DB_EOF_MARKER', 'DUPLICATOR_MYSQLDUMP_EOF');
|
41 |
//SCANNER CONSTRAINTS
|
42 |
+
define('DUPLICATOR_SCAN_SITE', 157286400); //150MB
|
43 |
+
define('DUPLICATOR_SCAN_WARNFILESIZE', 3145728); //3MB
|
44 |
+
define('DUPLICATOR_SCAN_CACHESIZE', 524288); //512K
|
45 |
+
define('DUPLICATOR_SCAN_DB_ALL_ROWS', 1000000); //1 rows million per DB
|
46 |
+
define('DUPLICATOR_SCAN_DB_ALL_SIZE', 52428800); //50MB DB
|
47 |
+
define('DUPLICATOR_SCAN_DB_TBL_ROWS', 100000); //100K rows per table
|
48 |
+
define('DUPLICATOR_SCAN_DB_TBL_SIZE', 10485760); //10MB Table
|
49 |
+
define('DUPLICATOR_SCAN_TIMEOUT', 150); //Seconds
|
50 |
+
define('DUPLICATOR_SCAN_MIN_WP', '3.9.0');
|
51 |
|
52 |
$GLOBALS['DUPLICATOR_SERVER_LIST'] = array('Apache','LiteSpeed', 'Nginx', 'Lighttpd', 'IIS', 'WebServerX', 'uWSGI');
|
53 |
$GLOBALS['DUPLICATOR_OPTS_DELETE'] = array('duplicator_ui_view_state', 'duplicator_package_active', 'duplicator_settings');
|
duplicator.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Duplicator
|
4 |
Plugin URI: http://www.lifeinthegrid.com/duplicator/
|
5 |
Description: Create a backup of your WordPress files and database. Duplicate and move an entire site from one location to another in a few steps. Create a full snapshot of your site at any point in time.
|
6 |
-
Version: 1.1.
|
7 |
Author: LifeInTheGrid
|
8 |
Author URI: http://www.lifeinthegrid.com
|
9 |
Text Domain: duplicator
|
@@ -47,12 +47,13 @@ if (is_admin() == true) {
|
|
47 |
|
48 |
/* ACTIVATION
|
49 |
Only called when plugin is activated */
|
50 |
-
function duplicator_activate()
|
51 |
-
|
52 |
global $wpdb;
|
53 |
-
|
54 |
//Only update database on version update
|
55 |
-
if (DUPLICATOR_VERSION != get_option("duplicator_version_plugin"))
|
|
|
56 |
$table_name = $wpdb->prefix . "duplicator_packages";
|
57 |
|
58 |
//PRIMARY KEY must have 2 spaces before for dbDelta to work
|
3 |
Plugin Name: Duplicator
|
4 |
Plugin URI: http://www.lifeinthegrid.com/duplicator/
|
5 |
Description: Create a backup of your WordPress files and database. Duplicate and move an entire site from one location to another in a few steps. Create a full snapshot of your site at any point in time.
|
6 |
+
Version: 1.1.16
|
7 |
Author: LifeInTheGrid
|
8 |
Author URI: http://www.lifeinthegrid.com
|
9 |
Text Domain: duplicator
|
47 |
|
48 |
/* ACTIVATION
|
49 |
Only called when plugin is activated */
|
50 |
+
function duplicator_activate()
|
51 |
+
{
|
52 |
global $wpdb;
|
53 |
+
|
54 |
//Only update database on version update
|
55 |
+
if (DUPLICATOR_VERSION != get_option("duplicator_version_plugin"))
|
56 |
+
{
|
57 |
$table_name = $wpdb->prefix . "duplicator_packages";
|
58 |
|
59 |
//PRIMARY KEY must have 2 spaces before for dbDelta to work
|
installer/build/ajax.step1.php
CHANGED
@@ -53,6 +53,7 @@ if (isset($_GET['dbtest']))
|
|
53 |
$tstDB = ($dbFound) ? "<div class='dup-pass'>Success</div>" : "<div class='dup-fail'>Fail</div>";
|
54 |
|
55 |
$dbvar_version = DUPX_Util::mysql_version($dbConn);
|
|
|
56 |
$dbvar_version_fail = version_compare($dbvar_version, $GLOBALS['FW_VERSION_DB']) < 0;
|
57 |
$tstCompat = ($dbvar_version_fail)
|
58 |
? "<div class='dup-notice'>This Server: [{$dbvar_version}] -- Package Server: [{$GLOBALS['FW_VERSION_DB']}]</div>"
|
@@ -232,7 +233,7 @@ DUPX_ServerConfig::Reset();
|
|
232 |
if (filesize("{$root_path}/database.sql") > 100000000) {
|
233 |
DUPX_Log::Info("\nWARNING: Database Script is larger than 100MB this may lead to PHP memory allocation issues on some budget hosts.");
|
234 |
}
|
235 |
-
$sql_file =
|
236 |
if ($sql_file == false || strlen($sql_file) < 10) {
|
237 |
$sql_file = file_get_contents('installer-data.sql', true);
|
238 |
if ($sql_file == false || strlen($sql_file) < 10) {
|
53 |
$tstDB = ($dbFound) ? "<div class='dup-pass'>Success</div>" : "<div class='dup-fail'>Fail</div>";
|
54 |
|
55 |
$dbvar_version = DUPX_Util::mysql_version($dbConn);
|
56 |
+
$dbvar_version = ($dbvar_version == 0) ? 'no connection' : $dbvar_version;
|
57 |
$dbvar_version_fail = version_compare($dbvar_version, $GLOBALS['FW_VERSION_DB']) < 0;
|
58 |
$tstCompat = ($dbvar_version_fail)
|
59 |
? "<div class='dup-notice'>This Server: [{$dbvar_version}] -- Package Server: [{$GLOBALS['FW_VERSION_DB']}]</div>"
|
233 |
if (filesize("{$root_path}/database.sql") > 100000000) {
|
234 |
DUPX_Log::Info("\nWARNING: Database Script is larger than 100MB this may lead to PHP memory allocation issues on some budget hosts.");
|
235 |
}
|
236 |
+
$sql_file = file_get_contents('database.sql', true);
|
237 |
if ($sql_file == false || strlen($sql_file) < 10) {
|
238 |
$sql_file = file_get_contents('installer-data.sql', true);
|
239 |
if ($sql_file == false || strlen($sql_file) < 10) {
|
installer/build/ajax.step2.php
CHANGED
@@ -95,10 +95,10 @@ $path_old_json = str_replace('"', "", json_encode($_POST['path_old']));
|
|
95 |
$path_new_json = str_replace('"', "", json_encode($_POST['path_new']));
|
96 |
|
97 |
array_push($GLOBALS['REPLACE_LIST'],
|
98 |
-
array('search' => $_POST['url_old'],
|
99 |
-
array('search' => $_POST['path_old'],
|
100 |
-
array('search' => $url_old_json,
|
101 |
-
array('search' => $path_old_json,
|
102 |
array('search' => urlencode($_POST['path_old']), 'replace' => urlencode($_POST['path_new'])),
|
103 |
array('search' => urlencode($_POST['url_old']), 'replace' => urlencode($_POST['url_new'])),
|
104 |
array('search' => rtrim(DUPX_Util::unset_safe_path($_POST['path_old']), '\\'), 'replace' => rtrim($_POST['path_new'], '/'))
|
95 |
$path_new_json = str_replace('"', "", json_encode($_POST['path_new']));
|
96 |
|
97 |
array_push($GLOBALS['REPLACE_LIST'],
|
98 |
+
array('search' => $_POST['url_old'], 'replace' => $_POST['url_new']),
|
99 |
+
array('search' => $_POST['path_old'], 'replace' => $_POST['path_new']),
|
100 |
+
array('search' => $url_old_json, 'replace' => $url_new_json),
|
101 |
+
array('search' => $path_old_json, 'replace' => $path_new_json),
|
102 |
array('search' => urlencode($_POST['path_old']), 'replace' => urlencode($_POST['path_new'])),
|
103 |
array('search' => urlencode($_POST['url_old']), 'replace' => urlencode($_POST['url_new'])),
|
104 |
array('search' => rtrim(DUPX_Util::unset_safe_path($_POST['path_old']), '\\'), 'replace' => rtrim($_POST['path_new'], '/'))
|
installer/build/assets/inc.css.php
CHANGED
@@ -98,7 +98,7 @@
|
|
98 |
|
99 |
/*Dialog*/
|
100 |
div#dup-step1-dialog-data {height:90%; font-size:11px; padding:5px; line-height:16px; }
|
101 |
-
td.dup-step1-dialog-data-details {padding:
|
102 |
td.dup-step1-dialog-data-details b {width:50px;display:inline-block}
|
103 |
.dup-pass {display:inline-block; color:green;}
|
104 |
.dup-ok {display:inline-block; color:#5860C7;}
|
98 |
|
99 |
/*Dialog*/
|
100 |
div#dup-step1-dialog-data {height:90%; font-size:11px; padding:5px; line-height:16px; }
|
101 |
+
td.dup-step1-dialog-data-details {padding:1px 0 10px 30px; border-radius:4px; line-height:14px; font-size:11px; display:none}
|
102 |
td.dup-step1-dialog-data-details b {width:50px;display:inline-block}
|
103 |
.dup-pass {display:inline-block; color:green;}
|
104 |
.dup-ok {display:inline-block; color:#5860C7;}
|
installer/build/classes/class.conf.srv.php
CHANGED
@@ -1,74 +1,78 @@
|
|
1 |
-
<?php
|
2 |
-
// Exit if accessed directly
|
3 |
-
if (! defined('DUPLICATOR_INIT')) {
|
4 |
-
$_baseURL = "http://" . strlen($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST'];
|
5 |
-
header("HTTP/1.1 301 Moved Permanently");
|
6 |
-
header("Location: $_baseURL");
|
7 |
-
exit;
|
8 |
-
}
|
9 |
-
|
10 |
-
/** * *****************************************************
|
11 |
-
* Class used to update and edit web server configuration files */
|
12 |
-
|
13 |
-
class DUPX_ServerConfig {
|
14 |
-
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Clear .htaccess and web.config files and backup
|
18 |
-
*/
|
19 |
-
static public function Reset() {
|
20 |
-
|
21 |
-
DUPX_Log::Info("\nWEB SERVER CONFIGURATION FILE RESET:");
|
22 |
-
|
23 |
-
//Apache
|
24 |
-
@copy('.htaccess', '.htaccess.orig');
|
25 |
-
@unlink('.htaccess');
|
26 |
-
|
27 |
-
|
28 |
-
@
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
$
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if (! defined('DUPLICATOR_INIT')) {
|
4 |
+
$_baseURL = "http://" . strlen($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST'];
|
5 |
+
header("HTTP/1.1 301 Moved Permanently");
|
6 |
+
header("Location: $_baseURL");
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
|
10 |
+
/** * *****************************************************
|
11 |
+
* Class used to update and edit web server configuration files */
|
12 |
+
|
13 |
+
class DUPX_ServerConfig {
|
14 |
+
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Clear .htaccess and web.config files and backup
|
18 |
+
*/
|
19 |
+
static public function Reset() {
|
20 |
+
|
21 |
+
DUPX_Log::Info("\nWEB SERVER CONFIGURATION FILE RESET:");
|
22 |
+
|
23 |
+
//Apache
|
24 |
+
@copy('.htaccess', '.htaccess.orig');
|
25 |
+
@unlink('.htaccess');
|
26 |
+
|
27 |
+
//IIS
|
28 |
+
@copy('web.config', 'web.config.orig');
|
29 |
+
@unlink('web.config');
|
30 |
+
|
31 |
+
//.user.ini - For WordFence
|
32 |
+
@copy('.user.ini', '.user.ini.orig');
|
33 |
+
@unlink('.user.ini');
|
34 |
+
|
35 |
+
DUPX_Log::Info("- Backup of .htaccess/web.config made to .orig");
|
36 |
+
DUPX_Log::Info("- Reset of .htaccess/web.config files");
|
37 |
+
$tmp_htaccess = '# RESET FOR DUPLICATOR INSTALLER USEAGE';
|
38 |
+
file_put_contents('.htaccess', $tmp_htaccess);
|
39 |
+
@chmod('.htaccess', 0644);
|
40 |
+
}
|
41 |
+
|
42 |
+
/** METHOD: ResetHTACCESS
|
43 |
+
* Resets the .htaccess file
|
44 |
+
*/
|
45 |
+
static public function Setup() {
|
46 |
+
|
47 |
+
if (! isset($_POST['url_new'])) {
|
48 |
+
return;
|
49 |
+
}
|
50 |
+
|
51 |
+
DUPX_Log::Info("\nWEB SERVER CONFIGURATION FILE BASIC SETUP:");
|
52 |
+
$currdata = parse_url($_POST['url_old']);
|
53 |
+
$newdata = parse_url($_POST['url_new']);
|
54 |
+
$currpath = DUPX_Util::add_slash(isset($currdata['path']) ? $currdata['path'] : "");
|
55 |
+
$newpath = DUPX_Util::add_slash(isset($newdata['path']) ? $newdata['path'] : "");
|
56 |
+
|
57 |
+
$tmp_htaccess = <<<HTACCESS
|
58 |
+
# BEGIN WordPress
|
59 |
+
<IfModule mod_rewrite.c>
|
60 |
+
RewriteEngine On
|
61 |
+
RewriteBase {$newpath}
|
62 |
+
RewriteRule ^index\.php$ - [L]
|
63 |
+
RewriteCond %{REQUEST_FILENAME} !-f
|
64 |
+
RewriteCond %{REQUEST_FILENAME} !-d
|
65 |
+
RewriteRule . {$newpath}index.php [L]
|
66 |
+
</IfModule>
|
67 |
+
# END WordPress
|
68 |
+
HTACCESS;
|
69 |
+
|
70 |
+
file_put_contents('.htaccess', $tmp_htaccess);
|
71 |
+
@chmod('.htaccess', 0644);
|
72 |
+
DUPX_Log::Info("created basic .htaccess file. If using IIS web.config this process will need to be done manually.");
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
}
|
78 |
+
?>
|
installer/build/classes/class.serializer.php
CHANGED
@@ -95,7 +95,8 @@ class DUPX_UpdateEngine
|
|
95 |
}
|
96 |
|
97 |
//Return Primary which is needed for index lookup
|
98 |
-
|
|
|
99 |
if (mysqli_num_rows($result) > 0) {
|
100 |
while ($row = mysqli_fetch_assoc($result)) {
|
101 |
$fields[] = $row['Column_name'];
|
95 |
}
|
96 |
|
97 |
//Return Primary which is needed for index lookup
|
98 |
+
//$result = mysqli_query($conn, "SHOW INDEX FROM `{$table}` WHERE KEY_NAME LIKE '%PRIMARY%'"); 1.1.15 updated
|
99 |
+
$result = mysqli_query($conn, "SHOW INDEX FROM `{$table}`");
|
100 |
if (mysqli_num_rows($result) > 0) {
|
101 |
while ($row = mysqli_fetch_assoc($result)) {
|
102 |
$fields[] = $row['Column_name'];
|
installer/build/main.installer.php
CHANGED
@@ -131,7 +131,7 @@ $GLOBALS['DB_MAX_PACKETS'] = 268435456;
|
|
131 |
ini_set('mysql.connect_timeout', '5000');
|
132 |
|
133 |
//PHP SETUP: all time in seconds
|
134 |
-
ini_set('memory_limit', '
|
135 |
ini_set("max_execution_time", '5000');
|
136 |
ini_set("max_input_time", '5000');
|
137 |
ini_set('default_socket_timeout', '5000');
|
131 |
ini_set('mysql.connect_timeout', '5000');
|
132 |
|
133 |
//PHP SETUP: all time in seconds
|
134 |
+
ini_set('memory_limit', '2048M');
|
135 |
ini_set("max_execution_time", '5000');
|
136 |
ini_set("max_input_time", '5000');
|
137 |
ini_set('default_socket_timeout', '5000');
|
installer/build/view.step1.php
CHANGED
@@ -316,7 +316,7 @@ VIEW: STEP 1- INPUT -->
|
|
316 |
|
317 |
|
318 |
<div class="dup-step1-gopro">
|
319 |
-
*Create the database and users <b>from the installer</b> with <a target="_blank" href="https://snapcreek.com/?
|
320 |
</div>
|
321 |
|
322 |
<!-- NOTICES -->
|
@@ -414,45 +414,65 @@ PANEL: SERVER CHECKS -->
|
|
414 |
<div id="dup-step1-dialog" title="System Status" style="display:none">
|
415 |
<div id="dup-step1-dialog-data" style="padding: 0px 10px 10px 10px;">
|
416 |
|
417 |
-
<
|
418 |
-
|
419 |
-
|
|
|
|
|
|
|
420 |
<!-- SYSTEM REQUIREMENTS -->
|
421 |
<b>REQUIREMENTS</b> <i style='font-size:11px'>click links for details</i>
|
422 |
<hr size="1"/>
|
|
|
423 |
<table style="width:100%">
|
424 |
<tr>
|
425 |
-
<td style="width:300px"><a href="javascript:void(0)" onclick="$('#dup-
|
426 |
<td class="<?php echo ($req01 == 'Pass') ? 'dup-pass' : 'dup-fail' ?>"><?php echo $req01; ?></td>
|
427 |
</tr>
|
428 |
<tr>
|
429 |
-
<td colspan="2" id="dup-
|
430 |
<?php
|
431 |
echo "<i>Path: {$GLOBALS['CURRENT_ROOT_PATH']} </i><br/>";
|
432 |
printf("<b>[%s]</b> %s <br/>", $req01a, "Is Writable by PHP");
|
433 |
-
printf("<b>[%s]</b> %s
|
434 |
?>
|
435 |
</td>
|
436 |
</tr>
|
437 |
<tr>
|
438 |
-
<td><a href="
|
439 |
<td class="<?php echo ($req03 == 'Pass') ? 'dup-pass' : 'dup-fail' ?>"><?php echo $req03; ?></td>
|
440 |
</tr>
|
441 |
<tr>
|
442 |
-
<td
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
<td class="<?php echo ($req02 == 'Pass') ? 'dup-pass' : 'dup-fail' ?>"><?php echo $req02; ?></td>
|
444 |
</tr>
|
445 |
<tr>
|
446 |
-
<td
|
447 |
-
|
448 |
-
|
449 |
</td>
|
|
|
|
|
|
|
450 |
<td class="<?php echo ($req04 == 'Pass') ? 'dup-pass' : 'dup-fail' ?>"><?php echo $req04; ?> </td>
|
451 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
</table>
|
|
|
453 |
|
454 |
<!-- SYSTEM CHECKS -->
|
455 |
-
<b>CHECKS</b><hr
|
456 |
<table style="width:100%">
|
457 |
<tr>
|
458 |
<td style="width:300px"></td>
|
@@ -481,8 +501,8 @@ PANEL: SERVER CHECKS -->
|
|
481 |
</tr>
|
482 |
<tr>
|
483 |
<?php
|
484 |
-
|
485 |
-
|
486 |
?>
|
487 |
<td><b>Open Base Dir:</b> Off
|
488 |
<td><div class='dup-pass'>Good</div>
|
@@ -495,9 +515,11 @@ PANEL: SERVER CHECKS -->
|
|
495 |
|
496 |
<hr class='dup-dots' />
|
497 |
<!-- SAPI -->
|
|
|
498 |
<b>PHP SAPI:</b> <?php echo php_sapi_name(); ?><br/>
|
499 |
<b>PHP ZIP Archive:</b> <?php echo class_exists('ZipArchive') ? 'Is Installed' : 'Not Installed'; ?> <br/>
|
500 |
-
<b>CDN Accessible:</b> <?php echo ( DUPX_Util::is_url_active("ajax.aspnetcdn.com", 443) && DUPX_Util::is_url_active("ajax.googleapis.com", 443)) ? 'Yes' : 'No'; ?>
|
|
|
501 |
Need an <a href='http://lifeinthegrid.com/duplicator-hosts' target='_blank'>approved</a> Duplicator hosting provider?
|
502 |
|
503 |
</div>
|
316 |
|
317 |
|
318 |
<div class="dup-step1-gopro">
|
319 |
+
*Create the database and users <b>from the installer</b> with <a target="_blank" href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_install_step1&utm_campaign=duplicator_pro">Duplicator Pro!</a> - Requires cPanel.
|
320 |
</div>
|
321 |
|
322 |
<!-- NOTICES -->
|
414 |
<div id="dup-step1-dialog" title="System Status" style="display:none">
|
415 |
<div id="dup-step1-dialog-data" style="padding: 0px 10px 10px 10px;">
|
416 |
|
417 |
+
<div style="font-size:12px">
|
418 |
+
<b>Archive Name:</b> <?php echo $zip_name; ?> <br/>
|
419 |
+
<b>Package Notes:</b> <?php echo empty($GLOBALS['FW_PACKAGE_NOTES']) ? 'No notes provided for this pakcage.' : $GLOBALS['FW_PACKAGE_NOTES']; ?>
|
420 |
+
</div>
|
421 |
+
<br/>
|
422 |
+
|
423 |
<!-- SYSTEM REQUIREMENTS -->
|
424 |
<b>REQUIREMENTS</b> <i style='font-size:11px'>click links for details</i>
|
425 |
<hr size="1"/>
|
426 |
+
|
427 |
<table style="width:100%">
|
428 |
<tr>
|
429 |
+
<td style="width:300px"><a href="javascript:void(0)" onclick="$('#dup-req-rootdir').toggle(200)">Root Directory</a></td>
|
430 |
<td class="<?php echo ($req01 == 'Pass') ? 'dup-pass' : 'dup-fail' ?>"><?php echo $req01; ?></td>
|
431 |
</tr>
|
432 |
<tr>
|
433 |
+
<td colspan="2" id="dup-req-rootdir" class='dup-step1-dialog-data-details'>
|
434 |
<?php
|
435 |
echo "<i>Path: {$GLOBALS['CURRENT_ROOT_PATH']} </i><br/>";
|
436 |
printf("<b>[%s]</b> %s <br/>", $req01a, "Is Writable by PHP");
|
437 |
+
printf("<b>[%s]</b> %s ", $req01b, "Contains only one zip file<div style='padding-left:70px'>Result = {$zip_name} <br/> <i>Note: Manual extraction still requires the archive.zip file</i> </div> ");
|
438 |
?>
|
439 |
</td>
|
440 |
</tr>
|
441 |
<tr>
|
442 |
+
<td><a href="javascript:void(0)" onclick="$('#dup-req-mysqli').toggle(200)">MySQLi Support</a></td>
|
443 |
<td class="<?php echo ($req03 == 'Pass') ? 'dup-pass' : 'dup-fail' ?>"><?php echo $req03; ?></td>
|
444 |
</tr>
|
445 |
<tr>
|
446 |
+
<td colspan="2" id="dup-req-mysqli" class='dup-step1-dialog-data-details'>
|
447 |
+
The Duplicator needs the PHP mysqli extension installed to run properly. This is a very common extension and can be easily installed by your
|
448 |
+
host or server administrator. For more details see the <a href="http://us2.php.net/manual/en/mysqli.installation.php" target="_blank" >online overview</a>.
|
449 |
+
</td>
|
450 |
+
</tr>
|
451 |
+
<tr>
|
452 |
+
<td><a href="javascript:void(0)" onclick="$('#dup-req-safemode').toggle(200)">Safe Mode Off</a></td>
|
453 |
<td class="<?php echo ($req02 == 'Pass') ? 'dup-pass' : 'dup-fail' ?>"><?php echo $req02; ?></td>
|
454 |
</tr>
|
455 |
<tr>
|
456 |
+
<td colspan="2" id="dup-req-safemode" class='dup-step1-dialog-data-details'>
|
457 |
+
The Duplicator requires that PHP safe mode be turned off. Safe mode is a very uncommon setting and can be easily turned off by your
|
458 |
+
host or server administrator. For more details see the <a href="http://php.net/manual/en/features.safe-mode.php" target="_blank" >online overview</a>.
|
459 |
</td>
|
460 |
+
</tr>
|
461 |
+
<tr>
|
462 |
+
<td valign="top"><a href="javascript:void(0)" onclick="$('#dup-req-phpver').toggle(200)">PHP Version</a> </td>
|
463 |
<td class="<?php echo ($req04 == 'Pass') ? 'dup-pass' : 'dup-fail' ?>"><?php echo $req04; ?> </td>
|
464 |
</tr>
|
465 |
+
<tr>
|
466 |
+
<td colspan="2" id="dup-req-phpver" class='dup-step1-dialog-data-details'>
|
467 |
+
This server is currently running PHP version: <b><?php echo phpversion(); ?></b>. The Duplicator requires a version of 5.2.9+ or better.
|
468 |
+
To upgrade your PHP version contact your host or server administrator.
|
469 |
+
</td>
|
470 |
+
</tr>
|
471 |
</table>
|
472 |
+
<br/>
|
473 |
|
474 |
<!-- SYSTEM CHECKS -->
|
475 |
+
<b>CHECKS</b><hr size="1"/>
|
476 |
<table style="width:100%">
|
477 |
<tr>
|
478 |
<td style="width:300px"></td>
|
501 |
</tr>
|
502 |
<tr>
|
503 |
<?php
|
504 |
+
$open_basedir_set = ini_get("open_basedir");
|
505 |
+
if (empty($open_basedir_set)):
|
506 |
?>
|
507 |
<td><b>Open Base Dir:</b> Off
|
508 |
<td><div class='dup-pass'>Good</div>
|
515 |
|
516 |
<hr class='dup-dots' />
|
517 |
<!-- SAPI -->
|
518 |
+
<b>PHP MAX MEMORY:</b> <?php echo @ini_get('memory_limit') ?><br/>
|
519 |
<b>PHP SAPI:</b> <?php echo php_sapi_name(); ?><br/>
|
520 |
<b>PHP ZIP Archive:</b> <?php echo class_exists('ZipArchive') ? 'Is Installed' : 'Not Installed'; ?> <br/>
|
521 |
+
<b>CDN Accessible:</b> <?php echo ( DUPX_Util::is_url_active("ajax.aspnetcdn.com", 443) && DUPX_Util::is_url_active("ajax.googleapis.com", 443)) ? 'Yes' : 'No'; ?>
|
522 |
+
<br/><br/>
|
523 |
Need an <a href='http://lifeinthegrid.com/duplicator-hosts' target='_blank'>approved</a> Duplicator hosting provider?
|
524 |
|
525 |
</div>
|
installer/build/view.step3.php
CHANGED
@@ -204,21 +204,21 @@ VIEW: STEP 3- INPUT -->
|
|
204 |
$num = rand(1,2);
|
205 |
switch ($num) {
|
206 |
case 1:
|
207 |
-
$key = '
|
208 |
$txt = 'Want More Power?';
|
209 |
break;
|
210 |
case 2:
|
211 |
-
$key = '
|
212 |
$txt = 'Go Pro Today!';
|
213 |
break;
|
214 |
default :
|
215 |
-
$key = '
|
216 |
$txt = 'Go Pro Today!';
|
217 |
}
|
218 |
?>
|
219 |
|
220 |
<div class="s3-gopro-btn">
|
221 |
-
<a style="width:100%" class="s3-final-btns" href="https://snapcreek.com/duplicator
|
222 |
</div>
|
223 |
<br/><br/>
|
224 |
|
204 |
$num = rand(1,2);
|
205 |
switch ($num) {
|
206 |
case 1:
|
207 |
+
$key = 'free_inst_s3btn1';
|
208 |
$txt = 'Want More Power?';
|
209 |
break;
|
210 |
case 2:
|
211 |
+
$key = 'free_inst_s3btn2';
|
212 |
$txt = 'Go Pro Today!';
|
213 |
break;
|
214 |
default :
|
215 |
+
$key = 'free_inst_s3btn2';
|
216 |
$txt = 'Go Pro Today!';
|
217 |
}
|
218 |
?>
|
219 |
|
220 |
<div class="s3-gopro-btn">
|
221 |
+
<a style="width:100%" class="s3-final-btns" href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_campaign=duplicator_pro&utm_content="<?php echo $key;?>" target="_blank">❱❱ <?php echo $txt;?></a>
|
222 |
</div>
|
223 |
<br/><br/>
|
224 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: corylamleorg, bobriley
|
|
3 |
Donate link: www.lifeinthegrid.com/partner
|
4 |
Tags: backup, restore, move, migrate, localhost, synchronize, duplicate, clone, automate, niche
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2
|
9 |
|
10 |
Duplicate, clone, backup, move and transfer an entire site from one location to another.
|
@@ -108,4 +108,4 @@ http://lifeinthegrid.com/duplicator-log
|
|
108 |
|
109 |
== Upgrade Notice ==
|
110 |
|
111 |
-
Please use our ticketing system when submitting your logs. Please do not post to the forums.
|
3 |
Donate link: www.lifeinthegrid.com/partner
|
4 |
Tags: backup, restore, move, migrate, localhost, synchronize, duplicate, clone, automate, niche
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 1.1.16
|
8 |
License: GPLv2
|
9 |
|
10 |
Duplicate, clone, backup, move and transfer an entire site from one location to another.
|
108 |
|
109 |
== Upgrade Notice ==
|
110 |
|
111 |
+
Please use our ticketing system when submitting your logs. Please do not post to the forums.
|
views/help/gopro.php
CHANGED
@@ -18,7 +18,9 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
|
|
18 |
div.dup-compare-area div.feature div.info {display:none; padding:7px 7px 5px 7px; font-style:italic; color:#555; font-size:14px}
|
19 |
div.dup-gopro-header {text-align:center; margin:5px 0 15px 0; font-size:18px; line-height:30px}
|
20 |
div.dup-gopro-header b {font-size:35px}
|
21 |
-
|
|
|
|
|
22 |
|
23 |
#comparison-table { margin-top:25px; border-spacing:0px; width:100%}
|
24 |
#comparison-table th { color:#E21906;}
|
@@ -151,9 +153,9 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
|
|
151 |
|
152 |
<br style="clear:both" />
|
153 |
<p style="text-align:center">
|
154 |
-
<
|
155 |
<?php _e('Check It Out!', 'duplicator') ?>
|
156 |
-
</
|
157 |
</p>
|
158 |
<br/><br/>
|
159 |
</div>
|
18 |
div.dup-compare-area div.feature div.info {display:none; padding:7px 7px 5px 7px; font-style:italic; color:#555; font-size:14px}
|
19 |
div.dup-gopro-header {text-align:center; margin:5px 0 15px 0; font-size:18px; line-height:30px}
|
20 |
div.dup-gopro-header b {font-size:35px}
|
21 |
+
button.dup-check-it-btn {box-shadow:5px 5px 5px 0px #999 !important; font-size:20px !important; height:45px !important; padding:7px 30px 7px 30px !important; color:white!important; background-color: #3e8f3e!important; font-weight: bold!important;
|
22 |
+
color: white;
|
23 |
+
font-weight: bold;}
|
24 |
|
25 |
#comparison-table { margin-top:25px; border-spacing:0px; width:100%}
|
26 |
#comparison-table th { color:#E21906;}
|
153 |
|
154 |
<br style="clear:both" />
|
155 |
<p style="text-align:center">
|
156 |
+
<button onclick="window.open('https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_go_pro&utm_campaign=duplicator_pro');" class="button button-large dup-check-it-btn" >
|
157 |
<?php _e('Check It Out!', 'duplicator') ?>
|
158 |
+
</button>
|
159 |
</p>
|
160 |
<br/><br/>
|
161 |
</div>
|
views/packages/details/detail.php
CHANGED
@@ -188,7 +188,7 @@ STORAGE -->
|
|
188 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/google_drive_64px.png" />
|
189 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/ftp-64.png" />
|
190 |
<?php echo sprintf(__('%1$s, %2$s, %3$s, %4$s and more storage options available in', 'duplicator'), 'Amazon', 'Dropbox', 'Google Drive', 'FTP'); ?>
|
191 |
-
<a href="
|
192 |
<i class="fa fa-lightbulb-o"
|
193 |
data-tooltip-title="<?php _e('Additional Storage:', 'duplicator'); ?>"
|
194 |
data-tooltip="<?php _e('Professional allows you to create a package and then store it at a custom location on this server or to a cloud '
|
@@ -252,7 +252,7 @@ ARCHIVE -->
|
|
252 |
<td>
|
253 |
<i>
|
254 |
<?php _e('Available in', 'duplicator') ?>
|
255 |
-
<a href="
|
256 |
</i>
|
257 |
<i class="fa fa-lightbulb-o"
|
258 |
data-tooltip-title="<?php _e('File Filters:', 'duplicator'); ?>"
|
188 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/google_drive_64px.png" />
|
189 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/ftp-64.png" />
|
190 |
<?php echo sprintf(__('%1$s, %2$s, %3$s, %4$s and more storage options available in', 'duplicator'), 'Amazon', 'Dropbox', 'Google Drive', 'FTP'); ?>
|
191 |
+
<a href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_storage_detail&utm_campaign=duplicator_pro" target="_blank"><?php _e('Professional', 'duplicator');?></a>
|
192 |
<i class="fa fa-lightbulb-o"
|
193 |
data-tooltip-title="<?php _e('Additional Storage:', 'duplicator'); ?>"
|
194 |
data-tooltip="<?php _e('Professional allows you to create a package and then store it at a custom location on this server or to a cloud '
|
252 |
<td>
|
253 |
<i>
|
254 |
<?php _e('Available in', 'duplicator') ?>
|
255 |
+
<a href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_file_filters&utm_campaign=duplicator_pro" target="_blank"><?php _e('Professional', 'duplicator');?></a>
|
256 |
</i>
|
257 |
<i class="fa fa-lightbulb-o"
|
258 |
data-tooltip-title="<?php _e('File Filters:', 'duplicator'); ?>"
|
views/packages/details/transfer.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
?>
|
21 |
</div>
|
22 |
<p style="text-align:center">
|
23 |
-
<a href="
|
24 |
<?php _e('Learn More', 'duplicator') ?>
|
25 |
</a>
|
26 |
</p>
|
20 |
?>
|
21 |
</div>
|
22 |
<p style="text-align:center">
|
23 |
+
<a href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_manual_transfer&utm_campaign=duplicator_pro" target="_blank" class="button button-primary button-large dup-check-it-btn" >
|
24 |
<?php _e('Learn More', 'duplicator') ?>
|
25 |
</a>
|
26 |
</p>
|
views/packages/main/controller.php
CHANGED
@@ -5,10 +5,10 @@ $current_tab = isset($_REQUEST['tab']) ? esc_html($_REQUEST['tab']) : 'list';
|
|
5 |
<style>
|
6 |
//TOOLBAR TABLE
|
7 |
table#dup-toolbar td {padding:0px; white-space:nowrap;}
|
8 |
-
table#dup-toolbar td.dup-toolbar-btns {width:100%; text-align: right; vertical-align: bottom}
|
9 |
table#dup-toolbar td.dup-toolbar-btns a {font-size:16px}
|
10 |
table#dup-toolbar td.dup-toolbar-btns span {font-size:16px; font-weight: bold}
|
11 |
-
table#dup-toolbar {width:100%; border:
|
12 |
|
13 |
/*WIZARD TABS */
|
14 |
div#dup-wiz {padding:0px; margin:0; }
|
5 |
<style>
|
6 |
//TOOLBAR TABLE
|
7 |
table#dup-toolbar td {padding:0px; white-space:nowrap;}
|
8 |
+
table#dup-toolbar td.dup-toolbar-btns {width:100%; text-align: right; vertical-align: bottom;white-space:nowrap;}
|
9 |
table#dup-toolbar td.dup-toolbar-btns a {font-size:16px}
|
10 |
table#dup-toolbar td.dup-toolbar-btns span {font-size:16px; font-weight: bold}
|
11 |
+
table#dup-toolbar {width:100%; border:0 solid red; padding: 0; margin:0 0 10px 0; height: 35px}
|
12 |
|
13 |
/*WIZARD TABS */
|
14 |
div#dup-wiz {padding:0px; margin:0; }
|
views/packages/main/new1.base.php
DELETED
@@ -1,234 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
require_once (DUPLICATOR_PLUGIN_PATH . 'classes/package.php');
|
3 |
-
|
4 |
-
global $wpdb;
|
5 |
-
|
6 |
-
//POST BACK
|
7 |
-
$action_updated = null;
|
8 |
-
if (isset($_POST['action']))
|
9 |
-
{
|
10 |
-
$action_result = DUP_Settings::DeleteWPOption($_POST['action']);
|
11 |
-
switch ($_POST['action'])
|
12 |
-
{
|
13 |
-
case 'duplicator_package_active' : $action_response = __('Package settings have been reset.', 'duplicator');
|
14 |
-
break;
|
15 |
-
}
|
16 |
-
}
|
17 |
-
|
18 |
-
DUP_Util::InitSnapshotDirectory();
|
19 |
-
|
20 |
-
$Package = DUP_Package::GetActive();
|
21 |
-
$dup_tests = array();
|
22 |
-
$dup_tests = DUP_Server::GetRequirements();
|
23 |
-
$default_name = DUP_Package::GetDefaultName();
|
24 |
-
|
25 |
-
$view_state = DUP_UI::GetViewStateArray();
|
26 |
-
$ui_css_storage = (isset($view_state['dup-pack-storage-panel']) && $view_state['dup-pack-storage-panel']) ? 'display:block' : 'display:none';
|
27 |
-
$ui_css_archive = (isset($view_state['dup-pack-archive-panel']) && $view_state['dup-pack-archive-panel']) ? 'display:block' : 'display:none';
|
28 |
-
$ui_css_installer = (isset($view_state['dup-pack-installer-panel']) && $view_state['dup-pack-installer-panel']) ? 'display:block' : 'display:none';
|
29 |
-
$dup_intaller_files = implode(", ", array_keys(DUP_Server::GetInstallerFiles()));
|
30 |
-
$dbbuild_mode = (DUP_Settings::Get('package_mysqldump') && DUP_Database::GetMySqlDumpPath()) ? 'mysqldump' : 'PHP';
|
31 |
-
|
32 |
-
?>
|
33 |
-
|
34 |
-
<style>
|
35 |
-
/* -----------------------------
|
36 |
-
REQUIREMENTS*/
|
37 |
-
div.dup-sys-section {margin:1px 0px 5px 0px}
|
38 |
-
div.dup-sys-title {display:inline-block; width:250px; padding:1px; }
|
39 |
-
div.dup-sys-title div {display:inline-block;float:right; }
|
40 |
-
div.dup-sys-info {display:none; max-width: 98%; margin:4px 4px 12px 4px}
|
41 |
-
div.dup-sys-pass {display:inline-block; color:green;}
|
42 |
-
div.dup-sys-fail {display:inline-block; color:#AF0000;}
|
43 |
-
div.dup-sys-contact {padding:5px 0px 0px 10px; font-size:11px; font-style:italic}
|
44 |
-
span.dup-toggle {float:left; margin:0 2px 2px 0; }
|
45 |
-
table.dup-sys-info-results td:first-child {width:200px}
|
46 |
-
</style>
|
47 |
-
|
48 |
-
<!-- ============================
|
49 |
-
TOOL BAR: STEPS -->
|
50 |
-
<table id="dup-toolbar">
|
51 |
-
<tr valign="top">
|
52 |
-
<td style="white-space: nowrap">
|
53 |
-
<div id="dup-wiz">
|
54 |
-
<div id="dup-wiz-steps">
|
55 |
-
<div class="active-step"><a><span>1</span> <?php _e('Setup', 'duplicator'); ?></a></div>
|
56 |
-
<div><a><span>2</span> <?php _e('Scan', 'duplicator'); ?> </a></div>
|
57 |
-
<div><a><span>3</span> <?php _e('Build', 'duplicator'); ?> </a></div>
|
58 |
-
</div>
|
59 |
-
<div id="dup-wiz-title">
|
60 |
-
<?php _e('Step 1: Package Setup', 'duplicator'); ?>
|
61 |
-
</div>
|
62 |
-
</div>
|
63 |
-
</td>
|
64 |
-
<td class="dup-toolbar-btns">
|
65 |
-
<a id="dup-pro-create-new" href="?page=duplicator" class="add-new-h2"><i class="fa fa-archive"></i> <?php _e("All Packages", 'duplicator'); ?></a>
|
66 |
-
<span> <?php _e("Create New", 'duplicator'); ?></span>
|
67 |
-
</td>
|
68 |
-
</tr>
|
69 |
-
</table>
|
70 |
-
<hr style="margin-bottom:8px">
|
71 |
-
|
72 |
-
<?php if (!empty($action_response)) : ?>
|
73 |
-
<div id="message" class="updated below-h2"><p><?php echo $action_response; ?></p></div>
|
74 |
-
<?php endif; ?>
|
75 |
-
|
76 |
-
<!-- ============================
|
77 |
-
SYSTEM REQUIREMENTS -->
|
78 |
-
<div class="dup-box dup-box-fancy">
|
79 |
-
<div class="dup-box-title dup-box-title-fancy">
|
80 |
-
<?php
|
81 |
-
_e("Requirements:", 'duplicator');
|
82 |
-
echo ($dup_tests['Success']) ? ' <div class="dup-sys-pass">Pass</div>' : ' <div class="dup-sys-fail">Fail</div>';
|
83 |
-
?>
|
84 |
-
<div class="dup-box-arrow"></div>
|
85 |
-
</div>
|
86 |
-
|
87 |
-
<div class="dup-box-panel" style="<?php echo ($dup_tests['Success']) ? 'display:none' : ''; ?>">
|
88 |
-
|
89 |
-
<div class="dup-sys-section">
|
90 |
-
<i><?php _e("System requirements must pass for the Duplicator to work properly. Click each link for details.", 'duplicator'); ?></i>
|
91 |
-
</div>
|
92 |
-
|
93 |
-
<!-- PHP SUPPORT -->
|
94 |
-
<div class='dup-sys-req'>
|
95 |
-
<div class='dup-sys-title'>
|
96 |
-
<a><?php _e('PHP Support', 'duplicator'); ?></a>
|
97 |
-
<div><?php echo $dup_tests['PHP']['ALL']; ?></div>
|
98 |
-
</div>
|
99 |
-
<div class="dup-sys-info dup-info-box">
|
100 |
-
<table class="dup-sys-info-results">
|
101 |
-
<tr>
|
102 |
-
<td><?php printf("%s [%s]", __("PHP Version", 'duplicator'), phpversion()); ?></td>
|
103 |
-
<td><?php echo $dup_tests['PHP']['VERSION'] ?></td>
|
104 |
-
</tr>
|
105 |
-
<tr>
|
106 |
-
<td><?php _e('Zip Archive Enabled', 'duplicator'); ?></td>
|
107 |
-
<td><?php echo $dup_tests['PHP']['ZIP'] ?></td>
|
108 |
-
</tr>
|
109 |
-
<tr>
|
110 |
-
<td><?php _e('Safe Mode Off', 'duplicator'); ?></td>
|
111 |
-
<td><?php echo $dup_tests['PHP']['SAFE_MODE'] ?></td>
|
112 |
-
</tr>
|
113 |
-
<tr>
|
114 |
-
<td><?php _e('Function', 'duplicator'); ?> <a href="http://php.net/manual/en/function.file-get-contents.php" target="_blank">file_get_contents</a></td>
|
115 |
-
<td><?php echo $dup_tests['PHP']['FUNC_1'] ?></td>
|
116 |
-
</tr>
|
117 |
-
<tr>
|
118 |
-
<td><?php _e('Function', 'duplicator'); ?> <a href="http://php.net/manual/en/function.file-put-contents.php" target="_blank">file_put_contents</a></td>
|
119 |
-
<td><?php echo $dup_tests['PHP']['FUNC_2'] ?></td>
|
120 |
-
</tr>
|
121 |
-
<tr>
|
122 |
-
<td><?php _e('Function', 'duplicator'); ?> <a href="http://php.net/manual/en/mbstring.installation.php" target="_blank">mb_strlen</a></td>
|
123 |
-
<td><?php echo $dup_tests['PHP']['FUNC_3'] ?></td>
|
124 |
-
</tr>
|
125 |
-
</table>
|
126 |
-
<small>
|
127 |
-
<?php _e("PHP versions 5.2.9+ or higher is required. For compression to work the ZipArchive extension for PHP is required. Safe Mode should be set to 'Off' in you php.ini file and is deprecated as of PHP 5.3.0. For any issues in this section please contact your hosting provider or server administrator. For additional information see our online documentation.", 'duplicator'); ?>
|
128 |
-
</small>
|
129 |
-
</div>
|
130 |
-
</div>
|
131 |
-
|
132 |
-
<!-- PERMISSIONS -->
|
133 |
-
<div class='dup-sys-req'>
|
134 |
-
<div class='dup-sys-title'>
|
135 |
-
<a><?php _e('Permissions', 'duplicator'); ?></a> <div><?php echo $dup_tests['IO']['ALL']; ?></div>
|
136 |
-
</div>
|
137 |
-
<div class="dup-sys-info dup-info-box">
|
138 |
-
<b><?php _e("Required Paths", 'duplicator'); ?></b>
|
139 |
-
<div style="padding:3px 0px 0px 15px">
|
140 |
-
<?php
|
141 |
-
printf("<b>%s</b> [%s] <br/>", $dup_tests['IO']['WPROOT'], DUPLICATOR_WPROOTPATH);
|
142 |
-
printf("<b>%s</b> [%s] <br/>", $dup_tests['IO']['SSDIR'], DUPLICATOR_SSDIR_PATH);
|
143 |
-
printf("<b>%s</b> [%s] <br/>", $dup_tests['IO']['SSTMP'], DUPLICATOR_SSDIR_PATH_TMP);
|
144 |
-
//printf("<b>%s:</b> [%s] <br/>", __('PHP Script Owner', 'duplicator'), DUP_Util::GetCurrentUser());
|
145 |
-
//printf("<b>%s:</b> [%s] <br/>", __('PHP Process Owner', 'duplicator'), DUP_Util::GetProcessOwner());
|
146 |
-
?>
|
147 |
-
</div>
|
148 |
-
<small>
|
149 |
-
<?php _e("Permissions can be difficult to resolve on some systems. If the plugin can not read the above paths here are a few things to try. 1) Set the above paths to have permissions of 755 for directories and 644 for files. You can temporarily try 777 however, be sure you don’t leave them this way. 2) Check the owner/group settings for both files and directories. The PHP script owner and the process owner are different. The script owner owns the PHP script but the process owner is the user the script is running as, thus determining its capabilities/privileges in the file system. For more details contact your host or server administrator or visit the 'Help' menu under Duplicator for additional online resources.", 'duplicator'); ?>
|
150 |
-
</small>
|
151 |
-
</div>
|
152 |
-
</div>
|
153 |
-
|
154 |
-
<!-- SERVER SUPPORT -->
|
155 |
-
<div class='dup-sys-req'>
|
156 |
-
<div class='dup-sys-title'>
|
157 |
-
<a><?php _e('Server Support', 'duplicator'); ?></a>
|
158 |
-
<div><?php echo $dup_tests['SRV']['ALL']; ?></div>
|
159 |
-
</div>
|
160 |
-
<div class="dup-sys-info dup-info-box">
|
161 |
-
<table class="dup-sys-info-results">
|
162 |
-
<tr>
|
163 |
-
<td><?php printf("%s [%s]", __("MySQL Version", 'duplicator'), $wpdb->db_version()); ?></td>
|
164 |
-
<td><?php echo $dup_tests['SRV']['MYSQL_VER'] ?></td>
|
165 |
-
</tr>
|
166 |
-
<tr>
|
167 |
-
<td><?php printf("%s", __("MySQLi Support", 'duplicator')); ?></td>
|
168 |
-
<td><?php echo $dup_tests['SRV']['MYSQLi'] ?></td>
|
169 |
-
</tr>
|
170 |
-
</table>
|
171 |
-
<small>
|
172 |
-
<?php
|
173 |
-
_e("MySQL version 5.0+ or better is required and the PHP MySQLi extension (note the trailing 'i') is also required. Contact your server administrator and request that mysqli extension and MySQL Server 5.0+ be installed. Please note in future versions support for other databases and extensions will be added.", 'duplicator');
|
174 |
-
echo " <i><a href='http://php.net/manual/en/mysqli.installation.php' target='_blank'>[" . __('more info', 'duplicator') . "]</a></i>";
|
175 |
-
?>
|
176 |
-
</small>
|
177 |
-
</div>
|
178 |
-
</div>
|
179 |
-
|
180 |
-
<!-- RESERVED FILES -->
|
181 |
-
<div class='dup-sys-req'>
|
182 |
-
<div class='dup-sys-title'>
|
183 |
-
<a><?php _e('Reserved Files', 'duplicator'); ?></a> <div><?php echo $dup_tests['RES']['INSTALL']; ?></div>
|
184 |
-
</div>
|
185 |
-
<div class="dup-sys-info dup-info-box">
|
186 |
-
<?php if ($dup_tests['RES']['INSTALL'] == 'Pass') : ?>
|
187 |
-
<?php
|
188 |
-
_e("None of the reserved files where found from a previous install. This means you are clear to create a new package.", 'duplicator');
|
189 |
-
echo " [{$dup_intaller_files}]";
|
190 |
-
?>
|
191 |
-
<?php else:
|
192 |
-
$duplicator_nonce = wp_create_nonce('duplicator_cleanup_page');
|
193 |
-
?>
|
194 |
-
<form method="post" action="admin.php?page=duplicator-tools&tab=cleanup&action=installer&_wpnonce=<?php echo $duplicator_nonce; ?>">
|
195 |
-
<?php _e("A reserved file(s) was found in the WordPress root directory. Reserved file names are [{$dup_intaller_files}]. To archive your data correctly please remove any of these files from your WordPress root directory. Then try creating your package again.", 'duplicator'); ?>
|
196 |
-
<br/><input type='submit' class='button action' value='<?php _e('Remove Files Now', 'duplicator') ?>' style='font-size:10px; margin-top:5px;' />
|
197 |
-
</form>
|
198 |
-
<?php endif; ?>
|
199 |
-
</div>
|
200 |
-
</div>
|
201 |
-
|
202 |
-
<!-- ONLINE SUPPORT -->
|
203 |
-
<div class="dup-sys-contact">
|
204 |
-
<?php
|
205 |
-
printf("%s <a href='admin.php?page=duplicator-help'>[%s]</a>", __("For additional help please see the ", 'duplicator'), __("help page", 'duplicator'));
|
206 |
-
?>
|
207 |
-
</div>
|
208 |
-
|
209 |
-
</div>
|
210 |
-
</div><br/>
|
211 |
-
|
212 |
-
|
213 |
-
<!-- ============================
|
214 |
-
FORM PACKAGE OPTIONS -->
|
215 |
-
<div style="padding:5px 5px 2px 5px">
|
216 |
-
<?php include('new1.inc.form.php'); ?>
|
217 |
-
</div>
|
218 |
-
|
219 |
-
<script type="text/javascript">
|
220 |
-
jQuery(document).ready(function ($)
|
221 |
-
{
|
222 |
-
//Init: Toogle for system requirment detial links
|
223 |
-
$('.dup-sys-title a').each(function () {
|
224 |
-
$(this).attr('href', 'javascript:void(0)');
|
225 |
-
$(this).click({selector: '.dup-sys-info'}, Duplicator.Pack.ToggleSystemDetails);
|
226 |
-
$(this).prepend("<span class='ui-icon ui-icon-triangle-1-e dup-toggle' />");
|
227 |
-
});
|
228 |
-
|
229 |
-
//Init: Color code Pass/Fail/Warn items
|
230 |
-
$('.dup-sys-title div').each(function () {
|
231 |
-
$(this).addClass(($(this).text() == 'Pass') ? 'dup-sys-pass' : 'dup-sys-fail');
|
232 |
-
});
|
233 |
-
});
|
234 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/packages/main/new1.inc.form.php
CHANGED
@@ -36,6 +36,7 @@
|
|
36 |
div.dup-installer-header-2 {font-weight:bold; border-bottom:1px solid #dfdfdf; padding-bottom:2px; width:100%}
|
37 |
label.chk-labels {display:inline-block; margin-top:1px}
|
38 |
table.dup-installer-tbl {width:95%; margin-left:20px}
|
|
|
39 |
|
40 |
/*TABS*/
|
41 |
ul.add-menu-item-tabs li, ul.category-tabs li {padding:3px 30px 5px}
|
@@ -88,7 +89,7 @@ STORAGE -->
|
|
88 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/google_drive_64px.png" />
|
89 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/ftp-64.png" />
|
90 |
<?php echo sprintf(__('%1$s, %2$s, %3$s, %4$s and other storage options available in', 'duplicator'), 'Amazon', 'Dropbox', 'Google Drive', 'FTP'); ?>
|
91 |
-
<a href="
|
92 |
<i class="fa fa-lightbulb-o"
|
93 |
data-tooltip-title="<?php _e("Additional Storage:", 'duplicator'); ?>"
|
94 |
data-tooltip="<?php _e('Professional allows you to create a package and then store it at a custom location on this server or to a cloud '
|
@@ -166,7 +167,7 @@ ARCHIVE -->
|
|
166 |
<br/>
|
167 |
<span class="dup-pro-text">
|
168 |
<?php echo sprintf(__('%1$s are available in', 'duplicator'), 'Individual file filters'); ?>
|
169 |
-
<a href="
|
170 |
<i class="fa fa-lightbulb-o"
|
171 |
data-tooltip-title="<?php _e("File Filters:", 'duplicator'); ?>"
|
172 |
data-tooltip="<?php _e('File filters allows you to select individual files and add them to an exclusion list that will filter them from the package.', 'duplicator'); ?>">
|
@@ -288,8 +289,14 @@ INSTALLER -->
|
|
288 |
<i class="fa fa-bolt"></i> <?php _e('Installer', 'duplicator') ?>
|
289 |
<div class="dup-box-arrow"></div>
|
290 |
</div>
|
291 |
-
|
292 |
<div class="dup-box-panel" id="dup-pack-installer-panel" style="<?php echo $ui_css_installer ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
<div class="dup-installer-header-1"><i class="fa fa-caret-square-o-right"></i> <?php echo _e('STEP 1 - INPUTS', 'duplicator'); ?></div><br/>
|
294 |
<table class="dup-installer-tbl">
|
295 |
<tr>
|
@@ -350,17 +357,13 @@ INSTALLER -->
|
|
350 |
<td style="width:130px"><?php _e("New URL", 'duplicator') ?></td>
|
351 |
<td><input type="text" name="url-new" id="url-new" value="<?php echo $Package->Installer->OptsURLNew ?>" placeholder="http://mynewsite.com" /></td>
|
352 |
</tr>
|
353 |
-
</table>
|
354 |
-
|
355 |
-
<div class="dup-tabs-opts-help">
|
356 |
-
<?php _e("The installer can have these fields pre-filled at install time.", 'duplicator'); ?> <b><?php _e('All values are optional.', 'duplicator'); ?></b>
|
357 |
-
</div>
|
358 |
|
359 |
<div style="padding:10px 0 0 12px;">
|
360 |
<span class="dup-pro-text">
|
361 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/cpanel-48.png" style="width:16px; height:12px" />
|
362 |
<?php _e("Connect to a cPanel database with.", 'duplicator'); ?>
|
363 |
-
<a href="
|
364 |
<i class="fa fa-lightbulb-o"
|
365 |
data-tooltip-title="<?php _e("cPanel Access:", 'duplicator'); ?>"
|
366 |
data-tooltip="<?php _e('If your server supports cPanel API access then you can create new databases and select existing ones with Duplicator Professional at install time.', 'duplicator'); ?>">
|
36 |
div.dup-installer-header-2 {font-weight:bold; border-bottom:1px solid #dfdfdf; padding-bottom:2px; width:100%}
|
37 |
label.chk-labels {display:inline-block; margin-top:1px}
|
38 |
table.dup-installer-tbl {width:95%; margin-left:20px}
|
39 |
+
div.dup-installer-panel-optional {text-align: center; font-style: italic; font-size: 12px; color:#777}
|
40 |
|
41 |
/*TABS*/
|
42 |
ul.add-menu-item-tabs li, ul.category-tabs li {padding:3px 30px 5px}
|
89 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/google_drive_64px.png" />
|
90 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/ftp-64.png" />
|
91 |
<?php echo sprintf(__('%1$s, %2$s, %3$s, %4$s and other storage options available in', 'duplicator'), 'Amazon', 'Dropbox', 'Google Drive', 'FTP'); ?>
|
92 |
+
<a href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_storage&utm_campaign=duplicator_pro" target="_blank"><?php _e('Professional', 'duplicator');?></a>
|
93 |
<i class="fa fa-lightbulb-o"
|
94 |
data-tooltip-title="<?php _e("Additional Storage:", 'duplicator'); ?>"
|
95 |
data-tooltip="<?php _e('Professional allows you to create a package and then store it at a custom location on this server or to a cloud '
|
167 |
<br/>
|
168 |
<span class="dup-pro-text">
|
169 |
<?php echo sprintf(__('%1$s are available in', 'duplicator'), 'Individual file filters'); ?>
|
170 |
+
<a href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_file_filters&utm_campaign=duplicator_pro" target="_blank"><?php _e('Professional', 'duplicator');?></a>
|
171 |
<i class="fa fa-lightbulb-o"
|
172 |
data-tooltip-title="<?php _e("File Filters:", 'duplicator'); ?>"
|
173 |
data-tooltip="<?php _e('File filters allows you to select individual files and add them to an exclusion list that will filter them from the package.', 'duplicator'); ?>">
|
289 |
<i class="fa fa-bolt"></i> <?php _e('Installer', 'duplicator') ?>
|
290 |
<div class="dup-box-arrow"></div>
|
291 |
</div>
|
292 |
+
|
293 |
<div class="dup-box-panel" id="dup-pack-installer-panel" style="<?php echo $ui_css_installer ?>">
|
294 |
+
|
295 |
+
<div class="dup-installer-panel-optional">
|
296 |
+
<b><?php _e('All values in this section are', 'duplicator'); ?> <u><?php _e('optional', 'duplicator'); ?></u>.</b>
|
297 |
+
<?php _e("The installer can have these fields pre-filled at install time.", 'duplicator'); ?>
|
298 |
+
</div>
|
299 |
+
|
300 |
<div class="dup-installer-header-1"><i class="fa fa-caret-square-o-right"></i> <?php echo _e('STEP 1 - INPUTS', 'duplicator'); ?></div><br/>
|
301 |
<table class="dup-installer-tbl">
|
302 |
<tr>
|
357 |
<td style="width:130px"><?php _e("New URL", 'duplicator') ?></td>
|
358 |
<td><input type="text" name="url-new" id="url-new" value="<?php echo $Package->Installer->OptsURLNew ?>" placeholder="http://mynewsite.com" /></td>
|
359 |
</tr>
|
360 |
+
</table>
|
|
|
|
|
|
|
|
|
361 |
|
362 |
<div style="padding:10px 0 0 12px;">
|
363 |
<span class="dup-pro-text">
|
364 |
<img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/cpanel-48.png" style="width:16px; height:12px" />
|
365 |
<?php _e("Connect to a cPanel database with.", 'duplicator'); ?>
|
366 |
+
<a href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_cpanel&utm_campaign=duplicator_pro" target="_blank"><?php _e('Professional', 'duplicator');?></a>
|
367 |
<i class="fa fa-lightbulb-o"
|
368 |
data-tooltip-title="<?php _e("cPanel Access:", 'duplicator'); ?>"
|
369 |
data-tooltip="<?php _e('If your server supports cPanel API access then you can create new databases and select existing ones with Duplicator Professional at install time.', 'duplicator'); ?>">
|
views/packages/main/new2.base.php
DELETED
@@ -1,649 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
require_once (DUPLICATOR_PLUGIN_PATH . 'classes/package.php');
|
3 |
-
require_once (DUPLICATOR_PLUGIN_PATH . 'classes/utility.php');
|
4 |
-
|
5 |
-
if(empty($_POST))
|
6 |
-
{
|
7 |
-
//F5 Refresh Check
|
8 |
-
$redirect = admin_url('admin.php?page=duplicator&tab=new1');
|
9 |
-
echo "<script>window.location.href = '{$redirect}'</script>";
|
10 |
-
exit;
|
11 |
-
}
|
12 |
-
|
13 |
-
global $wp_version;
|
14 |
-
$Package = new DUP_Package();
|
15 |
-
|
16 |
-
if(isset($_POST['package-hash']))
|
17 |
-
{
|
18 |
-
// If someone is trying to pass the hasn into us that is illegal so stop it immediately.
|
19 |
-
die('Unauthorized');
|
20 |
-
}
|
21 |
-
|
22 |
-
$Package->SaveActive($_POST);
|
23 |
-
$Package = DUP_Package::GetActive();
|
24 |
-
|
25 |
-
$mysqldump_on = DUP_Settings::Get('package_mysqldump') && DUP_Database::GetMySqlDumpPath();
|
26 |
-
$mysqlcompat_on = isset($Package->Database->Compatible) && strlen($Package->Database->Compatible);
|
27 |
-
$mysqlcompat_on = ($mysqldump_on && $mysqlcompat_on) ? true : false;
|
28 |
-
$dbbuild_mode = ($mysqldump_on) ? 'mysqldump (fast)' : 'PHP (slow)';
|
29 |
-
|
30 |
-
$zip_check = DUP_Util::GetZipPath();
|
31 |
-
?>
|
32 |
-
|
33 |
-
<style>
|
34 |
-
/* ============----------
|
35 |
-
PROGRESS ARES-CHECKS */
|
36 |
-
div#dup-progress-area {text-align:center; max-width:650px; min-height:200px; margin:0px auto 0px auto; padding:0px;}
|
37 |
-
div.dup-progress-title {font-size:22px;padding:5px 0 20px 0; font-weight: bold}
|
38 |
-
div#dup-msg-success {color:#18592A; padding:5px; text-align: left}
|
39 |
-
div#dup-msg-success-subtitle {font-style: italic; margin:7px 0px}
|
40 |
-
div#dup-msg-error {color:#A62426; padding:5px; max-width: 790px;}
|
41 |
-
div#dup-msg-error-response-text { max-height:350px; overflow-y:scroll; border:1px solid silver; border-radius: 3px; padding:8px;background:#fff}
|
42 |
-
|
43 |
-
div.dup-panel {margin-bottom: 25px}
|
44 |
-
div.dup-scan-filter-status {display:inline; float: right; font-size:11px; margin-right:10px; color:#AF0000; font-style: italic}
|
45 |
-
/* SERVER-CHECKS */
|
46 |
-
div.dup-scan-title {display:inline-block; padding:1px; font-weight: bold;}
|
47 |
-
div.dup-scan-title a {display:inline-block; min-width:200px; padding:3px; }
|
48 |
-
div.dup-scan-title a:focus {outline: 1px solid #fff; box-shadow: none}
|
49 |
-
div.dup-scan-title div {display:inline-block; }
|
50 |
-
div.dup-scan-info {display:none;}
|
51 |
-
div.dup-scan-good {display:inline-block; color:green;font-weight: bold;}
|
52 |
-
div.dup-scan-warn {display:inline-block; color:#AF0000;font-weight: bold;}
|
53 |
-
span.dup-toggle {float:left; margin:0 2px 2px 0; }
|
54 |
-
/*DATABASE*/
|
55 |
-
table#dup-scan-db-details {line-height: 14px; margin:15px 0px 0px 5px; width:98%}
|
56 |
-
table#dup-scan-db-details td {padding:0px;}
|
57 |
-
table#dup-scan-db-details td:first-child {font-weight: bold; white-space: nowrap; width:90px}
|
58 |
-
div#dup-scan-db-info {margin:0px 0px 0px 10px}
|
59 |
-
div#data-db-tablelist {max-height: 300px; overflow-y: scroll}
|
60 |
-
div#data-db-tablelist div{padding:0px 0px 0px 15px;}
|
61 |
-
div#data-db-tablelist span{display:inline-block; min-width: 75px}
|
62 |
-
div#data-db-size1 {display: inline-block; float:right; font-size:11px; margin-right: 15px; font-style: italic}
|
63 |
-
/*FILES */
|
64 |
-
div#data-arc-size1 {display: inline-block; float:right; font-size:11px; margin-right: 15px; font-style: italic}
|
65 |
-
div#data-arc-names-data, div#data-arc-big-data
|
66 |
-
{word-wrap: break-word;font-size:10px; border:1px dashed silver; padding:5px; display: none}
|
67 |
-
|
68 |
-
div#dup-scan-warning-continue {display:none; text-align: center; padding: 0 0 15px 0}
|
69 |
-
div#dup-scan-warning-continue div.msg1 label{font-size:16px; color:maroon}
|
70 |
-
div#dup-scan-warning-continue div.msg2 {padding:2px}
|
71 |
-
div#dup-scan-warning-continue div.msg2 label {font-size:11px !important}
|
72 |
-
|
73 |
-
/*Footer*/
|
74 |
-
div.dup-button-footer {text-align:center; margin:0}
|
75 |
-
button.button {font-size:15px !important; height:30px !important; font-weight:bold; padding:3px 5px 5px 5px !important;}
|
76 |
-
</style>
|
77 |
-
|
78 |
-
<!-- =========================================
|
79 |
-
TOOL BAR: STEPS -->
|
80 |
-
<table id="dup-toolbar">
|
81 |
-
<tr valign="top">
|
82 |
-
<td style="white-space: nowrap">
|
83 |
-
<div id="dup-wiz">
|
84 |
-
<div id="dup-wiz-steps">
|
85 |
-
<div class="completed-step"><a><span>1</span> <?php _e('Setup', 'duplicator'); ?></a></div>
|
86 |
-
<div class="active-step"><a><span>2</span> <?php _e('Scan', 'duplicator'); ?> </a></div>
|
87 |
-
<div><a><span>3</span> <?php _e('Build', 'duplicator'); ?> </a></div>
|
88 |
-
</div>
|
89 |
-
<div id="dup-wiz-title">
|
90 |
-
<?php _e('Step 2: System Scan', 'duplicator'); ?>
|
91 |
-
</div>
|
92 |
-
</div>
|
93 |
-
</td>
|
94 |
-
<td class="dup-toolbar-btns">
|
95 |
-
<a id="dup-pro-create-new" href="?page=duplicator" class="add-new-h2"><i class="fa fa-archive"></i> <?php _e('All Packages', 'duplicator'); ?></a>
|
96 |
-
<span> <?php _e('Create New', 'duplicator'); ?></span>
|
97 |
-
</td>
|
98 |
-
</tr>
|
99 |
-
</table>
|
100 |
-
<hr style="margin-bottom:10px">
|
101 |
-
|
102 |
-
|
103 |
-
<form id="form-duplicator" method="post" action="?page=duplicator&tab=new3">
|
104 |
-
<div id="dup-progress-area">
|
105 |
-
<!-- PROGRESS BAR -->
|
106 |
-
<div id="dup-progress-bar-area">
|
107 |
-
<div class="dup-progress-title"><i class="fa fa-spinner fa-spin"></i> <?php _e('Scanning Site', 'duplicator'); ?></div>
|
108 |
-
<div id="dup-progress-bar"></div>
|
109 |
-
<b><?php _e('Please Wait...', 'duplicator'); ?></b>
|
110 |
-
</div>
|
111 |
-
|
112 |
-
<!-- SUCCESS MESSAGE -->
|
113 |
-
<div id="dup-msg-success" style="display:none">
|
114 |
-
<div style="text-align:center">
|
115 |
-
<div class="dup-hdr-success"><i class="fa fa-check-square-o fa-lg"></i> <?php _e('Scan Complete', 'duplicator'); ?></div>
|
116 |
-
<div id="dup-msg-success-subtitle">
|
117 |
-
<?php _e('Process Time:', 'duplicator'); ?> <span id="data-rpt-scantime"></span>
|
118 |
-
</div>
|
119 |
-
</div><br/>
|
120 |
-
|
121 |
-
<!-- ================================================================
|
122 |
-
META-BOX: SERVER
|
123 |
-
================================================================ -->
|
124 |
-
<div class="dup-panel">
|
125 |
-
<div class="dup-panel-title">
|
126 |
-
<i class="fa fa-hdd-o"></i> <?php _e("Server", 'duplicator'); ?>
|
127 |
-
<div style="float:right; margin:-1px 10px 0px 0px">
|
128 |
-
<small><a href="?page=duplicator-tools&tab=diagnostics" target="_blank"><?php _e('Diagnostics', 'duplicator');?></a></small>
|
129 |
-
</div>
|
130 |
-
|
131 |
-
</div>
|
132 |
-
<div class="dup-panel-panel">
|
133 |
-
<!-- ============
|
134 |
-
WEB SERVER -->
|
135 |
-
<div>
|
136 |
-
<div class='dup-scan-title'>
|
137 |
-
<a><?php _e('Web Server', 'duplicator');?></a> <div id="data-srv-web-all"></div>
|
138 |
-
</div>
|
139 |
-
<div class='dup-scan-info dup-info-box'>
|
140 |
-
<?php
|
141 |
-
$web_servers = implode(', ', $GLOBALS['DUPLICATOR_SERVER_LIST']);
|
142 |
-
echo '<span id="data-srv-web-model"></span> <b>' . __('Web Server', 'duplicator') . ":</b> '{$_SERVER['SERVER_SOFTWARE']}'";
|
143 |
-
echo '<small>';
|
144 |
-
_e("Supported web servers:", 'duplicator');
|
145 |
-
echo "{$web_servers}";
|
146 |
-
echo '</small>';
|
147 |
-
?>
|
148 |
-
</div>
|
149 |
-
</div>
|
150 |
-
<!-- ============
|
151 |
-
PHP SETTINGS -->
|
152 |
-
<div>
|
153 |
-
<div class='dup-scan-title'>
|
154 |
-
<a><?php _e('PHP Setup', 'duplicator');?></a> <div id="data-srv-php-all"></div>
|
155 |
-
</div>
|
156 |
-
<div class='dup-scan-info dup-info-box'>
|
157 |
-
<?php
|
158 |
-
//OPEN_BASEDIR
|
159 |
-
$test = ini_get("open_basedir");
|
160 |
-
echo '<span id="data-srv-php-openbase"></span> <b>' . __('Open Base Dir', 'duplicator') . ":</b> '{$test}' <br/>";
|
161 |
-
echo '<small>';
|
162 |
-
_e('Issues might occur when [open_basedir] is enabled. Work with your server admin to disable this value in the php.ini file if you’re having issues building a package.', 'duplicator');
|
163 |
-
echo " <i><a href='http://www.php.net/manual/en/ini.core.php#ini.open-basedir' target='_blank'>[" . __('details', 'duplicator') . "]</a></i><br/>";
|
164 |
-
echo '</small>';
|
165 |
-
|
166 |
-
//MAX_EXECUTION_TIME
|
167 |
-
$test = (set_time_limit(0)) ? 0 : ini_get("max_execution_time");
|
168 |
-
echo '<hr size="1" /><span id="data-srv-php-maxtime"></span> <b>' . __('Max Execution Time', 'duplicator') . ":</b> '{$test}' <br/>";
|
169 |
-
echo '<small>';
|
170 |
-
printf(__('Issues might occur for larger packages when the [max_execution_time] value in the php.ini is too low. The minimum recommended timeout is "%1$s" seconds or higher. An attempt is made to override this value if the server allows it. A value of 0 (recommended) indicates that PHP has no time limits.', 'duplicator'), DUPLICATOR_SCAN_TIMEOUT);
|
171 |
-
echo '<br/><br/>';
|
172 |
-
_e('Note: Timeouts can also be set at the web server layer, so if the PHP max timeout passes and you still see a build interrupt messages, then your web server could be killing the process. If you are limited on processing time, consider using the database or file filters to shrink the size of your overall package. However use caution as excluding the wrong resources can cause your install to not work properly.', 'duplicator');
|
173 |
-
echo " <i><a href='http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time' target='_blank'>[" . __('details', 'duplicator') . "]</a></i>";
|
174 |
-
|
175 |
-
if ($zip_check != null) {
|
176 |
-
echo '<br/><br/>';
|
177 |
-
echo '<span style="font-weight:bold">';
|
178 |
-
_e('Get faster builds with Duplicator Pro.', 'duplicator');
|
179 |
-
echo '</span>';
|
180 |
-
echo " <i><a href='http://snapcreek.com/duplicator?free-max-execution-time-warn' target='_blank'>[" . __('details', 'duplicator') . "]</a></i>";
|
181 |
-
}
|
182 |
-
|
183 |
-
echo '</small>';
|
184 |
-
|
185 |
-
//MYSQLI
|
186 |
-
echo '<hr size="1" /><span id="data-srv-php-mysqli"></span> <b>' . __('MySQLi', 'duplicator') . "</b> <br/>";
|
187 |
-
echo '<small>';
|
188 |
-
_e('Creating the package does not require the mysqli module. However the installer.php file requires that the PHP module mysqli be installed on the server it is deployed on.', 'duplicator');
|
189 |
-
echo " <i><a href='http://php.net/manual/en/mysqli.installation.php' target='_blank'>[" . __('details', 'duplicator') . "]</a></i>";
|
190 |
-
echo '</small>';
|
191 |
-
?>
|
192 |
-
</div>
|
193 |
-
</div>
|
194 |
-
<!-- ============
|
195 |
-
WORDPRESS SETTINGS -->
|
196 |
-
<div>
|
197 |
-
<div class='dup-scan-title'>
|
198 |
-
<a><?php _e('WordPress', 'duplicator');?></a> <div id="data-srv-wp-all"></div>
|
199 |
-
</div>
|
200 |
-
<div class='dup-scan-info dup-info-box'>
|
201 |
-
<?php
|
202 |
-
//VERSION CHECK
|
203 |
-
echo '<span id="data-srv-wp-version"></span> <b>' . __('WordPress Version', 'duplicator') . ":</b> '{$wp_version}' <br/>";
|
204 |
-
echo '<small>';
|
205 |
-
printf(__('It is recommended to have a version of WordPress that is greater than %1$s', 'duplicator'), DUPLICATOR_SCAN_MIN_WP);
|
206 |
-
echo '</small>';
|
207 |
-
|
208 |
-
//CORE FILES
|
209 |
-
echo '<hr size="1" /><span id="data-srv-wp-core"></span> <b>' . __('Core Files', 'duplicator') . "</b> <br/>";
|
210 |
-
echo '<small>';
|
211 |
-
_e("If the scanner is unable to locate the wp-config.php file in the root directory, then you will need to manually copy it to its new location.", 'duplicator');
|
212 |
-
echo '</small>';
|
213 |
-
|
214 |
-
//CACHE DIR
|
215 |
-
$cache_path = $cache_path = DUP_Util::SafePath(WP_CONTENT_DIR) . '/cache';
|
216 |
-
$cache_size = DUP_Util::ByteSize(DUP_Util::GetDirectorySize($cache_path));
|
217 |
-
echo '<hr size="1" /><span id="data-srv-wp-cache"></span> <b>' . __('Cache Path', 'duplicator') . ":</b> '{$cache_path}' ({$cache_size}) <br/>";
|
218 |
-
echo '<small>';
|
219 |
-
_e("Cached data will lead to issues at install time and increases your archive size. It is recommended to empty your cache directory at build time. Use caution when removing data from the cache directory. If you have a cache plugin review the documentation for how to empty it; simply removing files might cause errors on your site. The cache size minimum threshold is currently set at ", 'duplicator');
|
220 |
-
echo DUP_Util::ByteSize(DUPLICATOR_SCAN_CACHESIZE) . '.';
|
221 |
-
echo '</small>';
|
222 |
-
|
223 |
-
?>
|
224 |
-
</div>
|
225 |
-
</div>
|
226 |
-
</div><!-- end .dup-panel -->
|
227 |
-
</div><!-- end .dup-panel-panel -->
|
228 |
-
|
229 |
-
<h2 style="font-size:18px; font-weight:bold; margin:-15px 0 0 10px"><i class="fa fa-file-archive-o"></i> <?php _e('Archive', 'duplicator');?> </h2>
|
230 |
-
|
231 |
-
<!-- ================================================================
|
232 |
-
FILES
|
233 |
-
================================================================ -->
|
234 |
-
<div class="dup-panel">
|
235 |
-
<div class="dup-panel-title">
|
236 |
-
<i class="fa fa-files-o"></i>
|
237 |
-
<?php _e("Files", 'duplicator'); ?>
|
238 |
-
<div id="data-arc-size1"></div>
|
239 |
-
<div class="dup-scan-filter-status">
|
240 |
-
<?php
|
241 |
-
if ($Package->Archive->FilterOn) {
|
242 |
-
echo '<i class="fa fa-filter"></i> '; _e('Enabled', 'duplicator');
|
243 |
-
}
|
244 |
-
?>
|
245 |
-
</div>
|
246 |
-
</div>
|
247 |
-
<div class="dup-panel-panel">
|
248 |
-
|
249 |
-
<!-- ============
|
250 |
-
TOTAL SIZE -->
|
251 |
-
<div>
|
252 |
-
<div class='dup-scan-title'>
|
253 |
-
<a><?php _e('Total Size', 'duplicator');?></a> <div id="data-arc-status-size"></div>
|
254 |
-
</div>
|
255 |
-
<div class='dup-scan-info dup-info-box'>
|
256 |
-
<b><?php _e('Size', 'duplicator');?>:</b> <span id="data-arc-size2"></span> |
|
257 |
-
<b><?php _e('File Count', 'duplicator');?>:</b> <span id="data-arc-files"></span> |
|
258 |
-
<b><?php _e('Directory Count', 'duplicator');?>:</b> <span id="data-arc-dirs"></span>
|
259 |
-
<small>
|
260 |
-
<?php
|
261 |
-
printf(__('Total size represents all files minus any filters that have been setup. The current thresholds that triggers a warning is %1$s for the total size. Some budget hosts limit the amount of time a PHP/Web request process can run. When working with larger sites this can cause timeout issues. Consider using a file filter in step 1 to shrink and filter the overall size of your package.', 'duplicator'),
|
262 |
-
DUP_Util::ByteSize(DUPLICATOR_SCAN_SITE),
|
263 |
-
DUP_Util::ByteSize(DUPLICATOR_SCAN_WARNFILESIZE));
|
264 |
-
|
265 |
-
if ($zip_check != null) {
|
266 |
-
echo '<br/><br/>';
|
267 |
-
echo '<span style="font-weight:bold">';
|
268 |
-
_e('Package support up to 2GB available in Duplicator Pro.', 'duplicator');
|
269 |
-
echo '</span>';
|
270 |
-
echo " <i><a href='http://snapcreek.com/duplicator?free-size-warn' target='_blank'>[" . __('details', 'duplicator') . "]</a></i>";
|
271 |
-
}
|
272 |
-
|
273 |
-
?>
|
274 |
-
</small>
|
275 |
-
</div>
|
276 |
-
</div>
|
277 |
-
|
278 |
-
<!-- ============
|
279 |
-
FILE NAME LENGTHS -->
|
280 |
-
<div>
|
281 |
-
<div class='dup-scan-title'>
|
282 |
-
<a><?php _e('Name Checks', 'duplicator');?></a> <div id="data-arc-status-names"></div>
|
283 |
-
</div>
|
284 |
-
<div class='dup-scan-info dup-info-box'>
|
285 |
-
<small>
|
286 |
-
<?php
|
287 |
-
_e('File or directory names may cause issues when working across different environments and servers. Names that are over 250 characters, contain special characters (such as * ? > < : / \ |) or are unicode might cause issues in a remote enviroment. It is recommended to remove or filter these files before building the archive if you have issues at install time.', 'duplicator');
|
288 |
-
?>
|
289 |
-
</small><br/>
|
290 |
-
<a href="javascript:void(0)" onclick="jQuery('#data-arc-names-data').toggle()">[<?php _e('Show Paths', 'duplicator');?>]</a>
|
291 |
-
<div id="data-arc-names-data"></div>
|
292 |
-
</div>
|
293 |
-
</div>
|
294 |
-
|
295 |
-
<!-- ============
|
296 |
-
LARGE FILES -->
|
297 |
-
<div>
|
298 |
-
<div class='dup-scan-title'>
|
299 |
-
<a><?php _e('Large Files', 'duplicator');?></a> <div id="data-arc-status-big"></div>
|
300 |
-
</div>
|
301 |
-
<div class='dup-scan-info dup-info-box'>
|
302 |
-
<small>
|
303 |
-
<?php
|
304 |
-
printf(__('Large files such as movies or other backuped data can cause issues with timeouts. The current check for large files is %1$s per file. If your having issues creating a package consider excluding these files with the files filter and manually moving them to your new location.', 'duplicator'),
|
305 |
-
DUP_Util::ByteSize(DUPLICATOR_SCAN_WARNFILESIZE));
|
306 |
-
?>
|
307 |
-
</small><br/>
|
308 |
-
<a href="javascript:void(0)" onclick="jQuery('#data-arc-big-data').toggle()">[<?php _e('Show Paths', 'duplicator');?>]</a>
|
309 |
-
<div id="data-arc-big-data"></div>
|
310 |
-
</div>
|
311 |
-
</div>
|
312 |
-
|
313 |
-
<!-- ============
|
314 |
-
VIEW FILTERS -->
|
315 |
-
<?php if ($Package->Archive->FilterOn) : ?>
|
316 |
-
<div>
|
317 |
-
<div class='dup-scan-title'>
|
318 |
-
<a style='font-weight: normal'><?php _e('Archive Details', 'duplicator');?></a>
|
319 |
-
</div>
|
320 |
-
<div class='dup-scan-info dup-info-box'>
|
321 |
-
<b>[<?php _e('Root Directory', 'duplicator');?>]</b><br/>
|
322 |
-
<?php echo DUPLICATOR_WPROOTPATH;?>
|
323 |
-
<br/><br/>
|
324 |
-
|
325 |
-
<b>[<?php _e('Excluded Directories', 'duplicator');?>]</b><br/>
|
326 |
-
<?php
|
327 |
-
if (strlen( $Package->Archive->FilterDirs)) {
|
328 |
-
echo str_replace(";", "<br/>", $Package->Archive->FilterDirs);
|
329 |
-
} else {
|
330 |
-
_e('No directory filters have been set.', 'duplicator');
|
331 |
-
}
|
332 |
-
?>
|
333 |
-
<br/>
|
334 |
-
|
335 |
-
<b>[<?php _e('Excluded File Extensions', 'duplicator');?>]</b><br/>
|
336 |
-
<?php
|
337 |
-
if (strlen( $Package->Archive->FilterExts)) {
|
338 |
-
echo $Package->Archive->FilterExts;
|
339 |
-
} else {
|
340 |
-
_e('No file extension filters have been set.', 'duplicator');
|
341 |
-
}
|
342 |
-
?>
|
343 |
-
<small>
|
344 |
-
<?php
|
345 |
-
_e('The root directory is where Duplicator starts archiving files. The excluded sections will be skipped during the archive process. ', 'duplicator');
|
346 |
-
_e('All results are stored in a json file. ', 'duplicator');
|
347 |
-
?>
|
348 |
-
<a href="<?php echo DUPLICATOR_SITE_URL ?>/wp-admin/admin-ajax.php?action=duplicator_package_scan" target="dup_report"><?php _e('[view json report]', 'duplicator');?></a>
|
349 |
-
</small><br/>
|
350 |
-
</div>
|
351 |
-
</div>
|
352 |
-
<?php endif; ?>
|
353 |
-
</div><!-- end .dup-panel -->
|
354 |
-
<br/>
|
355 |
-
|
356 |
-
<!-- ================================================================
|
357 |
-
DATABASE
|
358 |
-
================================================================ -->
|
359 |
-
<div class="dup-panel-title">
|
360 |
-
<i class="fa fa-table"></i>
|
361 |
-
<?php _e("Database", 'duplicator'); ?>
|
362 |
-
<div id="data-db-size1"></div>
|
363 |
-
<div class="dup-scan-filter-status">
|
364 |
-
<?php
|
365 |
-
if ($Package->Database->FilterOn) {
|
366 |
-
echo '<i class="fa fa-filter"></i> '; _e('Enabled', 'duplicator');
|
367 |
-
}
|
368 |
-
?>
|
369 |
-
</div>
|
370 |
-
</div>
|
371 |
-
<div class="dup-panel-panel" id="dup-scan-db">
|
372 |
-
|
373 |
-
<!-- ============
|
374 |
-
TOTAL SIZE -->
|
375 |
-
<div>
|
376 |
-
<div class='dup-scan-title'>
|
377 |
-
<a><?php _e('Total Size', 'duplicator');?></a>
|
378 |
-
<div id="data-db-status-size1"></div>
|
379 |
-
</div>
|
380 |
-
<div class='dup-scan-info dup-info-box'>
|
381 |
-
<b><?php _e('Tables', 'duplicator');?>:</b> <span id="data-db-tablecount"></span> |
|
382 |
-
<b><?php _e('Records', 'duplicator');?>:</b> <span id="data-db-rows"></span> |
|
383 |
-
<b><?php _e('Size', 'duplicator');?>:</b> <span id="data-db-size2"></span> <br/><br/>
|
384 |
-
<?php
|
385 |
-
$lnk = '<a href="maint/repair.php" target="_blank">' . __('repair and optimization', 'duplicator') . '</a>';
|
386 |
-
printf(__('Total size and row count for all database tables are approximate values. The thresholds that trigger warnings are %1$s and %2$s records. Large databases take time to process and can cause issues with server timeout and memory settings. Running a %3$s on your database can also help improve the overall size and performance. If your server supports shell_exec and mysqldump you can try to enable this option from the settings menu.', 'duplicator'),
|
387 |
-
DUP_Util::ByteSize(DUPLICATOR_SCAN_DBSIZE),
|
388 |
-
number_format(DUPLICATOR_SCAN_DBROWS),
|
389 |
-
$lnk);
|
390 |
-
?>
|
391 |
-
</div>
|
392 |
-
</div>
|
393 |
-
|
394 |
-
<!-- ============
|
395 |
-
TABLE DETAILS -->
|
396 |
-
<div>
|
397 |
-
<div class='dup-scan-title'>
|
398 |
-
<a><?php _e('Table Details', 'duplicator');?></a>
|
399 |
-
<div id="data-db-status-size2"></div>
|
400 |
-
</div>
|
401 |
-
<div class='dup-scan-info dup-info-box'>
|
402 |
-
<div id="dup-scan-db-info">
|
403 |
-
<div id="data-db-tablelist"></div>
|
404 |
-
</div>
|
405 |
-
</div>
|
406 |
-
</div>
|
407 |
-
|
408 |
-
<table id="dup-scan-db-details">
|
409 |
-
<tr><td><b><?php _e('Name:', 'duplicator');?></b></td><td><?php echo DB_NAME ;?> </td></tr>
|
410 |
-
<tr><td><b><?php _e('Host:', 'duplicator');?></b></td><td><?php echo DB_HOST ;?> </td></tr>
|
411 |
-
<tr>
|
412 |
-
<td style="vertical-align: top"><b><?php _e('Build Mode:', 'duplicator');?></b></td>
|
413 |
-
<td style="line-height:18px">
|
414 |
-
<a href="?page=duplicator-settings" target="_blank"><?php echo $dbbuild_mode ;?></a>
|
415 |
-
<?php if ($mysqlcompat_on) :?>
|
416 |
-
<br/>
|
417 |
-
<small style="font-style:italic; color:maroon">
|
418 |
-
<i class="fa fa-exclamation-circle"></i> <?php _e('MySQL Compatibility Mode Enabled', 'duplicator'); ?>
|
419 |
-
<a href="https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_compatible" target="_blank">[<?php _e('details', 'duplicator'); ?>]</a>
|
420 |
-
</small>
|
421 |
-
<?php endif;?>
|
422 |
-
</td>
|
423 |
-
</tr>
|
424 |
-
</table>
|
425 |
-
|
426 |
-
</div><!-- end .dup-panel -->
|
427 |
-
</div><!-- end .dup-panel-panel -->
|
428 |
-
|
429 |
-
<!-- WARNING CONTINUE -->
|
430 |
-
<div id="dup-scan-warning-continue">
|
431 |
-
<div class="msg1">
|
432 |
-
<input type="checkbox" id="dup-scan-warning-continue-checkbox" onclick="Duplicator.Pack.WarningContinue(this)"/>
|
433 |
-
<label for="dup-scan-warning-continue-checkbox"><?php _e('A warning status was detected, are you sure you want to continue?', 'duplicator');?></label>
|
434 |
-
</div>
|
435 |
-
<div class="msg2">
|
436 |
-
<label for="dup-scan-warning-continue-checkbox">
|
437 |
-
<?php
|
438 |
-
_e("Scan checks are not required to pass, however they could cause issues on some systems.", 'duplicator');
|
439 |
-
echo '<br/>';
|
440 |
-
_e("Please review the details for each warning by clicking on the detail link.", 'duplicator');
|
441 |
-
?>
|
442 |
-
</label>
|
443 |
-
</div>
|
444 |
-
</div>
|
445 |
-
|
446 |
-
</div>
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
<!-- ERROR MESSAGE -->
|
451 |
-
<div id="dup-msg-error" style="display:none">
|
452 |
-
<div class="dup-hdr-error"><i class="fa fa-exclamation-circle"></i> <?php _e('Scan Error', 'duplicator'); ?></div>
|
453 |
-
<i><?php _e('Please try again!', 'duplicator'); ?></i><br/>
|
454 |
-
<div style="text-align:left">
|
455 |
-
<b><?php _e("Server Status:", 'duplicator'); ?></b>
|
456 |
-
<div id="dup-msg-error-response-status" style="display:inline-block"></div><br/>
|
457 |
-
|
458 |
-
<b><?php _e("Error Message:", 'duplicator'); ?></b>
|
459 |
-
<div id="dup-msg-error-response-text"></div>
|
460 |
-
</div>
|
461 |
-
</div>
|
462 |
-
</div> <!-- end #dup-progress-area -->
|
463 |
-
|
464 |
-
<div class="dup-button-footer" style="display:none">
|
465 |
-
<input type="button" value="◄ <?php _e("Back", 'duplicator') ?>" onclick="window.location.assign('?page=duplicator&tab=new1')" class="button button-large" />
|
466 |
-
<input type="button" value="<?php _e("Rescan", 'duplicator') ?>" onclick="Duplicator.Pack.Rescan()" class="button button-large" />
|
467 |
-
<input type="submit" value="<?php _e("Build", 'duplicator') ?> ►" class="button button-primary button-large" id="dup-build-button" />
|
468 |
-
<!-- Used for iMacros testing do not remove -->
|
469 |
-
<div id="dup-automation-imacros"></div>
|
470 |
-
</div>
|
471 |
-
</form>
|
472 |
-
|
473 |
-
<script type="text/javascript">
|
474 |
-
jQuery(document).ready(function($) {
|
475 |
-
|
476 |
-
/* Performs Ajax post to create check system */
|
477 |
-
Duplicator.Pack.Scan = function() {
|
478 |
-
var data = {action : 'duplicator_package_scan'}
|
479 |
-
|
480 |
-
$.ajax({
|
481 |
-
type: "POST",
|
482 |
-
url: ajaxurl,
|
483 |
-
dataType: "json",
|
484 |
-
timeout: 10000000,
|
485 |
-
data: data,
|
486 |
-
complete: function() {$('.dup-button-footer').show()},
|
487 |
-
success: function(data) {
|
488 |
-
Duplicator.Pack.LoadScanData(data)
|
489 |
-
//Imacros testing required
|
490 |
-
$('#dup-automation-imacros').html('<input type="hidden" id="dup-finished" value="done" />');
|
491 |
-
},
|
492 |
-
error: function(data) {
|
493 |
-
$('#dup-progress-bar-area').hide();
|
494 |
-
var status = data.status + ' -' + data.statusText;
|
495 |
-
$('#dup-msg-error-response-status').html(status)
|
496 |
-
$('#dup-msg-error-response-text').html(data.responseText);
|
497 |
-
$('#dup-msg-error').show(200);
|
498 |
-
console.log(data);
|
499 |
-
}
|
500 |
-
});
|
501 |
-
}
|
502 |
-
|
503 |
-
Duplicator.Pack.Rescan = function() {
|
504 |
-
$('#dup-msg-success,#dup-msg-error,.dup-button-footer').hide();
|
505 |
-
$('#dup-progress-bar-area').show();
|
506 |
-
Duplicator.Pack.Scan();
|
507 |
-
}
|
508 |
-
|
509 |
-
Duplicator.Pack.WarningContinue = function(checkbox) {
|
510 |
-
($(checkbox).is(':checked'))
|
511 |
-
? $('#dup-build-button').prop('disabled',false).addClass('button-primary')
|
512 |
-
: $('#dup-build-button').prop('disabled',true).removeClass('button-primary');
|
513 |
-
|
514 |
-
}
|
515 |
-
|
516 |
-
Duplicator.Pack.LoadScanStatus = function(status) {
|
517 |
-
var result;
|
518 |
-
switch (status) {
|
519 |
-
case false : result = '<div class="dup-scan-warn"><i class="fa fa-exclamation-triangle"></i></div>'; break;
|
520 |
-
case 'Warn' : result = '<div class="dup-scan-warn"><i class="fa fa-exclamation-triangle"></i> Warn</div>'; break;
|
521 |
-
case true : result = '<div class="dup-scan-good"><i class="fa fa-check"></i></div>'; break;
|
522 |
-
case 'Good' : result = '<div class="dup-scan-good"><i class="fa fa-check"></i> Good</div>'; break;
|
523 |
-
default :
|
524 |
-
result = 'unable to read';
|
525 |
-
}
|
526 |
-
return result;
|
527 |
-
}
|
528 |
-
|
529 |
-
/* Load Scan Data */
|
530 |
-
Duplicator.Pack.LoadScanData = function(data) {
|
531 |
-
|
532 |
-
var errMsg = "unable to read";
|
533 |
-
$('#dup-progress-bar-area').hide();
|
534 |
-
|
535 |
-
//****************
|
536 |
-
//REPORT
|
537 |
-
var base = $('#data-rpt-scanfile').attr('href');
|
538 |
-
$('#data-rpt-scanfile').attr('href', base + '&scanfile=' + data.RPT.ScanFile);
|
539 |
-
$('#data-rpt-scantime').text(data.RPT.ScanTime || 0);
|
540 |
-
|
541 |
-
|
542 |
-
//****************
|
543 |
-
//SERVER
|
544 |
-
$('#data-srv-web-model').html(Duplicator.Pack.LoadScanStatus(data.SRV.WEB.model));
|
545 |
-
$('#data-srv-web-all').html(Duplicator.Pack.LoadScanStatus(data.SRV.WEB.ALL));
|
546 |
-
|
547 |
-
$('#data-srv-php-openbase').html(Duplicator.Pack.LoadScanStatus(data.SRV.PHP.openbase));
|
548 |
-
$('#data-srv-php-maxtime').html(Duplicator.Pack.LoadScanStatus(data.SRV.PHP.maxtime));
|
549 |
-
$('#data-srv-php-mysqli').html(Duplicator.Pack.LoadScanStatus(data.SRV.PHP.mysqli));
|
550 |
-
$('#data-srv-php-openssl').html(Duplicator.Pack.LoadScanStatus(data.SRV.PHP.openssl));
|
551 |
-
$('#data-srv-php-all').html(Duplicator.Pack.LoadScanStatus(data.SRV.PHP.ALL));
|
552 |
-
|
553 |
-
$('#data-srv-wp-version').html(Duplicator.Pack.LoadScanStatus(data.SRV.WP.version));
|
554 |
-
$('#data-srv-wp-core').html(Duplicator.Pack.LoadScanStatus(data.SRV.WP.core));
|
555 |
-
$('#data-srv-wp-cache').html(Duplicator.Pack.LoadScanStatus(data.SRV.WP.cache));
|
556 |
-
$('#data-srv-wp-all').html(Duplicator.Pack.LoadScanStatus(data.SRV.WP.ALL));
|
557 |
-
|
558 |
-
//****************
|
559 |
-
//DATABASE
|
560 |
-
var html = "";
|
561 |
-
if (data.DB.Status.Success) {
|
562 |
-
$('#data-db-status-size1').html(Duplicator.Pack.LoadScanStatus(data.DB.Status.Size));
|
563 |
-
$('#data-db-status-size2').html(Duplicator.Pack.LoadScanStatus(data.DB.Status.Size));
|
564 |
-
$('#data-db-size1').text(data.DB.Size || errMsg);
|
565 |
-
$('#data-db-size2').text(data.DB.Size || errMsg);
|
566 |
-
$('#data-db-rows').text(data.DB.Rows || errMsg);
|
567 |
-
$('#data-db-tablecount').text(data.DB.TableCount || errMsg);
|
568 |
-
//Table Details
|
569 |
-
if (data.DB.TableList == undefined || data.DB.TableList.length == 0) {
|
570 |
-
html = '<?php _e("Unable to report on any tables", 'duplicator') ?>';
|
571 |
-
} else {
|
572 |
-
$.each(data.DB.TableList, function(i) {
|
573 |
-
html += '<b>' + i + '</b><br/>';
|
574 |
-
$.each(data.DB.TableList[i], function(key,val) {html += '<div><span>' + key + ':</span>' + val + '</div>'; })
|
575 |
-
});
|
576 |
-
}
|
577 |
-
$('#data-db-tablelist').append(html);
|
578 |
-
} else {
|
579 |
-
html = '<?php _e("Unable to report on database stats", 'duplicator') ?>';
|
580 |
-
$('#dup-scan-db').html(html);
|
581 |
-
}
|
582 |
-
|
583 |
-
//****************
|
584 |
-
//ARCHIVE
|
585 |
-
$('#data-arc-status-size').html(Duplicator.Pack.LoadScanStatus(data.ARC.Status.Size));
|
586 |
-
$('#data-arc-status-names').html(Duplicator.Pack.LoadScanStatus(data.ARC.Status.Names));
|
587 |
-
$('#data-arc-status-big').html(Duplicator.Pack.LoadScanStatus(data.ARC.Status.Big));
|
588 |
-
$('#data-arc-size1').text(data.ARC.Size || errMsg);
|
589 |
-
$('#data-arc-size2').text(data.ARC.Size || errMsg);
|
590 |
-
$('#data-arc-files').text(data.ARC.FileCount || errMsg);
|
591 |
-
$('#data-arc-dirs').text(data.ARC.DirCount || errMsg);
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
//Name Checks
|
596 |
-
html = '';
|
597 |
-
//Dirs
|
598 |
-
if (data.ARC.FilterInfo.Dirs.Warning !== undefined && data.ARC.FilterInfo.Dirs.Warning.length > 0) {
|
599 |
-
$.each(data.ARC.FilterInfo.Dirs.Warning, function (key, val) {
|
600 |
-
html += '<?php _e("DIR", 'duplicator') ?> ' + key + ':<br/>[' + val + ']<br/>';
|
601 |
-
});
|
602 |
-
}
|
603 |
-
//Files
|
604 |
-
if (data.ARC.FilterInfo.Files.Warning !== undefined && data.ARC.FilterInfo.Files.Warning.length > 0) {
|
605 |
-
$.each(data.ARC.FilterInfo.Files.Warning, function (key, val) {
|
606 |
-
html += '<?php _e("FILE", 'duplicator') ?> ' + key + ':<br/>[' + val + ']<br/>';
|
607 |
-
});
|
608 |
-
}
|
609 |
-
html = (html.length == 0) ? '<?php _e("No name warning issues found.", 'duplicator') ?>' : html;
|
610 |
-
|
611 |
-
|
612 |
-
$('#data-arc-names-data').html(html);
|
613 |
-
|
614 |
-
//Large Files
|
615 |
-
html = '<?php _e("No large files found.", 'duplicator') ?>';
|
616 |
-
if (data.ARC.FilterInfo.Files.Size !== undefined && data.ARC.FilterInfo.Files.Size.length > 0) {
|
617 |
-
html = '';
|
618 |
-
$.each(data.ARC.FilterInfo.Files.Size, function (key, val) {
|
619 |
-
html += '<?php _e("FILE", 'duplicator') ?> ' + key + ':<br/>' + val + '<br/>';
|
620 |
-
});
|
621 |
-
}
|
622 |
-
$('#data-arc-big-data').html(html);
|
623 |
-
$('#dup-msg-success').show();
|
624 |
-
|
625 |
-
//Waring Check
|
626 |
-
var warnCount = data.RPT.Warnings || 0;
|
627 |
-
if (warnCount > 0) {
|
628 |
-
$('#dup-scan-warning-continue').show();
|
629 |
-
$('#dup-build-button').prop("disabled",true).removeClass('button-primary');
|
630 |
-
} else {
|
631 |
-
$('#dup-scan-warning-continue').hide();
|
632 |
-
$('#dup-build-button').prop("disabled",false).addClass('button-primary');
|
633 |
-
}
|
634 |
-
|
635 |
-
}
|
636 |
-
|
637 |
-
//Page Init:
|
638 |
-
Duplicator.UI.AnimateProgressBar('dup-progress-bar');
|
639 |
-
Duplicator.Pack.Scan();
|
640 |
-
|
641 |
-
//Init: Toogle for system requirment detial links
|
642 |
-
$('.dup-scan-title a').each(function() {
|
643 |
-
$(this).attr('href', 'javascript:void(0)');
|
644 |
-
$(this).click({selector : '.dup-scan-info'}, Duplicator.Pack.ToggleSystemDetails);
|
645 |
-
$(this).prepend("<span class='ui-icon ui-icon-triangle-1-e dup-toggle' />");
|
646 |
-
});
|
647 |
-
|
648 |
-
});
|
649 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/packages/main/new2.scan.php
CHANGED
@@ -34,11 +34,12 @@
|
|
34 |
/* ============----------
|
35 |
PROGRESS ARES-CHECKS */
|
36 |
div#dup-progress-area {text-align:center; max-width:650px; min-height:200px; margin:0px auto 0px auto; padding:0px;}
|
37 |
-
div.dup-progress-title {font-size:22px;padding:5px 0 20px 0; font-weight: bold}
|
38 |
div#dup-msg-success {color:#18592A; padding:5px; text-align: left}
|
39 |
div#dup-msg-success-subtitle {font-style: italic; margin:7px 0px}
|
40 |
div#dup-msg-error {color:#A62426; padding:5px; max-width: 790px;}
|
41 |
-
div#dup-msg-error-response-text { max-height:
|
|
|
42 |
|
43 |
div.dup-panel {margin-bottom: 25px}
|
44 |
div.dup-scan-filter-status {display:inline; float: right; font-size:11px; margin-right:10px; color:#AF0000; font-style: italic}
|
@@ -176,7 +177,7 @@ TOOL BAR: STEPS -->
|
|
176 |
echo '<span style="font-weight:bold">';
|
177 |
_e('Get faster builds with Duplicator Pro.', 'duplicator');
|
178 |
echo '</span>';
|
179 |
-
echo " <i><a href='
|
180 |
}
|
181 |
|
182 |
echo '</small>';
|
@@ -266,7 +267,7 @@ TOOL BAR: STEPS -->
|
|
266 |
echo '<span style="font-weight:bold">';
|
267 |
_e('Package support up to 2GB available in Duplicator Pro.', 'duplicator');
|
268 |
echo '</span>';
|
269 |
-
echo " <i><a href='
|
270 |
}
|
271 |
|
272 |
?>
|
@@ -427,7 +428,7 @@ TOOL BAR: STEPS -->
|
|
427 |
_e('2. Remove stale date from tables such as logging, statistical or other non-critical data.', 'duplicator');
|
428 |
echo '<br/><br/>';
|
429 |
$lnk = '<a href="http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_lower_case_table_names" target="_blank">' . __('lower_case_table_names', 'duplicator') . '</a>';
|
430 |
-
printf(__('3. For table name case sensitivity issues either rename the table with lower case characters or be
|
431 |
echo '<br/><br/>';
|
432 |
|
433 |
echo '<b>' . __('Tables:', 'duplicator') . '</b><br/>';
|
@@ -487,7 +488,7 @@ TOOL BAR: STEPS -->
|
|
487 |
<div id="dup-msg-error" style="display:none">
|
488 |
<div class="dup-hdr-error"><i class="fa fa-exclamation-circle"></i> <?php _e('Scan Error', 'duplicator'); ?></div>
|
489 |
<i><?php _e('Please try again!', 'duplicator'); ?></i><br/>
|
490 |
-
<div
|
491 |
<b><?php _e("Server Status:", 'duplicator'); ?></b>
|
492 |
<div id="dup-msg-error-response-status" style="display:inline-block"></div><br/>
|
493 |
|
@@ -508,9 +509,9 @@ TOOL BAR: STEPS -->
|
|
508 |
jQuery(document).ready(function($) {
|
509 |
|
510 |
/* Performs Ajax post to create check system */
|
511 |
-
Duplicator.Pack.Scan = function()
|
|
|
512 |
var data = {action : 'duplicator_package_scan'}
|
513 |
-
|
514 |
$.ajax({
|
515 |
type: "POST",
|
516 |
url: ajaxurl,
|
@@ -534,20 +535,22 @@ jQuery(document).ready(function($) {
|
|
534 |
});
|
535 |
}
|
536 |
|
537 |
-
Duplicator.Pack.Rescan = function()
|
|
|
538 |
$('#dup-msg-success,#dup-msg-error,.dup-button-footer').hide();
|
539 |
$('#dup-progress-bar-area').show();
|
540 |
Duplicator.Pack.Scan();
|
541 |
}
|
542 |
|
543 |
-
Duplicator.Pack.WarningContinue = function(checkbox)
|
|
|
544 |
($(checkbox).is(':checked'))
|
545 |
? $('#dup-build-button').prop('disabled',false).addClass('button-primary')
|
546 |
: $('#dup-build-button').prop('disabled',true).removeClass('button-primary');
|
547 |
-
|
548 |
}
|
549 |
|
550 |
-
Duplicator.Pack.LoadScanStatus = function(status)
|
|
|
551 |
var result;
|
552 |
switch (status) {
|
553 |
case false : result = '<div class="dup-scan-warn"><i class="fa fa-exclamation-triangle"></i></div>'; break;
|
@@ -561,18 +564,39 @@ jQuery(document).ready(function($) {
|
|
561 |
}
|
562 |
|
563 |
/* Load Scan Data */
|
564 |
-
Duplicator.Pack.LoadScanData = function(data)
|
565 |
-
|
566 |
var errMsg = "unable to read";
|
567 |
$('#dup-progress-bar-area').hide();
|
568 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
569 |
//****************
|
570 |
//REPORT
|
571 |
var base = $('#data-rpt-scanfile').attr('href');
|
572 |
$('#data-rpt-scanfile').attr('href', base + '&scanfile=' + data.RPT.ScanFile);
|
573 |
$('#data-rpt-scantime').text(data.RPT.ScanTime || 0);
|
574 |
|
575 |
-
|
576 |
//****************
|
577 |
//SERVER
|
578 |
$('#data-srv-web-model').html(Duplicator.Pack.LoadScanStatus(data.SRV.WEB.model));
|
@@ -636,8 +660,6 @@ jQuery(document).ready(function($) {
|
|
636 |
$('#data-arc-files').text(data.ARC.FileCount || errMsg);
|
637 |
$('#data-arc-dirs').text(data.ARC.DirCount || errMsg);
|
638 |
|
639 |
-
|
640 |
-
|
641 |
//Name Checks
|
642 |
html = '';
|
643 |
//Dirs
|
@@ -685,7 +707,8 @@ jQuery(document).ready(function($) {
|
|
685 |
Duplicator.Pack.Scan();
|
686 |
|
687 |
//Init: Toogle for system requirment detial links
|
688 |
-
$('.dup-scan-title a').each(function()
|
|
|
689 |
$(this).attr('href', 'javascript:void(0)');
|
690 |
$(this).click({selector : '.dup-scan-info'}, Duplicator.Pack.ToggleSystemDetails);
|
691 |
$(this).prepend("<span class='ui-icon ui-icon-triangle-1-e dup-toggle' />");
|
34 |
/* ============----------
|
35 |
PROGRESS ARES-CHECKS */
|
36 |
div#dup-progress-area {text-align:center; max-width:650px; min-height:200px; margin:0px auto 0px auto; padding:0px;}
|
37 |
+
div.dup-progress-title {font-size:22px; padding:5px 0 20px 0; font-weight: bold}
|
38 |
div#dup-msg-success {color:#18592A; padding:5px; text-align: left}
|
39 |
div#dup-msg-success-subtitle {font-style: italic; margin:7px 0px}
|
40 |
div#dup-msg-error {color:#A62426; padding:5px; max-width: 790px;}
|
41 |
+
div#dup-msg-error-response-text { max-height:500px; overflow-y:scroll; border:1px solid silver; border-radius:3px; padding:10px;background:#fff}
|
42 |
+
div.dup-hdr-error-details {text-align: left; margin:20px 0}
|
43 |
|
44 |
div.dup-panel {margin-bottom: 25px}
|
45 |
div.dup-scan-filter-status {display:inline; float: right; font-size:11px; margin-right:10px; color:#AF0000; font-style: italic}
|
177 |
echo '<span style="font-weight:bold">';
|
178 |
_e('Get faster builds with Duplicator Pro.', 'duplicator');
|
179 |
echo '</span>';
|
180 |
+
echo " <i><a href='https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_max_execution_time_warn&utm_campaign=duplicator_pro' target='_blank'>[" . __('details', 'duplicator') . "]</a></i>";
|
181 |
}
|
182 |
|
183 |
echo '</small>';
|
267 |
echo '<span style="font-weight:bold">';
|
268 |
_e('Package support up to 2GB available in Duplicator Pro.', 'duplicator');
|
269 |
echo '</span>';
|
270 |
+
echo " <i><a href='https://snapcreek.com/duplicator/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=free_size_warn&utm_campaign=duplicator_pro' target='_blank'>[" . __('details', 'duplicator') . "]</a></i>";
|
271 |
}
|
272 |
|
273 |
?>
|
428 |
_e('2. Remove stale date from tables such as logging, statistical or other non-critical data.', 'duplicator');
|
429 |
echo '<br/><br/>';
|
430 |
$lnk = '<a href="http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_lower_case_table_names" target="_blank">' . __('lower_case_table_names', 'duplicator') . '</a>';
|
431 |
+
printf(__('3. For table name case sensitivity issues either rename the table with lower case characters or be prepared to work with the %1$s system variable setting.', 'duplicator'), $lnk);
|
432 |
echo '<br/><br/>';
|
433 |
|
434 |
echo '<b>' . __('Tables:', 'duplicator') . '</b><br/>';
|
488 |
<div id="dup-msg-error" style="display:none">
|
489 |
<div class="dup-hdr-error"><i class="fa fa-exclamation-circle"></i> <?php _e('Scan Error', 'duplicator'); ?></div>
|
490 |
<i><?php _e('Please try again!', 'duplicator'); ?></i><br/>
|
491 |
+
<div class="dup-hdr-error-details">
|
492 |
<b><?php _e("Server Status:", 'duplicator'); ?></b>
|
493 |
<div id="dup-msg-error-response-status" style="display:inline-block"></div><br/>
|
494 |
|
509 |
jQuery(document).ready(function($) {
|
510 |
|
511 |
/* Performs Ajax post to create check system */
|
512 |
+
Duplicator.Pack.Scan = function()
|
513 |
+
{
|
514 |
var data = {action : 'duplicator_package_scan'}
|
|
|
515 |
$.ajax({
|
516 |
type: "POST",
|
517 |
url: ajaxurl,
|
535 |
});
|
536 |
}
|
537 |
|
538 |
+
Duplicator.Pack.Rescan = function()
|
539 |
+
{
|
540 |
$('#dup-msg-success,#dup-msg-error,.dup-button-footer').hide();
|
541 |
$('#dup-progress-bar-area').show();
|
542 |
Duplicator.Pack.Scan();
|
543 |
}
|
544 |
|
545 |
+
Duplicator.Pack.WarningContinue = function(checkbox)
|
546 |
+
{
|
547 |
($(checkbox).is(':checked'))
|
548 |
? $('#dup-build-button').prop('disabled',false).addClass('button-primary')
|
549 |
: $('#dup-build-button').prop('disabled',true).removeClass('button-primary');
|
|
|
550 |
}
|
551 |
|
552 |
+
Duplicator.Pack.LoadScanStatus = function(status)
|
553 |
+
{
|
554 |
var result;
|
555 |
switch (status) {
|
556 |
case false : result = '<div class="dup-scan-warn"><i class="fa fa-exclamation-triangle"></i></div>'; break;
|
564 |
}
|
565 |
|
566 |
/* Load Scan Data */
|
567 |
+
Duplicator.Pack.LoadScanData = function(data)
|
568 |
+
{
|
569 |
var errMsg = "unable to read";
|
570 |
$('#dup-progress-bar-area').hide();
|
571 |
|
572 |
+
//****************
|
573 |
+
//ERROR: Data object is corrupt or empty return error
|
574 |
+
if (data == undefined || data.RPT == undefined)
|
575 |
+
{
|
576 |
+
var html_msg;
|
577 |
+
html_msg = '<?php _e("Unable to perform a full scan, please try the following actions:", 'duplicator') ?><br/><br/>';
|
578 |
+
html_msg += '<?php _e("1. Go back and create a root path directory filter to validate the site is scan-able.", 'duplicator') ?><br/>';
|
579 |
+
html_msg += '<?php _e("2. Continue to add/remove filters to isolate which path is causing issues.", 'duplicator') ?><br/>';
|
580 |
+
html_msg += '<?php _e("3. This message will go away once the correct filters are applied.", 'duplicator') ?><br/><br/>';
|
581 |
+
|
582 |
+
html_msg += '<?php _e("Common Issues:", 'duplicator') ?><ul>';
|
583 |
+
html_msg += '<li><?php _e("- On some budget hosts scanning over 30k files can lead to timeout/gateway issues. Consider scanning only your main WordPress site and avoid trying to backup other external directories.", 'duplicator') ?></li>';
|
584 |
+
html_msg += '<li><?php _e("- Symbolic link recursion can cause timeouts. Ask your server admin if any are present in the scan path. If they are add the full path as a filter and try running the scan again.", 'duplicator') ?></li>';
|
585 |
+
html_msg += '</ul>';
|
586 |
+
$('#dup-msg-error-response-status').html('Scan Path Error [<?php echo rtrim(DUPLICATOR_WPROOTPATH, '/'); ?>]');
|
587 |
+
$('#dup-msg-error-response-text').html(html_msg);
|
588 |
+
$('#dup-msg-error').show(200);
|
589 |
+
console.log('JSON Report Data:');
|
590 |
+
console.log(data);
|
591 |
+
return;
|
592 |
+
}
|
593 |
+
|
594 |
//****************
|
595 |
//REPORT
|
596 |
var base = $('#data-rpt-scanfile').attr('href');
|
597 |
$('#data-rpt-scanfile').attr('href', base + '&scanfile=' + data.RPT.ScanFile);
|
598 |
$('#data-rpt-scantime').text(data.RPT.ScanTime || 0);
|
599 |
|
|
|
600 |
//****************
|
601 |
//SERVER
|
602 |
$('#data-srv-web-model').html(Duplicator.Pack.LoadScanStatus(data.SRV.WEB.model));
|
660 |
$('#data-arc-files').text(data.ARC.FileCount || errMsg);
|
661 |
$('#data-arc-dirs').text(data.ARC.DirCount || errMsg);
|
662 |
|
|
|
|
|
663 |
//Name Checks
|
664 |
html = '';
|
665 |
//Dirs
|
707 |
Duplicator.Pack.Scan();
|
708 |
|
709 |
//Init: Toogle for system requirment detial links
|
710 |
+
$('.dup-scan-title a').each(function()
|
711 |
+
{
|
712 |
$(this).attr('href', 'javascript:void(0)');
|
713 |
$(this).click({selector : '.dup-scan-info'}, Duplicator.Pack.ToggleSystemDetails);
|
714 |
$(this).prepend("<span class='ui-icon ui-icon-triangle-1-e dup-toggle' />");
|
views/packages/main/new3.base.php
DELETED
@@ -1,204 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
require_once (DUPLICATOR_PLUGIN_PATH . 'classes/package.php');
|
3 |
-
$Package = DUP_Package::GetActive();
|
4 |
-
$ajax_nonce = wp_create_nonce('dup_package_build');
|
5 |
-
|
6 |
-
?>
|
7 |
-
|
8 |
-
<style>
|
9 |
-
div#dup-progress-area {text-align:center; max-width:800px; min-height:200px; border:1px solid silver; border-radius:5px; margin:25px auto 10px auto; padding:0px; box-shadow: 0 8px 6px -6px #999;}
|
10 |
-
div.dup-progress-title {font-size:22px;padding:5px 0 20px 0; font-weight: bold}
|
11 |
-
div#dup-progress-area div.inner {padding:10px; line-height:22px}
|
12 |
-
div#dup-progress-area h2.title {background-color:#efefef; margin:0px}
|
13 |
-
div#dup-progress-area span.label {font-weight:bold}
|
14 |
-
div#dup-msg-success {color:#18592A; padding:5px;}
|
15 |
-
div#dup-msg-success fieldset,
|
16 |
-
div#dup-msg-error fieldset {text-align:left; width:95%; border:1px solid #dfdfdf; border-radius:5px;}
|
17 |
-
div.dup-msg-error-area {overflow-y: scroll; padding:5px 15px 5px 15px; max-height:150px; max-width: 700px}
|
18 |
-
div.dup-msg-success-stats{color:#999;margin:10px 0px 0px 0px}
|
19 |
-
div.dup-msg-success-links {margin:20px 5px 5px 5px; font-size: 14px; font-weight: bold}
|
20 |
-
div#dup-msg-error {color:#A62426; padding:5px;}
|
21 |
-
div#dup-progress-area div.done-title {font-size:22px; font-weight:bold; margin:0px 0px 10px 0px}
|
22 |
-
div#dup-logs {text-align:center; margin:auto; padding:5px; width:350px;}
|
23 |
-
div#dup-logs a {font-size:15px; text-decoration:none !important; display:inline-block; margin:20px 0px 5px 0px}
|
24 |
-
div.dup-button-footer {text-align:right; margin:20px 10px 0px 0px}
|
25 |
-
button.button {font-size:16px !important; height:30px !important; font-weight:bold; padding:0px 10px 5px 10px !important; min-width: 150px }
|
26 |
-
span.dup-btn-size {font-size:11px;font-weight: normal}
|
27 |
-
</style>
|
28 |
-
|
29 |
-
<!-- =========================================
|
30 |
-
TOOL BAR: STEPS -->
|
31 |
-
<table id="dup-toolbar">
|
32 |
-
<tr valign="top">
|
33 |
-
<td style="white-space: nowrap">
|
34 |
-
<div id="dup-wiz">
|
35 |
-
<div id="dup-wiz-steps">
|
36 |
-
<div class="completed-step"><a><span>1</span> <?php _e('Setup', 'duplicator'); ?></a></div>
|
37 |
-
<div class="completed-step"><a><span>2</span> <?php _e('Scan', 'duplicator'); ?> </a></div>
|
38 |
-
<div class="active-step"><a><span>3</span> <?php _e('Build', 'duplicator'); ?> </a></div>
|
39 |
-
</div>
|
40 |
-
<div id="dup-wiz-title">
|
41 |
-
<?php _e('Step 3: Build Package', 'duplicator'); ?>
|
42 |
-
</div>
|
43 |
-
</div>
|
44 |
-
</td>
|
45 |
-
<td class="dup-toolbar-btns">
|
46 |
-
<a id="dup-pro-create-new" href="?page=duplicator" class="add-new-h2"><i class="fa fa-archive"></i> <?php _e("All Packages", 'duplicator'); ?></a>
|
47 |
-
<span> <?php _e("Create New", 'duplicator'); ?></span>
|
48 |
-
</td>
|
49 |
-
</tr>
|
50 |
-
</table>
|
51 |
-
<hr style="margin-bottom:10px">
|
52 |
-
|
53 |
-
|
54 |
-
<form id="form-duplicator" method="post" action="?page=duplicator">
|
55 |
-
|
56 |
-
<!-- PROGRESS BAR -->
|
57 |
-
<div id="dup-progress-bar-area">
|
58 |
-
<div class="dup-progress-title"><i class="fa fa-cog fa-spin"></i> <?php _e('Building Package', 'duplicator'); ?></div>
|
59 |
-
<div id="dup-progress-bar"></div>
|
60 |
-
<b><?php _e('Please Wait...', 'duplicator'); ?></b><br/><br/>
|
61 |
-
<i><?php _e('Keep this window open during the build process.', 'duplicator'); ?></i><br/>
|
62 |
-
<i><?php _e('This may take several minutes.', 'duplicator'); ?></i><br/>
|
63 |
-
</div>
|
64 |
-
|
65 |
-
<div id="dup-progress-area" class="dup-panel" style="display:none">
|
66 |
-
<div class="dup-panel-title dup-box-title-fancy"><b style="font-size:18px"><?php _e('Build Status', 'duplicator'); ?></b></div>
|
67 |
-
<div class="dup-panel-panel">
|
68 |
-
|
69 |
-
<!-- =========================
|
70 |
-
SUCCESS MESSAGE -->
|
71 |
-
<div id="dup-msg-success" style="display:none">
|
72 |
-
<div class="dup-hdr-success">
|
73 |
-
<i class="fa fa-check-square-o fa-lg"></i> <?php _e('Package Completed', 'duplicator'); ?>
|
74 |
-
</div>
|
75 |
-
|
76 |
-
<div class="dup-msg-success-stats">
|
77 |
-
<b><?php _e('Name', 'duplicator'); ?>:</b> <span id="data-name-hash"></span><br/>
|
78 |
-
<b><?php _e('Process Time', 'duplicator'); ?>:</b> <span id="data-time"></span><br/>
|
79 |
-
</div><br/>
|
80 |
-
|
81 |
-
<button id="dup-btn-installer" class="button button-primary button-large">
|
82 |
-
<i class="fa fa-bolt"></i> <?php _e("Installer", 'duplicator') ?>
|
83 |
-
<span id="dup-btn-installer-size" class="dup-btn-size"></span>
|
84 |
-
</button>
|
85 |
-
<button id="dup-btn-archive" class="button button-primary button-large">
|
86 |
-
<i class="fa fa-file-archive-o"></i> <?php _e("Archive", 'duplicator') ?>
|
87 |
-
<span id="dup-btn-archive-size" class="dup-btn-size"></span>
|
88 |
-
</button>
|
89 |
-
<div style='margin: 7px 0 20px 0'>
|
90 |
-
<small><i><?php _e("click buttons to download", 'duplicator') ?></i></small>
|
91 |
-
</div>
|
92 |
-
<div class="dup-msg-success-links">
|
93 |
-
<?php printf("<a href='?page=duplicator'>[ %s ]</a>", __('All Packages', 'duplicator'));?>
|
94 |
-
</div><br/>
|
95 |
-
|
96 |
-
<!-- Used for iMacros testing do not remove -->
|
97 |
-
<div id="dup-automation-imacros"></div>
|
98 |
-
</div>
|
99 |
-
|
100 |
-
<!-- =========================
|
101 |
-
ERROR MESSAGE -->
|
102 |
-
<div id="dup-msg-error" style="display:none">
|
103 |
-
<div class="done-title"><i class="fa fa-chain-broken"></i> <?php _e('Build Interrupt', 'duplicator'); ?></div>
|
104 |
-
<b><?php _e('The current build has experienced an issue.', 'duplicator'); ?></b><br/>
|
105 |
-
|
106 |
-
<i><?php _e('Please try the process again.', 'duplicator'); ?></i><br/><br/>
|
107 |
-
|
108 |
-
<input type="button" style="margin-right:10px;" class="button" value="<?php _e('Diagnose', 'duplicator'); ?>" onclick="window.open('http://lifeinthegrid.com/support/knowledgebase.php?article=12#faq-trouble-timeout', '_blank');return false;" />
|
109 |
-
<input type="button" class="button" value="<?php _e('Try Again', 'duplicator'); ?>" onclick="window.location = 'admin.php?page=duplicator&tab=new1'" />
|
110 |
-
<fieldset>
|
111 |
-
<legend><b><i class="fa fa-exclamation"></i> <?php _e('Details', 'duplicator'); ?></b></legend>
|
112 |
-
<div class="dup-msg-error-area">
|
113 |
-
<div id="dup-msg-error-response-status">
|
114 |
-
<span class="label"><?php _e("Server Status:", 'duplicator'); ?></span>
|
115 |
-
<span class="data"></span>
|
116 |
-
</div>
|
117 |
-
<div id="dup-msg-error-response-text">
|
118 |
-
<span class="label"><?php _e("Error Message:", 'duplicator'); ?></span><br/>
|
119 |
-
<span class="data"></span>
|
120 |
-
</div>
|
121 |
-
</div>
|
122 |
-
</fieldset><br/>
|
123 |
-
|
124 |
-
<fieldset style="color:#777">
|
125 |
-
<legend><b> <?php _e('Notice', 'duplicator'); ?></b></legend>
|
126 |
-
<div class="dup-msg-error-area">
|
127 |
-
<?php printf('<b><i class="fa fa-folder-o"></i> %s %s</b> <br/> %s',
|
128 |
-
__('Build Folder:'),
|
129 |
-
DUPLICATOR_SSDIR_PATH_TMP,
|
130 |
-
__("Some servers close connections quickly; yet the build can continue to run in the background. To validate if a build is still running; open the 'tmp' folder above and see if the archive file is growing in size. If it is not then your server has strict timeout constraints. Please visit the support page for additional resources.", 'duplicator')
|
131 |
-
);
|
132 |
-
?> <br/>
|
133 |
-
</div>
|
134 |
-
</fieldset>
|
135 |
-
|
136 |
-
<!-- LOGS -->
|
137 |
-
<div id="dup-logs">
|
138 |
-
<div style="font-weight:bold">
|
139 |
-
<i class="fa fa-list-alt"></i> <a href='javascript:void(0)' style="color:#A62426" onclick='Duplicator.OpenLogWindow()'> <?php _e('Package Log', 'duplicator');?> </a>
|
140 |
-
</div>
|
141 |
-
<br/>
|
142 |
-
</div>
|
143 |
-
|
144 |
-
</div>
|
145 |
-
|
146 |
-
</div>
|
147 |
-
</div>
|
148 |
-
</form>
|
149 |
-
|
150 |
-
<script type="text/javascript">
|
151 |
-
jQuery(document).ready(function($) {
|
152 |
-
/* ----------------------------------------
|
153 |
-
* METHOD: Performs Ajax post to create a new package
|
154 |
-
* Timeout (10000000 = 166 minutes) */
|
155 |
-
Duplicator.Pack.Create = function() {
|
156 |
-
|
157 |
-
var data = {action : 'duplicator_package_build', nonce: '<?php echo $ajax_nonce; ?>'}
|
158 |
-
|
159 |
-
$.ajax({
|
160 |
-
type: "POST",
|
161 |
-
url: ajaxurl,
|
162 |
-
dataType: "json",
|
163 |
-
timeout: 10000000,
|
164 |
-
data: data,
|
165 |
-
beforeSend: function() {},
|
166 |
-
complete: function() {},
|
167 |
-
success: function(data) {
|
168 |
-
$('#dup-progress-bar-area').hide();
|
169 |
-
$('#dup-progress-area, #dup-msg-success').show(300);
|
170 |
-
|
171 |
-
var Pack = data.Package;
|
172 |
-
var InstallURL = Pack.StoreURL + Pack.Installer.File + "?get=1&file=" + Pack.Installer.File;
|
173 |
-
var ArchiveURL = Pack.StoreURL + Pack.Archive.File + "?get=1";
|
174 |
-
|
175 |
-
$('#dup-btn-archive-size').append(' (' + data.ZipSize + ')')
|
176 |
-
$('#data-name-hash').text(Pack.NameHash || 'error read');
|
177 |
-
$('#data-time').text(data.Runtime || 'unable to read time');
|
178 |
-
|
179 |
-
//Wire Up Downloads
|
180 |
-
$('#dup-btn-installer').on("click", {name: InstallURL }, Duplicator.Pack.DownloadFile );
|
181 |
-
$('#dup-btn-archive').on("click", {name: ArchiveURL }, Duplicator.Pack.DownloadFile );
|
182 |
-
//Imacros testing required
|
183 |
-
$('#dup-automation-imacros').html('<input type="hidden" id="dup-finished" value="done" />');
|
184 |
-
|
185 |
-
},
|
186 |
-
error: function(data) {
|
187 |
-
$('#dup-progress-bar-area').hide();
|
188 |
-
$('#dup-progress-area, #dup-msg-error').show(200);
|
189 |
-
var status = data.status + ' -' + data.statusText;
|
190 |
-
var response = (data.responseText != undefined && data.responseText.length > 1) ? data.responseText : 'Unknown Error - See Log File';
|
191 |
-
$('#dup-msg-error-response-status span.data').html(status)
|
192 |
-
$('#dup-msg-error-response-text span.data').html(response);
|
193 |
-
console.log(data);
|
194 |
-
}
|
195 |
-
});
|
196 |
-
return false;
|
197 |
-
}
|
198 |
-
|
199 |
-
//Page Init:
|
200 |
-
Duplicator.UI.AnimateProgressBar('dup-progress-bar');
|
201 |
-
Duplicator.Pack.Create();
|
202 |
-
|
203 |
-
});
|
204 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/packages/main/packages.php
CHANGED
@@ -56,13 +56,6 @@ TOOL-BAR -->
|
|
56 |
<td align="center" >
|
57 |
<a href="?page=duplicator-tools" id="btn-logs-dialog" class="button" title="<?php _e("Package Logs", 'duplicator') ?>..."><i class="fa fa-list-alt"></i>
|
58 |
</td>
|
59 |
-
<td style="min-width:600px" valign="middle">
|
60 |
-
<span style="font-style:italic; margin-left:10px; font-size:16px;">
|
61 |
-
<?php if($statusCount >= 3) : ?>
|
62 |
-
<!--a href="admin.php?page=duplicator-about"><i><i class="fa fa-check-circle"></i> <?php _e("Help Support Duplicator", 'duplicator') ?></i> </a-->
|
63 |
-
<?php endif; ?>
|
64 |
-
</span>
|
65 |
-
</td>
|
66 |
<td class="dup-toolbar-btns">
|
67 |
<span><i class="fa fa-archive"></i> <?php _e("All Packages", 'duplicator'); ?></span>
|
68 |
<a id="dup-pro-create-new" href="?page=duplicator&tab=new1" class="add-new-h2"><?php _e("Create New", 'duplicator'); ?></a>
|
56 |
<td align="center" >
|
57 |
<a href="?page=duplicator-tools" id="btn-logs-dialog" class="button" title="<?php _e("Package Logs", 'duplicator') ?>..."><i class="fa fa-list-alt"></i>
|
58 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
<td class="dup-toolbar-btns">
|
60 |
<span><i class="fa fa-archive"></i> <?php _e("All Packages", 'duplicator'); ?></span>
|
61 |
<a id="dup-pro-create-new" href="?page=duplicator&tab=new1" class="add-new-h2"><?php _e("Create New", 'duplicator'); ?></a>
|