Duplicator – WordPress Migration Plugin - Version 0.5.14

Version Description

Download this release

Release Info

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

Code changes from version 0.5.12 to 0.5.14

classes/package.archive.php CHANGED
@@ -118,7 +118,7 @@ class DUP_Archive {
118
  foreach ($this->Dirs as $key => $val) {
119
  //Remove path filter directories
120
  foreach($this->filterDirsArray as $item) {
121
- if (strstr($val, $item)) {
122
  $this->OmitDirs[] = $val;
123
  unset($this->Dirs[$key]);
124
  continue 2;
118
  foreach ($this->Dirs as $key => $val) {
119
  //Remove path filter directories
120
  foreach($this->filterDirsArray as $item) {
121
+ if (strstr($val, $item . '/') || $val == $item) {
122
  $this->OmitDirs[] = $val;
123
  unset($this->Dirs[$key]);
124
  continue 2;
classes/server.php CHANGED
@@ -10,10 +10,10 @@ require_once (DUPLICATOR_PLUGIN_PATH . 'classes/utility.php');
10
  class DUP_Server {
11
 
12
  /**
13
- * Gets the system requirments which must pass to buld a package
14
  * @return array An array of requirements
15
  */
16
- public static function GetRequirments() {
17
 
18
  global $wpdb;
19
  $dup_tests = array();
@@ -25,8 +25,12 @@ class DUP_Server {
25
  $dup_tests['PHP']['ZIP'] = class_exists('ZipArchive') ? 'Pass' : 'Fail';
26
  $dup_tests['PHP']['FUNC_1'] = function_exists("file_get_contents") ? 'Pass' : 'Fail';
27
  $dup_tests['PHP']['FUNC_2'] = function_exists("file_put_contents") ? 'Pass' : 'Fail';
 
28
  $dup_tests['PHP']['ALL'] = ! in_array('Fail', $dup_tests['PHP']) ? 'Pass' : 'Fail';
29
 
 
 
 
30
  //PERMISSIONS
31
  $handle_test = @opendir(DUPLICATOR_WPROOTPATH);
32
  $dup_tests['IO']['WPROOT'] = is_writeable(DUPLICATOR_WPROOTPATH) && $handle_test ? 'Pass' : 'Fail';
10
  class DUP_Server {
11
 
12
  /**
13
+ * Gets the system requirements which must pass to buld a package
14
  * @return array An array of requirements
15
  */
16
+ public static function GetRequirements() {
17
 
18
  global $wpdb;
19
  $dup_tests = array();
25
  $dup_tests['PHP']['ZIP'] = class_exists('ZipArchive') ? 'Pass' : 'Fail';
26
  $dup_tests['PHP']['FUNC_1'] = function_exists("file_get_contents") ? 'Pass' : 'Fail';
27
  $dup_tests['PHP']['FUNC_2'] = function_exists("file_put_contents") ? 'Pass' : 'Fail';
28
+ $dup_tests['PHP']['FUNC_3'] = function_exists("mb_strlen") ? 'Pass' : 'Fail';
29
  $dup_tests['PHP']['ALL'] = ! in_array('Fail', $dup_tests['PHP']) ? 'Pass' : 'Fail';
30
 
31
+
32
+
33
+
34
  //PERMISSIONS
35
  $handle_test = @opendir(DUPLICATOR_WPROOTPATH);
36
  $dup_tests['IO']['WPROOT'] = is_writeable(DUPLICATOR_WPROOTPATH) && $handle_test ? 'Pass' : 'Fail';
classes/utility.php CHANGED
@@ -302,12 +302,12 @@ class DUP_Util {
302
  //FILE CREATION
303
  //SSDIR: Create Index File
304
  $ssfile = @fopen($path_ssdir . '/index.php', 'w');
305
- @fwrite($ssfile, '<?php error_reporting(0); if (stristr(php_sapi_name(), "fcgi")) { $url = "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>');
306
  @fclose($ssfile);
307
 
308
  //SSDIR: Create token file in snapshot
309
  $tokenfile = @fopen($path_ssdir . '/dtoken.php', 'w');
310
- @fwrite($tokenfile, '<?php error_reporting(0); if (stristr(php_sapi_name(), "fcgi")) { $url = "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>');
311
  @fclose($tokenfile);
312
 
313
  //SSDIR: Create .htaccess
@@ -328,7 +328,7 @@ class DUP_Util {
328
 
329
  //PLUG DIR: Create token file in plugin
330
  $tokenfile2 = @fopen($path_plugin . 'installer/dtoken.php', 'w');
331
- @fwrite($tokenfile2, '<?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTML/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>');
332
  @fclose($tokenfile2);
333
  }
334
 
302
  //FILE CREATION
303
  //SSDIR: Create Index File
304
  $ssfile = @fopen($path_ssdir . '/index.php', 'w');
305
+ @fwrite($ssfile, '<?php error_reporting(0); if (stristr(php_sapi_name(), "fcgi")) { $url = "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTTP/1.1 404 Not Found", true, 404);} exit(); ?>');
306
  @fclose($ssfile);
307
 
308
  //SSDIR: Create token file in snapshot
309
  $tokenfile = @fopen($path_ssdir . '/dtoken.php', 'w');
310
+ @fwrite($tokenfile, '<?php error_reporting(0); if (stristr(php_sapi_name(), "fcgi")) { $url = "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTTP/1.1 404 Not Found", true, 404);} exit(); ?>');
311
  @fclose($tokenfile);
312
 
313
  //SSDIR: Create .htaccess
328
 
329
  //PLUG DIR: Create token file in plugin
330
  $tokenfile2 = @fopen($path_plugin . 'installer/dtoken.php', 'w');
331
+ @fwrite($tokenfile2, '<?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTTP/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>');
332
  @fclose($tokenfile2);
333
  }
334
 
define.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  //Prevent directly browsing to the file
3
  if (function_exists('plugin_dir_url')) {
4
- define('DUPLICATOR_VERSION', '0.5.12');
5
  define("DUPLICATOR_HOMEPAGE", "http://lifeinthegrid.com/labs/duplicator");
6
  define("DUPLICATOR_GIVELINK", "http://lifeinthegrid.com/partner");
7
  define("DUPLICATOR_HELPLINK", "http://lifeinthegrid.com/duplicator-docs");
1
  <?php
2
  //Prevent directly browsing to the file
3
  if (function_exists('plugin_dir_url')) {
4
+ define('DUPLICATOR_VERSION', '0.5.14');
5
  define("DUPLICATOR_HOMEPAGE", "http://lifeinthegrid.com/labs/duplicator");
6
  define("DUPLICATOR_GIVELINK", "http://lifeinthegrid.com/partner");
7
  define("DUPLICATOR_HELPLINK", "http://lifeinthegrid.com/duplicator-docs");
duplicator.php CHANGED
@@ -1,10 +1,9 @@
1
  <?php
2
-
3
  /*
4
  Plugin Name: Duplicator
5
  Plugin URI: http://www.lifeinthegrid.com/duplicator/
6
  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.
7
- Version: 0.5.12
8
  Author: LifeInTheGrid
9
  Author URI: http://www.lifeinthegrid.com
10
  License: GPLv2 or later
@@ -157,6 +156,8 @@ if (is_admin() == true) {
157
  break;
158
  case 'duplicator-about': include('views/help/about.php');
159
  break;
 
 
160
  }
161
  }
162
 
@@ -183,13 +184,17 @@ if (is_admin() == true) {
183
  $perms = apply_filters($wpfront_caps_translator, $perms);
184
  $page_tools = add_submenu_page('duplicator', __('Tools', 'wpduplicator'), __('Tools', 'wpduplicator'), $perms, 'duplicator-tools', 'duplicator_get_menu');
185
 
186
- $perms = 'read';
187
  $perms = apply_filters($wpfront_caps_translator, $perms);
188
  $page_help = add_submenu_page('duplicator', __('Help', 'wpduplicator'), __('Help', 'wpduplicator'), $perms, 'duplicator-help', 'duplicator_get_menu');
189
 
190
- $perms = 'read';
191
  $perms = apply_filters($wpfront_caps_translator, $perms);
192
  $page_about = add_submenu_page('duplicator', __('About', 'wpduplicator'), __('About', 'wpduplicator'), $perms, 'duplicator-about', 'duplicator_get_menu');
 
 
 
 
193
 
194
  //Apply Scripts
195
  add_action('admin_print_scripts-' . $page_packages, 'duplicator_scripts');
@@ -197,6 +202,7 @@ if (is_admin() == true) {
197
  add_action('admin_print_scripts-' . $page_help, 'duplicator_scripts');
198
  add_action('admin_print_scripts-' . $page_tools, 'duplicator_scripts');
199
  add_action('admin_print_scripts-' . $page_about, 'duplicator_scripts');
 
200
 
201
  //Apply Styles
202
  add_action('admin_print_styles-' . $page_packages, 'duplicator_styles');
@@ -204,6 +210,7 @@ if (is_admin() == true) {
204
  add_action('admin_print_styles-' . $page_help, 'duplicator_styles');
205
  add_action('admin_print_styles-' . $page_tools, 'duplicator_styles');
206
  add_action('admin_print_styles-' . $page_about, 'duplicator_styles');
 
207
  }
208
 
209
  /**
1
  <?php
 
2
  /*
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: 0.5.14
7
  Author: LifeInTheGrid
8
  Author URI: http://www.lifeinthegrid.com
9
  License: GPLv2 or later
156
  break;
157
  case 'duplicator-about': include('views/help/about.php');
158
  break;
159
+ case 'duplicator-gopro': include('views/help/gopro.php');
160
+ break;
161
  }
162
  }
163
 
184
  $perms = apply_filters($wpfront_caps_translator, $perms);
185
  $page_tools = add_submenu_page('duplicator', __('Tools', 'wpduplicator'), __('Tools', 'wpduplicator'), $perms, 'duplicator-tools', 'duplicator_get_menu');
186
 
187
+ $perms = 'manage_options';
188
  $perms = apply_filters($wpfront_caps_translator, $perms);
189
  $page_help = add_submenu_page('duplicator', __('Help', 'wpduplicator'), __('Help', 'wpduplicator'), $perms, 'duplicator-help', 'duplicator_get_menu');
190
 
191
+ $perms = 'manage_options';
192
  $perms = apply_filters($wpfront_caps_translator, $perms);
193
  $page_about = add_submenu_page('duplicator', __('About', 'wpduplicator'), __('About', 'wpduplicator'), $perms, 'duplicator-about', 'duplicator_get_menu');
194
+
195
+ $perms = 'manage_options';
196
+ $perms = apply_filters($wpfront_caps_translator, $perms);
197
+ $page_gopro = add_submenu_page('duplicator', __('Go Pro!', 'wpduplicator'), __('Go Pro!', 'wpduplicator'), $perms, 'duplicator-gopro', 'duplicator_get_menu');
198
 
199
  //Apply Scripts
200
  add_action('admin_print_scripts-' . $page_packages, 'duplicator_scripts');
202
  add_action('admin_print_scripts-' . $page_help, 'duplicator_scripts');
203
  add_action('admin_print_scripts-' . $page_tools, 'duplicator_scripts');
204
  add_action('admin_print_scripts-' . $page_about, 'duplicator_scripts');
205
+ add_action('admin_print_scripts-' . $page_gopro, 'duplicator_scripts');
206
 
207
  //Apply Styles
208
  add_action('admin_print_styles-' . $page_packages, 'duplicator_styles');
210
  add_action('admin_print_styles-' . $page_help, 'duplicator_styles');
211
  add_action('admin_print_styles-' . $page_tools, 'duplicator_styles');
212
  add_action('admin_print_styles-' . $page_about, 'duplicator_styles');
213
+ add_action('admin_print_styles-' . $page_gopro, 'duplicator_styles');
214
  }
215
 
216
  /**
installer/build/main.installer.php CHANGED
@@ -57,7 +57,7 @@ if (file_exists('dtoken.php')) {
57
  }
58
  }
59
  } else {
60
- header("HTML/1.1 404 Not Found", true, 404);
61
  header("Status: 404 Not Found");
62
  }
63
  }
57
  }
58
  }
59
  } else {
60
+ header("HTTP/1.1 404 Not Found", true, 404);
61
  header("Status: 404 Not Found");
62
  }
63
  }
installer/dtoken.php CHANGED
@@ -1 +1 @@
1
- <?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTML/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>
1
+ <?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTTP/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: www.lifeinthegrid.com/partner
4
  Tags: backup, restore, move, migrate, localhost, synchronize, duplicate, clone, automate, niche
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 0.5.12
8
  License: GPLv2
9
 
10
  Duplicate, clone, backup, move and transfer an entire site from one location to another.
4
  Tags: backup, restore, move, migrate, localhost, synchronize, duplicate, clone, automate, niche
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 0.5.14
8
  License: GPLv2
9
 
10
  Duplicate, clone, backup, move and transfer an entire site from one location to another.
views/help/about.php CHANGED
@@ -37,10 +37,7 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
37
  <script type="text/javascript">stLight.options({publisher: "1a44d92e-2a78-42c3-a32e-414f78f9f484"});</script>
38
 
39
  <div class="wrap dup-wrap dup-support-all">
40
-
41
- <!-- h2 required here for general system messages -->
42
- <h2 style='display:none'></h2>
43
-
44
  <?php duplicator_header(__("About", 'wpduplicator')) ?>
45
  <hr size="1" />
46
 
37
  <script type="text/javascript">stLight.options({publisher: "1a44d92e-2a78-42c3-a32e-414f78f9f484"});</script>
38
 
39
  <div class="wrap dup-wrap dup-support-all">
40
+
 
 
 
41
  <?php duplicator_header(__("About", 'wpduplicator')) ?>
42
  <hr size="1" />
43
 
views/help/gopro.php ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ DUP_Util::CheckPermissions('read');
3
+
4
+ require_once(DUPLICATOR_PLUGIN_PATH . '/views/javascript.php');
5
+ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
6
+ ?>
7
+ <style>
8
+ /*================================================
9
+ PAGE-SUPPORT:*/
10
+ table.dup-support-hlp-hdrs {border-collapse:collapse; width:100%; border-bottom:1px solid #dfdfdf}
11
+ table.dup-support-hlp-hdrs {background-color:#efefef;}
12
+ table.dup-support-hlp-hdrs td {
13
+ padding:6px;
14
+ font-weight:bold; font-size:22px;
15
+ background-image:-ms-linear-gradient(top, #FFFFFF 0%, #DEDEDE 100%);
16
+ background-image:-moz-linear-gradient(top, #FFFFFF 0%, #DEDEDE 100%);
17
+ background-image:-o-linear-gradient(top, #FFFFFF 0%, #DEDEDE 100%);
18
+ background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #FFFFFF), color-stop(1, #DEDEDE));
19
+ background-image:-webkit-linear-gradient(top, #FFFFFF 0%, #DEDEDE 100%);
20
+ background-image:linear-gradient(to bottom, #FFFFFF 0%, #DEDEDE 100%);
21
+ }
22
+ div.dup-compare-area {width:400px; float:left; border:1px solid #dfdfdf; border-radius:4px; margin:10px; line-height:18px;box-shadow: 0 8px 6px -6px #ccc;}
23
+ div.feature {background: #fff; padding:15px; margin: 2px; text-align: center; min-height: 30px}
24
+ div.feature a {font-size:20px; font-weight: bold;}
25
+ div.dup-compare-area div.feature div.info {display:none; padding:10px 15px 5px 15px; font-style: italic; color: #555; font-size: 14px}
26
+ div.dup-gopro-header {text-align: center; margin: 5px 0 15px 0; font-size:18px; line-height: 30px}
27
+ div.dup-gopro-header b {font-size: 28px}
28
+ </style>
29
+
30
+ <script type="text/javascript">var switchTo5x = true;</script>
31
+ <script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>
32
+ <script type="text/javascript">stLight.options({publisher: "1a44d92e-2a78-42c3-a32e-414f78f9f484"});</script>
33
+
34
+ <div class="wrap dup-wrap">
35
+
36
+ <?php duplicator_header(__("Go Pro!", 'wpduplicator')) ?>
37
+ <hr size="1" />
38
+
39
+ <div style="width:850px; margin:auto; margin-top: 20px">
40
+
41
+ <div class="dup-gopro-header" style="width:500px; white-space: nowrap; margin:auto">
42
+ <div style="float:left">
43
+ <img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/logo.png" style='' />
44
+ </div>
45
+ <div>
46
+ <b><?php _e('Backup and Move Made Easy!', 'wpduplicator') ?></b><br/>
47
+ <i><?php _e('The top-rated Duplicator plugin is going professional!', 'wpduplicator') ?></i>
48
+ </div>
49
+ </div><br/>
50
+
51
+ <!-- FREE-->
52
+ <div class="dup-compare-area">
53
+ <table class="dup-support-hlp-hdrs">
54
+ <tr >
55
+ <td style="height:30px; text-align: center;">
56
+ <span style="display: inline-block; margin-top: 5px"><?php _e('Duplicator Free', 'wpduplicator') ?></span>
57
+ </td>
58
+ </tr>
59
+ </table>
60
+ <div class="feature">
61
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Backup Files &amp; Database', 'wpduplicator') ?></a>
62
+ <div class="info"><?php _e('Compresses all your WordPress files and database into a compressed snapshot archive file.', 'wpduplicator') ?></div>
63
+ </div>
64
+ <div class="feature">
65
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Directory Filters', 'wpduplicator') ?></a>
66
+ <div class="info"><?php _e('Filter out the directories and file extensions you want to include/exclude in your in your archive file.', 'wpduplicator') ?></div>
67
+ </div>
68
+ <div class="feature">
69
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Database Table Filters', 'wpduplicator') ?></a>
70
+ <div class="info"><?php _e('Filter out only the database tables you want to include/exclude in your database creation script.', 'wpduplicator') ?></div>
71
+ </div>
72
+ <div class="feature">
73
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Migration Wizard', 'wpduplicator') ?></a>
74
+ <div class="info"><?php _e('With just two files (archive &amp; installer.php) move your site to a new location.', 'wpduplicator') ?></div>
75
+ </div>
76
+ <div class="feature"><i class="fa fa-times fa-2x"></i></div>
77
+ <div class="feature"><i class="fa fa-times fa-2x"></i></div>
78
+ <div class="feature"><i class="fa fa-times fa-2x"></i></div>
79
+ <div class="feature"><i class="fa fa-times fa-2x"></i></div>
80
+ <div class="feature"><i class="fa fa-times fa-2x"></i></div>
81
+
82
+ </div>
83
+
84
+ <!-- PRO -->
85
+ <div class="dup-compare-area">
86
+ <table class="dup-support-hlp-hdrs">
87
+ <tr>
88
+ <td style="height:30px; text-align: center;">
89
+ <span style="display: inline-block; margin-top: 5px"><?php _e('Duplicator Pro', 'wpduplicator') ?></span>
90
+ </td>
91
+ </tr>
92
+ </table>
93
+
94
+ <div class="feature">
95
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Backup Files &amp; Database', 'wpduplicator') ?></a>
96
+ <div class="info"><?php _e('Compresses all your WordPress files and database into a compressed snapshot archive file.', 'wpduplicator') ?></div>
97
+ </div>
98
+ <div class="feature">
99
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Directory Filters', 'wpduplicator') ?></a>
100
+ <div class="info"><?php _e('Filter out the directories and file extensions you want to include/exclude in your in your archive file.', 'wpduplicator') ?></div>
101
+ </div>
102
+ <div class="feature">
103
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Database Table Filters', 'wpduplicator') ?></a>
104
+ <div class="info"><?php _e('Filter out only the database tables you want to include/exclude in your database creation script.', 'wpduplicator') ?></div>
105
+ </div>
106
+ <div class="feature">
107
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Migration Wizard', 'wpduplicator') ?></a>
108
+ <div class="info"><?php _e('With just two files (archive &amp; installer.php) move your site to a new location.', 'wpduplicator') ?></div>
109
+ </div>
110
+ <div class="feature">
111
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Schedules', 'wpduplicator') ?></a>
112
+ <div class="info"><?php _e('Automate the creation of your packages to run at various scheduled intervals.', 'wpduplicator') ?></div>
113
+ </div>
114
+ <div class="feature">
115
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Custom Templates', 'wpduplicator') ?></a>
116
+ <div class="info"><?php _e('Customize how each package is created and built with a customized template.', 'wpduplicator') ?></div>
117
+ </div>
118
+ <div class="feature">
119
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Cloud Storage', 'wpduplicator') ?></a>
120
+ <div class="info"><?php _e('Backup up your entire package to the cloud with access to services like FTP and Dropbox.', 'wpduplicator') ?></div>
121
+ </div>
122
+ <div class="feature">
123
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Queued Processing', 'wpduplicator') ?></a>
124
+ <div class="info"><?php _e('Enable the build of larger more complex packages and avoid server timeouts with queued processing.', 'wpduplicator') ?></div>
125
+ </div>
126
+ <div class="feature">
127
+ <a href="javascript:void(0)" class="dup-info-click"><?php _e('Customer Support', 'wpduplicator') ?></a>
128
+ <div class="info"><?php _e('Server setups can be quite complex, with pro you get prompt help to get your site backed up and moved.', 'wpduplicator') ?></div>
129
+ </div>
130
+
131
+ </div>
132
+ <br style="clear:both" /><br/>
133
+
134
+ <h1 style="text-align: center">
135
+ <a href="http://duplicatorpro.com" target="_blank" class="button button-primary button-large" style="box-shadow: 5px 5px 5px 0px #999; font-size:18px; height:40px; padding:5px 25px 0px 25px; background: #AB2C30; border:none">
136
+ <?php _e('Check It Out!', 'wpduplicator') ?>
137
+ </a>
138
+ </h1>
139
+ </div>
140
+ </div><br/><br/><br/><br/>
141
+
142
+ <script type="text/javascript">
143
+ jQuery(document).ready(function($) {
144
+ $( "a.dup-info-click" ).click(function() {
145
+ $(this).parent().find('.info').toggle();
146
+ });
147
+ });
148
+ </script>
views/help/help.php CHANGED
@@ -25,10 +25,7 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
25
 
26
 
27
  <div class="wrap dup-wrap dup-support-all">
28
-
29
- <!-- h2 required here for general system messages -->
30
- <h2 style='display:none'></h2>
31
-
32
  <?php duplicator_header(__("Help", 'wpduplicator')) ?>
33
  <hr size="1" />
34
 
@@ -72,7 +69,7 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
72
  <div><?php _e('Online Support', 'wpduplicator') ?></div>
73
  </div>
74
  <div class="dup-support-hlp-txt">
75
- <?php _e("Get Help From IT Profressionals", 'wpduplicator'); ?>
76
  <br/><br/>
77
  <div class="dup-support-txts-links">
78
  <button class="button button-primary button-large" onclick="Duplicator.OpenSupportWindow();
@@ -110,7 +107,7 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
110
  <?php _e('Other Commercial Resources', 'wpduplicator'); ?>
111
  <br/><br/>
112
  <div class="dup-support-txts-links">
113
- <button class="button button-primary button-large" onclick="window.open('http://lifeinthegrid.com/duplicator-getalts', 'litg');"><?php _e('Go Pro!', 'wpduplicator') ?></button> &nbsp;
114
  </div>
115
  </div>
116
  </div>
25
 
26
 
27
  <div class="wrap dup-wrap dup-support-all">
28
+
 
 
 
29
  <?php duplicator_header(__("Help", 'wpduplicator')) ?>
30
  <hr size="1" />
31
 
69
  <div><?php _e('Online Support', 'wpduplicator') ?></div>
70
  </div>
71
  <div class="dup-support-hlp-txt">
72
+ <?php _e("Get Help From IT Professionals", 'wpduplicator'); ?>
73
  <br/><br/>
74
  <div class="dup-support-txts-links">
75
  <button class="button button-primary button-large" onclick="Duplicator.OpenSupportWindow();
107
  <?php _e('Other Commercial Resources', 'wpduplicator'); ?>
108
  <br/><br/>
109
  <div class="dup-support-txts-links">
110
+ <button class="button button-primary button-large" onclick="window.open('http://lifeinthegrid.com/duplicator-getalts', 'litg');"><?php _e('Pro Solutions!', 'wpduplicator') ?></button> &nbsp;
111
  </div>
112
  </div>
113
  </div>
views/inc.header.php CHANGED
@@ -1,16 +1,15 @@
1
  <?php function duplicator_header($title) { ?>
2
  <!-- !!DO NOT CHANGE OR EDIT PRODUCT NAME!!
3
- If your interested in Private Label Rights please contact us at the URL below to discuss
4
  customizations to product labeling: lifeinthegrid.com -->
5
 
6
- <div class="dup-header" style="margin:0px 0px -4px 0px">
7
- <div style='float:left;'><img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/logo.png" style='text-align:top; height:32px; width:32px' /></div>
8
- <div style='float:left;text-align:center; margin:-3px 0px 0px 0px;'>
9
- <b style='text-align:center; width:100%; font-size:16px'>Duplicator &raquo; <?php echo $title ?> </b>
10
- <i style='font-size:0.8em; display:block; margin:-3px 0px 0px 0px'><?php _e("By", 'wpduplicator') ?> <a href='http://lifeinthegrid.com/duplicator' target='_blank'>lifeinthegrid.com</a></i>
11
- </div>
12
- <br style='clear:both' />
13
  </div>
 
14
  <?php } ?>
15
 
16
 
1
  <?php function duplicator_header($title) { ?>
2
  <!-- !!DO NOT CHANGE OR EDIT PRODUCT NAME!!
3
+ If your interested in Private Label Rights please contact us for
4
  customizations to product labeling: lifeinthegrid.com -->
5
 
6
+
7
+ <div class="dup-header" style="margin:0px 0px 10px 0px">
8
+ <h2>
9
+ <b style='text-align:center; width:100%; font-size:23px'>Duplicator &raquo; <?php echo $title ?> </b><br/>
10
+ </h2>
 
 
11
  </div>
12
+
13
  <?php } ?>
14
 
15
 
views/packages/controller.php CHANGED
@@ -11,27 +11,27 @@ $current_tab = isset($_REQUEST['tab']) ? esc_html($_REQUEST['tab']) : 'list';
11
  ?>
12
 
13
  <style>
 
 
 
 
 
 
14
  /*WIZARD TABS */
15
- div#dup-wiz {padding:0px; margin:7px 0px 10px 0px; height: 30px }
16
- div#dup-wiz-steps {margin:0px 0px 0px 10px; padding:0px; clear:both; font-weight:bold;font-size:12px; min-width:250px }
17
  div#dup-wiz-title {padding:2px 0px 0px 0px; font-size:18px;}
 
18
  /* wiz-steps numbers */
19
- #dup-wiz span {display:block;float:left; text-align:center; width:15px; margin:3px 4px 0px 0px; line-height:15px; color:#ccc; border:1px solid #CCCCCC; border-radius:4px;}
20
  /* wiz-steps default*/
21
- #dup-wiz a { position:relative; display:block; width:auto; height:24px; margin-right:18px; padding:0px 10px 0px 3px; float:left; line-height:24px; color:#000; background:#E4E4E4; }
22
- #dup-wiz a:before { width:0px; height:0px; border-top:12px solid #E4E4E4; border-bottom:12px solid #E4E4E4; border-left:12px solid transparent; position:absolute; content:""; top:0px; left:-12px; }
23
- #dup-wiz a:after { width:0; height:0; border-top:12px solid transparent; border-bottom:12px solid transparent; border-left:12px solid #E4E4E4; position:absolute; content:""; top:0px; right:-12px; }
24
- /* wiz-steps completed */
25
- #dup-wiz .completed-step a {color:#ccc; background:#999;}
26
- #dup-wiz .completed-step a:before {border-top:12px solid #999; border-bottom:12px solid #999;}
27
- #dup-wiz .completed-step a:after {border-left:12px solid #999;}
28
- #dup-wiz .completed-step span {color:#ccc;}
29
- /* wiz-steps active*/
30
- #dup-wiz .active-step a {color:#fff; background:#999;}
31
- #dup-wiz .active-step a:before {border-top:12px solid #999; border-bottom:12px solid #999;}
32
- #dup-wiz .active-step a:after {border-left:12px solid #999;}
33
- #dup-wiz .active-step span {color:#fff;}
34
-
35
  /*Footer */
36
  div.dup-button-footer input {min-width: 105px}
37
  div.dup-button-footer {padding: 1px 10px 0px 0px; text-align: right}
@@ -71,26 +71,18 @@ $current_tab = isset($_REQUEST['tab']) ? esc_html($_REQUEST['tab']) : 'list';
71
  </script>
72
 
73
  <div class="wrap">
74
- <!-- h2 required here for general system messages -->
75
- <h2 style='display:none'></h2>
76
-
77
- <?php duplicator_header(__("Packages", 'wpduplicator')) ?>
78
-
79
- <h2 class="nav-tab-wrapper">
80
- <a href="?page=duplicator" class="nav-tab <?php echo ($current_tab == 'list') ? 'nav-tab-active' : '' ?>"><?php _e("Packages", 'wpduplicator') ?></a>
81
- <a href="?page=duplicator&tab=new1" class="nav-tab <?php echo ($current_tab != 'list') ? 'nav-tab-active' : '' ?>"><?php _e("Create New", 'wpduplicator') ?></a>
82
- </h2>
83
-
84
  <?php
85
- switch ($current_tab) {
86
- case 'list': include('list.base.php');
87
- break;
88
- case 'new1': include('new1.base.php');
89
- break;
90
- case 'new2': include('new2.base.php');
91
- break;
92
- case 'new3': include('new3.base.php');
93
- break;
94
- }
 
 
95
  ?>
96
  </div>
11
  ?>
12
 
13
  <style>
14
+ //TOOLBAR TABLE
15
+ table#toolbar-table td {padding:0px; white-space:nowrap;}
16
+ table#toolbar-table td.toolbar-btns {width:100%; text-align: right; vertical-align: bottom}
17
+ table#toolbar-table td.toolbar-btns a, span{font-size:16px !important;}
18
+ table#toolbar-table {width:100%; border:0px solid red; padding: 0; margin:0 0 10px 0; height: 35px}
19
+
20
  /*WIZARD TABS */
21
+ div#dup-wiz {padding:0px; margin:0; }
22
+ div#dup-wiz-steps {margin:10px 0px 0px 10px; padding:0px; clear:both; font-size:12px; min-width:350px;}
23
  div#dup-wiz-title {padding:2px 0px 0px 0px; font-size:18px;}
24
+ div#dup-wiz-steps a span {font-size:10px !important}
25
  /* wiz-steps numbers */
26
+ #dup-wiz span {display:block;float:left; text-align:center; width:14px; margin:4px 5px 0px 0px; line-height:13px; color:#ccc; border:1px solid #CCCCCC; border-radius:5px; }
27
  /* wiz-steps default*/
28
+ #dup-wiz a { position:relative; display:block; width:auto; min-width:55px; height:25px; margin-right:8px; padding:0px 10px 0px 10px; float:left; line-height:24px; color:#000; background:#E4E4E4; border-radius:5px }
29
+ /* wiz-steps active*/
30
+ #dup-wiz .active-step a {color:#fff; background:#BBBBBB;}
31
+ #dup-wiz .active-step span {color:#fff; border:1px solid #fff;}
32
+ /* wiz-steps completed */
33
+ #dup-wiz .completed-step a {color:#E1E1E1; background:#BBBBBB; }
34
+ #dup-wiz .completed-step span {color:#E1E1E1;}
 
 
 
 
 
 
 
35
  /*Footer */
36
  div.dup-button-footer input {min-width: 105px}
37
  div.dup-button-footer {padding: 1px 10px 0px 0px; text-align: right}
71
  </script>
72
 
73
  <div class="wrap">
 
 
 
 
 
 
 
 
 
 
74
  <?php
75
+ duplicator_header(__("Packages", 'wpduplicator'));
76
+
77
+ switch ($current_tab) {
78
+ case 'list': include('list.base.php');
79
+ break;
80
+ case 'new1': include('new1.base.php');
81
+ break;
82
+ case 'new2': include('new2.base.php');
83
+ break;
84
+ case 'new3': include('new3.base.php');
85
+ break;
86
+ }
87
  ?>
88
  </div>
views/packages/list-nodata.php CHANGED
@@ -3,10 +3,10 @@
3
  ?>
4
 
5
  <div id='dup-list-alert-nodata'>
6
- <b><i class="fa fa-archive"></i>
7
  <?php _e("No Packages Found.", 'wpduplicator'); ?><br/>
8
- <?php _e("Click the 'Create New' tab to build a package.", 'wpduplicator'); ?> <br/><br/>
9
- </b>
10
  <i>
11
  <?php
12
  printf("%s <a href='admin.php?page=duplicator-help'>%s</a> %s",
3
  ?>
4
 
5
  <div id='dup-list-alert-nodata'>
6
+ <i class="fa fa-archive"></i>
7
  <?php _e("No Packages Found.", 'wpduplicator'); ?><br/>
8
+ <?php _e("Click the 'Create New' button to build a package.", 'wpduplicator'); ?> <br/><br/>
9
+
10
  <i>
11
  <?php
12
  printf("%s <a href='admin.php?page=duplicator-help'>%s</a> %s",
views/packages/list.base.php CHANGED
@@ -7,26 +7,18 @@
7
  ?>
8
 
9
  <style>
10
- div#dup-list-alert-nodata {padding:50px 20px;text-align:center; font-size:16px; line-height:22px}
11
  div.dup-notice-msg {border:1px solid silver; padding: 10px; border-radius: 5px; width: 550px;
12
  margin:40px auto 0px auto; font-size:12px; text-align: left; word-break:normal;
13
  background: #fefcea;
14
  background: -moz-linear-gradient(top, #fefcea 0%, #efe5a2 100%);
15
  background: -ms-linear-gradient(top, #fefcea 0%,#efe5a2 100%);
16
  background: linear-gradient(to bottom, #fefcea 0%,#efe5a2 100%);
17
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#efe5a2',GradientType=0 );
18
  }
19
  input#dup-bulk-action-all {margin:0px;padding:0px 0px 0px 5px;}
20
  button.dup-button-selected {border:1px solid #000 !important; background-color:#dfdfdf !important;}
21
  div.dup-details-area-error {padding:10px; background-color:#FEF6F3; width:98%; border:1px solid silver; border-radius: 3px }
22
 
23
- table#toolbar-table td {padding:0px; white-space:nowrap;}
24
- table#toolbar-table input {border:1px solid silver; border-radius:4px}
25
- table#toolbar-table input:hover {border:1px solid gray;}
26
- td.toolbar-label label {font-size:14px !important; margin-top:7px; display:inline-block; font-weight:bold}
27
- td.toolbar-textbox {white-space:nowrap;width:100%; vertical-align:middle}
28
- img.toolbar-divider {height:26px; padding:0px 5px 0px 5px}
29
-
30
  /* Table package details */
31
  table.dup-pack-table {word-break:break-all;}
32
  table.dup-pack-table th {white-space:nowrap !important;}
@@ -42,11 +34,42 @@
42
 
43
  <form id="form-duplicator" method="post">
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  <?php if($totalElements == 0) : ?>
46
 
47
  <!-- ====================
48
  NO-DATA MESSAGES-->
49
- <table class="widefat dup-pack-table" style="margin-top:20px">
50
  <thead><tr><th>&nbsp;</th></tr></thead>
51
  <tbody><tr><td><?php include (DUPLICATOR_PLUGIN_PATH . "views/packages/list-nodata.php") ?> </td></tr></tbody>
52
  <tfoot><tr><th>&nbsp;</th></tr></tfoot>
@@ -54,34 +77,7 @@
54
 
55
  <?php else : ?>
56
 
57
- <!-- ====================
58
- TOOL-BAR -->
59
- <table border="0" id="toolbar-table" cellspacing="0" style="margin-top:15px; width:100%">
60
- <tr valign="top">
61
- <td style="white-space: nowrap">
62
- <div class="alignleft actions">
63
- <select id="dup-pack-bulk-actions">
64
- <option value="-1" selected="selected"><?php _e("Bulk Actions", 'wpduplicator') ?></option>
65
- <option value="delete" title="<?php _e("Delete selected package(s)", 'wpduplicator') ?>"><?php _e("Delete", 'wpduplicator') ?></option>
66
- </select>
67
- <input type="button" id="dup-pack-bulk-apply" class="button action" value="<?php _e("Apply", 'wpduplicator') ?>" onclick="Duplicator.Pack.Delete()">
68
- </div>
69
- <br class="clear">
70
- </td>
71
- <!-- Logs -->
72
- <td><img src="<?php echo DUPLICATOR_PLUGIN_URL ?>assets/img/hdivider.png" class="toolbar-divider" /></td>
73
- <td align="center">
74
- <a href="?page=duplicator-tools" id="btn-logs-dialog" class="button" title="<?php _e("Package Logs", 'wpduplicator') ?>..."><i class="fa fa-pencil-square-o"></i> </button>
75
- </td>
76
- <td align="right" style="width:100%;">
77
- <?php if($statusCount >= 3) : ?>
78
- <div style="margin:8px 5px 0px 0px; font-size:13px">
79
- <a href="admin.php?page=duplicator-about" style="color:maroon"><i><i class="fa fa-check-circle"></i> <?php _e("Help Support Duplicator", 'wpduplicator') ?></i> </a>
80
- </div>
81
- <?php endif; ?>
82
- </td>
83
- </tr>
84
- </table>
85
 
86
  <!-- ====================
87
  LIST ALL PACKAGES -->
@@ -162,8 +158,8 @@
162
  <b><?php _e("Notes", 'wpduplicator')?>:</b> <?php echo $notes ?>
163
  <div style="height:7px">&nbsp;</div>
164
  <button class="button" onclick="Duplicator.Pack.ShowLinksDialog(<?php echo "'{$sqlfilelink}', '{$packagepath}', '{$installfilelink}', '{$logfilelink}', '{$reportfilelink}' " ;?>); return false;" class="thickbox"><i class="fa fa-lock"></i> &nbsp; <?php _e("Links", 'wpduplicator')?></button> &nbsp;
165
- <button class="button" onclick="window.open(<?php echo "'{$sqlfilelink}', '_blank'" ;?>); return false;"><i class="fa fa-table"></i> &nbsp; <?php _e("SQL File", 'wpduplicator')?></button> &nbsp;
166
- <button class="button" onclick="Duplicator.OpenLogWindow(<?php echo "'{$logfilename}'" ;?>); return false;"><i class="fa fa-pencil-square-o"></i> &nbsp; <?php _e("View Log", 'wpduplicator')?></button>
167
  <?php if ($package_debug) : ?>
168
  <div style="margin-top:7px">
169
  <a href="javascript:void(0)" onclick="window.open(<?php echo "'{$reportfilelink}', '_blank'" ;?>); return false;">[<?php _e("Open Scan Report", 'wpduplicator')?>]</a> &nbsp;
7
  ?>
8
 
9
  <style>
10
+ div#dup-list-alert-nodata {padding:50px 20px;text-align:center; font-size:20px; line-height:26px}
11
  div.dup-notice-msg {border:1px solid silver; padding: 10px; border-radius: 5px; width: 550px;
12
  margin:40px auto 0px auto; font-size:12px; text-align: left; word-break:normal;
13
  background: #fefcea;
14
  background: -moz-linear-gradient(top, #fefcea 0%, #efe5a2 100%);
15
  background: -ms-linear-gradient(top, #fefcea 0%,#efe5a2 100%);
16
  background: linear-gradient(to bottom, #fefcea 0%,#efe5a2 100%);
 
17
  }
18
  input#dup-bulk-action-all {margin:0px;padding:0px 0px 0px 5px;}
19
  button.dup-button-selected {border:1px solid #000 !important; background-color:#dfdfdf !important;}
20
  div.dup-details-area-error {padding:10px; background-color:#FEF6F3; width:98%; border:1px solid silver; border-radius: 3px }
21
 
 
 
 
 
 
 
 
22
  /* Table package details */
23
  table.dup-pack-table {word-break:break-all;}
24
  table.dup-pack-table th {white-space:nowrap !important;}
34
 
35
  <form id="form-duplicator" method="post">
36
 
37
+ <?php if($statusCount >= 3) : ?>
38
+ <div style="font-size:13px; position: absolute; top:10px; right:20px">
39
+ <a href="admin.php?page=duplicator-about" style="color:maroon"><i><i class="fa fa-check-circle"></i> <?php _e("Help Support Duplicator", 'wpduplicator') ?></i> </a>
40
+ </div>
41
+ <?php endif; ?>
42
+
43
+ <!-- ====================
44
+ TOOL-BAR -->
45
+ <table id="toolbar-table">
46
+ <tr valign="top">
47
+ <td style="white-space: nowrap">
48
+ <div class="alignleft actions">
49
+ <select id="dup-pack-bulk-actions">
50
+ <option value="-1" selected="selected"><?php _e("Bulk Actions", 'wpduplicator') ?></option>
51
+ <option value="delete" title="<?php _e("Delete selected package(s)", 'wpduplicator') ?>"><?php _e("Delete", 'wpduplicator') ?></option>
52
+ </select>
53
+ <input type="button" id="dup-pack-bulk-apply" class="button action" value="<?php _e("Apply", 'wpduplicator') ?>" onclick="Duplicator.Pack.Delete()">
54
+ </div>
55
+ <br class="clear">
56
+ </td>
57
+ <td align="center">
58
+ <a href="?page=duplicator-tools" id="btn-logs-dialog" class="button" title="<?php _e("Package Logs", 'wpduplicator') ?>..."><i class="fa fa-list-alt"></i>
59
+ </td>
60
+ <td class="toolbar-btns">
61
+ <span><i class="fa fa-archive"></i> <?php _e("All Packages", 'wpduplicator'); ?></span> &nbsp;
62
+ <a id="dup-pro-create-new" href="?page=duplicator&tab=new1" class="add-new-h2"><?php _e("Create New", 'wpduplicator'); ?></a>
63
+ </td>
64
+ </tr>
65
+ </table>
66
+
67
+
68
  <?php if($totalElements == 0) : ?>
69
 
70
  <!-- ====================
71
  NO-DATA MESSAGES-->
72
+ <table class="widefat dup-pack-table">
73
  <thead><tr><th>&nbsp;</th></tr></thead>
74
  <tbody><tr><td><?php include (DUPLICATOR_PLUGIN_PATH . "views/packages/list-nodata.php") ?> </td></tr></tbody>
75
  <tfoot><tr><th>&nbsp;</th></tr></tfoot>
77
 
78
  <?php else : ?>
79
 
80
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
 
82
  <!-- ====================
83
  LIST ALL PACKAGES -->
158
  <b><?php _e("Notes", 'wpduplicator')?>:</b> <?php echo $notes ?>
159
  <div style="height:7px">&nbsp;</div>
160
  <button class="button" onclick="Duplicator.Pack.ShowLinksDialog(<?php echo "'{$sqlfilelink}', '{$packagepath}', '{$installfilelink}', '{$logfilelink}', '{$reportfilelink}' " ;?>); return false;" class="thickbox"><i class="fa fa-lock"></i> &nbsp; <?php _e("Links", 'wpduplicator')?></button> &nbsp;
161
+ <button class="button" onclick="window.open(<?php echo "'{$sqlfilelink}', '_blank'" ;?>); return false;"><i class="fa fa-table"></i> &nbsp; <?php _e("SQL", 'wpduplicator')?></button> &nbsp;
162
+ <button class="button" onclick="Duplicator.OpenLogWindow(<?php echo "'{$logfilename}'" ;?>); return false;"><i class="fa fa-list-alt"></i> &nbsp; <?php _e("Log", 'wpduplicator')?></button>
163
  <?php if ($package_debug) : ?>
164
  <div style="margin-top:7px">
165
  <a href="javascript:void(0)" onclick="window.open(<?php echo "'{$reportfilelink}', '_blank'" ;?>); return false;">[<?php _e("Open Scan Report", 'wpduplicator')?>]</a> &nbsp;
views/packages/new1.base.php CHANGED
@@ -18,7 +18,7 @@
18
  $package_hash = $Package->MakeHash();
19
 
20
  $dup_tests = array();
21
- $dup_tests = DUP_Server::GetRequirments();
22
  $default_name = DUP_Package::GetDefaultName();
23
 
24
  $view_state = DUP_UI::GetViewStateArray();
@@ -29,7 +29,7 @@
29
 
30
  <style>
31
  /* -----------------------------
32
- REQUIRMENTS*/
33
  div.dup-sys-section {margin:1px 0px 5px 0px}
34
  div.dup-sys-title {display:inline-block; width:250px; padding:1px; }
35
  div.dup-sys-title div {display:inline-block;float:right; }
@@ -72,18 +72,31 @@
72
  </style>
73
 
74
  <!-- =========================================
75
- WIZARD STEP TABS -->
76
- <div id="dup-wiz">
77
- <div id="dup-wiz-steps">
78
- <div class="active-step"><a><span>1</span> <?php _e('Setup', 'wpduplicator'); ?></a></div>
79
- <div><a><span>2</span> <?php _e('Scan', 'wpduplicator'); ?> </a></div>
80
- <div><a><span>3</span> <?php _e('Build', 'wpduplicator'); ?> </a></div>
81
- </div>
82
- <div id="dup-wiz-title">
83
- <?php _e('Step 1: Package Setup', 'wpduplicator'); ?>
84
- </div> <hr/>
85
- </div>
86
-
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  <?php if (! empty($action_response)) : ?>
88
  <div id="message" class="updated below-h2"><p><?php echo $action_response; ?></p></div>
89
  <?php endif; ?>
@@ -103,7 +116,7 @@ META-BOX1: SYSTEM REQUIREMENTS -->
103
  <div class="dup-box-panel" style="<?php echo ($dup_tests['Success']) ? 'display:none' : ''; ?>">
104
 
105
  <div class="dup-sys-section">
106
- <i><?php _e("System requirments must pass for the Duplicator to work properly. Click each link for details.", 'wpduplicator'); ?></i>
107
  </div>
108
 
109
  <!-- PHP SUPPORT -->
@@ -127,13 +140,17 @@ META-BOX1: SYSTEM REQUIREMENTS -->
127
  <td><?php echo $dup_tests['PHP']['SAFE_MODE'] ?></td>
128
  </tr>
129
  <tr>
130
- <td><?php _e('Function', 'wpduplicator');?> file_get_contents</td>
131
  <td><?php echo $dup_tests['PHP']['FUNC_1'] ?></td>
132
  </tr>
133
  <tr>
134
- <td><?php _e('Function', 'wpduplicator');?> file_put_contents</td>
135
  <td><?php echo $dup_tests['PHP']['FUNC_2'] ?></td>
136
  </tr>
 
 
 
 
137
  </table>
138
  <small>
139
  <?php _e("PHP versions 5.2.17+ or higher is required. Please note that in versioning logic a value such as 5.2.9 is less than 5.2.17. 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.", 'wpduplicator'); ?>
18
  $package_hash = $Package->MakeHash();
19
 
20
  $dup_tests = array();
21
+ $dup_tests = DUP_Server::GetRequirements();
22
  $default_name = DUP_Package::GetDefaultName();
23
 
24
  $view_state = DUP_UI::GetViewStateArray();
29
 
30
  <style>
31
  /* -----------------------------
32
+ REQUIREMENTS*/
33
  div.dup-sys-section {margin:1px 0px 5px 0px}
34
  div.dup-sys-title {display:inline-block; width:250px; padding:1px; }
35
  div.dup-sys-title div {display:inline-block;float:right; }
72
  </style>
73
 
74
  <!-- =========================================
75
+ TOOL BAR: STEPS -->
76
+ <table id="toolbar-table">
77
+ <tr valign="top">
78
+ <td style="white-space: nowrap">
79
+ <div id="dup-wiz">
80
+ <div id="dup-wiz-steps">
81
+ <div class="active-step"><a><span>1</span> <?php _e('Setup', 'wpduplicator'); ?></a></div>
82
+ <div><a><span>2</span> <?php _e('Scan', 'wpduplicator'); ?> </a></div>
83
+ <div><a><span>3</span> <?php _e('Build', 'wpduplicator'); ?> </a></div>
84
+ </div>
85
+ <div id="dup-wiz-title">
86
+ <?php _e('Step 1: Package Setup', 'wpduplicator'); ?>
87
+ </div>
88
+ </div>
89
+ </td>
90
+ <td class="toolbar-btns">
91
+ <a id="dup-pro-create-new" href="?page=duplicator" class="add-new-h2"><i class="fa fa-archive"></i> <?php _e("All Packages", 'wpduplicator'); ?></a> &nbsp;
92
+ <span> <?php _e("Create New", 'wpduplicator'); ?></span>
93
+ </td>
94
+ </tr>
95
+ </table>
96
+ <hr style="margin-bottom:8px">
97
+
98
+
99
+
100
  <?php if (! empty($action_response)) : ?>
101
  <div id="message" class="updated below-h2"><p><?php echo $action_response; ?></p></div>
102
  <?php endif; ?>
116
  <div class="dup-box-panel" style="<?php echo ($dup_tests['Success']) ? 'display:none' : ''; ?>">
117
 
118
  <div class="dup-sys-section">
119
+ <i><?php _e("System requirements must pass for the Duplicator to work properly. Click each link for details.", 'wpduplicator'); ?></i>
120
  </div>
121
 
122
  <!-- PHP SUPPORT -->
140
  <td><?php echo $dup_tests['PHP']['SAFE_MODE'] ?></td>
141
  </tr>
142
  <tr>
143
+ <td><?php _e('Function', 'wpduplicator');?> <a href="http://php.net/manual/en/function.file-get-contents.php" target="_blank">file_get_contents</a></td>
144
  <td><?php echo $dup_tests['PHP']['FUNC_1'] ?></td>
145
  </tr>
146
  <tr>
147
+ <td><?php _e('Function', 'wpduplicator');?> <a href="http://php.net/manual/en/function.file-put-contents.php" target="_blank">file_put_contents</a></td>
148
  <td><?php echo $dup_tests['PHP']['FUNC_2'] ?></td>
149
  </tr>
150
+ <tr>
151
+ <td><?php _e('Function', 'wpduplicator');?> <a href="http://php.net/manual/en/mbstring.installation.php" target="_blank">mb_strlen</a></td>
152
+ <td><?php echo $dup_tests['PHP']['FUNC_3'] ?></td>
153
+ </tr>
154
  </table>
155
  <small>
156
  <?php _e("PHP versions 5.2.17+ or higher is required. Please note that in versioning logic a value such as 5.2.9 is less than 5.2.17. 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.", 'wpduplicator'); ?>
views/packages/new2.base.php CHANGED
@@ -49,17 +49,28 @@
49
  </style>
50
 
51
  <!-- =========================================
52
- WIZARD STEP TABS -->
53
- <div id="dup-wiz">
54
- <div id="dup-wiz-steps">
55
- <div class="completed-step"><a><span>1</span> <?php _e('Setup', 'wpduplicator'); ?></a></div>
56
- <div class="active-step"><a><span>2</span> <?php _e('Scan', 'wpduplicator'); ?> </a></div>
57
- <div><a><span>3</span> <?php _e('Build', 'wpduplicator'); ?> </a></div>
58
- </div>
59
- <div id="dup-wiz-title">
60
- <?php _e('Step 2: System Scan', 'wpduplicator'); ?>
61
- </div> <hr />
62
- </div>
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  <form id="form-duplicator" method="post" action="?page=duplicator&tab=new3">
65
  <div id="dup-progress-area">
@@ -211,7 +222,7 @@ WIZARD STEP TABS -->
211
  <b><?php _e('File Count', 'wpduplicator');?>:</b> <span id="data-arc-files"></span> &nbsp; | &nbsp;
212
  <b><?php _e('Directory Count', 'wpduplicator');?>:</b> <span id="data-arc-dirs"></span> <br/><br/>
213
  <?php
214
- printf(__('Total size reprents all files minus any filters that have been setup. The current thresholds that trigger warnings are %1$s for the entire site and %2$s for large files.', 'wpduplicator'), DUP_Util::ByteSize(DUPLICATOR_SCAN_SITE), DUP_Util::ByteSize(DUPLICATOR_SCAN_WARNFILESIZE));
215
  ?>
216
  </div>
217
  </div>
49
  </style>
50
 
51
  <!-- =========================================
52
+ TOOL BAR: STEPS -->
53
+ <table id="toolbar-table">
54
+ <tr valign="top">
55
+ <td style="white-space: nowrap">
56
+ <div id="dup-wiz">
57
+ <div id="dup-wiz-steps">
58
+ <div class="completed-step"><a><span>1</span> <?php _e('Setup', 'wpduplicator'); ?></a></div>
59
+ <div class="active-step"><a><span>2</span> <?php _e('Scan', 'wpduplicator'); ?> </a></div>
60
+ <div><a><span>3</span> <?php _e('Build', 'wpduplicator'); ?> </a></div>
61
+ </div>
62
+ <div id="dup-wiz-title">
63
+ <?php _e('Step 2: System Scan', 'wpduplicator'); ?>
64
+ </div>
65
+ </div>
66
+ </td>
67
+ <td class="toolbar-btns">
68
+ <a id="dup-pro-create-new" href="?page=duplicator" class="add-new-h2"><i class="fa fa-archive"></i> <?php _e("All Packages", 'wpduplicator'); ?></a> &nbsp;
69
+ <span> <?php _e("Create New", 'wpduplicator'); ?></span>
70
+ </td>
71
+ </tr>
72
+ </table>
73
+ <hr style="margin-bottom:10px">
74
 
75
  <form id="form-duplicator" method="post" action="?page=duplicator&tab=new3">
76
  <div id="dup-progress-area">
222
  <b><?php _e('File Count', 'wpduplicator');?>:</b> <span id="data-arc-files"></span> &nbsp; | &nbsp;
223
  <b><?php _e('Directory Count', 'wpduplicator');?>:</b> <span id="data-arc-dirs"></span> <br/><br/>
224
  <?php
225
+ printf(__('Total size represents all files minus any filters that have been setup. The current thresholds that trigger warnings are %1$s for the entire site and %2$s for large files.', 'wpduplicator'), DUP_Util::ByteSize(DUPLICATOR_SCAN_SITE), DUP_Util::ByteSize(DUPLICATOR_SCAN_WARNFILESIZE));
226
  ?>
227
  </div>
228
  </div>
views/packages/new3.base.php CHANGED
@@ -24,17 +24,29 @@
24
  </style>
25
 
26
  <!-- =========================================
27
- WIZARD STEP TABS -->
28
- <div id="dup-wiz">
29
- <div id="dup-wiz-steps">
30
- <div class="completed-step"><a><span>1</span> <?php _e('Setup', 'wpduplicator'); ?></a></div>
31
- <div class="completed-step"><a><span>2</span> <?php _e('Scan', 'wpduplicator'); ?> </a></div>
32
- <div class="active-step"><a><span>3</span> <?php _e('Build', 'wpduplicator'); ?> </a></div>
33
- </div>
34
- <div id="dup-wiz-title">
35
- <?php _e('Step 3: Build Package', 'wpduplicator'); ?>
36
- </div> <hr/>
37
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  <form id="form-duplicator" method="post" action="?page=duplicator">
40
 
@@ -121,7 +133,7 @@ WIZARD STEP TABS -->
121
  <div id="dup-logs">
122
  <div style="font-weight:bold">
123
  <a href='javascript:void(0)' onclick='Duplicator.OpenLogWindow()'> <?php _e('Package Log', 'wpduplicator');?> </a> &nbsp; | &nbsp;
124
- <a href='admin.php?page=duplicator-support' target="support"> <?php _e('Support', 'wpduplicator');?> </a>
125
  </div>
126
  <br/>
127
  </div>
@@ -130,15 +142,10 @@ WIZARD STEP TABS -->
130
 
131
  </div>
132
  </div>
133
-
134
-
135
-
136
  </form>
137
 
138
  <script type="text/javascript">
139
  jQuery(document).ready(function($) {
140
-
141
-
142
  /* ----------------------------------------
143
  * METHOD: Performs Ajax post to create a new package
144
  * Timeout (10000000 = 166 minutes) */
24
  </style>
25
 
26
  <!-- =========================================
27
+ TOOL BAR: STEPS -->
28
+ <table id="toolbar-table">
29
+ <tr valign="top">
30
+ <td style="white-space: nowrap">
31
+ <div id="dup-wiz">
32
+ <div id="dup-wiz-steps">
33
+ <div class="completed-step"><a><span>1</span> <?php _e('Setup', 'wpduplicator'); ?></a></div>
34
+ <div class="completed-step"><a><span>2</span> <?php _e('Scan', 'wpduplicator'); ?> </a></div>
35
+ <div class="active-step"><a><span>3</span> <?php _e('Build', 'wpduplicator'); ?> </a></div>
36
+ </div>
37
+ <div id="dup-wiz-title">
38
+ <?php _e('Step 3: Build Package', 'wpduplicator'); ?>
39
+ </div>
40
+ </div>
41
+ </td>
42
+ <td class="toolbar-btns">
43
+ <a id="dup-pro-create-new" href="?page=duplicator" class="add-new-h2"><i class="fa fa-archive"></i> <?php _e("All Packages", 'wpduplicator'); ?></a> &nbsp;
44
+ <span> <?php _e("Create New", 'wpduplicator'); ?></span>
45
+ </td>
46
+ </tr>
47
+ </table>
48
+ <hr style="margin-bottom:10px">
49
+
50
 
51
  <form id="form-duplicator" method="post" action="?page=duplicator">
52
 
133
  <div id="dup-logs">
134
  <div style="font-weight:bold">
135
  <a href='javascript:void(0)' onclick='Duplicator.OpenLogWindow()'> <?php _e('Package Log', 'wpduplicator');?> </a> &nbsp; | &nbsp;
136
+ <a href='admin.php?page=duplicator-help' target="support"> <?php _e('Support', 'wpduplicator');?> </a>
137
  </div>
138
  <br/>
139
  </div>
142
 
143
  </div>
144
  </div>
 
 
 
145
  </form>
146
 
147
  <script type="text/javascript">
148
  jQuery(document).ready(function($) {
 
 
149
  /* ----------------------------------------
150
  * METHOD: Performs Ajax post to create a new package
151
  * Timeout (10000000 = 166 minutes) */
views/settings/controller.php CHANGED
@@ -15,14 +15,12 @@ $current_tab = isset($_REQUEST['tab']) ? esc_html($_REQUEST['tab']) : 'general';
15
  </style>
16
 
17
  <div class="wrap">
18
- <!-- h2 required here for general system messages -->
19
- <h2 style='display:none'></h2>
20
-
21
  <?php duplicator_header(__("Settings", 'wpduplicator')) ?>
22
 
23
- <h2 class="nav-tab-wrapper">
24
  <a href="?page=duplicator-settings&tab=general" class="nav-tab <?php echo ($current_tab == 'general') ? 'nav-tab-active' : '' ?>"> <?php _e('General', 'wpduplicator'); ?></a>
25
- </h2>
26
 
27
  <?php
28
  switch ($current_tab) {
15
  </style>
16
 
17
  <div class="wrap">
18
+
 
 
19
  <?php duplicator_header(__("Settings", 'wpduplicator')) ?>
20
 
21
+ <!--h2 class="nav-tab-wrapper">
22
  <a href="?page=duplicator-settings&tab=general" class="nav-tab <?php echo ($current_tab == 'general') ? 'nav-tab-active' : '' ?>"> <?php _e('General', 'wpduplicator'); ?></a>
23
+ </h2-->
24
 
25
  <?php
26
  switch ($current_tab) {
views/settings/general.php CHANGED
@@ -205,7 +205,7 @@ $mysqlDumpFound = ($mysqlDumpPath) ? true : false;
205
  <div style="margin:15px 0px 0px 25px">
206
  <p class="description">
207
  <?php printf('%s <a href="https://wordpress.org/plugins/wpfront-user-role-editor/" target="_blank">%s</a> %s'
208
- . ' <a href="https://wpfront.com/lifeinthegrid" target="_blank">%s</a> %s '
209
  . ' <a href="https://wpfront.com/integrations/duplicator-integration/" target="_blank">%s</a>',
210
  __('The User Role Editor Plugin', 'wpduplicator'),
211
  __('Free', 'wpduplicator'),
205
  <div style="margin:15px 0px 0px 25px">
206
  <p class="description">
207
  <?php printf('%s <a href="https://wordpress.org/plugins/wpfront-user-role-editor/" target="_blank">%s</a> %s'
208
+ . ' <a href="https://wpfront.com/user-role-editor-pro/?ref=3" target="_blank">%s</a> %s '
209
  . ' <a href="https://wpfront.com/integrations/duplicator-integration/" target="_blank">%s</a>',
210
  __('The User Role Editor Plugin', 'wpduplicator'),
211
  __('Free', 'wpduplicator'),
views/tools/controller.php CHANGED
@@ -10,9 +10,6 @@ require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
10
  $current_tab = isset($_REQUEST['tab']) ? esc_html($_REQUEST['tab']) : 'logging';
11
  ?>
12
  <div class="wrap">
13
- <!-- h2 required here for general system messages -->
14
- <h2 style='display:none'></h2>
15
-
16
  <?php duplicator_header(__("Tools", 'wpduplicator')) ?>
17
 
18
  <h2 class="nav-tab-wrapper">
10
  $current_tab = isset($_REQUEST['tab']) ? esc_html($_REQUEST['tab']) : 'logging';
11
  ?>
12
  <div class="wrap">
 
 
 
13
  <?php duplicator_header(__("Tools", 'wpduplicator')) ?>
14
 
15
  <h2 class="nav-tab-wrapper">
views/tools/logging.php CHANGED
@@ -152,7 +152,7 @@ jQuery(document).ready(function($) {
152
  <table id="dup-log-panels">
153
  <tr>
154
  <td id="dup-log-panel-left">
155
- <div class="name"><i class='fa fa-pencil-square-o'></i> <?php echo basename($logurl); ?></div>
156
  <div class="opts"><a href="javascript:void(0)" id="dup-options"><?php _e("Options", 'wpduplicator') ?> <i class="fa fa-angle-double-right"></i></a> &nbsp;</div>
157
  <br style="clear:both" />
158
  <iframe id="dup-log-content" src="<?php echo $logurl ?>" ></iframe>
152
  <table id="dup-log-panels">
153
  <tr>
154
  <td id="dup-log-panel-left">
155
+ <div class="name"><i class='fa fa-list-alt'></i> <?php echo basename($logurl); ?></div>
156
  <div class="opts"><a href="javascript:void(0)" id="dup-options"><?php _e("Options", 'wpduplicator') ?> <i class="fa fa-angle-double-right"></i></a> &nbsp;</div>
157
  <br style="clear:both" />
158
  <iframe id="dup-log-content" src="<?php echo $logurl ?>" ></iframe>