BackUpWordPress - Version 0.4.3

Version Description

Download this release

Release Info

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

Code changes from version 0.4.2 to 0.4.3

Files changed (56) hide show
  1. Archive.php +12 -12
  2. Archive/Predicate.php +1 -1
  3. Archive/Predicate/And.php +1 -1
  4. Archive/Predicate/Current.php +1 -1
  5. Archive/Predicate/Custom.php +1 -1
  6. Archive/Predicate/Duplicate.php +1 -1
  7. Archive/Predicate/Ereg.php +1 -1
  8. Archive/Predicate/Eregi.php +1 -1
  9. Archive/Predicate/Extension.php +1 -1
  10. Archive/Predicate/False.php +1 -1
  11. Archive/Predicate/Index.php +1 -1
  12. Archive/Predicate/MIME.php +1 -1
  13. Archive/Predicate/MaxDepth.php +1 -1
  14. Archive/Predicate/MinSize.php +1 -1
  15. Archive/Predicate/MinTime.php +1 -1
  16. Archive/Predicate/Not.php +1 -1
  17. Archive/Predicate/Or.php +1 -1
  18. Archive/Predicate/True.php +1 -1
  19. Archive/Reader.php +4 -4
  20. Archive/Reader/Ar.php +3 -3
  21. Archive/Reader/Archive.php +1 -1
  22. Archive/Reader/Bzip2.php +3 -3
  23. Archive/Reader/Cache.php +1 -1
  24. Archive/Reader/ChangeName.php +1 -1
  25. Archive/Reader/Concat.php +1 -1
  26. Archive/Reader/Directory.php +5 -5
  27. Archive/Reader/File.php +3 -3
  28. Archive/Reader/Filter.php +1 -1
  29. Archive/Reader/Gzip.php +3 -3
  30. Archive/Reader/Memory.php +2 -2
  31. Archive/Reader/Multi.php +1 -1
  32. Archive/Reader/Relay.php +1 -1
  33. Archive/Reader/Select.php +1 -1
  34. Archive/Reader/Tar.php +3 -3
  35. Archive/Reader/Uncompress.php +2 -2
  36. Archive/Reader/Zip.php +3 -3
  37. Archive/Writer.php +1 -1
  38. Archive/Writer/AddBaseName.php +1 -1
  39. Archive/Writer/Ar.php +1 -1
  40. Archive/Writer/Archive.php +1 -1
  41. Archive/Writer/Bzip2.php +1 -1
  42. Archive/Writer/Files.php +1 -1
  43. Archive/Writer/Gzip.php +1 -1
  44. Archive/Writer/Mail.php +1 -1
  45. Archive/Writer/Memory.php +2 -2
  46. Archive/Writer/MemoryArchive.php +2 -2
  47. Archive/Writer/Multi.php +1 -1
  48. Archive/Writer/Output.php +1 -1
  49. Archive/Writer/Tar.php +2 -2
  50. Archive/Writer/UniqueAppender.php +3 -3
  51. Archive/Writer/Zip.php +1 -1
  52. Type.php +1 -1
  53. backupwordpress.php +12 -13
  54. bkpwp-classes/manage_backups.php +3 -3
  55. functions.php +6 -4
  56. readme.txt +3 -0
Archive.php CHANGED
@@ -36,7 +36,7 @@
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
 
42
  function File_Archive_cleanCache($file, $group)
@@ -294,7 +294,7 @@ class File_Archive
294
  $uncompressionLevel = $uncompression;
295
  }
296
 
297
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader.php';
298
  $std = File_Archive_Reader::getStandardURL($URL);
299
 
300
  //Modify the symbolic name if necessary
@@ -348,8 +348,8 @@ class File_Archive
348
  }
349
 
350
  if ($directoryDepth >= 0) {
351
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader/Filter.php';
352
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Predicate/MaxDepth.php';
353
 
354
  $tmp =& File_Archive::filter(
355
  new File_Archive_Predicate_MaxDepth($directoryDepth),
@@ -554,7 +554,7 @@ class File_Archive
554
  return $source;
555
  }
556
 
557
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader/Cache.php';
558
  return new File_Archive_Reader_Cache($source);
559
  }
560
 
@@ -594,7 +594,7 @@ class File_Archive
594
  if (is_string($dest)) {
595
  return File_Archive::appender($dest);
596
  } else if (is_array($dest)) {
597
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Writer/Multi.php';
598
  $writer = new File_Archive_Writer_Multi();
599
  foreach($dest as $key => $foo) {
600
  $writer->addWriter($dest[$key]);
@@ -661,30 +661,30 @@ class File_Archive
661
  File_Archive::readArchive('bz2', $source, $sourceOpened)
662
  );
663
  case 'tar':
664
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader/Tar.php';
665
  return new File_Archive_Reader_Tar($source, $sourceOpened);
666
 
667
  case 'gz':
668
  case 'gzip':
669
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader/Gzip.php';
670
  return new File_Archive_Reader_Gzip($source, $sourceOpened);
671
 
672
  case 'zip':
673
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader/Zip.php';
674
  return new File_Archive_Reader_Zip($source, $sourceOpened);
675
 
676
  case 'bz2':
677
  case 'bzip2':
678
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader/Bzip2.php';
679
  return new File_Archive_Reader_Bzip2($source, $sourceOpened);
680
 
681
  case 'deb':
682
  case 'ar':
683
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader/Ar.php';
684
  return new File_Archive_Reader_Ar($source, $sourceOpened);
685
 
686
  /* case 'cab':
687
- require_once $GLOBALS['bkpwp_plugin_path'].'Archive/Reader/Cab.php';
688
  return new File_Archive_Reader_Cab($source, $sourceOpened);
689
 
690
 
36
  * We should probably use lazy include and remove this inclusion...
37
  */
38
  if (!class_exists("pear")) {
39
+ require_once BKPWP_PLUGIN_PATH."PEAR.php";
40
  }
41
 
42
  function File_Archive_cleanCache($file, $group)
294
  $uncompressionLevel = $uncompression;
295
  }
296
 
297
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader.php';
298
  $std = File_Archive_Reader::getStandardURL($URL);
299
 
300
  //Modify the symbolic name if necessary
348
  }
349
 
350
  if ($directoryDepth >= 0) {
351
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader/Filter.php';
352
+ require_once BKPWP_PLUGIN_PATH.'Archive/Predicate/MaxDepth.php';
353
 
354
  $tmp =& File_Archive::filter(
355
  new File_Archive_Predicate_MaxDepth($directoryDepth),
554
  return $source;
555
  }
556
 
557
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader/Cache.php';
558
  return new File_Archive_Reader_Cache($source);
559
  }
560
 
594
  if (is_string($dest)) {
595
  return File_Archive::appender($dest);
596
  } else if (is_array($dest)) {
597
+ require_once BKPWP_PLUGIN_PATH.'Archive/Writer/Multi.php';
598
  $writer = new File_Archive_Writer_Multi();
599
  foreach($dest as $key => $foo) {
600
  $writer->addWriter($dest[$key]);
661
  File_Archive::readArchive('bz2', $source, $sourceOpened)
662
  );
663
  case 'tar':
664
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader/Tar.php';
665
  return new File_Archive_Reader_Tar($source, $sourceOpened);
666
 
667
  case 'gz':
668
  case 'gzip':
669
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader/Gzip.php';
670
  return new File_Archive_Reader_Gzip($source, $sourceOpened);
671
 
672
  case 'zip':
673
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader/Zip.php';
674
  return new File_Archive_Reader_Zip($source, $sourceOpened);
675
 
676
  case 'bz2':
677
  case 'bzip2':
678
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader/Bzip2.php';
679
  return new File_Archive_Reader_Bzip2($source, $sourceOpened);
680
 
681
  case 'deb':
682
  case 'ar':
683
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader/Ar.php';
684
  return new File_Archive_Reader_Ar($source, $sourceOpened);
685
 
686
  /* case 'cab':
687
+ require_once BKPWP_PLUGIN_PATH.'Archive/Reader/Cab.php';
688
  return new File_Archive_Reader_Cab($source, $sourceOpened);
689
 
690
 
Archive/Predicate.php CHANGED
@@ -32,7 +32,7 @@
32
  * @link http://pear.php.net/package/File_Archive
33
  */
34
 
35
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader.php";
36
 
37
  /**
38
  * A predicate is an object that can evaluate to true or false depending on the
32
  * @link http://pear.php.net/package/File_Archive
33
  */
34
 
35
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader.php";
36
 
37
  /**
38
  * A predicate is an object that can evaluate to true or false depending on the
Archive/Predicate/And.php CHANGED
@@ -30,7 +30,7 @@
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
34
 
35
  /**
36
  * Evaluates to true iif all predicates given as constructor parameters evaluate
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
34
 
35
  /**
36
  * Evaluates to true iif all predicates given as constructor parameters evaluate
Archive/Predicate/Current.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Evaluates to true only once, and then always to false
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Evaluates to true only once, and then always to false
Archive/Predicate/Custom.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Custom predicate built by supplying a string expression
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Custom predicate built by supplying a string expression
Archive/Predicate/Duplicate.php CHANGED
@@ -33,7 +33,7 @@
33
  * @link http://pear.php.net/package/File_Archive
34
  */
35
 
36
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
37
 
38
  /**
39
  * Evaluates to true if a for the files for which a newer version
33
  * @link http://pear.php.net/package/File_Archive
34
  */
35
 
36
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
37
 
38
  /**
39
  * Evaluates to true if a for the files for which a newer version
Archive/Predicate/Ereg.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Keep only the files which name follow a given regular expression
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Keep only the files which name follow a given regular expression
Archive/Predicate/Eregi.php CHANGED
@@ -30,7 +30,7 @@
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
34
 
35
  /**
36
  * Keep only the files which name follow a given case insensitive regular
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
34
 
35
  /**
36
  * Keep only the files which name follow a given case insensitive regular
Archive/Predicate/Extension.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Keep only the files that have a specific extension
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Keep only the files that have a specific extension
Archive/Predicate/False.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Always evaluate to false
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Always evaluate to false
Archive/Predicate/Index.php CHANGED
@@ -31,7 +31,7 @@
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
34
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
35
 
36
  /**
37
  * Evaluates to true if the index is in a given array of indexes
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
34
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
35
 
36
  /**
37
  * Evaluates to true if the index is in a given array of indexes
Archive/Predicate/MIME.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
  require_once "MIME/Type.php";
34
 
35
  /**
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
  require_once "MIME/Type.php";
34
 
35
  /**
Archive/Predicate/MaxDepth.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Remove the URLs with a too high number of nested directories
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Remove the URLs with a too high number of nested directories
Archive/Predicate/MinSize.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Keep only the files larger than a given size
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Keep only the files larger than a given size
Archive/Predicate/MinTime.php CHANGED
@@ -30,7 +30,7 @@
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
34
 
35
  /**
36
  * Keep only the files modified after a given date (or with unknown modification
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
34
 
35
  /**
36
  * Keep only the files modified after a given date (or with unknown modification
Archive/Predicate/Not.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Evaluates to true iif the predicate given in parameter evaluates to false
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Evaluates to true iif the predicate given in parameter evaluates to false
Archive/Predicate/Or.php CHANGED
@@ -30,7 +30,7 @@
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
34
 
35
  /**
36
  * Evaluates to true iif one at least of the predicates
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
34
 
35
  /**
36
  * Evaluates to true iif one at least of the predicates
Archive/Predicate/True.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
33
 
34
  /**
35
  * Always evaluate to true
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
33
 
34
  /**
35
  * Always evaluate to true
Archive/Reader.php CHANGED
@@ -31,7 +31,7 @@
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
@@ -157,7 +157,7 @@ class File_Archive_Reader
157
  */
158
  function getMime()
159
  {
160
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/MimeList.php";
161
  return File_Archive_Reader_GetMime($this->getFilename());
162
  }
163
 
@@ -354,7 +354,7 @@ class File_Archive_Reader
354
  */
355
  function makeAppendWriter()
356
  {
357
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate/False.php";
358
  return $this->makeWriterRemoveFiles(new File_Archive_Predicate_False());
359
  }
360
 
@@ -379,7 +379,7 @@ class File_Archive_Reader
379
  */
380
  function makeWriterRemove()
381
  {
382
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate/Current.php";
383
  return $this->makeWriterRemoveFiles(new File_Archive_Predicate_Current());
384
  }
385
 
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
34
+ require_once BKPWP_PLUGIN_PATH."PEAR.php";
35
 
36
  /**
37
  * Abstract base class for all the readers
157
  */
158
  function getMime()
159
  {
160
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/MimeList.php";
161
  return File_Archive_Reader_GetMime($this->getFilename());
162
  }
163
 
354
  */
355
  function makeAppendWriter()
356
  {
357
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate/False.php";
358
  return $this->makeWriterRemoveFiles(new File_Archive_Predicate_False());
359
  }
360
 
379
  */
380
  function makeWriterRemove()
381
  {
382
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate/Current.php";
383
  return $this->makeWriterRemoveFiles(new File_Archive_Predicate_Current());
384
  }
385
 
Archive/Reader/Ar.php CHANGED
@@ -27,7 +27,7 @@
27
  * @link http://pear.php.net/package/File_Archive
28
  */
29
 
30
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Archive.php";
31
 
32
  /**
33
  * Read an Ar archive
@@ -270,7 +270,7 @@ class File_Archive_Reader_Ar extends File_Archive_Reader_Archive
270
  */
271
  function makeWriterRemoveFiles($pred)
272
  {
273
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Ar.php";
274
 
275
  $blocks = array();
276
  $seek = null;
@@ -365,7 +365,7 @@ class File_Archive_Reader_Ar extends File_Archive_Reader_Archive
365
  */
366
  function makeAppendWriter()
367
  {
368
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Ar.php";
369
 
370
  while (($error = $this->next()) === true) { }
371
  if (PEAR::isError($error)) {
27
  * @link http://pear.php.net/package/File_Archive
28
  */
29
 
30
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Archive.php";
31
 
32
  /**
33
  * Read an Ar archive
270
  */
271
  function makeWriterRemoveFiles($pred)
272
  {
273
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Ar.php";
274
 
275
  $blocks = array();
276
  $seek = null;
365
  */
366
  function makeAppendWriter()
367
  {
368
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Ar.php";
369
 
370
  while (($error = $this->next()) === true) { }
371
  if (PEAR::isError($error)) {
Archive/Reader/Archive.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader.php";
33
 
34
  /**
35
  * Base class for all the archive readers (that read from a single file)
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader.php";
33
 
34
  /**
35
  * Base class for all the archive readers (that read from a single file)
Archive/Reader/Bzip2.php CHANGED
@@ -29,8 +29,8 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Archive.php";
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Files.php";
34
 
35
  /**
36
  * Uncompress a file that was compressed in the Bzip2 format
@@ -192,7 +192,7 @@ class File_Archive_Reader_Bzip2 extends File_Archive_Reader_Archive
192
  */
193
  function makeWriterRemoveBlocks($blocks, $seek = 0)
194
  {
195
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Bzip2.php";
196
 
197
  if ($this->nbRead == 0) {
198
  return PEAR::raiseError('No file selected');
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Archive.php";
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Files.php";
34
 
35
  /**
36
  * Uncompress a file that was compressed in the Bzip2 format
192
  */
193
  function makeWriterRemoveBlocks($blocks, $seek = 0)
194
  {
195
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Bzip2.php";
196
 
197
  if ($this->nbRead == 0) {
198
  return PEAR::raiseError('No file selected');
Archive/Reader/Cache.php CHANGED
@@ -31,7 +31,7 @@
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
34
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader.php";
35
 
36
  /**
37
  * This reader caches the files of another reader
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
34
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader.php";
35
 
36
  /**
37
  * This reader caches the files of another reader
Archive/Reader/ChangeName.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * Add a directory to the public name of all the files of a reader
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * Add a directory to the public name of all the files of a reader
Archive/Reader/Concat.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * This reader provides one single file that is the concatenation of the data of
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * This reader provides one single file that is the concatenation of the data of
Archive/Reader/Directory.php CHANGED
@@ -29,8 +29,8 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Relay.php";
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/File.php";
34
 
35
  /**
36
  * Recursively reads a directory
@@ -159,7 +159,7 @@ class File_Archive_Reader_Directory extends File_Archive_Reader_Relay
159
  return PEAR::raiseError($pred);
160
  }
161
 
162
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Files.php";
163
 
164
  $writer = new File_Archive_Writer_Files($this->directory);
165
  $this->close();
@@ -186,7 +186,7 @@ class File_Archive_Reader_Directory extends File_Archive_Reader_Relay
186
  return PEAR::raiseError('No file selected');
187
  }
188
 
189
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Files.php";
190
 
191
  $writer = $lastSource->makeWriterRemoveBlocks($blocks, $seek);
192
  if (!PEAR::isError($writer)) {
@@ -202,7 +202,7 @@ class File_Archive_Reader_Directory extends File_Archive_Reader_Relay
202
  */
203
  function makeAppendWriter()
204
  {
205
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Files.php";
206
 
207
  if ($this->source === null ||
208
  is_a($this->source, 'File_Archive_Reader_File') ) {
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Relay.php";
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/File.php";
34
 
35
  /**
36
  * Recursively reads a directory
159
  return PEAR::raiseError($pred);
160
  }
161
 
162
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Files.php";
163
 
164
  $writer = new File_Archive_Writer_Files($this->directory);
165
  $this->close();
186
  return PEAR::raiseError('No file selected');
187
  }
188
 
189
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Files.php";
190
 
191
  $writer = $lastSource->makeWriterRemoveBlocks($blocks, $seek);
192
  if (!PEAR::isError($writer)) {
202
  */
203
  function makeAppendWriter()
204
  {
205
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Files.php";
206
 
207
  if ($this->source === null ||
208
  is_a($this->source, 'File_Archive_Reader_File') ) {
Archive/Reader/File.php CHANGED
@@ -29,8 +29,8 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader.php";
33
- require_once $GLOBALS['bkpwp_plugin_path']."Type.php";
34
 
35
  /**
36
  * Reader that represents a single file
@@ -268,7 +268,7 @@ class File_Archive_Reader_File extends File_Archive_Reader
268
  */
269
  function makeWriterRemoveBlocks($blocks, $seek = 0)
270
  {
271
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Files.php";
272
 
273
  $writer = new File_Archive_Writer_Files();
274
 
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader.php";
33
+ require_once BKPWP_PLUGIN_PATH."Type.php";
34
 
35
  /**
36
  * Reader that represents a single file
268
  */
269
  function makeWriterRemoveBlocks($blocks, $seek = 0)
270
  {
271
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Files.php";
272
 
273
  $writer = new File_Archive_Writer_Files();
274
 
Archive/Reader/Filter.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * Filter out the files that do not respect a given predicat
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * Filter out the files that do not respect a given predicat
Archive/Reader/Gzip.php CHANGED
@@ -29,8 +29,8 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Archive.php";
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Files.php";
34
 
35
  /**
36
  * Uncompress a file that was compressed in the Gzip format
@@ -214,7 +214,7 @@ class File_Archive_Reader_Gzip extends File_Archive_Reader_Archive
214
  */
215
  function makeWriterRemoveBlocks($blocks, $seek = 0)
216
  {
217
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Gzip.php";
218
 
219
  if ($this->nbRead == 0) {
220
  return PEAR::raiseError('No file selected');
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Archive.php";
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Files.php";
34
 
35
  /**
36
  * Uncompress a file that was compressed in the Gzip format
214
  */
215
  function makeWriterRemoveBlocks($blocks, $seek = 0)
216
  {
217
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Gzip.php";
218
 
219
  if ($this->nbRead == 0) {
220
  return PEAR::raiseError('No file selected');
Archive/Reader/Memory.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader.php";
33
 
34
  /**
35
  * A reader that takes its input from a memory buffer
@@ -202,7 +202,7 @@ class File_Archive_Reader_Memory extends File_Archive_Reader
202
  */
203
  function makeWriterRemoveBlocks($blocks, $seek = 0)
204
  {
205
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Memory.php";
206
  $data = substr($this->memory, 0, $this->offset + $seek);
207
  $this->memory = substr($this->memory, $this->offset + $seek);
208
 
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader.php";
33
 
34
  /**
35
  * A reader that takes its input from a memory buffer
202
  */
203
  function makeWriterRemoveBlocks($blocks, $seek = 0)
204
  {
205
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Memory.php";
206
  $data = substr($this->memory, 0, $this->offset + $seek);
207
  $this->memory = substr($this->memory, $this->offset + $seek);
208
 
Archive/Reader/Multi.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * Regroups several readers to make them appear as a single one
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * Regroups several readers to make them appear as a single one
Archive/Reader/Relay.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader.php";
33
 
34
  /**
35
  * This reader appear exactly as $source does
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader.php";
33
 
34
  /**
35
  * This reader appear exactly as $source does
Archive/Reader/Select.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * Reader that keeps the files selected by File_Archive::select function
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Relay.php";
33
 
34
  /**
35
  * Reader that keeps the files selected by File_Archive::select function
Archive/Reader/Tar.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Archive.php";
33
 
34
  /**
35
  * Read a tar archive
@@ -237,7 +237,7 @@ class File_Archive_Reader_Tar extends File_Archive_Reader_Archive
237
  */
238
  function makeWriterRemoveFiles($pred)
239
  {
240
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Tar.php";
241
 
242
  $blocks = array();
243
  $seek = null;
@@ -334,7 +334,7 @@ class File_Archive_Reader_Tar extends File_Archive_Reader_Archive
334
  */
335
  function makeAppendWriter()
336
  {
337
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Tar.php";
338
 
339
  while (($error = $this->next()) === true) { }
340
  if (PEAR::isError($error)) {
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Archive.php";
33
 
34
  /**
35
  * Read a tar archive
237
  */
238
  function makeWriterRemoveFiles($pred)
239
  {
240
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Tar.php";
241
 
242
  $blocks = array();
243
  $seek = null;
334
  */
335
  function makeAppendWriter()
336
  {
337
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Tar.php";
338
 
339
  while (($error = $this->next()) === true) { }
340
  if (PEAR::isError($error)) {
Archive/Reader/Uncompress.php CHANGED
@@ -29,8 +29,8 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader.php";
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/ChangeName.php";
34
 
35
  /**
36
  * Recursively uncompress every file it finds
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader.php";
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/ChangeName.php";
34
 
35
  /**
36
  * Recursively uncompress every file it finds
Archive/Reader/Zip.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Archive.php";
33
 
34
  /**
35
  * ZIP archive reader
@@ -282,7 +282,7 @@ class File_Archive_Reader_Zip extends File_Archive_Reader_Archive
282
  */
283
  function makeWriterRemoveFiles($pred)
284
  {
285
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Zip.php";
286
 
287
  $blocks = array();
288
  $seek = null;
@@ -391,7 +391,7 @@ class File_Archive_Reader_Zip extends File_Archive_Reader_Archive
391
  */
392
  function makeAppendWriter()
393
  {
394
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Zip.php";
395
 
396
  while (($error = $this->next()) === true) { }
397
  if (PEAR::isError($error)) {
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Archive.php";
33
 
34
  /**
35
  * ZIP archive reader
282
  */
283
  function makeWriterRemoveFiles($pred)
284
  {
285
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Zip.php";
286
 
287
  $blocks = array();
288
  $seek = null;
391
  */
392
  function makeAppendWriter()
393
  {
394
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Zip.php";
395
 
396
  while (($error = $this->next()) === true) { }
397
  if (PEAR::isError($error)) {
Archive/Writer.php CHANGED
@@ -29,7 +29,7 @@
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
+ require_once BKPWP_PLUGIN_PATH."PEAR.php";
33
 
34
  /**
35
  * Base class for any writer
Archive/Writer/AddBaseName.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
33
 
34
  /**
35
  * Writer wrapper that adds a directory to the written file
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
33
 
34
  /**
35
  * Writer wrapper that adds a directory to the written file
Archive/Writer/Ar.php CHANGED
@@ -27,7 +27,7 @@
27
  * @link http://pear.php.net/package/File_Archive
28
  */
29
 
30
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Archive.php";
31
 
32
  /**
33
  * Write the files as an AR archive
27
  * @link http://pear.php.net/package/File_Archive
28
  */
29
 
30
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Archive.php";
31
 
32
  /**
33
  * Write the files as an AR archive
Archive/Writer/Archive.php CHANGED
@@ -30,7 +30,7 @@
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
34
 
35
  /**
36
  * Base class for all the transformation writers that will generate one single
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
34
 
35
  /**
36
  * Base class for all the transformation writers that will generate one single
Archive/Writer/Bzip2.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
33
 
34
  /**
35
  * Compress a single file to Bzip2 format
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
33
 
34
  /**
35
  * Compress a single file to Bzip2 format
Archive/Writer/Files.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
33
 
34
  /**
35
  * Writer to files
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
33
 
34
  /**
35
  * Writer to files
Archive/Writer/Gzip.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
33
 
34
  /**
35
  * Compress a single file to Gzip format
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
33
 
34
  /**
35
  * Compress a single file to Gzip format
Archive/Writer/Mail.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
33
  require_once "Mail.php";
34
  require_once "Mail/mime.php";
35
 
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
33
  require_once "Mail.php";
34
  require_once "Mail/mime.php";
35
 
Archive/Writer/Memory.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
33
 
34
  /**
35
  * Write the concatenation of the files in a buffer
@@ -115,7 +115,7 @@ class File_Archive_Writer_Memory extends File_Archive_Writer
115
  */
116
  function makeReader($filename = null, $stat = null, $mime = null)
117
  {
118
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader/Memory.php";
119
  return new File_Archive_Reader_Memory(
120
  $this->data,
121
  $filename === null ? $this->filename : $filename,
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
33
 
34
  /**
35
  * Write the concatenation of the files in a buffer
115
  */
116
  function makeReader($filename = null, $stat = null, $mime = null)
117
  {
118
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader/Memory.php";
119
  return new File_Archive_Reader_Memory(
120
  $this->data,
121
  $filename === null ? $this->filename : $filename,
Archive/Writer/MemoryArchive.php CHANGED
@@ -30,8 +30,8 @@
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Archive.php";
34
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Memory.php";
35
 
36
  /**
37
  * Base class for all the archiveWriters that can only work on complete files
30
  * @link http://pear.php.net/package/File_Archive
31
  */
32
 
33
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Archive.php";
34
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Memory.php";
35
 
36
  /**
37
  * Base class for all the archiveWriters that can only work on complete files
Archive/Writer/Multi.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
33
 
34
  /**
35
  * Write to several writers
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
33
 
34
  /**
35
  * Write to several writers
Archive/Writer/Output.php CHANGED
@@ -31,7 +31,7 @@
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
34
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
35
 
36
  /**
37
  * Writer to the standard output
31
  * @link http://pear.php.net/package/File_Archive
32
  */
33
 
34
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
35
 
36
  /**
37
  * Writer to the standard output
Archive/Writer/Tar.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/Archive.php";
33
 
34
  /**
35
  * Write the files as a TAR archive
@@ -218,7 +218,7 @@ class File_Archive_Writer_Tar extends File_Archive_Writer_Archive
218
  *
219
  * @see File_Archive_Predicate, File_Archive_Reader_Filter
220
  */
221
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate.php";
222
  class File_Archive_Predicate_TARCompatible extends File_Archive_Predicate
223
  {
224
  function isTrue($source)
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/Archive.php";
33
 
34
  /**
35
  * Write the files as a TAR archive
218
  *
219
  * @see File_Archive_Predicate, File_Archive_Reader_Filter
220
  */
221
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate.php";
222
  class File_Archive_Predicate_TARCompatible extends File_Archive_Predicate
223
  {
224
  function isTrue($source)
Archive/Writer/UniqueAppender.php CHANGED
@@ -33,9 +33,9 @@
33
  * @link http://pear.php.net/package/File_Archive
34
  */
35
 
36
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer.php";
37
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Reader.php";
38
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Predicate/Index.php";
39
 
40
  /**
41
  * A writer wrapper that will remove the files the eventual duplicate
33
  * @link http://pear.php.net/package/File_Archive
34
  */
35
 
36
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer.php";
37
+ require_once BKPWP_PLUGIN_PATH."Archive/Reader.php";
38
+ require_once BKPWP_PLUGIN_PATH."Archive/Predicate/Index.php";
39
 
40
  /**
41
  * A writer wrapper that will remove the files the eventual duplicate
Archive/Writer/Zip.php CHANGED
@@ -29,7 +29,7 @@
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
- require_once $GLOBALS['bkpwp_plugin_path']."Archive/Writer/MemoryArchive.php";
33
 
34
  /**
35
  * ZIP archive writer
29
  * @link http://pear.php.net/package/File_Archive
30
  */
31
 
32
+ require_once BKPWP_PLUGIN_PATH."Archive/Writer/MemoryArchive.php";
33
 
34
  /**
35
  * ZIP archive writer
Type.php CHANGED
@@ -20,7 +20,7 @@
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');
20
 
21
 
22
  if (!class_exists("pear")) {
23
+ require_once 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.4.1
8
  Author URI: http://wordpress.designpraxis.at
9
  */
10
 
@@ -24,21 +24,20 @@ Author URI: http://wordpress.designpraxis.at
24
  along with this program; if not, write to the Free Software
25
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
  */
27
-
28
- $GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
29
- $GLOBALS['bkpwp_version'] = "0.4.1";
30
 
31
  // get the functions
32
- require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
33
  // require_once the required PEAR::FILE_ARCHIVE package for files backup
34
- require_once $GLOBALS['bkpwp_plugin_path']."Archive.php";
35
- require_once $GLOBALS['bkpwp_plugin_path']."Type.php";
36
  // BackUpWordPress classes
37
- require_once($GLOBALS['bkpwp_plugin_path']."bkpwp-classes/interface.php");
38
- require_once($GLOBALS['bkpwp_plugin_path']."bkpwp-classes/options.php");
39
- require_once($GLOBALS['bkpwp_plugin_path']."bkpwp-classes/manage_backups.php");
40
- require_once($GLOBALS['bkpwp_plugin_path']."bkpwp-classes/schedule.php");
41
- require_once($GLOBALS['bkpwp_plugin_path']."functions-interface.php");
42
 
43
  // Plugin activation and deactivation e.g.: set 'manage bkpwp' capabilities to admin
44
  add_action('activate_backupwordpress/backupwordpress.php', 'bkpwp_activate');
@@ -99,7 +98,7 @@ add_action('activity_box_end', 'bkpwp_latest_activity',0);
99
  if (!in_array("PEAR", get_declared_classes())) {
100
  echo "<pre>";
101
  //print_r(get_declared_classes());
102
- require_once $GLOBALS['bkpwp_plugin_path']."PEAR.php";
103
  echo "</pre>";
104
  }
105
  //print_r(get_declared_classes());
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.4.3
8
  Author URI: http://wordpress.designpraxis.at
9
  */
10
 
24
  along with this program; if not, write to the Free Software
25
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
  */
27
+ define("BKPWP_PLUGIN_PATH", ABSPATH."wp-content/plugins/backupwordpress/");
28
+ define("BKPWP_VERSION", "0.4.3");
 
29
 
30
  // get the functions
31
+ require_once(BKPWP_PLUGIN_PATH."functions.php");
32
  // require_once the required PEAR::FILE_ARCHIVE package for files backup
33
+ require_once BKPWP_PLUGIN_PATH."Archive.php";
34
+ require_once BKPWP_PLUGIN_PATH."Type.php";
35
  // BackUpWordPress classes
36
+ require_once(BKPWP_PLUGIN_PATH."bkpwp-classes/interface.php");
37
+ require_once(BKPWP_PLUGIN_PATH."bkpwp-classes/options.php");
38
+ require_once(BKPWP_PLUGIN_PATH."bkpwp-classes/manage_backups.php");
39
+ require_once(BKPWP_PLUGIN_PATH."bkpwp-classes/schedule.php");
40
+ require_once(BKPWP_PLUGIN_PATH."functions-interface.php");
41
 
42
  // Plugin activation and deactivation e.g.: set 'manage bkpwp' capabilities to admin
43
  add_action('activate_backupwordpress/backupwordpress.php', 'bkpwp_activate');
98
  if (!in_array("PEAR", get_declared_classes())) {
99
  echo "<pre>";
100
  //print_r(get_declared_classes());
101
+ require_once BKPWP_PLUGIN_PATH."PEAR.php";
102
  echo "</pre>";
103
  }
104
  //print_r(get_declared_classes());
bkpwp-classes/manage_backups.php CHANGED
@@ -722,7 +722,7 @@ class BKPWP_BACKUP {
722
  }
723
  // write some environmental information for debuging purposes
724
  $logfile .= "WordPress Version: ".$GLOBALS['wp_version']."\n";
725
- $logfile .= "BackUpWordPress Version: ".$GLOBALS['bkpwp_version']."\n";
726
  }
727
  if (is_array($log['logfile'])) {
728
  foreach($log['logfile'] as $l) {
@@ -1065,12 +1065,12 @@ class backupwordpressMailer extends PHPMailer {
1065
 
1066
  function bkpwp_mail_now($file="", $bkpwpinfo="") {
1067
  ob_start();
1068
- include_once($GLOBALS['bkpwp_plugin_path']."bkpwp-pages/bkpwp_footer.php");
1069
  $text_html = ob_get_contents();
1070
  ob_end_clean();
1071
 
1072
  ob_start();
1073
- include_once($GLOBALS['bkpwp_plugin_path']."bkpwp-pages/bkpwp_mail_footer.php");
1074
  $text_plain = ob_get_contents();
1075
  ob_end_clean();
1076
 
722
  }
723
  // write some environmental information for debuging purposes
724
  $logfile .= "WordPress Version: ".$GLOBALS['wp_version']."\n";
725
+ $logfile .= "BackUpWordPress Version: ".BKPWP_VERSION."\n";
726
  }
727
  if (is_array($log['logfile'])) {
728
  foreach($log['logfile'] as $l) {
1065
 
1066
  function bkpwp_mail_now($file="", $bkpwpinfo="") {
1067
  ob_start();
1068
+ include_once(BKPWP_PLUGIN_PATH."bkpwp-pages/bkpwp_footer.php");
1069
  $text_html = ob_get_contents();
1070
  ob_end_clean();
1071
 
1072
  ob_start();
1073
+ include_once(BKPWP_PLUGIN_PATH."bkpwp-pages/bkpwp_mail_footer.php");
1074
  $text_plain = ob_get_contents();
1075
  ob_end_clean();
1076
 
functions.php CHANGED
@@ -51,12 +51,12 @@ function bkpwp_setup() {
51
  }
52
 
53
  function bkpwp_load_menu_page() {
54
- if (!empty($_REQUEST['page']) && file_exists($GLOBALS['bkpwp_plugin_path']."bkpwp-pages/".$_REQUEST['page'].".php")) {
55
- include_once($GLOBALS['bkpwp_plugin_path']."bkpwp-pages/".$_REQUEST['page'].".php");
56
  } else {
57
- include_once($GLOBALS['bkpwp_plugin_path']."bkpwp-pages/bkpwp_manage_backups.php");
58
  }
59
- include_once($GLOBALS['bkpwp_plugin_path']."bkpwp-pages/bkpwp_footer.php");
60
  }
61
 
62
  function bkpwp_add_menu() {
@@ -148,6 +148,7 @@ function bkpwp_date_diff($earlierDate, $laterDate) {
148
  }
149
 
150
  function bkpwp_latest_activity() {
 
151
  echo "<h3>".__("BackUpWordPress","bkpwp")." <a href=\"admin.php?page=backupwordpress/backupwordpress.php\">&raquo;</a></h3>";
152
  echo "<p><a href=\"http://wordpress.designpraxis.at/\">".__("Check for a new version of BackUpWordPress!","bkpwp")."</a></p>";
153
  if (bkpwp_check_unfinished_backup()) {
@@ -199,6 +200,7 @@ function bkpwp_latest_activity() {
199
  <?php
200
  break;
201
  }
 
202
  }
203
 
204
  function bkpwp_conform_dir($dir,$rel=false) {
51
  }
52
 
53
  function bkpwp_load_menu_page() {
54
+ if (!empty($_REQUEST['page']) && file_exists(BKPWP_PLUGIN_PATH."bkpwp-pages/".$_REQUEST['page'].".php")) {
55
+ include_once(BKPWP_PLUGIN_PATH."bkpwp-pages/".$_REQUEST['page'].".php");
56
  } else {
57
+ include_once(BKPWP_PLUGIN_PATH."bkpwp-pages/bkpwp_manage_backups.php");
58
  }
59
+ include_once(BKPWP_PLUGIN_PATH."bkpwp-pages/bkpwp_footer.php");
60
  }
61
 
62
  function bkpwp_add_menu() {
148
  }
149
 
150
  function bkpwp_latest_activity() {
151
+ if(current_user_can('manage bkpwp')) {
152
  echo "<h3>".__("BackUpWordPress","bkpwp")." <a href=\"admin.php?page=backupwordpress/backupwordpress.php\">&raquo;</a></h3>";
153
  echo "<p><a href=\"http://wordpress.designpraxis.at/\">".__("Check for a new version of BackUpWordPress!","bkpwp")."</a></p>";
154
  if (bkpwp_check_unfinished_backup()) {
200
  <?php
201
  break;
202
  }
203
+ }
204
  }
205
 
206
  function bkpwp_conform_dir($dir,$rel=false) {
readme.txt CHANGED
@@ -69,6 +69,9 @@ Some pieces of code have been modified:
69
 
70
  Changelog:
71
 
 
 
 
72
  Changes in 0.4.2
73
  + prevent unpriviledged users from seeing the BackUpWordPress Dashboard
74
 
69
 
70
  Changelog:
71
 
72
+ Changes in 0.4.3
73
+ + security fix for RFI vulnerability reported on http://www.milw0rm.com/exploits/4593
74
+
75
  Changes in 0.4.2
76
  + prevent unpriviledged users from seeing the BackUpWordPress Dashboard
77