Duplicator – WordPress Migration Plugin - Version 1.2.30

Version Description

Download this release

Release Info

Developer bobriley
Plugin Icon 128x128 Duplicator – WordPress Migration Plugin
Version 1.2.30
Comparing to
See all releases

Code changes from version 1.2.28 to 1.2.30

assets/css/style.css CHANGED
@@ -38,8 +38,8 @@ div#dup-progress-bar-area {width:500px; margin:40px auto 0px auto; padding:25px
38
  div#dup-progress-bar-area h2 {margin-bottom:15px}
39
 
40
  /*HEADER MESSAGES*/
41
- div.dup-hdr-success {color:green; font-size:20px; font-weight:bold}
42
- div.dup-hdr-error {color:#A62426; font-size:20px; font-weight:bold}
43
 
44
  /*DIALOGS: THICKBOX */
45
  #TB_title { padding-bottom: 3px!important; margin-bottom:5px!important; font-size:16px!important;}
38
  div#dup-progress-bar-area h2 {margin-bottom:15px}
39
 
40
  /*HEADER MESSAGES*/
41
+ div.dup-hdr-success {color:green; font-size:22px; font-weight:bold}
42
+ div.dup-hdr-error {color:#A62426; font-size:22px; font-weight:bold}
43
 
44
  /*DIALOGS: THICKBOX */
45
  #TB_title { padding-bottom: 3px!important; margin-bottom:5px!important; font-size:16px!important;}
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.28');
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.30');
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.28
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.30
7
  Author: Snap Creek
8
  Author URI: http://www.snapcreek.com/duplicator/
9
  Text Domain: duplicator
installer/build/classes/utilities/class.u.php CHANGED
@@ -261,5 +261,17 @@ class DUPX_U
261
  return str_replace("/", "\\", $path);
262
  }
263
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  }
265
  ?>
261
  return str_replace("/", "\\", $path);
262
  }
263
 
264
+ /**
265
+ * Sanitize input for XSS code
266
+ *
267
+ * @param string $val The value to sanitize
268
+ *
269
+ * @return string Returns the input value cleaned up.
270
+ */
271
+ public static function sanitize($input)
272
+ {
273
+ return filter_var($input, FILTER_SANITIZE_STRING);
274
+ }
275
+
276
  }
277
  ?>
installer/build/view.step2.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
- $_POST['logging'] = isset($_POST['logging']) ? trim($_POST['logging']) : 1;
3
- $_POST['exe_safe_mode'] = (isset($_POST['exe_safe_mode'])) ? $_POST['exe_safe_mode'] : 0;
4
  ?>
5
 
6
 
@@ -193,7 +193,7 @@ Auto Posts to view.step3.php
193
  <input type="hidden" name="archive_name" value="<?php echo $GLOBALS['FW_PACKAGE_NAME'] ?>" />
194
  <input type="hidden" name="logging" id="ajax-logging" />
195
  <input type="hidden" name="retain_config" value="<?php echo $_POST['retain_config']; ?>" />
196
- <input type="hidden" name="exe_safe_mode" id="exe-safe-mode" value="<?php echo $_POST['exe_safe_mode']; ?>"/>
197
  <input type="hidden" name="dbhost" id="ajax-dbhost" />
198
  <input type="hidden" name="dbport" id="ajax-dbport" />
199
  <input type="hidden" name="dbuser" id="ajax-dbuser" />
1
  <?php
2
+ $_POST['logging'] = isset($_POST['logging']) ? trim(DUPX_U::sanitize($_POST['logging'])) : 1;
3
+ $_POST['exe_safe_mode'] = (isset($_POST['exe_safe_mode'])) ? DUPX_U::sanitize($_POST['exe_safe_mode']) : 0;
4
  ?>
5
 
6
 
193
  <input type="hidden" name="archive_name" value="<?php echo $GLOBALS['FW_PACKAGE_NAME'] ?>" />
194
  <input type="hidden" name="logging" id="ajax-logging" />
195
  <input type="hidden" name="retain_config" value="<?php echo $_POST['retain_config']; ?>" />
196
+ <input type="hidden" name="exe_safe_mode" id="exe-safe-mode" value="<?php echo $_POST['exe_safe_mode']; ?>"/>
197
  <input type="hidden" name="dbhost" id="ajax-dbhost" />
198
  <input type="hidden" name="dbport" id="ajax-dbport" />
199
  <input type="hidden" name="dbuser" id="ajax-dbuser" />
installer/build/view.step4.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
 
 
2
  $_POST['archive_name'] = isset($_POST['archive_name']) ? $_POST['archive_name'] : '';
3
- $_POST['retain_config'] = (isset($_POST['retain_config']) && $_POST['retain_config'] == '1') ? true : false;
4
  $_POST['exe_safe_mode'] = isset($_POST['exe_safe_mode']) ? $_POST['exe_safe_mode'] : 0;
5
 
6
  $admin_base = basename($GLOBALS['FW_WPLOGIN_URL']);
1
  <?php
2
+
3
+ $_POST['url_new'] = isset($_POST['url_new']) ? DUPX_U::sanitize($_POST['url_new']) : '';
4
  $_POST['archive_name'] = isset($_POST['archive_name']) ? $_POST['archive_name'] : '';
5
+ $_POST['retain_config'] = isset($_POST['retain_config']) && $_POST['retain_config'] == '1' ? true : false;
6
  $_POST['exe_safe_mode'] = isset($_POST['exe_safe_mode']) ? $_POST['exe_safe_mode'] : 0;
7
 
8
  $admin_base = basename($GLOBALS['FW_WPLOGIN_URL']);
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: corylamleorg, bobriley
3
  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.3
7
  Requires PHP: 5.2.17
8
- Stable tag: 1.2.28
9
  License: GPLv2
10
 
11
  WordPress migration and backups are much easier with Duplicator! Clone, backup, move and transfer an entire site from one location to another.
@@ -103,4 +103,4 @@ Please see the following url:
103
 
104
  == Upgrade Notice ==
105
 
106
- 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: migration, backup, restore, move, migrate, duplicate, transfer, clone, automate, copy site
5
  Requires at least: 4.0
6
+ Tested up to: 4.9
7
  Requires PHP: 5.2.17
8
+ Stable tag: 1.2.30
9
  License: GPLv2
10
 
11
  WordPress migration and backups are much easier with Duplicator! Clone, backup, move and transfer an entire site from one location to another.
103
 
104
  == Upgrade Notice ==
105
 
106
+ Please use our ticketing system when submitting your logs. Please do not post to the forums.
views/help/gopro.php CHANGED
@@ -204,23 +204,23 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
204
  <td colspan="3" class="group-header"><?php _e('Enhanced Experience', 'duplicator') ?></td>
205
  </tr>-->
206
  <tr>
207
- <td class="feature-column"><?php _e('Email Alerts') ?></td>
208
  <td class="check-column"></td>
209
  <td class="check-column"><i class="fa fa-check"></i></td>
210
  </tr>
211
 
212
  <tr>
213
- <td class="feature-column"><?php _e('Manual Transfers') ?></td>
214
  <td class="check-column"></td>
215
  <td class="check-column"><i class="fa fa-check"></i></td>
216
  </tr>
217
  <tr>
218
- <td class="feature-column"><?php _e('Active Customer Support') ?></td>
219
  <td class="check-column"></td>
220
  <td class="check-column"><i class="fa fa-check"></i></td>
221
  </tr>
222
  <tr>
223
- <td class="feature-column"><?php _e('Plus Many Other Features...') ?></td>
224
  <td class="check-column"></td>
225
  <td class="check-column"><i class="fa fa-check"></i></td>
226
  </tr>
204
  <td colspan="3" class="group-header"><?php _e('Enhanced Experience', 'duplicator') ?></td>
205
  </tr>-->
206
  <tr>
207
+ <td class="feature-column"><?php _e('Email Alerts', 'duplicator') ?></td>
208
  <td class="check-column"></td>
209
  <td class="check-column"><i class="fa fa-check"></i></td>
210
  </tr>
211
 
212
  <tr>
213
+ <td class="feature-column"><?php _e('Manual Transfers', 'duplicator') ?></td>
214
  <td class="check-column"></td>
215
  <td class="check-column"><i class="fa fa-check"></i></td>
216
  </tr>
217
  <tr>
218
+ <td class="feature-column"><?php _e('Active Customer Support', 'duplicator') ?></td>
219
  <td class="check-column"></td>
220
  <td class="check-column"><i class="fa fa-check"></i></td>
221
  </tr>
222
  <tr>
223
+ <td class="feature-column"><?php _e('Plus Many Other Features...', 'duplicator') ?></td>
224
  <td class="check-column"></td>
225
  <td class="check-column"><i class="fa fa-check"></i></td>
226
  </tr>
views/packages/main/s3.build.php CHANGED
@@ -9,7 +9,7 @@
9
 
10
  //Help support Duplicator
11
  $atext0 = __('Help', 'duplicator') . "&nbsp;<a target='_blank' href='https://wordpress.org/support/plugin/duplicator/reviews/?filter=5'>";
12
- $atext0 .= __('review the plugin', 'duplicator') . '</a>&nbsp;' . __('on WordPress.org!', 'duplicator');
13
 
14
  //Get even more power & features with Duplicator Pro
15
  $atext1 = __('Want more power? Try', 'duplicator');
@@ -29,21 +29,27 @@
29
  div#dup-progress-area span.label {font-weight:bold}
30
  div#dup-msg-success {color:#18592A; padding:5px;}
31
 
32
- div.dup-msg-success-stats{color:#999;margin:10px 0px 0px 0px}
33
  div.dup-msg-success-links {margin:20px 5px 5px 5px; font-size: 13px;}
34
- div#dup-progress-area div.done-title {font-size:22px; font-weight:bold; margin:0px 0px 10px 0px}
35
  div#dup-progress-area div.dup-panel-title {background-color: #dfdfdf;}
36
-
 
 
 
37
  div#dup-progress-area div.dup-panel-panel { border-top: 1px solid silver}
38
  fieldset.download-area {border:2px dashed #dfdfdf; padding:20px 20px 10px 20px; border-radius:9px; margin: auto; width:400px }
39
  fieldset.download-area legend {font-weight: bold; font-size: 16px}
40
  button#dup-btn-installer, button#dup-btn-archive {min-width: 150px}
41
- div.one-click-download {margin:20px 0 10px 0; font-style: italic; font-size:16px; font-weight: bold}
 
 
42
 
43
  div.dup-button-footer {text-align:right; margin:20px 10px 0px 0px}
44
  button.button {font-size:16px !important; height:30px !important; font-weight:bold; padding:0px 10px 5px 10px !important; min-width: 150px }
45
  span.dup-btn-size {font-size:11px;font-weight: normal}
46
  p.get-pro {font-size:13px; color:#999; border-top:1px solid #eeeeee; padding:5px 0 0 0; margin:0; font-style:italic}
 
47
 
48
  /*HOST TIMEOUT */
49
  div#dup-msg-error {color:maroon; padding:5px;}
@@ -74,9 +80,10 @@ TOOL BAR: STEPS -->
74
  </div>
75
  </div>
76
  </td>
77
- <td>
78
  <a href="?page=duplicator" class="add-new-h2"><i class="fa fa-archive"></i> <?php _e("Packages", 'duplicator'); ?></a> &nbsp;
79
- <span> <?php _e("Create New", 'duplicator'); ?></span>
 
80
  </td>
81
  </tr>
82
  </table>
@@ -102,15 +109,14 @@ TOOL BAR: STEPS -->
102
  <!-- =========================
103
  SUCCESS MESSAGE -->
104
  <div id="dup-msg-success" style="display:none">
105
- <div class="dup-hdr-success">
106
  <i class="fa fa-check-square-o fa-lg"></i> <?php _e('Package Completed', 'duplicator'); ?>
107
  </div>
108
 
109
  <div class="dup-msg-success-stats">
110
- <b><?php _e('Name', 'duplicator'); ?>:</b> <span id="data-name-hash"></span><br/>
111
  <b><?php _e('Process Time', 'duplicator'); ?>:</b> <span id="data-time"></span><br/>
112
- </div>
113
- <br/><br/>
114
 
115
  <!-- DOWNLOAD FILES -->
116
  <fieldset class="download-area">
@@ -119,17 +125,13 @@ TOOL BAR: STEPS -->
119
  </legend>
120
  <button id="dup-btn-installer" class="button button-primary button-large" title="<?php _e("Click to download installer file", 'duplicator') ?>">
121
  <i class="fa fa-bolt"></i> <?php _e("Installer", 'duplicator') ?> &nbsp;
122
-
123
  </button> &nbsp;
124
  <button id="dup-btn-archive" class="button button-primary button-large" title="<?php _e("Click to download archive file", 'duplicator') ?>">
125
  <i class="fa fa-file-archive-o"></i> <?php _e("Archive", 'duplicator') ?>
126
  <span id="dup-btn-archive-size" class="dup-btn-size"></span> &nbsp;
127
-
128
  </button>
129
  <div class="one-click-download">
130
- <a href="javascript:void(0)" id="dup-link-download-both" title="<?php _e("Click to download both files", 'duplicator') ?>">
131
- <i class="fa fa-download" style="padding-left:5px; color:#0073AA">&nbsp;</i><?php _e("One-Click Download", 'duplicator') ?></a>
132
-
133
  <sup><i class="fa fa-question-circle" style='font-size:11px'
134
  data-tooltip-title="<?php _e("One Click:", 'duplicator'); ?>"
135
  data-tooltip="<?php _e('Clicking this link will open both the installer and archive download prompts at the same time. '
@@ -137,19 +139,13 @@ TOOL BAR: STEPS -->
137
  </i></sup>
138
  </div>
139
  </fieldset>
140
- <br/><br/>
141
 
142
- <div style="font-size:16px; font-style: italic">
143
  <a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=package_built_install_help&utm_campaign=duplicator_free#quick-040-q" target="_blank">
144
  <?php _e('How do I install this Package?', 'duplicator'); ?>
145
  </a>
146
  </div>
147
- <br/>
148
-
149
- <div class="dup-msg-success-links">
150
- <?php printf("<a href='?page=duplicator'>[ %s ]</a>", __('All Packages', 'duplicator'));?>
151
- <?php printf("<a href='?page=duplicator&tab=new1'>[ %s ]</a>", __('Create New', 'duplicator'));?>
152
- </div>
153
  <p class="get-pro">
154
  <?php echo $rand_txt[array_rand($rand_txt, 1)]; ?>
155
  </p>
@@ -333,7 +329,9 @@ jQuery(document).ready(function($) {
333
  var minutes = Math.floor(millis / 60000);
334
  var seconds = ((millis % 60000) / 1000).toFixed(0);
335
  var status = minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
336
- $('#dup-msg-error-response-time span.data').html(status)
 
 
337
  },
338
  success: function(data) {
339
  $('#dup-progress-bar-area').hide();
9
 
10
  //Help support Duplicator
11
  $atext0 = __('Help', 'duplicator') . "&nbsp;<a target='_blank' href='https://wordpress.org/support/plugin/duplicator/reviews/?filter=5'>";
12
+ $atext0 .= __('review the plugin', 'duplicator') . '</a>!';
13
 
14
  //Get even more power & features with Duplicator Pro
15
  $atext1 = __('Want more power? Try', 'duplicator');
29
  div#dup-progress-area span.label {font-weight:bold}
30
  div#dup-msg-success {color:#18592A; padding:5px;}
31
 
32
+ div.dup-msg-success-stats{color:#999;margin:5px 0; font-size:11px; line-height:13px}
33
  div.dup-msg-success-links {margin:20px 5px 5px 5px; font-size: 13px;}
34
+ div#dup-progress-area div.done-title {font-size:18px; font-weight:bold; margin:0px 0px 10px 0px}
35
  div#dup-progress-area div.dup-panel-title {background-color: #dfdfdf;}
36
+ div.hdr-pack-complete {font-size:18px; color:green; font-weight: bold}
37
+
38
+ div#dup-create-area-nolink, div#dup-create-area-link {float:right; font-weight: bold; margin: 0; padding: 0}
39
+ div#dup-create-area-link {display:none; margin-left: -5px}
40
  div#dup-progress-area div.dup-panel-panel { border-top: 1px solid silver}
41
  fieldset.download-area {border:2px dashed #dfdfdf; padding:20px 20px 10px 20px; border-radius:9px; margin: auto; width:400px }
42
  fieldset.download-area legend {font-weight: bold; font-size: 16px}
43
  button#dup-btn-installer, button#dup-btn-archive {min-width: 150px}
44
+ div.one-click-download {margin:15px 0 10px 0; font-size:16px; font-weight: bold}
45
+ div.one-click-download i.fa-bolt{padding-right: 5px}
46
+ div.one-click-download i.fa-file-archive-o{padding-right: 5px}
47
 
48
  div.dup-button-footer {text-align:right; margin:20px 10px 0px 0px}
49
  button.button {font-size:16px !important; height:30px !important; font-weight:bold; padding:0px 10px 5px 10px !important; min-width: 150px }
50
  span.dup-btn-size {font-size:11px;font-weight: normal}
51
  p.get-pro {font-size:13px; color:#999; border-top:1px solid #eeeeee; padding:5px 0 0 0; margin:0; font-style:italic}
52
+ div.dup-howto-exe {font-size:16px; font-style: italic; font-weight: bold; margin:45px 0 45px 0}
53
 
54
  /*HOST TIMEOUT */
55
  div#dup-msg-error {color:maroon; padding:5px;}
80
  </div>
81
  </div>
82
  </td>
83
+ <td style="padding-bottom:4px">
84
  <a href="?page=duplicator" class="add-new-h2"><i class="fa fa-archive"></i> <?php _e("Packages", 'duplicator'); ?></a> &nbsp;
85
+ <div id="dup-create-area-nolink"><?php _e("Create New", 'duplicator'); ?></div>
86
+ <div id="dup-create-area-link"><a href="admin.php?page=duplicator&tab=new1" class="add-new-h2"><?php _e("Create New", 'duplicator'); ?></a></div>
87
  </td>
88
  </tr>
89
  </table>
109
  <!-- =========================
110
  SUCCESS MESSAGE -->
111
  <div id="dup-msg-success" style="display:none">
112
+ <div class="hdr-pack-complete">
113
  <i class="fa fa-check-square-o fa-lg"></i> <?php _e('Package Completed', 'duplicator'); ?>
114
  </div>
115
 
116
  <div class="dup-msg-success-stats">
117
+ <!--b><?php _e('Name', 'duplicator'); ?>:</b> <span id="data-name-hash"></span><br/-->
118
  <b><?php _e('Process Time', 'duplicator'); ?>:</b> <span id="data-time"></span><br/>
119
+ </div><br/>
 
120
 
121
  <!-- DOWNLOAD FILES -->
122
  <fieldset class="download-area">
125
  </legend>
126
  <button id="dup-btn-installer" class="button button-primary button-large" title="<?php _e("Click to download installer file", 'duplicator') ?>">
127
  <i class="fa fa-bolt"></i> <?php _e("Installer", 'duplicator') ?> &nbsp;
 
128
  </button> &nbsp;
129
  <button id="dup-btn-archive" class="button button-primary button-large" title="<?php _e("Click to download archive file", 'duplicator') ?>">
130
  <i class="fa fa-file-archive-o"></i> <?php _e("Archive", 'duplicator') ?>
131
  <span id="dup-btn-archive-size" class="dup-btn-size"></span> &nbsp;
 
132
  </button>
133
  <div class="one-click-download">
134
+ <a href="javascript:void(0)" id="dup-link-download-both" title="<?php _e("Click to download both files", 'duplicator') ?>"><i class="fa fa-bolt"></i><i class="fa fa-file-archive-o"></i><?php _e("One-Click Download", 'duplicator') ?></a>
 
 
135
  <sup><i class="fa fa-question-circle" style='font-size:11px'
136
  data-tooltip-title="<?php _e("One Click:", 'duplicator'); ?>"
137
  data-tooltip="<?php _e('Clicking this link will open both the installer and archive download prompts at the same time. '
139
  </i></sup>
140
  </div>
141
  </fieldset>
 
142
 
143
+ <div class="dup-howto-exe">
144
  <a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=package_built_install_help&utm_campaign=duplicator_free#quick-040-q" target="_blank">
145
  <?php _e('How do I install this Package?', 'duplicator'); ?>
146
  </a>
147
  </div>
148
+
 
 
 
 
 
149
  <p class="get-pro">
150
  <?php echo $rand_txt[array_rand($rand_txt, 1)]; ?>
151
  </p>
329
  var minutes = Math.floor(millis / 60000);
330
  var seconds = ((millis % 60000) / 1000).toFixed(0);
331
  var status = minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
332
+ $('#dup-msg-error-response-time span.data').html(status);
333
+ $('#dup-create-area-nolink').hide();
334
+ $('#dup-create-area-link').show();
335
  },
336
  success: function(data) {
337
  $('#dup-progress-bar-area').hide();