BackUpWordPress - Version 0.2.7

Version Description

Download this release

Release Info

Developer wpdprx
Plugin Icon 128x128 BackUpWordPress
Version 0.2.7
Comparing to
See all releases

Code changes from version 0.2.6 to 0.2.7

Archive.php CHANGED
@@ -35,7 +35,7 @@
35
  * To have access to PEAR::isError and PEAR::raiseError
36
  * We should probably use lazy include and remove this inclusion...
37
  */
38
- if (!class_exists("pear")) {
39
  require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
40
  }
41
 
35
  * To have access to PEAR::isError and PEAR::raiseError
36
  * We should probably use lazy include and remove this inclusion...
37
  */
38
+ if (!in_array("PEAR", get_declared_classes())) {
39
  require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
40
  }
41
 
Archive/Reader.php CHANGED
@@ -31,7 +31,9 @@
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
 
34
  require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
 
35
 
36
  /**
37
  * Abstract base class for all the readers
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
34
+ if (!in_array("PEAR", get_declared_classes())) {
35
  require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
36
+ }
37
 
38
  /**
39
  * Abstract base class for all the readers
Archive/Writer.php CHANGED
@@ -29,7 +29,9 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
 
32
  require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
 
33
 
34
  /**
35
  * Base class for any writer
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ if (!in_array("PEAR", get_declared_classes())) {
33
  require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
34
+ }
35
 
36
  /**
37
  * Base class for any writer
PEAR.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
-
3
- if (class_exists("pear")) {
 
 
4
  return;
5
  }
6
  /**
1
  <?php
2
+ if (class_exists("pear")) {
3
+ return;
4
+ }
5
+ if (in_array("PEAR", get_declared_classes()) || in_array("pear", get_declared_classes())) {
6
  return;
7
  }
8
  /**
Type.php CHANGED
@@ -19,8 +19,8 @@
19
  // $Id: Type.php,v 1.2 2004/08/07 22:19:04 ieure Exp $
20
 
21
 
22
- if (!class_exists("pear")) {
23
- require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
24
  }
25
 
26
  $_fileCmd = &PEAR::getStaticProperty('MIME_Type', 'fileCmd');
19
  // $Id: Type.php,v 1.2 2004/08/07 22:19:04 ieure Exp $
20
 
21
 
22
+ if (!in_array("PEAR", get_declared_classes())) {
23
+ require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
24
  }
25
 
26
  $_fileCmd = &PEAR::getStaticProperty('MIME_Type', 'fileCmd');
backupwordpress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: BackUpWordPress
4
  Plugin URI: http://wordpress.designpraxis.at
5
  Description: Manage <a href="admin.php?page=backupwordpress/backupwordpress.php">WordPress Backups</a>. Beta Release. Please help testing and give me feedback under the comments section of <a href="http://wordpress.designpraxis.at/plugins/backupwordpress/">the Plugin page</a>. Backup DB, Files & Folders, use .tar.gz, .zip, Exclude List, etc.
6
  Author: Roland Rust
7
- Version: 0.2.6
8
  Author URI: http://wordpress.designpraxis.at
9
  */
10
 
@@ -26,7 +26,7 @@ Author URI: http://wordpress.designpraxis.at
26
  */
27
 
28
  $GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
29
- $GLOBALS['bkpwp_version'] = "0.2.6";
30
 
31
  // get the functions
32
  require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
@@ -62,7 +62,21 @@ add_action('admin_head', 'bkpwp_sajax_js');
62
  if (eregi("backupwordpress",$_REQUEST['page']) || eregi("bkpwp",$_REQUEST['page']) || $_SERVER['REQUEST_URI'] == "/wp-admin/index.php" || $_SERVER['REQUEST_URI'] == "/wp-admin/") {
63
  add_action('admin_head', 'bkpwp_load_css_and_js');
64
  }
65
-
66
  add_action('admin_menu', 'bkpwp_add_menu');
67
  add_action('activity_box_end', 'bkpwp_latest_activity',0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  ?>
4
  Plugin URI: http://wordpress.designpraxis.at
5
  Description: Manage <a href="admin.php?page=backupwordpress/backupwordpress.php">WordPress Backups</a>. Beta Release. Please help testing and give me feedback under the comments section of <a href="http://wordpress.designpraxis.at/plugins/backupwordpress/">the Plugin page</a>. Backup DB, Files & Folders, use .tar.gz, .zip, Exclude List, etc.
6
  Author: Roland Rust
7
+ Version: 0.2.7
8
  Author URI: http://wordpress.designpraxis.at
9
  */
10
 
26
  */
27
 
28
  $GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
29
+ $GLOBALS['bkpwp_version'] = "0.2.7";
30
 
31
  // get the functions
32
  require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
62
  if (eregi("backupwordpress",$_REQUEST['page']) || eregi("bkpwp",$_REQUEST['page']) || $_SERVER['REQUEST_URI'] == "/wp-admin/index.php" || $_SERVER['REQUEST_URI'] == "/wp-admin/") {
63
  add_action('admin_head', 'bkpwp_load_css_and_js');
64
  }
 
65
  add_action('admin_menu', 'bkpwp_add_menu');
66
  add_action('activity_box_end', 'bkpwp_latest_activity',0);
67
+
68
+ // debug code. how do we get rid of the eaccelerator problem causing a redeclare error fpr pear?
69
+ /* if (eregi("backupwordpress",$_REQUEST['page']) || eregi("bkpwp",$_REQUEST['page'])) {
70
+ //@ini_set('eaccelerator.enable',0)
71
+ if ((ini_get('eaccelerator.enable') == 1)) {
72
+ echo "eAcc is running";
73
+ }
74
+ if (!in_array("PEAR", get_declared_classes())) {
75
+ echo "<pre>";
76
+ //print_r(get_declared_classes());
77
+ require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
78
+ echo "</pre>";
79
+ }
80
+ //print_r(get_declared_classes());
81
+ } */
82
  ?>
bkpwp-classes/manage_backups.php CHANGED
@@ -878,7 +878,7 @@ class BKPWP_MANAGE {
878
  $ret .= ">".$l['listname']."</option>";
879
  }
880
  $ret .= "</select>";
881
- $ret .= " <a href=\"admin.php?page=bkpwp-backup-options&excludelistname=".$preset['bkpwp_preset_options']['bkpwp_excludelist']."#excludelist\">".__("Configure","bkpwp")." &raquo;</a>";
882
  $ret .= "</p>";
883
  }
884
  $ret .= "</div>";
@@ -1039,7 +1039,7 @@ class BKPWP_MANAGE {
1039
  }
1040
 
1041
 
1042
- require(ABSPATH."wp-includes/class-phpmailer.php");
1043
  class backupwordpressMailer extends PHPMailer {
1044
  // Set default variables for all new objects
1045
  //var $From = $GLOBALS['userdata']->user_email;
878
  $ret .= ">".$l['listname']."</option>";
879
  }
880
  $ret .= "</select>";
881
+ $ret .= " <a href=\"admin.php?page=bkpwp_options&excludelistname=".$preset['bkpwp_preset_options']['bkpwp_excludelist']."#excludelist\">".__("Configure","bkpwp")." &raquo;</a>";
882
  $ret .= "</p>";
883
  }
884
  $ret .= "</div>";
1039
  }
1040
 
1041
 
1042
+ require_once(ABSPATH."wp-includes/class-phpmailer.php");
1043
  class backupwordpressMailer extends PHPMailer {
1044
  // Set default variables for all new objects
1045
  //var $From = $GLOBALS['userdata']->user_email;
readme.txt CHANGED
@@ -6,11 +6,12 @@ Requires at least: 2.1
6
  Tested up to: 2.2.2
7
  Stable tag: trunk
8
 
9
- BackUpWordPress is a Backup & Recovery Suite for your WordPress website. This Plugin allows you to backup database as well as files and comes with a rich set of options.
10
 
11
  == Description ==
12
 
13
- Features:
 
 
14
 
15
  EasyMode:
16
 
@@ -72,6 +73,11 @@ Some pieces of code have been modified:
72
 
73
  Changelog:
74
 
 
 
 
 
 
75
  Changes in 0.2.6:
76
 
77
  + unable to delete backup presets bug fixed
6
  Tested up to: 2.2.2
7
  Stable tag: trunk
8
 
 
9
 
10
  == Description ==
11
 
12
+ BackUpWordPress is a Backup & Recovery Suite for your WordPress website. This Plugin allows you to backup database as well as files and comes with a rich set of options.
13
+
14
+ == Features ==
15
 
16
  EasyMode:
17
 
73
 
74
  Changelog:
75
 
76
+ Changes in 0.2.7:
77
+
78
+ + manage presets. link to configure excludelists corrected
79
+ + require_once instead of require for class-phpmailer.php
80
+
81
  Changes in 0.2.6:
82
 
83
  + unable to delete backup presets bug fixed