Duplicator – WordPress Migration Plugin - Version 1.2.18

Version Description

Download this release

Release Info

Developer cory@lamle.org
Plugin Icon 128x128 Duplicator – WordPress Migration Plugin
Version 1.2.18
Comparing to
See all releases

Code changes from version 1.2.16 to 1.2.18

ctrls/ctrl.package.php CHANGED
@@ -7,9 +7,9 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/classes/package/class.pack.php');
7
 
8
  /**
9
  * DUPLICATOR_PACKAGE_SCAN
10
- * Returns a json scan report object which contains data about the system
11
  *
12
- * @return json json report object
13
  * @example to test: /wp-admin/admin-ajax.php?action=duplicator_package_scan
14
  */
15
  function duplicator_package_scan() {
@@ -37,7 +37,7 @@ function duplicator_package_scan() {
37
  * duplicator_package_build
38
  * Returns the package result status
39
  *
40
- * @return json json object of package results
41
  */
42
  function duplicator_package_build() {
43
 
@@ -69,7 +69,10 @@ function duplicator_package_build() {
69
  $json['ExeSize'] = $Package->ExeSize;
70
  $json['ZipSize'] = $Package->ZipSize;
71
  $json_response = json_encode($json);
72
-
 
 
 
73
  error_reporting($errLevel);
74
  die($json_response);
75
  }
@@ -78,7 +81,7 @@ function duplicator_package_build() {
78
  * DUPLICATOR_PACKAGE_DELETE
79
  * Deletes the files and database record entries
80
  *
81
- * @return json A json message about the action.
82
  * Use console.log to debug from client
83
  */
84
  function duplicator_package_delete() {
@@ -149,7 +152,7 @@ function duplicator_package_delete() {
149
 
150
  /**
151
  * Controller for Tools
152
- * @package Dupicator\ctrls
153
  */
154
  class DUP_CTRL_Package extends DUP_CTRL_Base
155
  {
@@ -165,9 +168,9 @@ class DUP_CTRL_Package extends DUP_CTRL_Base
165
  /**
166
  * Removed all reserved installer files names
167
  *
168
- * @param string $_POST['dir_paths'] A semi-colon seperated list of dir paths
169
  *
170
- * @return string Returns all of the active directory filters as a ";" seperated string
171
  */
172
  public function addQuickFilters($post)
173
  {
7
 
8
  /**
9
  * DUPLICATOR_PACKAGE_SCAN
10
+ * Returns a JSON scan report object which contains data about the system
11
  *
12
+ * @return json JSON report object
13
  * @example to test: /wp-admin/admin-ajax.php?action=duplicator_package_scan
14
  */
15
  function duplicator_package_scan() {
37
  * duplicator_package_build
38
  * Returns the package result status
39
  *
40
+ * @return json JSON object of package results
41
  */
42
  function duplicator_package_build() {
43
 
69
  $json['ExeSize'] = $Package->ExeSize;
70
  $json['ZipSize'] = $Package->ZipSize;
71
  $json_response = json_encode($json);
72
+
73
+ //Generate Host Build Interrupt
74
+ // die(0);
75
+
76
  error_reporting($errLevel);
77
  die($json_response);
78
  }
81
  * DUPLICATOR_PACKAGE_DELETE
82
  * Deletes the files and database record entries
83
  *
84
+ * @return json A JSON message about the action.
85
  * Use console.log to debug from client
86
  */
87
  function duplicator_package_delete() {
152
 
153
  /**
154
  * Controller for Tools
155
+ * @package Duplicator\ctrls
156
  */
157
  class DUP_CTRL_Package extends DUP_CTRL_Base
158
  {
168
  /**
169
  * Removed all reserved installer files names
170
  *
171
+ * @param string $_POST['dir_paths'] A semi-colon separated list of directory paths
172
  *
173
+ * @return string Returns all of the active directory filters as a ";" separated string
174
  */
175
  public function addQuickFilters($post)
176
  {
define.php CHANGED
@@ -2,7 +2,7 @@
2
  //Prevent directly browsing to the file
3
  if (function_exists('plugin_dir_url'))
4
  {
5
- define('DUPLICATOR_VERSION', '1.2.16');
6
  define('DUPLICATOR_HOMEPAGE', 'http://lifeinthegrid.com/labs/duplicator');
7
  define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
8
  define('DUPLICATOR_SITE_URL', get_site_url());
2
  //Prevent directly browsing to the file
3
  if (function_exists('plugin_dir_url'))
4
  {
5
+ define('DUPLICATOR_VERSION', '1.2.18');
6
  define('DUPLICATOR_HOMEPAGE', 'http://lifeinthegrid.com/labs/duplicator');
7
  define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
8
  define('DUPLICATOR_SITE_URL', get_site_url());
duplicator.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Duplicator
4
  Plugin URI: http://www.lifeinthegrid.com/duplicator/
5
  Description: Migrate and backup a copy of your WordPress files and database. Duplicate and move a site from one location to another quickly.
6
- Version: 1.2.16
7
  Author: Snap Creek
8
  Author URI: http://www.snapcreek.com/duplicator/
9
  Text Domain: duplicator
3
  Plugin Name: Duplicator
4
  Plugin URI: http://www.lifeinthegrid.com/duplicator/
5
  Description: Migrate and backup a copy of your WordPress files and database. Duplicate and move a site from one location to another quickly.
6
+ Version: 1.2.18
7
  Author: Snap Creek
8
  Author URI: http://www.snapcreek.com/duplicator/
9
  Text Domain: duplicator
installer/build/ctrls/ctrl.step3.php CHANGED
@@ -25,7 +25,6 @@ DUPX_DB::setCharset($dbh, $_POST['dbcharset'], $_POST['dbcollate']);
25
  $_POST['blogname'] = mysqli_real_escape_string($dbh, $_POST['blogname']);
26
  $_POST['postguid'] = isset($_POST['postguid']) && $_POST['postguid'] == 1 ? 1 : 0;
27
  $_POST['fullsearch'] = isset($_POST['fullsearch']) && $_POST['fullsearch'] == 1 ? 1 : 0;
28
- $_POST['urlrelative'] = isset($_POST['urlrelative']) && $_POST['urlrelative'] == 1 ? 1 : 0;
29
  $_POST['path_old'] = isset($_POST['path_old']) ? trim($_POST['path_old']) : null;
30
  $_POST['path_new'] = isset($_POST['path_new']) ? trim($_POST['path_new']) : null;
31
  $_POST['siteurl'] = isset($_POST['siteurl']) ? rtrim(trim($_POST['siteurl']), '/') : null;
@@ -107,56 +106,51 @@ array_push($GLOBALS['REPLACE_LIST'],
107
  array('search' => rtrim(DUPX_U::unsetSafePath($_POST['path_old']), '\\'), 'replace' => rtrim($_POST['path_new'], '/'))
108
  );
109
 
110
- //SEARCH WITH NO PROTOCAL: RAW "//"
111
- if ($_POST['urlrelative']) {
112
 
113
- $url_old_raw = str_ireplace(array('http://', 'https://'), '//', $_POST['url_old']);
114
- $url_new_raw = str_ireplace(array('http://', 'https://'), '//', $_POST['url_new']);
115
- $url_old_raw_json = str_replace('"', "", json_encode($url_old_raw));
116
- $url_new_raw_json = str_replace('"', "", json_encode($url_new_raw));
 
 
 
117
 
118
- array_push($GLOBALS['REPLACE_LIST'],
119
- //RAW
120
- array('search' => $url_old_raw, 'replace' => $url_new_raw),
121
- array('search' => $url_old_raw_json, 'replace' => $url_new_raw_json),
122
- array('search' => urlencode($url_old_raw), 'replace' => urlencode($url_new_raw))
123
- );
 
124
 
125
- //SEARCH ONLY HTTP(S)
126
  } else {
 
 
 
 
 
 
127
 
128
- //URL PATHS
129
- array_push($GLOBALS['REPLACE_LIST'],
130
- array('search' => $_POST['url_old'], 'replace' => $_POST['url_new']),
131
- array('search' => $url_old_json, 'replace' => $url_new_json),
132
- array('search' => urlencode($_POST['url_old']), 'replace' => urlencode($_POST['url_new']))
133
- );
134
-
135
- //INVERSE: Apply a search for the inverse of the orginal http vs https
136
- if (stristr($_POST['url_old'], 'http:')) {
137
- //Search for https urls
138
- $url_old_diff = str_ireplace('http:', 'https:', $_POST['url_old']);
139
- $url_new_diff = str_ireplace('http:', 'https:', $_POST['url_new']);
140
- $url_old_diff_json = str_replace('"', "", json_encode($url_old_diff));
141
- $url_new_diff_json = str_replace('"', "", json_encode($url_new_diff));
142
-
143
- } else {
144
- //Search for http urls
145
- $url_old_diff = str_ireplace('https:', 'http:', $_POST['url_old']);
146
- $url_new_diff = str_ireplace('https:', 'http:', $_POST['url_new']);
147
- $url_old_diff_json = str_replace('"', "", json_encode($url_old_diff));
148
- $url_new_diff_json = str_replace('"', "", json_encode($url_new_diff));
149
- }
150
 
151
- array_push($GLOBALS['REPLACE_LIST'],
152
- //INVERSE
153
- array('search' => $url_old_diff, 'replace' => $url_new_diff),
154
- array('search' => $url_old_diff_json, 'replace' => $url_new_diff_json),
155
- array('search' => urlencode($url_old_diff), 'replace' => urlencode($url_new_diff))
156
- );
157
 
 
 
 
 
 
158
 
159
- }
 
 
 
 
 
160
 
161
 
162
  //Remove trailing slashes
25
  $_POST['blogname'] = mysqli_real_escape_string($dbh, $_POST['blogname']);
26
  $_POST['postguid'] = isset($_POST['postguid']) && $_POST['postguid'] == 1 ? 1 : 0;
27
  $_POST['fullsearch'] = isset($_POST['fullsearch']) && $_POST['fullsearch'] == 1 ? 1 : 0;
 
28
  $_POST['path_old'] = isset($_POST['path_old']) ? trim($_POST['path_old']) : null;
29
  $_POST['path_new'] = isset($_POST['path_new']) ? trim($_POST['path_new']) : null;
30
  $_POST['siteurl'] = isset($_POST['siteurl']) ? rtrim(trim($_POST['siteurl']), '/') : null;
106
  array('search' => rtrim(DUPX_U::unsetSafePath($_POST['path_old']), '\\'), 'replace' => rtrim($_POST['path_new'], '/'))
107
  );
108
 
 
 
109
 
110
+ //URL PATHS
111
+ //SEARCH ONLY HTTP(S)
112
+ array_push($GLOBALS['REPLACE_LIST'],
113
+ array('search' => $_POST['url_old'], 'replace' => $_POST['url_new']),
114
+ array('search' => $url_old_json, 'replace' => $url_new_json),
115
+ array('search' => urlencode($_POST['url_old']), 'replace' => urlencode($_POST['url_new']))
116
+ );
117
 
118
+ //INVERSE: Apply a search for the inverse of the orginal http vs https
119
+ if (stristr($_POST['url_old'], 'http:')) {
120
+ //Search for https urls
121
+ $url_old_diff = str_ireplace('http:', 'https:', $_POST['url_old']);
122
+ $url_new_diff = str_ireplace('http:', 'https:', $_POST['url_new']);
123
+ $url_old_diff_json = str_replace('"', "", json_encode($url_old_diff));
124
+ $url_new_diff_json = str_replace('"', "", json_encode($url_new_diff));
125
 
 
126
  } else {
127
+ //Search for http urls
128
+ $url_old_diff = str_ireplace('https:', 'http:', $_POST['url_old']);
129
+ $url_new_diff = str_ireplace('https:', 'http:', $_POST['url_new']);
130
+ $url_old_diff_json = str_replace('"', "", json_encode($url_old_diff));
131
+ $url_new_diff_json = str_replace('"', "", json_encode($url_new_diff));
132
+ }
133
 
134
+ array_push($GLOBALS['REPLACE_LIST'],
135
+ //INVERSE
136
+ array('search' => $url_old_diff, 'replace' => $url_new_diff),
137
+ array('search' => $url_old_diff_json, 'replace' => $url_new_diff_json),
138
+ array('search' => urlencode($url_old_diff), 'replace' => urlencode($url_new_diff))
139
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
 
 
 
 
 
 
 
141
 
142
+ //SEARCH WITH NO PROTOCAL: RAW "//"
143
+ $url_old_raw = str_ireplace(array('http://', 'https://'), '//', $_POST['url_old']);
144
+ $url_new_raw = str_ireplace(array('http://', 'https://'), '//', $_POST['url_new']);
145
+ $url_old_raw_json = str_replace('"', "", json_encode($url_old_raw));
146
+ $url_new_raw_json = str_replace('"', "", json_encode($url_new_raw));
147
 
148
+ array_push($GLOBALS['REPLACE_LIST'],
149
+ //RAW
150
+ array('search' => $url_old_raw, 'replace' => $url_new_raw),
151
+ array('search' => $url_old_raw_json, 'replace' => $url_new_raw_json),
152
+ array('search' => urlencode($url_old_raw), 'replace' => urlencode($url_new_raw))
153
+ );
154
 
155
 
156
  //Remove trailing slashes
installer/build/view.help.php CHANGED
@@ -369,16 +369,6 @@ STEP 3
369
  <td>Activate Plugins</td>
370
  <td>These plug-ins are the plug-ins that were activated when the package was created and represent the plug-ins that will be activated after the install.</td>
371
  </tr>
372
- <tr>
373
- <td>Protocol Relative<br/> URL Replace</td>
374
- <td>
375
- As part of the search and replace process, this option will look at every cell in the database and replace the 'Old URL' with the 'New URL'. This process is an
376
- <u>protocol relative</u> search which uses only '//' as its starting point for the search.
377
- <br/><br/>
378
- To force the search to use only 'http://' and 'https://' as the starting search match then un-check this box. If you find that some links did not get updated
379
- correctly then try to un-check this box and run the stiller over again from step 1.
380
- </td>
381
- </tr>
382
  <tr>
383
  <td>Full Search</td>
384
  <td>Full search forces a scan of every single cell in the database. If it is not checked then only text based columns are searched which makes the update process much faster.
369
  <td>Activate Plugins</td>
370
  <td>These plug-ins are the plug-ins that were activated when the package was created and represent the plug-ins that will be activated after the install.</td>
371
  </tr>
 
 
 
 
 
 
 
 
 
 
372
  <tr>
373
  <td>Full Search</td>
374
  <td>Full search forces a scan of every single cell in the database. If it is not checked then only text based columns are searched which makes the update process much faster.
installer/build/view.step3.php CHANGED
@@ -147,7 +147,6 @@ VIEW: STEP 3- INPUT -->
147
  </table>
148
  <br/>
149
 
150
- <input type="checkbox" name="urlrelative" id="urlrelative" value="1" checked="true" /> <label for="urlrelative">Use Protocol Relative URL Replace</label><br/>
151
  <input type="checkbox" name="fullsearch" id="fullsearch" value="1" /> <label for="fullsearch">Use Database Full Search Mode </label><br/>
152
  <input type="checkbox" name="postguid" id="postguid" value="1" /> <label for="postguid">Keep Post GUID Unchanged</label><br/>
153
  <br/><br/>
147
  </table>
148
  <br/>
149
 
 
150
  <input type="checkbox" name="fullsearch" id="fullsearch" value="1" /> <label for="fullsearch">Use Database Full Search Mode </label><br/>
151
  <input type="checkbox" name="postguid" id="postguid" value="1" /> <label for="postguid">Keep Post GUID Unchanged</label><br/>
152
  <br/><br/>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: www.lifeinthegrid.com/partner
4
  Tags: migration, backup, restore, move, migrate, duplicate, transfer, clone, automate, copy site
5
  Requires at least: 4.0
6
  Tested up to: 4.8
7
- Stable tag: 1.2.16
8
  License: GPLv2
9
 
10
  WordPress migration and backups are much easier with Duplicator! Clone, backup, move and transfer an entire site from one location to another.
4
  Tags: migration, backup, restore, move, migrate, duplicate, transfer, clone, automate, copy site
5
  Requires at least: 4.0
6
  Tested up to: 4.8
7
+ Stable tag: 1.2.18
8
  License: GPLv2
9
 
10
  WordPress migration and backups are much easier with Duplicator! Clone, backup, move and transfer an entire site from one location to another.
views/packages/main/packages.php CHANGED
@@ -36,7 +36,7 @@
36
  td.error-msg a i {color:maroon}
37
  td.error-msg span {display:inline-block; padding:7px 18px 0px 0px; color:maroon}
38
  div.dup-vote { position: absolute; top:15px; right:25px; }
39
- div.dup-vote a { font-size:12px; font-style: italic }
40
  div#dup-feedback-form {display:none; height:150px; top:70px; min-width:250px; padding:10px; background-color:#f9f9f9; border:1px solid silver; border-radius:5px;
41
  position:fixed; right:25px; z-index: 2; cursor:pointer; line-height:34px; font-size:14px; box-shadow: 10px 10px 5px -6px #999;}
42
  div#dup-feedback-form i {display: inline-block; width: 15px}
@@ -44,17 +44,34 @@
44
  </style>
45
 
46
  <form id="form-duplicator" method="post">
47
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  <div class="dup-vote">
49
  <a href="javascript:void(0);" onclick="Duplicator.Pack.showFeedbackForm()">
50
- <i class="fa fa-bullhorn" aria-hidden="true"></i> <?php _e("Feedback", 'duplicator') ?>
51
  </a>
52
  </div>
53
 
54
  <div id="dup-feedback-form">
55
  <div style="text-align: center"><b><?php _e("LEAVE FEEDBACK", 'duplicator') ?></b></div>
56
- <i class="fa fa-question-circle"></i> <a href="https://snapcreek.com/ticket/" target="_blank"><?php _e("Need help with the plugin?", 'duplicator') ?></a> <br/>
57
- <i class="fa fa-lightbulb-o"></i> <a href="https://snapcreek.com/support?idea=1" target="_blank"><?php _e("Have an idea for the plugin?", 'duplicator') ?></a> <br/>
58
  <?php if($statusCount >= 2) : ?>
59
  <i class="fa fa-star-o"></i> <a href="https://wordpress.org/support/plugin/duplicator/reviews/?filter=5" target="vote-wp"><?php _e("Help review the plugin!", 'duplicator') ?></a>
60
  <?php endif; ?>
@@ -96,7 +113,9 @@ TOOL-BAR -->
96
  <?php _e("Click the 'Create New' button to build a package.", 'duplicator'); ?><br/>
97
  <div class="dup-quick-start">
98
  <?php _e("New to Duplicator?", 'duplicator'); ?><br/>
99
- <a href="https://snapcreek.com/duplicator/docs/quick-start/" target="_blank"><?php _e("Check out the 'Quick Start' guide!", 'duplicator'); ?></a>
 
 
100
  </div>
101
 
102
  <div style="height:75px">&nbsp;</div>
36
  td.error-msg a i {color:maroon}
37
  td.error-msg span {display:inline-block; padding:7px 18px 0px 0px; color:maroon}
38
  div.dup-vote { position: absolute; top:15px; right:25px; }
39
+ div.dup-vote a { font-size:13px; font-style: italic }
40
  div#dup-feedback-form {display:none; height:150px; top:70px; min-width:250px; padding:10px; background-color:#f9f9f9; border:1px solid silver; border-radius:5px;
41
  position:fixed; right:25px; z-index: 2; cursor:pointer; line-height:34px; font-size:14px; box-shadow: 10px 10px 5px -6px #999;}
42
  div#dup-feedback-form i {display: inline-block; width: 15px}
44
  </style>
45
 
46
  <form id="form-duplicator" method="post">
47
+
48
+ <?php
49
+ switch(rand(1,3)) {
50
+ case 1:
51
+ $feed_title = __("Have an idea?", 'duplicator');
52
+ $feed_utm = 'have_idea';
53
+ break;
54
+ case 2:
55
+ $feed_title = __("How can we improve?", 'duplicator');
56
+ $feed_utm = 'improve';
57
+ break;
58
+ case 3:
59
+ $feed_title = __("Have Feedback?", 'duplicator');
60
+ $feed_utm = 'feedback';
61
+ break;
62
+ }
63
+ ?>
64
+
65
  <div class="dup-vote">
66
  <a href="javascript:void(0);" onclick="Duplicator.Pack.showFeedbackForm()">
67
+ <i class="fa fa-bullhorn" aria-hidden="true"></i> <?php echo $feed_title; ?>
68
  </a>
69
  </div>
70
 
71
  <div id="dup-feedback-form">
72
  <div style="text-align: center"><b><?php _e("LEAVE FEEDBACK", 'duplicator') ?></b></div>
73
+ <i class="fa fa-question-circle"></i> <a href="https://snapcreek.com/ticket?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=feedback_help_<?php echo $feed_utm; ?>&utm_campaign=duplicator_lite" target="_blank"><?php _e("Need help with the plugin?", 'duplicator') ?></a> <br/>
74
+ <i class="fa fa-lightbulb-o"></i> <a href="https://snapcreek.com/support?idea=1&utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=feedback_idea_<?php echo $feed_utm; ?>&utm_campaign=duplicator_lite" target="_blank"><?php _e("Have an idea for the plugin?", 'duplicator') ?></a> <br/>
75
  <?php if($statusCount >= 2) : ?>
76
  <i class="fa fa-star-o"></i> <a href="https://wordpress.org/support/plugin/duplicator/reviews/?filter=5" target="vote-wp"><?php _e("Help review the plugin!", 'duplicator') ?></a>
77
  <?php endif; ?>
113
  <?php _e("Click the 'Create New' button to build a package.", 'duplicator'); ?><br/>
114
  <div class="dup-quick-start">
115
  <?php _e("New to Duplicator?", 'duplicator'); ?><br/>
116
+ <a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=packages_empty&utm_campaign=quick_start" target="_blank">
117
+ <?php _e("Check out the 'Quick Start' guide!", 'duplicator'); ?>
118
+ </a>
119
  </div>
120
 
121
  <div style="height:75px">&nbsp;</div>
views/packages/main/s1.setup1.php CHANGED
@@ -31,6 +31,7 @@ $ui_css_installer = (isset($data->payload['dup-pack-installer-panel']) && $data-
31
  $dup_intaller_files = implode(", ", array_keys(DUP_Server::getInstallerFiles()));
32
  $dbbuild_mode = (DUP_Settings::Get('package_mysqldump') && DUP_DB::getMySqlDumpPath()) ? 'mysqldump' : 'PHP';
33
  $retry_enabled = isset($_GET['retry']) ? true : false;
 
34
 
35
  ?>
36
 
31
  $dup_intaller_files = implode(", ", array_keys(DUP_Server::getInstallerFiles()));
32
  $dbbuild_mode = (DUP_Settings::Get('package_mysqldump') && DUP_DB::getMySqlDumpPath()) ? 'mysqldump' : 'PHP';
33
  $retry_enabled = isset($_GET['retry']) ? true : false;
34
+ $retry_dbenabled = isset($_GET['retry']) && $_GET['retry'] == 2 ? true : false;
35
 
36
  ?>
37
 
views/packages/main/s1.setup2.php CHANGED
@@ -3,8 +3,6 @@
3
  PACKAGE OPTS*/
4
  form#dup-form-opts label {line-height:22px}
5
  form#dup-form-opts input[type=checkbox] {margin-top:3px}
6
- form#dup-form-opts fieldset {border-radius:4px; border-top:1px solid #dfdfdf; line-height:20px}
7
- form#dup-form-opts fieldset{padding:10px 15px 15px 15px; min-height:275px; margin:0 10px 10px 10px}
8
  form#dup-form-opts textarea, input[type="text"] {width:100%}
9
  form#dup-form-opts textarea#filter-dirs {height:95px;}
10
  form#dup-form-opts textarea#filter-exts {height:27px}
@@ -490,6 +488,11 @@ jQuery(document).ready(function ($)
490
  $cb.closest("label").css('textDecoration', 'none');
491
  }
492
  }
 
 
 
 
 
493
 
494
  //Init:Toggle OptionTabs
495
  Duplicator.Pack.ToggleFileFilters();
3
  PACKAGE OPTS*/
4
  form#dup-form-opts label {line-height:22px}
5
  form#dup-form-opts input[type=checkbox] {margin-top:3px}
 
 
6
  form#dup-form-opts textarea, input[type="text"] {width:100%}
7
  form#dup-form-opts textarea#filter-dirs {height:95px;}
8
  form#dup-form-opts textarea#filter-exts {height:27px}
488
  $cb.closest("label").css('textDecoration', 'none');
489
  }
490
  }
491
+
492
+ <?php if ($retry_dbenabled) :?>
493
+ $('#dup-pack-archive-panel').show(500);
494
+ $('#export-onlydb').prop( "checked", true );
495
+ <?php endif; ?>
496
 
497
  //Init:Toggle OptionTabs
498
  Duplicator.Pack.ToggleFileFilters();
views/packages/main/s2.scan1.php CHANGED
@@ -92,6 +92,7 @@
92
  div#dup-scan-warning-continue div.msg1 label{font-size:16px; color:#630f0f}
93
  div#dup-scan-warning-continue div.msg2 {padding:2px; line-height:13px}
94
  div#dup-scan-warning-continue div.msg2 label {font-size:11px !important}
 
95
 
96
  /*DIALOG WINDOWS*/
97
  div#arc-details-dlg {font-size:12px}
92
  div#dup-scan-warning-continue div.msg1 label{font-size:16px; color:#630f0f}
93
  div#dup-scan-warning-continue div.msg2 {padding:2px; line-height:13px}
94
  div#dup-scan-warning-continue div.msg2 label {font-size:11px !important}
95
+ div.dup-pro-support {text-align:center; font-style:italic; font-size:12px; margin-top:20px}
96
 
97
  /*DIALOG WINDOWS*/
98
  div#arc-details-dlg {font-size:12px}
views/packages/main/s2.scan2.php CHANGED
@@ -39,7 +39,7 @@ PHP SETTINGS -->
39
  _e('Timeouts may occur for larger packages when [max_execution_time] time in the php.ini is too low. A value of 0 (recommended) indicates that PHP has no time limits. '
40
  . 'An attempt is made to override this value if the server allows it.', 'duplicator');
41
  echo '<br/><br/>';
42
- _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 '
43
  . 'the process. If you are on a budget host and limited on processing time, consider using the database or file filters to shrink the size of your overall package. '
44
  . 'However use caution as excluding the wrong resources can cause your install to not work properly.', 'duplicator');
45
  echo "&nbsp;<i><a href='http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time' target='_blank'>[" . __('details', 'duplicator') . "]</a></i>";
39
  _e('Timeouts may occur for larger packages when [max_execution_time] time in the php.ini is too low. A value of 0 (recommended) indicates that PHP has no time limits. '
40
  . 'An attempt is made to override this value if the server allows it.', 'duplicator');
41
  echo '<br/><br/>';
42
+ _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 timeout messages, then your web server could be killing '
43
  . 'the process. If you are on a budget host and limited on processing time, consider using the database or file filters to shrink the size of your overall package. '
44
  . 'However use caution as excluding the wrong resources can cause your install to not work properly.', 'duplicator');
45
  echo "&nbsp;<i><a href='http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time' target='_blank'>[" . __('details', 'duplicator') . "]</a></i>";
views/packages/main/s2.scan3.php CHANGED
@@ -124,14 +124,6 @@ TOTAL SIZE -->
124
  </div>
125
  </div>
126
 
127
- <?php
128
- if ($zip_check != null) {
129
- echo '<div style="text-align:center; font-weight:bold; font-style:italic; float:left">&nbsp;';
130
- _e('Package support up to 2GB in', 'duplicator');
131
- echo '&nbsp;<a href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&amp;utm_medium=wordpress_plugin&amp;utm_content=free_size_warn&amp;utm_campaign=duplicator_pro" target="_blank">' . __('Professional', 'duplicator') . '</a>';
132
- echo '</div>';
133
- }
134
- ?>
135
 
136
  <div class="apply-btn" style="margin-bottom:5px;float:right">
137
  <button type="button" class="button-small" onclick="Duplicator.Pack.applyFilters(this, 'large')">
@@ -292,6 +284,18 @@ DATABASE -->
292
  ?>
293
  </div>
294
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
295
  </div>
296
  <br/><br/>
297
 
124
  </div>
125
  </div>
126
 
 
 
 
 
 
 
 
 
127
 
128
  <div class="apply-btn" style="margin-bottom:5px;float:right">
129
  <button type="button" class="button-small" onclick="Duplicator.Pack.applyFilters(this, 'large')">
284
  ?>
285
  </div>
286
  </div>
287
+
288
+ <?php
289
+ if ($zip_check != null) {
290
+ echo '<div class="dup-pro-support">&nbsp;';
291
+ _e('Get larger site support with', 'duplicator');
292
+ echo '&nbsp;<a href="https://snapcreek.com/duplicator/?utm_source=duplicator_free&amp;utm_medium=wordpress_plugin&amp;utm_content=free_size_warn&amp;utm_campaign=duplicator_pro" target="_blank">' . __('Professional', 'duplicator') . '!</a>';
293
+ echo '</div>';
294
+ } else {
295
+ echo '<br/>';
296
+ }
297
+ ?>
298
+
299
  </div>
300
  <br/><br/>
301
 
views/packages/main/s3.build.php CHANGED
@@ -23,19 +23,26 @@
23
  div#dup-progress-area h2.title {background-color:#efefef; margin:0px}
24
  div#dup-progress-area span.label {font-weight:bold}
25
  div#dup-msg-success {color:#18592A; padding:5px;}
26
- div#dup-msg-success fieldset,
27
- div#dup-msg-error fieldset {text-align:left; width:95%; border:1px solid #dfdfdf; border-radius:5px;}
28
- div.dup-msg-error-area {overflow-y: scroll; padding:5px 15px 5px 15px; max-height:150px; max-width: 700px}
29
  div.dup-msg-success-stats{color:#999;margin:10px 0px 0px 0px}
30
  div.dup-msg-success-links {margin:20px 5px 5px 5px; font-size: 14px; font-weight: bold}
31
- div#dup-msg-error {color:maroon; padding:5px;}
32
  div#dup-progress-area div.done-title {font-size:22px; font-weight:bold; margin:0px 0px 10px 0px}
33
- div#dup-logs {text-align:center; margin:auto; padding:5px; width:350px;}
34
- div#dup-logs a {font-size:15px; text-decoration:none !important; display:inline-block; margin:20px 0px 5px 0px}
35
  div.dup-button-footer {text-align:right; margin:20px 10px 0px 0px}
36
  button.button {font-size:16px !important; height:30px !important; font-weight:bold; padding:0px 10px 5px 10px !important; min-width: 150px }
37
  span.dup-btn-size {font-size:11px;font-weight: normal}
38
  p.get-pro {font-size:12px; color:#999; border-top:1px solid #eeeeee; padding:5px 0 0 0; margin:0; font-style:italic}
 
 
 
 
 
 
 
 
 
 
 
 
39
  </style>
40
 
41
  <!-- =========================================
@@ -65,106 +72,203 @@ TOOL BAR: STEPS -->
65
 
66
  <form id="form-duplicator" method="post" action="?page=duplicator">
67
 
68
- <!-- PROGRESS BAR -->
69
- <div id="dup-progress-bar-area">
70
- <div class="dup-progress-title"><i class="fa fa-cog fa-spin"></i> <?php _e('Building Package', 'duplicator'); ?></div>
71
- <div id="dup-progress-bar"></div>
72
- <b><?php _e('Please Wait...', 'duplicator'); ?></b><br/><br/>
73
- <i><?php _e('Keep this window open during the build process.', 'duplicator'); ?></i><br/>
74
- <i><?php _e('This may take several minutes.', 'duplicator'); ?></i><br/>
75
- </div>
76
-
77
- <div id="dup-progress-area" class="dup-panel" style="display:none">
78
- <div class="dup-panel-title"><b style="font-size:22px"><?php _e('Build Status', 'duplicator'); ?></b></div>
79
- <div class="dup-panel-panel">
80
-
81
- <!-- =========================
82
- SUCCESS MESSAGE -->
83
- <div id="dup-msg-success" style="display:none">
84
- <div class="dup-hdr-success">
85
- <i class="fa fa-check-square-o fa-lg"></i> <?php _e('Package Completed', 'duplicator'); ?>
86
- </div>
87
-
88
- <div class="dup-msg-success-stats">
89
- <b><?php _e('Name', 'duplicator'); ?>:</b> <span id="data-name-hash"></span><br/>
90
- <b><?php _e('Process Time', 'duplicator'); ?>:</b> <span id="data-time"></span><br/>
91
- </div><br/>
92
-
93
- <button id="dup-btn-installer" class="button button-primary button-large">
94
- <i class="fa fa-bolt"></i> <?php _e("Installer", 'duplicator') ?>
95
- <span id="dup-btn-installer-size" class="dup-btn-size"></span>
96
- </button> &nbsp;
97
- <button id="dup-btn-archive" class="button button-primary button-large">
98
- <i class="fa fa-file-archive-o"></i> <?php _e("Archive", 'duplicator') ?>
99
- <span id="dup-btn-archive-size" class="dup-btn-size"></span>
100
- </button>
101
- <div style='margin: 7px 0 40px 0; color:#999'>
102
- <small><i><?php _e("click buttons to download", 'duplicator') ?></i></small>
103
- </div>
104
- <div class="dup-msg-success-links">
105
- <?php printf("<a href='?page=duplicator'>[ %s ]</a>", __('All Packages', 'duplicator'));?>
106
- <?php printf("<a href='?page=duplicator&tab=new1'>[ %s ]</a>", __('Create New', 'duplicator'));?>
107
- </div>
108
- <br/>
109
- <p class="get-pro">
110
- <?php echo $rand_txt[array_rand($rand_txt, 1)]; ?>
111
- </p>
112
  </div>
113
-
114
- <!-- =========================
115
- ERROR MESSAGE -->
116
- <div id="dup-msg-error" style="display:none">
117
- <div class="done-title"><i class="fa fa-chain-broken"></i> <?php _e('Host Build Interrupt', 'duplicator'); ?></div>
118
- <b><?php _e('This host has generated an exception.', 'duplicator'); ?></b><br/>
119
-
120
- <i><?php _e("Please click the 'Try Again' button.", 'duplicator'); ?></i><br/><br/>
121
-
122
- <input type="button" class="button" value="<?php _e('Try Again', 'duplicator'); ?>" onclick="window.location = 'admin.php?page=duplicator&tab=new1&retry=1'" />
123
- <input type="button" style="margin-right:10px;" class="button" value="<?php _e('Diagnose', 'duplicator'); ?>" onclick="window.open('https://snapcreek.com/duplicator/docs/faqs-tech/#faq-trouble-100-q', '_blank');return false;" />
124
-
125
- <fieldset>
126
- <legend><b><?php _e('Details', 'duplicator'); ?></b></legend>
127
- <div class="dup-msg-error-area">
128
- <div id="dup-msg-error-response-time">
129
- <span class="label"><?php _e("Allowed Runtime:", 'duplicator'); ?></span>
130
- <span class="data"></span>
131
- </div>
132
- <div id="dup-msg-error-response-status">
133
- <span class="label"><?php _e("Server Status:", 'duplicator'); ?></span>
134
- <span class="data"></span>
135
- </div>
136
- <div id="dup-msg-error-response-text">
137
- <span class="label"><?php _e("Error Message:", 'duplicator'); ?></span><br/>
138
- <span class="data"></span>
139
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  </div>
141
- </fieldset><br/>
142
-
143
- <fieldset style="color:#777">
144
- <legend><b> <?php _e('Notice', 'duplicator'); ?></b></legend>
145
- <div class="dup-msg-error-area">
146
  <?php printf('<b><i class="fa fa-folder-o"></i> %s %s</b> <br/> %s',
147
  __('Build Folder:'),
148
  DUPLICATOR_SSDIR_PATH_TMP,
149
- __("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' "
150
- . "folder above and see if the archive file is growing in size. If it is not then your server has strict timeout constraints.", 'duplicator')
 
151
  );
152
- ?> <br/>
153
  </div>
154
- </fieldset>
155
-
156
- <!-- LOGS -->
157
- <div id="dup-logs">
158
- <div style="font-weight:bold">
159
- <i class="fa fa-list-alt"></i> <a href='javascript:void(0)' style="color:maroon" onclick='Duplicator.OpenLogWindow(true)'> <?php _e('Package Log', 'duplicator');?> </a>
160
- </div>
161
- <br/>
162
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  </div>
165
-
166
  </div>
 
167
  </div>
 
 
168
  </form>
169
 
170
  <script>
23
  div#dup-progress-area h2.title {background-color:#efefef; margin:0px}
24
  div#dup-progress-area span.label {font-weight:bold}
25
  div#dup-msg-success {color:#18592A; padding:5px;}
26
+
 
 
27
  div.dup-msg-success-stats{color:#999;margin:10px 0px 0px 0px}
28
  div.dup-msg-success-links {margin:20px 5px 5px 5px; font-size: 14px; font-weight: bold}
 
29
  div#dup-progress-area div.done-title {font-size:22px; font-weight:bold; margin:0px 0px 10px 0px}
 
 
30
  div.dup-button-footer {text-align:right; margin:20px 10px 0px 0px}
31
  button.button {font-size:16px !important; height:30px !important; font-weight:bold; padding:0px 10px 5px 10px !important; min-width: 150px }
32
  span.dup-btn-size {font-size:11px;font-weight: normal}
33
  p.get-pro {font-size:12px; color:#999; border-top:1px solid #eeeeee; padding:5px 0 0 0; margin:0; font-style:italic}
34
+
35
+ /*HOST TIMEOUT */
36
+ div#dup-msg-error {color:maroon; padding:5px;}
37
+ div.dup-box-title {text-align: left; background-color:#F6F6F6}
38
+ div.dup-box-title:hover { background-color:#efefef}
39
+ div.dup-box-panel {text-align: left}
40
+ div.no-top {border-top: none}
41
+ div.dup-box-panel b.opt-title {font-size:18px}
42
+ div.dup-msg-error-area {overflow-y: scroll; padding:5px 15px 15px 15px; max-height:170px; width:95%; border: 1px solid silver; border-radius: 4px; line-height: 22px}
43
+ div#dup-logs {text-align:center; margin:auto; padding:5px; width:350px;}
44
+ div#dup-logs a {font-size:15px; text-decoration:none !important; display:inline-block; margin:20px 0px 5px 0px}
45
+ span.sub-data {display: inline-block; padding-left:20px}
46
  </style>
47
 
48
  <!-- =========================================
72
 
73
  <form id="form-duplicator" method="post" action="?page=duplicator">
74
 
75
+ <!-- PROGRESS BAR -->
76
+ <div id="dup-progress-bar-area">
77
+ <div class="dup-progress-title"><i class="fa fa-cog fa-spin"></i> <?php _e('Building Package', 'duplicator'); ?></div>
78
+ <div id="dup-progress-bar"></div>
79
+ <b><?php _e('Please Wait...', 'duplicator'); ?></b><br/><br/>
80
+ <i><?php _e('Keep this window open during the build process.', 'duplicator'); ?></i><br/>
81
+ <i><?php _e('This may take several minutes.', 'duplicator'); ?></i><br/>
82
+ </div>
83
+
84
+ <div id="dup-progress-area" class="dup-panel" style="display:none">
85
+ <div class="dup-panel-title"><b style="font-size:22px"><?php _e('Build Status', 'duplicator'); ?></b></div>
86
+ <div class="dup-panel-panel">
87
+
88
+ <!-- =========================
89
+ SUCCESS MESSAGE -->
90
+ <div id="dup-msg-success" style="display:none">
91
+ <div class="dup-hdr-success">
92
+ <i class="fa fa-check-square-o fa-lg"></i> <?php _e('Package Completed', 'duplicator'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  </div>
94
+
95
+ <div class="dup-msg-success-stats">
96
+ <b><?php _e('Name', 'duplicator'); ?>:</b> <span id="data-name-hash"></span><br/>
97
+ <b><?php _e('Process Time', 'duplicator'); ?>:</b> <span id="data-time"></span><br/>
98
+ </div><br/>
99
+
100
+ <button id="dup-btn-installer" class="button button-primary button-large">
101
+ <i class="fa fa-bolt"></i> <?php _e("Installer", 'duplicator') ?>
102
+ <span id="dup-btn-installer-size" class="dup-btn-size"></span>
103
+ </button> &nbsp;
104
+ <button id="dup-btn-archive" class="button button-primary button-large">
105
+ <i class="fa fa-file-archive-o"></i> <?php _e("Archive", 'duplicator') ?>
106
+ <span id="dup-btn-archive-size" class="dup-btn-size"></span>
107
+ </button>
108
+ <div style='margin: 7px 0 40px 0; color:#999'>
109
+ <small><i><?php _e("click buttons to download", 'duplicator') ?></i></small>
110
+ </div>
111
+ <div class="dup-msg-success-links">
112
+ <?php printf("<a href='?page=duplicator'>[ %s ]</a>", __('All Packages', 'duplicator'));?>
113
+ <?php printf("<a href='?page=duplicator&tab=new1'>[ %s ]</a>", __('Create New', 'duplicator'));?>
114
+ </div>
115
+ <br/>
116
+ <p class="get-pro">
117
+ <?php echo $rand_txt[array_rand($rand_txt, 1)]; ?>
118
+ </p>
119
+ </div>
120
+
121
+ <!-- =========================
122
+ ERROR MESSAGE -->
123
+ <div id="dup-msg-error" style="display:none; color:#000">
124
+ <div class="done-title"><i class="fa fa-chain-broken"></i> <?php _e('Host Build Interrupt', 'duplicator'); ?></div>
125
+ <b><?php _e('This server cannot complete the build due to setup constraints.', 'duplicator'); ?></b><br/>
126
+ <i><?php _e("To help get you past this hosts limitation consider these options:", 'duplicator'); ?></i>
127
+ <br/><br/><br/>
128
+
129
+ <!-- OPTION 1: TRY AGAIN -->
130
+ <div class="dup-box">
131
+ <div class="dup-box-title">
132
+ <i class="fa fa-reply"></i>&nbsp;<?php _e('Try Again', 'duplicator'); ?>
133
+ <div class="dup-box-arrow"><i class="fa fa-caret-down"></i></div>
134
+ </div>
135
+ <div class="dup-box-panel" id="dup-pack-build-try1" style="display:none">
136
+ <b class="opt-title"><?php _e('OPTION 1:', 'duplicator'); ?></b><br/>
137
+
138
+ <?php _e('The first pass for reading files on some budget hosts is slow and may conflict with strict timeout settings '
139
+ . 'setup by the hosting provider. If this is the case its recommended to retry the build. <i>If the problem persists then consider the other options below.</i>', 'duplicator'); ?><br/><br/>
140
+
141
+ <div style="text-align: center; margin: 10px">
142
+ <input type="button" class="button-large button-primary" value="<?php _e('Retry Package Build', 'duplicator'); ?>" onclick="window.location = 'admin.php?page=duplicator&tab=new1&retry=1'" />
143
  </div>
144
+
145
+ <div style="color:#777; padding: 15px 5px 5px 5px">
146
+ <b> <?php _e('Notice', 'duplicator'); ?></b><br/>
 
 
147
  <?php printf('<b><i class="fa fa-folder-o"></i> %s %s</b> <br/> %s',
148
  __('Build Folder:'),
149
  DUPLICATOR_SSDIR_PATH_TMP,
150
+ __("On some servers the build will continue to run in the background. To validate if a build is still running; open the 'tmp' folder above and see "
151
+ . "if the archive file is growing in size or check the main packages screen to see if the package completed. If it is not then your server "
152
+ . "has strict timeout constraints.", 'duplicator')
153
  );
154
+ ?>
155
  </div>
 
 
 
 
 
 
 
 
156
  </div>
157
+ </div>
158
+
159
+ <!-- OPTION 2: Two-Part Install -->
160
+ <div class="dup-box no-top">
161
+ <div class="dup-box-title">
162
+ <i class="fa fa-random"></i>&nbsp;<?php _e('Two-Part Install', 'duplicator'); ?>
163
+ <div class="dup-box-arrow"><i class="fa fa-caret-down"></i></div>
164
+ </div>
165
+ <div class="dup-box-panel" id="dup-pack-build-try2" style="display:none">
166
+ <b class="opt-title"><?php _e('OPTION 2:', 'duplicator'); ?></b><br/>
167
+
168
+ <?php _e('A two-part install minimizes server load and can avoid I/O and CPU host restrictions. With this procedure you simply build a \'database-only\' archive, manually move the website files, '
169
+ . 'and then run the installer to complete the process.', 'duplicator'); ?><br/><br/>
170
+
171
+
172
+ <b><?php _e('<i class="fa fa-file-text-o"></i> Overview', 'duplicator'); ?></b><br/>
173
+ <?php _e('Please follow these steps:', 'duplicator'); ?><br/>
174
+ <ol>
175
+ <li><?php _e('Click the button below to go back to Step 1.', 'duplicator'); ?></li>
176
+ <li><?php _e('On Step 1 the "Archive Only the Database" checkbox will be auto checked.', 'duplicator'); ?></li>
177
+ <li>
178
+ <?php _e('Complete the package build and follow the ', 'duplicator'); ?>
179
+ <?php
180
+ printf('%s "<a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=host_interupt_2partlink&utm_campaign=build_issues#quick-060-q" target="faq">%s</a>".',
181
+ __('', 'duplicator'),
182
+ __('Quick Start Two-Part Install Instructions', 'duplicator'));
183
+ ?>
184
+ </li>
185
+ </ol> <br/>
186
+
187
+ <div style="text-align: center; margin: 10px">
188
+ <input type="button" class="button-large button-primary" value="<?php _e('Continue with Two-Part Install', 'duplicator'); ?>" onclick="window.location = 'admin.php?page=duplicator&tab=new1&retry=2'" />
189
+ </div><br/>
190
+
191
+
192
 
193
+ </div>
194
+ </div>
195
+
196
+ <!-- OPTION 3: DIAGNOSE SERVER -->
197
+ <div class="dup-box no-top">
198
+ <div class="dup-box-title">
199
+ <i class="fa fa-cog"></i>&nbsp;<?php _e('Configure Server', 'duplicator'); ?>
200
+ <div class="dup-box-arrow"><i class="fa fa-caret-down"></i></div>
201
+ </div>
202
+ <div class="dup-box-panel" id="dup-pack-build-try3" style="display:none">
203
+
204
+ <b class="opt-title"><?php _e('OPTION 3:', 'duplicator'); ?></b><br/>
205
+ <?php _e('This option is available on some hosts that allow for users to adjust server configurations. With this option you will be directed to an FAQ page that will show '
206
+ . 'various recommendations you can take to improve/unlock constraints setup on this server.', 'duplicator'); ?><br/><br/>
207
+
208
+ <div style="text-align: center; margin: 10px">
209
+ <input type="button" style="margin-right:10px;" class="button-large button-primary" value="<?php _e('Diagnose Server Setup', 'duplicator'); ?>"
210
+ onclick="window.open('https://snapcreek.com/duplicator/docs/faqs-tech/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=host_interupt_diagnosebtn&utm_campaign=build_issues#faq-trouble-100-q', '_blank');return false;" />
211
+ </div>
212
+
213
+ <b><?php _e('RUNTIME DETAILS', 'duplicator'); ?>:</b><br/>
214
+ <div class="dup-msg-error-area">
215
+ <div id="dup-msg-error-response-time">
216
+ <span class="label"><?php _e("Allowed Runtime:", 'duplicator'); ?></span>
217
+ <span class="data"></span>
218
+ </div>
219
+ <div id="dup-msg-error-response-php">
220
+ <span class="label"><?php _e("PHP Max Execution", 'duplicator'); ?></span><br/>
221
+ <span class="data sub-data">
222
+ <span class="label"><?php _e("Time", 'duplicator'); ?>:</span>
223
+ <?php
224
+ $try_value = @ini_get('max_execution_time');
225
+ $try_update = set_time_limit(0);
226
+ echo "$try_value <a href='http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time' target='_blank'> (default)</a>";
227
+ ?>
228
+ <i class="fa fa-question-circle data-size-help"
229
+ data-tooltip-title="<?php _e("PHP Max Execution Time", 'duplicator'); ?>"
230
+ data-tooltip="<?php _e('This value is represented in seconds. A value of 0 means no timeout limit is set for PHP.', 'duplicator'); ?>"></i>
231
+ </span><br/>
232
+
233
+ <span class="data sub-data">
234
+ <span class="label"><?php _e("Mode", 'duplicator'); ?>:</span>
235
+ <?php
236
+ $try_update = $try_update ? 'is dynamic' : 'value is fixed';
237
+ echo "{$try_update}";
238
+ ?>
239
+ <i class="fa fa-question-circle data-size-help"
240
+ data-tooltip-title="<?php _e("PHP Max Execution Mode", 'duplicator'); ?>"
241
+ data-tooltip="<?php _e('If the value is [dynamic] then its possible for PHP to run longer than the default. '
242
+ . 'If the value is [fixed] then PHP will not be allowed to run longer than the default. <br/><br/> If this value is larger than the [Allowed Runtime] above then '
243
+ . 'the web server has been enabled with a timeout cap and is overriding the PHP max time setting.', 'duplicator'); ?>"></i>
244
+ </span>
245
+ </div>
246
+
247
+ <div id="dup-msg-error-response-status">
248
+ <span class="label"><?php _e("Server Status:", 'duplicator'); ?></span>
249
+ <span class="data"></span>
250
+ </div>
251
+ <div id="dup-msg-error-response-text">
252
+ <span class="label"><?php _e("Error Message:", 'duplicator'); ?></span><br/>
253
+ <span class="data"></span>
254
+ </div>
255
+ </div><br/>
256
+
257
+ <!-- LOGS -->
258
+ <div id="dup-logs">
259
+ <div style="font-weight:bold">
260
+ <i class="fa fa-list-alt"></i>
261
+ <a href='javascript:void(0)' style="color:#000" onclick='Duplicator.OpenLogWindow(true)'><?php _e('Read Package Log File', 'duplicator');?></a>
262
+ </div>
263
+ </div>
264
+ </div>
265
  </div>
266
+ <br/><br/><br/>
267
  </div>
268
+
269
  </div>
270
+ </div>
271
+
272
  </form>
273
 
274
  <script>
views/tools/diagnostics/inc.settings.php CHANGED
@@ -140,7 +140,7 @@ SERVER SETTINGS -->
140
  ?>
141
  <i class="fa fa-question-circle data-size-help"
142
  data-tooltip-title="<?php _e("Max Execution Time", 'duplicator'); ?>"
143
- data-tooltip="<?php _e('If the value shows dynamic then this means its possible for PHP to run longer than the defailt. '
144
  . 'If the value is fixed then PHP will not be allowed to run longer than the default.', 'duplicator'); ?>"></i>
145
  </td>
146
  </tr>
140
  ?>
141
  <i class="fa fa-question-circle data-size-help"
142
  data-tooltip-title="<?php _e("Max Execution Time", 'duplicator'); ?>"
143
+ data-tooltip="<?php _e('If the value shows dynamic then this means its possible for PHP to run longer than the default. '
144
  . 'If the value is fixed then PHP will not be allowed to run longer than the default.', 'duplicator'); ?>"></i>
145
  </td>
146
  </tr>