XCloner – Backup and Restore - Version 3.1.4

Version Description

  • DropPHP DropBox library update, upload fixes for files larger than 150MB
Download this release

Release Info

Developer xcloner
Plugin Icon 128x128 XCloner – Backup and Restore
Version 3.1.4
Comparing to
See all releases

Code changes from version 3.1.3 to 3.1.4

Files changed (3) hide show
  1. cloner.functions.php +22 -12
  2. readme.txt +5 -2
  3. xcloner.php +1 -1
cloner.functions.php CHANGED
@@ -128,6 +128,18 @@
128
  $html = new HTML_cloner();
129
  $html->_FDefault();
130
  }
 
 
 
 
 
 
 
 
 
 
 
 
131
 
132
  function config($option)
133
  {
@@ -149,8 +161,14 @@
149
  foreach ($_REQUEST['databases_incl'] as $database) {
150
  $databases_incl_list .= $database . ",";
151
  }
152
- #foreach($_REQUEST as $key=>$value)
153
- # update_site_option( "xcloner_".$key, $value, '', 'yes' );
 
 
 
 
 
 
154
 
155
  foreach($_REQUEST as $key=>$value)
156
  update_site_option( "xcloner_".$key, $value, '', 'yes' );
@@ -166,7 +184,7 @@
166
  if(1){
167
  $cfg = '<?' . 'php' . "\n";
168
 
169
- $cfg .= '$_CONFIG[\'license_code\']=\'' . $_REQUEST[license_code] . '\';' . "\n";
170
 
171
  $cfg .= '$_CONFIG[\'backup_path\']="' . $_REQUEST[backup_path] . '";' . "\n";
172
 
@@ -283,9 +301,6 @@
283
 
284
  $cfg .= '?' . '>';
285
 
286
- #fwrite($fp, $cfg);
287
-
288
- #fclose($fp);
289
 
290
  $msg = LM_MSG_BACK_1;
291
 
@@ -303,13 +318,8 @@
303
  }
304
  }
305
 
306
-
307
- //exit;
308
  mosRedirect('index2.php?option=' . $option . "&task=config", $msg);
309
- } /*else {
310
- $msg = "<font color='red'>ERROR... Unable to write to ".realpath($config_file).", please make it writeable!</font>";
311
- E_print($msg);
312
- }*/
313
 
314
  mosRedirect('index2.php?option=' . $option . "&task=config", $msg);
315
  }
128
  $html = new HTML_cloner();
129
  $html->_FDefault();
130
  }
131
+
132
+ function filterInput($string, $max_length = 200, $sanitize_string = 1)
133
+ {
134
+ if($sanitize_string)
135
+ $string = strip_tags(($string));
136
+
137
+ if($max_length)
138
+ $string = substr($string, 0, $max_length);
139
+
140
+ return $string;
141
+
142
+ }
143
 
144
  function config($option)
145
  {
161
  foreach ($_REQUEST['databases_incl'] as $database) {
162
  $databases_incl_list .= $database . ",";
163
  }
164
+
165
+ foreach($_REQUEST as $key=>$value)
166
+ {
167
+ if($key == "cron_exclude")
168
+ $_REQUEST[$key] = filterInput($value, 0);
169
+ else
170
+ $_REQUEST[$key] = filterInput($value);
171
+ }
172
 
173
  foreach($_REQUEST as $key=>$value)
174
  update_site_option( "xcloner_".$key, $value, '', 'yes' );
184
  if(1){
185
  $cfg = '<?' . 'php' . "\n";
186
 
187
+ $cfg .= '$_CONFIG[\'license_code\']="' . $_REQUEST[license_code] . '";' . "\n";
188
 
189
  $cfg .= '$_CONFIG[\'backup_path\']="' . $_REQUEST[backup_path] . '";' . "\n";
190
 
301
 
302
  $cfg .= '?' . '>';
303
 
 
 
 
304
 
305
  $msg = LM_MSG_BACK_1;
306
 
318
  }
319
  }
320
 
 
 
321
  mosRedirect('index2.php?option=' . $option . "&task=config", $msg);
322
+ }
 
 
 
323
 
324
  mosRedirect('index2.php?option=' . $option . "&task=config", $msg);
325
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: xcloner
3
  Donate link: http://www.xcloner.com/
4
  Tags: backup, restore, plugin, database, full backup, cloner, xcloner, theme, files, upload, wordpress backup, backup plugin, database backup, database restore, site move, transfer, blog transfer, BuddyPress
5
  Requires at least: 2.0.2
6
- Tested up to: 4.2
7
- Stable tag: 3.1.3
8
 
9
  XCloner is a full backup and restore plugin for Wordpress, it will backup and restore both files and database. www.xcloner.com
10
 
@@ -70,6 +70,9 @@ If the inside Clone option fails for some reason, you need to:
70
 
71
  == Changelog ==
72
 
 
 
 
73
  = 3.1.3 =
74
  * XSS fix
75
 
3
  Donate link: http://www.xcloner.com/
4
  Tags: backup, restore, plugin, database, full backup, cloner, xcloner, theme, files, upload, wordpress backup, backup plugin, database backup, database restore, site move, transfer, blog transfer, BuddyPress
5
  Requires at least: 2.0.2
6
+ Tested up to: 4.5
7
+ Stable tag: 3.1.4
8
 
9
  XCloner is a full backup and restore plugin for Wordpress, it will backup and restore both files and database. www.xcloner.com
10
 
70
 
71
  == Changelog ==
72
 
73
+ = 3.1.4 =
74
+ * DropPHP DropBox library update, upload fixes for files larger than 150MB
75
+
76
  = 3.1.3 =
77
  * XSS fix
78
 
xcloner.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: XCloner
4
  Plugin URI: http://www.xcloner.com
5
  Description: XCloner is a tool that will help you manage your website backups, generate/restore/move so your website will be always secured! With XCloner you will be able to clone your site to any other location with just a few clicks. Don't forget to create the 'administrator/backups' directory in your Wordpress root and make it fully writeable. <a href="plugins.php?page=xcloner_show">Open XCloner</a> | <a href="http://www.xcloner.com/support/premium-support/">Get Premium Support</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=info%40xcloner%2ecom&lc=US&item_name=XCloner%20Support&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest">Donate</a>
6
- Version: 3.1.3
7
  Author: Liuta Ovidiu
8
  Author URI: http://www.xcloner.com
9
  Plugin URI: http://www.xcloner.com
3
  Plugin Name: XCloner
4
  Plugin URI: http://www.xcloner.com
5
  Description: XCloner is a tool that will help you manage your website backups, generate/restore/move so your website will be always secured! With XCloner you will be able to clone your site to any other location with just a few clicks. Don't forget to create the 'administrator/backups' directory in your Wordpress root and make it fully writeable. <a href="plugins.php?page=xcloner_show">Open XCloner</a> | <a href="http://www.xcloner.com/support/premium-support/">Get Premium Support</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=info%40xcloner%2ecom&lc=US&item_name=XCloner%20Support&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest">Donate</a>
6
+ Version: 3.1.4
7
  Author: Liuta Ovidiu
8
  Author URI: http://www.xcloner.com
9
  Plugin URI: http://www.xcloner.com