BackWPup – WordPress Backup Plugin - Version 2.1.1

Version Description

  • Fiexd problem with translation
  • Don't display dashboard Wigets on Mulitsite for not super amdins
  • Some improvements for Multisite
  • Updated AWS lib to 1.3.7
  • Google Storage uses now AWS lib
  • Added http basic autentication support
  • now DB jobs uses new not selected tabels too
  • bug fixes
Download this release

Release Info

Developer danielhuesken
Plugin Icon 128x128 BackWPup – WordPress Backup Plugin
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1.0 to 2.1.1

Files changed (51) hide show
  1. backwpup-functions.php +48 -60
  2. backwpup.php +29 -25
  3. job/backup_create.php +6 -12
  4. job/db_check.php +14 -9
  5. job/db_dump.php +15 -12
  6. job/db_optimize.php +16 -10
  7. job/dest_dropbox.php +2 -8
  8. job/dest_folder.php +0 -6
  9. job/dest_ftp.php +0 -6
  10. job/dest_gstorage.php +36 -41
  11. job/dest_mail.php +0 -6
  12. job/dest_msazure.php +1 -7
  13. job/dest_rsc.php +0 -6
  14. job/dest_s3.php +6 -9
  15. job/dest_sugarsync.php +1 -7
  16. job/file_list.php +5 -8
  17. job/job_functions.php +24 -40
  18. job/job_run.php +23 -4
  19. job/job_start.php +9 -24
  20. job/wp_export.php +25 -34
  21. job/wp_export_generate.php +11 -8
  22. lang/backwpup.pot +1111 -1101
  23. libs/aws/sdk.class.php +2 -2
  24. libs/aws/services/as.class.php +17 -4
  25. libs/aws/services/s3.class.php +1 -0
  26. libs/aws/services/sdb.class.php +11 -9
  27. libs/aws/services/sqs.class.php +3 -1
  28. libs/class.http.php +19 -3
  29. libs/googlestorage.php +0 -344
  30. pages/func_backwpup.php +2 -7
  31. pages/func_backwpupbackups.php +20 -28
  32. pages/func_backwpupeditjob.php +29 -19
  33. pages/func_backwpuplogs.php +0 -6
  34. pages/func_backwpupworking.php +1 -7
  35. pages/header_backwpup.php +42 -42
  36. pages/header_backwpupbackups.php +14 -45
  37. pages/header_backwpupeditjob.php +24 -12
  38. pages/header_backwpuplogs.php +3 -5
  39. pages/header_backwpupsettings.php +6 -5
  40. pages/header_backwpuptools.php +1 -4
  41. pages/header_backwpupworking.php +3 -5
  42. pages/page_backwpup.php +2 -4
  43. pages/page_backwpupbackups.php +2 -4
  44. pages/page_backwpupeditjob.php +7 -7
  45. pages/page_backwpuplogs.php +2 -4
  46. pages/page_backwpupsettings.php +24 -13
  47. pages/page_backwpuptools.php +3 -5
  48. pages/page_backwpupworking.php +2 -4
  49. pages/tools/db_restore.php +2 -3
  50. readme.txt +12 -2
  51. uninstall.php +1 -3
backwpup-functions.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  //Thems Option menu entry
9
  function backwpup_admin_menu() {
10
  add_menu_page( __('BackWPup','backwpup'), __('BackWPup','backwpup'), BACKWPUP_USER_CAPABILITY, 'backwpup', 'backwpup_menu_page', BACKWPUP_PLUGIN_BASEURL.'/css/backup-icon20.gif');
@@ -112,7 +106,7 @@ function backwpup_contextual_help($help='') {
112
  function backwpup_plugin_activate() {
113
  //Check multiseit only run once
114
  if (is_multisite()) {
115
- if (get_option('backwpup_last_activate')==BACKWPUP_VERSION) {
116
  return;
117
  } else {
118
  update_option('backwpup_last_activate',BACKWPUP_VERSION);
@@ -159,6 +153,8 @@ function backwpup_plugin_activate() {
159
  $cfg['dirlogs']=str_replace('\\','/',trailingslashit(WP_CONTENT_DIR)).'backwpup-'.$rand.'-logs/';
160
  }
161
  if (!isset($cfg['disablewpcron']) or !is_bool($cfg['disablewpcron'])) $cfg['disablewpcron']=false;
 
 
162
  //remove old option
163
  unset($cfg['dirtemp']);
164
  unset($cfg['logfilelist']);
@@ -182,7 +178,7 @@ function backwpup_get_temp() {
182
  if (empty($tempfolder) or !backwpup_check_open_basedir($tempfolder) or !is_writable($tempfolder) or !is_dir($tempfolder))
183
  $tempfolder=sys_get_temp_dir(); //normal temp dir
184
  if (empty($tempfolder) or !backwpup_check_open_basedir($tempfolder) or !is_writable($tempfolder) or !is_dir($tempfolder))
185
- $tempfolder=get_temp_dir(); //if sys_get_temp_dir not work
186
  if (empty($tempfolder) or !backwpup_check_open_basedir($tempfolder) or !is_writable($tempfolder) or !is_dir($tempfolder))
187
  $tempfolder=WP_CONTENT_DIR.'/';
188
  if (empty($tempfolder) or !backwpup_check_open_basedir($tempfolder) or !is_writable($tempfolder) or !is_dir($tempfolder))
@@ -208,23 +204,25 @@ function backwpup_check_open_basedir($dir) {
208
  //Backwpup API
209
  function backwpup_api($active=false) {
210
  global $wp_version;
 
211
  if ($active)
212
- $active='Y';
213
  else
214
- $active='N';
215
  if (is_multisite())
216
- $active='M';
217
  $blugurl=get_option('siteurl');
218
  if (defined('WP_SITEURL'))
219
  $blugurl=WP_SITEURL;
220
 
221
- $post=array('URL'=>$blugurl,
222
- 'EMAIL'=>get_option('admin_email'),
223
- 'WP_VER'=>$wp_version,
224
- 'BACKWPUP_VER'=>BACKWPUP_VERSION,
225
- 'ACTIVE'=>$active,
226
- 'OFFSET'=>get_option('gmt_offset'));
227
-
 
228
  $cfg=get_option('backwpup'); //Load Settings
229
  if ($cfg['apicronservice']) {
230
  $jobs=get_option('backwpup_jobs');
@@ -277,8 +275,11 @@ function backwpup_cron() {
277
  $cfg=get_option('backwpup');
278
  $revtime=time()-$cfg['jobscriptruntimelong']-10;
279
  $infile=backwpup_get_working_file();
 
 
 
280
  if (!empty($infile['timestamp']) and $infile['timestamp']<$revtime) {
281
- wp_remote_post(BACKWPUP_PLUGIN_BASEURL.'/job/job_run.php', array('timeout' => 0.01, 'blocking' => false, 'sslverify' => false, 'body'=>array('BackWPupJobTemp'=>backwpup_get_temp(), 'nonce'=> $infile['NONCE'],'type'=>'restarttime'), 'user-agent'=>'BackWPup') );
282
  }
283
  } else {
284
  $jobs=get_option('backwpup_jobs');
@@ -487,19 +488,9 @@ function backwpup_add_adminbar() {
487
  $wp_admin_bar->add_menu(array( 'parent' => 'backwpup', 'title' => __('Jobs','backwpup'), 'href' => backwpup_admin_url('admin.php').'?page=backwpup'));
488
  $wp_admin_bar->add_menu(array( 'parent' => 'backwpup', 'title' => __('Logs','backwpup'), 'href' => backwpup_admin_url('admin.php').'?page=backwpuplogs'));
489
  $wp_admin_bar->add_menu(array( 'parent' => 'backwpup', 'title' => __('Backups','backwpup'), 'href' => backwpup_admin_url('admin.php').'?page=backwpupbackups'));
490
-
491
  $wp_admin_bar->add_menu(array( 'parent' => 'new-content', 'title' => __('BackWPup Job','backwpup'), 'href' => backwpup_admin_url('admin.php').'?page=backwpupeditjob'));
492
  }
493
 
494
-
495
- //turn cache off
496
- function backwpup_send_no_cache_header() {
497
- header("Expires: 0");
498
- header("Cache-Control: no-cache, must-revalidate");
499
- header("Pragma: no-cache");
500
- header("Cache-Control: post-check=0, pre-check=0");
501
- }
502
-
503
  function backwpup_get_upload_dir() {
504
  $upload_path = get_option('upload_path');
505
  $upload_path = trim($upload_path);
@@ -514,10 +505,10 @@ function backwpup_get_upload_dir() {
514
  $dir = path_join( ABSPATH, $dir );
515
  }
516
  }
517
- if ( defined('UPLOADS') && !is_multisite()) {
518
  $dir = ABSPATH . UPLOADS;
519
  }
520
- if ( is_multisite() && is_multisite()) {
521
  $dir = untrailingslashit(WP_CONTENT_DIR).'/blogs.dir';
522
  }
523
  return str_replace('\\','/',trailingslashit($dir));
@@ -570,7 +561,7 @@ function backwpup_cron_next($cronstring) {
570
  $step=1;
571
  if (strstr($value,'/'))
572
  list($value,$step)=explode('/',$value,2);
573
- //replase weekeday 7 with 0 for sundays
574
  if ($cronarraykey=='wday')
575
  $value=str_replace('7','0',$value);
576
  //ranges
@@ -578,7 +569,7 @@ function backwpup_cron_next($cronstring) {
578
  list($first,$last)=explode('-',$value,2);
579
  if (!is_numeric($first) or !is_numeric($last) or $last>60 or $first>60) //check
580
  return 2147483647;
581
- if ($cronarraykey=='minutes' and $step<5) //set step ninmum to 5 min.
582
  $step=5;
583
  $range=array();
584
  for ($i=$first;$i<=$last;$i=$i+$step)
@@ -587,7 +578,7 @@ function backwpup_cron_next($cronstring) {
587
  } elseif ($value=='*') {
588
  $range=array();
589
  if ($cronarraykey=='minutes') {
590
- if ($step<5) //set step ninmum to 5 min.
591
  $step=5;
592
  for ($i=0;$i<=59;$i=$i+$step)
593
  $range[]=$i;
@@ -693,7 +684,7 @@ function backwpup_get_working_file() {
693
 
694
  function backwpup_admin_url($url) {
695
  if (is_multisite()) {
696
- if (WP_NETWORK_ADMIN)
697
  return network_admin_url($url);
698
  } else {
699
  return admin_url($url);
@@ -706,35 +697,35 @@ function backwpup_env_checks() {
706
  $checks=true;
707
  $cfg=get_option('backwpup');
708
  if (version_compare($wp_version, BACKWPUP_MIN_WORDPRESS_VERSION, '<')) { // check WP Version
709
- $message.=str_replace('%d',BACKWPUP_MIN_WORDPRESS_VERSION,__('- WordPress %d or heiger needed!','backwpup')) . '<br />';
710
  $checks=false;
711
  }
712
  if (version_compare(phpversion(), '5.2.4', '<')) { // check PHP Version
713
- $message.=__('- PHP 5.2.4 or higher needed!','backwpup') . '<br />';
714
  $checks=false;
715
  }
716
  if (!empty($cfg['dirlogs']) and !is_dir($cfg['dirlogs'])) { // create logs folder if it not exists
717
  @mkdir(untrailingslashit($cfg['dirlogs']),0777,true);
718
  }
719
  if (!is_dir($cfg['dirlogs'])) { // check logs folder
720
- $message.=__('- Logs Folder not exists:','backwpup') . ' '.$cfg['dirlogs'].'<br />';
721
  }
722
  if (!is_writable($cfg['dirlogs'])) { // check logs folder
723
- $message.=__('- Logs Folder not writeable:','backwpup') . ' '.$cfg['dirlogs'].'<br />';
724
  }
725
  if (!backwpup_check_open_basedir($cfg['dirlogs'])) { // check logs folder
726
- $message.=__('- Logs Folder in open_basedir path:','backwpup') . ' '.$cfg['dirlogs'].'<br />';
727
  }
728
  $jobs=get_option('backwpup_jobs');
729
  if (!empty($jobs)) {
730
  foreach ($jobs as $jobid => $jobvalue) { //check for old cheduling
731
  if (empty($jobvalue['cron']))
732
- $message.=__('- Please Check Scheduling time for Job:','backwpup') . ' '.$jobid.'. '.$jobvalue['name'].'<br />';
733
  }
734
  }
735
  $nextrun=wp_next_scheduled('backwpup_cron');
736
  if (empty($nextrun) or $nextrun>(time()+3600)) { //check cron jobs work
737
- $message.=__("- WP-Cron don't working please check it!","backwpup") .'<br />';
738
  }
739
  //put massage if one
740
  if (!empty($message))
@@ -811,29 +802,26 @@ function backwpup_get_job_vars($jobid='',$jobnewsettings='') {
811
 
812
  if (!isset($jobsettings['mailerroronly']) or !is_bool($jobsettings['mailerroronly']))
813
  $jobsettings['mailerroronly']=true;
814
-
815
- //old tables for backup (exclude)
816
- if (isset($jobsettings['dbexclude'])) {
817
- if (is_array($jobsettings['dbexclude'])) {
818
- $jobsettings['dbtables']=array();
819
- $tables=$wpdb->get_col('SHOW TABLES FROM `'.DB_NAME.'`');
820
- foreach ($tables as $table) {
821
- if (!in_array($table,$jobsettings['dbexclude']))
822
- $jobsettings['dbtables'][]=$table;
823
- }
824
  }
825
  }
826
 
827
- //Tables to backup
828
- if (!isset($jobsettings['dbtables']) or !is_array($jobsettings['dbtables'])) {
829
- $jobsettings['dbtables']=array();
830
  $tables=$wpdb->get_col('SHOW TABLES FROM `'.DB_NAME.'`');
831
  foreach ($tables as $table) {
832
- if (substr($table,0,strlen($wpdb->prefix))==$wpdb->prefix)
833
- $jobsettings['dbtables'][]=$table;
834
  }
835
- }
836
- sort($jobsettings['dbtables']);
837
 
838
  if (!isset($jobsettings['dbshortinsert']) or !is_bool($jobsettings['dbshortinsert']))
839
  $jobsettings['dbshortinsert']=false;
@@ -1101,7 +1089,7 @@ function backwpup_get_job_vars($jobid='',$jobnewsettings='') {
1101
  unset($jobsettings['scheduleinterval']);
1102
  unset($jobsettings['dropemail']);
1103
  unset($jobsettings['dropepass']);
1104
- unset($jobsettings['dbexclude']);
1105
 
1106
  return $jobsettings;
1107
  }
1
  <?PHP
 
 
 
 
 
 
2
  //Thems Option menu entry
3
  function backwpup_admin_menu() {
4
  add_menu_page( __('BackWPup','backwpup'), __('BackWPup','backwpup'), BACKWPUP_USER_CAPABILITY, 'backwpup', 'backwpup_menu_page', BACKWPUP_PLUGIN_BASEURL.'/css/backup-icon20.gif');
106
  function backwpup_plugin_activate() {
107
  //Check multiseit only run once
108
  if (is_multisite()) {
109
+ if (get_option('backwpup_last_activate')==BACKWPUP_VERSION or !is_main_site()) {
110
  return;
111
  } else {
112
  update_option('backwpup_last_activate',BACKWPUP_VERSION);
153
  $cfg['dirlogs']=str_replace('\\','/',trailingslashit(WP_CONTENT_DIR)).'backwpup-'.$rand.'-logs/';
154
  }
155
  if (!isset($cfg['disablewpcron']) or !is_bool($cfg['disablewpcron'])) $cfg['disablewpcron']=false;
156
+ if (!isset($cfg['httpauthuser'])) $cfg['httpauthuser']='';
157
+ if (!isset($cfg['httpauthpassword'])) $cfg['httpauthpassword']='';
158
  //remove old option
159
  unset($cfg['dirtemp']);
160
  unset($cfg['logfilelist']);
178
  if (empty($tempfolder) or !backwpup_check_open_basedir($tempfolder) or !is_writable($tempfolder) or !is_dir($tempfolder))
179
  $tempfolder=sys_get_temp_dir(); //normal temp dir
180
  if (empty($tempfolder) or !backwpup_check_open_basedir($tempfolder) or !is_writable($tempfolder) or !is_dir($tempfolder))
181
+ $tempfolder=ini_get('upload_tmp_dir'); //if sys_get_temp_dir not work
182
  if (empty($tempfolder) or !backwpup_check_open_basedir($tempfolder) or !is_writable($tempfolder) or !is_dir($tempfolder))
183
  $tempfolder=WP_CONTENT_DIR.'/';
184
  if (empty($tempfolder) or !backwpup_check_open_basedir($tempfolder) or !is_writable($tempfolder) or !is_dir($tempfolder))
204
  //Backwpup API
205
  function backwpup_api($active=false) {
206
  global $wp_version;
207
+ $cfg=get_option('backwpup');
208
  if ($active)
209
+ $post['ACTIVE']='Y';
210
  else
211
+ $post['ACTIVE']='N';
212
  if (is_multisite())
213
+ $post['ACTIVE']='M';
214
  $blugurl=get_option('siteurl');
215
  if (defined('WP_SITEURL'))
216
  $blugurl=WP_SITEURL;
217
 
218
+ $post['URL']=$blugurl;
219
+ $post['WP_VER']=$wp_version;
220
+ $post['BACKWPUP_VER']=BACKWPUP_VERSION;
221
+ if (!empty($cfg['apicronservice']))
222
+ $post['OFFSET']=get_option('gmt_offset');
223
+ if (!empty($cfg['httpauthuser']) and !empty($cfg['httpauthpassword']))
224
+ $post['httpauth']=base64_encode($cfg['httpauthuser'].':'.base64_decode($cfg['httpauthpassword']));
225
+
226
  $cfg=get_option('backwpup'); //Load Settings
227
  if ($cfg['apicronservice']) {
228
  $jobs=get_option('backwpup_jobs');
275
  $cfg=get_option('backwpup');
276
  $revtime=time()-$cfg['jobscriptruntimelong']-10;
277
  $infile=backwpup_get_working_file();
278
+ $httpauthheader='';
279
+ if (!empty($cfg['httpauthuser']) and !empty($cfg['httpauthpassword']))
280
+ $httpauthheader='Authorization: BASIC '.base64_encode($cfg['httpauthuser'].':'.base64_decode($cfg['httpauthpassword']));
281
  if (!empty($infile['timestamp']) and $infile['timestamp']<$revtime) {
282
+ wp_remote_post(BACKWPUP_PLUGIN_BASEURL.'/job/job_run.php', array('timeout' => 0.01, 'blocking' => false, 'sslverify' => false,'headers'=>$httpauthheader, 'body'=>array('BackWPupJobTemp'=>backwpup_get_temp(), 'nonce'=> $infile['NONCE'],'type'=>'restarttime'), 'user-agent'=>'BackWPup') );
283
  }
284
  } else {
285
  $jobs=get_option('backwpup_jobs');
488
  $wp_admin_bar->add_menu(array( 'parent' => 'backwpup', 'title' => __('Jobs','backwpup'), 'href' => backwpup_admin_url('admin.php').'?page=backwpup'));
489
  $wp_admin_bar->add_menu(array( 'parent' => 'backwpup', 'title' => __('Logs','backwpup'), 'href' => backwpup_admin_url('admin.php').'?page=backwpuplogs'));
490
  $wp_admin_bar->add_menu(array( 'parent' => 'backwpup', 'title' => __('Backups','backwpup'), 'href' => backwpup_admin_url('admin.php').'?page=backwpupbackups'));
 
491
  $wp_admin_bar->add_menu(array( 'parent' => 'new-content', 'title' => __('BackWPup Job','backwpup'), 'href' => backwpup_admin_url('admin.php').'?page=backwpupeditjob'));
492
  }
493
 
 
 
 
 
 
 
 
 
 
494
  function backwpup_get_upload_dir() {
495
  $upload_path = get_option('upload_path');
496
  $upload_path = trim($upload_path);
505
  $dir = path_join( ABSPATH, $dir );
506
  }
507
  }
508
+ if (defined('UPLOADS') && !is_multisite()) {
509
  $dir = ABSPATH . UPLOADS;
510
  }
511
+ if (is_multisite()) {
512
  $dir = untrailingslashit(WP_CONTENT_DIR).'/blogs.dir';
513
  }
514
  return str_replace('\\','/',trailingslashit($dir));
561
  $step=1;
562
  if (strstr($value,'/'))
563
  list($value,$step)=explode('/',$value,2);
564
+ //replase weekday 7 with 0 for sundays
565
  if ($cronarraykey=='wday')
566
  $value=str_replace('7','0',$value);
567
  //ranges
569
  list($first,$last)=explode('-',$value,2);
570
  if (!is_numeric($first) or !is_numeric($last) or $last>60 or $first>60) //check
571
  return 2147483647;
572
+ if ($cronarraykey=='minutes' and $step<5) //set step ninimum to 5 min.
573
  $step=5;
574
  $range=array();
575
  for ($i=$first;$i<=$last;$i=$i+$step)
578
  } elseif ($value=='*') {
579
  $range=array();
580
  if ($cronarraykey=='minutes') {
581
+ if ($step<5) //set step ninimum to 5 min.
582
  $step=5;
583
  for ($i=0;$i<=59;$i=$i+$step)
584
  $range[]=$i;
684
 
685
  function backwpup_admin_url($url) {
686
  if (is_multisite()) {
687
+ if (is_super_admin())
688
  return network_admin_url($url);
689
  } else {
690
  return admin_url($url);
697
  $checks=true;
698
  $cfg=get_option('backwpup');
699
  if (version_compare($wp_version, BACKWPUP_MIN_WORDPRESS_VERSION, '<')) { // check WP Version
700
+ $message.=str_replace('%d',BACKWPUP_MIN_WORDPRESS_VERSION,__('- WordPress %d or heiger is needed!','backwpup')) . '<br />';
701
  $checks=false;
702
  }
703
  if (version_compare(phpversion(), '5.2.4', '<')) { // check PHP Version
704
+ $message.=__('- PHP 5.2.4 or higher is needed!','backwpup') . '<br />';
705
  $checks=false;
706
  }
707
  if (!empty($cfg['dirlogs']) and !is_dir($cfg['dirlogs'])) { // create logs folder if it not exists
708
  @mkdir(untrailingslashit($cfg['dirlogs']),0777,true);
709
  }
710
  if (!is_dir($cfg['dirlogs'])) { // check logs folder
711
+ $message.=__('- Log folder does not exists:','backwpup') . ' '.$cfg['dirlogs'].'<br />';
712
  }
713
  if (!is_writable($cfg['dirlogs'])) { // check logs folder
714
+ $message.=__('- Log folder is not writeable:','backwpup') . ' '.$cfg['dirlogs'].'<br />';
715
  }
716
  if (!backwpup_check_open_basedir($cfg['dirlogs'])) { // check logs folder
717
+ $message.=__('- Log folder is not in open_basedir path:','backwpup') . ' '.$cfg['dirlogs'].'<br />';
718
  }
719
  $jobs=get_option('backwpup_jobs');
720
  if (!empty($jobs)) {
721
  foreach ($jobs as $jobid => $jobvalue) { //check for old cheduling
722
  if (empty($jobvalue['cron']))
723
+ $message.=__('- Please check the scheduled time for the job:','backwpup') . ' '.$jobid.'. '.$jobvalue['name'].'<br />';
724
  }
725
  }
726
  $nextrun=wp_next_scheduled('backwpup_cron');
727
  if (empty($nextrun) or $nextrun>(time()+3600)) { //check cron jobs work
728
+ $message.=__("- WP-Cron isn't working, please check it!","backwpup") .'<br />';
729
  }
730
  //put massage if one
731
  if (!empty($message))
802
 
803
  if (!isset($jobsettings['mailerroronly']) or !is_bool($jobsettings['mailerroronly']))
804
  $jobsettings['mailerroronly']=true;
805
+
806
+
807
+ //Tables to backup (old)
808
+ if (isset($jobsettings['dbtables']) and is_array($jobsettings['dbtables'])) {
809
+ $tables=$wpdb->get_col('SHOW TABLES FROM `'.DB_NAME.'`');
810
+ foreach ($tables as $table) {
811
+ if (!in_array($table,$jobsettings['dbtables']))
812
+ $jobsettings['dbexclude'][]=$table;
 
 
813
  }
814
  }
815
 
816
+ //don not backup tables
817
+ if (!isset($jobsettings['dbexclude']) or !is_array($jobsettings['dbexclude'])) {
818
+ $jobsettings['dbexclude']=array();
819
  $tables=$wpdb->get_col('SHOW TABLES FROM `'.DB_NAME.'`');
820
  foreach ($tables as $table) {
821
+ if (substr($table,0,strlen($wpdb->prefix))!=$wpdb->prefix)
822
+ $jobsettings['dbexclude'][]=$table;
823
  }
824
+ }
 
825
 
826
  if (!isset($jobsettings['dbshortinsert']) or !is_bool($jobsettings['dbshortinsert']))
827
  $jobsettings['dbshortinsert']=false;
1089
  unset($jobsettings['scheduleinterval']);
1090
  unset($jobsettings['dropemail']);
1091
  unset($jobsettings['dropepass']);
1092
+ unset($jobsettings['dbtables']);
1093
 
1094
  return $jobsettings;
1095
  }
backwpup.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: BackWPup
4
  Plugin URI: http://backwpup.com
5
  Description: Wordpress Backup and more...
6
  Author: Daniel H&uuml;sken
7
- Version: 2.1.0
8
  Author URI: http://danielhuesken.de
9
  Text Domain: backwpup
10
  Domain Path: /lang/
@@ -28,18 +28,11 @@ Domain Path: /lang/
28
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
  */
30
 
31
- // don't load directly
32
- if (!defined('ABSPATH')) {
33
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
34
- header("Status: 404 Not Found");
35
- die();
36
- }
37
-
38
  //Set plugin dirname
39
  define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
40
  define('BACKWPUP_PLUGIN_BASEURL',plugins_url('',__FILE__));
41
  //Set Plugin Version
42
- define('BACKWPUP_VERSION', '2.1.0');
43
  //Set Min Wordpress Version
44
  define('BACKWPUP_MIN_WORDPRESS_VERSION', '3.1');
45
  //Set User Capability
@@ -68,28 +61,39 @@ register_activation_hook(__FILE__, 'backwpup_plugin_activate');
68
  //Plugin deactivate
69
  register_deactivation_hook(__FILE__, 'backwpup_plugin_deactivate');
70
  //Admin message
71
- add_action('admin_notices', 'backwpup_admin_notice');
 
 
 
 
 
 
 
 
 
72
  if (backwpup_env_checks()) {
73
- //add Menu
74
- if (is_multisite()) {
75
- if (WP_NETWORK_ADMIN) {
76
- add_action('plugins_loaded' , 'backwpup_plugin_activate'); //Activation for mu
77
- add_action('network_admin_menu', 'backwpup_admin_menu');
78
- }
 
 
 
79
  } else {
80
- add_action('admin_menu', 'backwpup_admin_menu');
 
 
 
 
 
 
81
  }
82
- //add cron intervals
83
- add_filter('cron_schedules', 'backwpup_intervals');
84
  //Actions for Cron job
85
  add_action('backwpup_cron', 'backwpup_cron',1);
86
- //add Dashboard widget
87
- add_action('wp_dashboard_setup', 'backwpup_add_dashboard');
88
  //add Admin Bar menu
89
  add_action('admin_bar_menu', 'backwpup_add_adminbar',100);
90
- //Additional links on the plugin page
91
- add_filter('plugin_action_links_'.BACKWPUP_PLUGIN_BASEDIR.'/backwpup.php', 'backwpup_plugin_options_link');
92
- add_filter('plugin_row_meta', 'backwpup_plugin_links',10,2);
93
  //load ajax functions
94
  backwpup_load_ajax();
95
  //Disabele WP_Corn
@@ -97,7 +101,7 @@ if (backwpup_env_checks()) {
97
  if (isset($cfg['disablewpcron']) && $cfg['disablewpcron'])
98
  define('DISABLE_WP_CRON',true);
99
  //test if cron active
100
- if (!(wp_next_scheduled('backwpup_cron')))
101
  wp_schedule_event(mktime(date("H")), 'backwpup_int', 'backwpup_cron');
102
  }
103
  ?>
4
  Plugin URI: http://backwpup.com
5
  Description: Wordpress Backup and more...
6
  Author: Daniel H&uuml;sken
7
+ Version: 2.1.1
8
  Author URI: http://danielhuesken.de
9
  Text Domain: backwpup
10
  Domain Path: /lang/
28
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
  */
30
 
 
 
 
 
 
 
 
31
  //Set plugin dirname
32
  define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
33
  define('BACKWPUP_PLUGIN_BASEURL',plugins_url('',__FILE__));
34
  //Set Plugin Version
35
+ define('BACKWPUP_VERSION', '2.1.1');
36
  //Set Min Wordpress Version
37
  define('BACKWPUP_MIN_WORDPRESS_VERSION', '3.1');
38
  //Set User Capability
61
  //Plugin deactivate
62
  register_deactivation_hook(__FILE__, 'backwpup_plugin_deactivate');
63
  //Admin message
64
+ if (is_multisite())
65
+ add_action('network_admin_notices', 'backwpup_admin_notice');
66
+ else
67
+ add_action('admin_notices', 'backwpup_admin_notice');
68
+ //test if cron active
69
+ if (!(wp_next_scheduled('backwpup_cron')) and is_network_admin())
70
+ wp_schedule_event(mktime(date("H")), 'backwpup_int', 'backwpup_cron');
71
+ //add cron intervals
72
+ add_filter('cron_schedules', 'backwpup_intervals');
73
+ //Check if plugin can activated
74
  if (backwpup_env_checks()) {
75
+ if (is_multisite()) { //For multisite
76
+ //add Menu
77
+ add_action('network_admin_menu','backwpup_admin_menu');
78
+ //add Dashboard widget
79
+ add_action('wp_network_dashboard_setup', 'backwpup_add_dashboard');
80
+ if (is_main_site())
81
+ add_action('plugins_loaded','backwpup_plugin_activate');
82
+ //Additional links on the plugin page
83
+ add_filter('plugin_row_meta', 'backwpup_plugin_links',10,2);
84
  } else {
85
+ //add Menu
86
+ add_action('admin_menu', 'backwpup_admin_menu',97);
87
+ //add Dashboard widget
88
+ add_action('wp_dashboard_setup', 'backwpup_add_dashboard');
89
+ //Additional links on the plugin page
90
+ add_filter('plugin_action_links_'.BACKWPUP_PLUGIN_BASEDIR.'/backwpup.php', 'backwpup_plugin_options_link');
91
+ add_filter('plugin_row_meta', 'backwpup_plugin_links',10,2);
92
  }
 
 
93
  //Actions for Cron job
94
  add_action('backwpup_cron', 'backwpup_cron',1);
 
 
95
  //add Admin Bar menu
96
  add_action('admin_bar_menu', 'backwpup_add_adminbar',100);
 
 
 
97
  //load ajax functions
98
  backwpup_load_ajax();
99
  //Disabele WP_Corn
101
  if (isset($cfg['disablewpcron']) && $cfg['disablewpcron'])
102
  define('DISABLE_WP_CRON',true);
103
  //test if cron active
104
+ if (!(wp_next_scheduled('backwpup_cron')) and is_network_admin())
105
  wp_schedule_event(mktime(date("H")), 'backwpup_int', 'backwpup_cron');
106
  }
107
  ?>
job/backup_create.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function backup_create() {
9
  global $WORKING,$STATIC;
10
  if ($WORKING['ALLFILESIZE']==0)
@@ -60,15 +54,15 @@ function backup_create() {
60
  //Create Zip File
61
  if (is_array($filelist[0])) {
62
  trigger_error(sprintf(__('%d. try to create backup zip (PclZip) archive...','backwpup'),$WORKING['BACKUP_CREATE']['STEP_TRY']),E_USER_NOTICE);
63
- $zipbackupfile = new PclZip($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
64
- need_free_memory(2097152); //free memory for file list
65
  for ($i=$WORKING['STEPDONE'];$i<$WORKING['STEPTODO'];$i++) {
66
  $files[$i][79001]=$filelist[$i]['FILE'];
67
  $files[$i][79003]=$filelist[$i]['OUTFILE'];
 
68
  }
69
- need_free_memory(11534336); //11MB free memory for zip
70
- if (0==$zipbackupfile->create($files,PCLZIP_CB_POST_ADD, '_pclzipPostAddCallBack',PCLZIP_OPT_ADD_TEMP_FILE_ON)) {
71
- trigger_error(sprint(__('Zip archive create error: %s','backwpup'),$zipbackupfile->errorInfo(true)),E_USER_ERROR);
 
72
  } else {
73
  $WORKING['STEPDONE']=count($filelist);
74
  unset($files);
@@ -201,7 +195,7 @@ function backup_create() {
201
 
202
 
203
  function _pclzipPostAddCallBack($p_event, &$p_header) {
204
- global $WORKING,$STATIC;
205
  if ($p_header['status'] != 'ok')
206
  trigger_error(sprintf(__('PCL ZIP Error "%1$s" on file %2$s!','backwpup'),$p_header['status'],$p_header['filename']),E_USER_ERROR);
207
  $WORKING['STEPDONE']++;
1
  <?PHP
 
 
 
 
 
 
2
  function backup_create() {
3
  global $WORKING,$STATIC;
4
  if ($WORKING['ALLFILESIZE']==0)
54
  //Create Zip File
55
  if (is_array($filelist[0])) {
56
  trigger_error(sprintf(__('%d. try to create backup zip (PclZip) archive...','backwpup'),$WORKING['BACKUP_CREATE']['STEP_TRY']),E_USER_NOTICE);
 
 
57
  for ($i=$WORKING['STEPDONE'];$i<$WORKING['STEPTODO'];$i++) {
58
  $files[$i][79001]=$filelist[$i]['FILE'];
59
  $files[$i][79003]=$filelist[$i]['OUTFILE'];
60
+ $files[$i][79004]=$filelist[$i]['MTIME'];
61
  }
62
+ need_free_memory(20971520); //20MB free memory for zip
63
+ $zipbackupfile = new PclZip($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
64
+ if (0==$zipbackupfile->create($files,PCLZIP_CB_POST_ADD,'_pclzipPostAddCallBack',PCLZIP_OPT_TEMP_FILE_THRESHOLD, 10)) {
65
+ trigger_error(sprintf(__('Zip archive create error: %s','backwpup'),$zipbackupfile->errorInfo(true)),E_USER_ERROR);
66
  } else {
67
  $WORKING['STEPDONE']=count($filelist);
68
  unset($files);
195
 
196
 
197
  function _pclzipPostAddCallBack($p_event, &$p_header) {
198
+ global $WORKING;
199
  if ($p_header['status'] != 'ok')
200
  trigger_error(sprintf(__('PCL ZIP Error "%1$s" on file %2$s!','backwpup'),$p_header['status'],$p_header['filename']),E_USER_ERROR);
201
  $WORKING['STEPDONE']++;
job/db_check.php CHANGED
@@ -1,21 +1,26 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function db_check() {
9
  global $WORKING,$STATIC;
10
  trigger_error(sprintf(__('%d. try for database check...','backwpup'),$WORKING['DB_CHECK']['STEP_TRY']),E_USER_NOTICE);
11
  if (!isset($WORKING['DB_CHECK']['DONETABLE']) or !is_array($WORKING['DB_CHECK']['DONETABLE']))
12
  $WORKING['DB_CHECK']['DONETABLE']=array();
 
 
 
 
 
 
 
 
 
 
13
  //Set num of todos
14
- $WORKING['STEPTODO']=sizeof($STATIC['JOB']['dbtables']);
 
15
  //check tables
16
- if (sizeof($STATIC['JOB']['dbtables'])>0) {
17
  maintenance_mode(true);
18
- foreach ($STATIC['JOB']['dbtables'] as $table) {
19
  if (in_array($table, $WORKING['DB_CHECK']['DONETABLE']))
20
  continue;
21
  $result=mysql_query('CHECK TABLE `'.$table.'` MEDIUM');
1
  <?PHP
 
 
 
 
 
 
2
  function db_check() {
3
  global $WORKING,$STATIC;
4
  trigger_error(sprintf(__('%d. try for database check...','backwpup'),$WORKING['DB_CHECK']['STEP_TRY']),E_USER_NOTICE);
5
  if (!isset($WORKING['DB_CHECK']['DONETABLE']) or !is_array($WORKING['DB_CHECK']['DONETABLE']))
6
  $WORKING['DB_CHECK']['DONETABLE']=array();
7
+
8
+ //to backup
9
+ $tabelstobackup=array();
10
+ $result=mysql_query("SHOW TABLES FROM `".$STATIC['WP']['DB_NAME']."`"); //get table status
11
+ if (!$result)
12
+ trigger_error(sprintf(__('Database error %1$s for query %2$s','backwpup'), mysql_error(), "SHOW TABLE STATUS FROM `".$STATIC['WP']['DB_NAME']."`;"),E_USER_ERROR);
13
+ while ($data = mysql_fetch_row($result)) {
14
+ if (!in_array($data[0],$STATIC['JOB']['dbexclude']))
15
+ $tabelstobackup[]=$data[0];
16
+ }
17
  //Set num of todos
18
+ $WORKING['STEPTODO']=sizeof($tabelstobackup);
19
+
20
  //check tables
21
+ if (count($tabelstobackup)>0) {
22
  maintenance_mode(true);
23
+ foreach ($tabelstobackup as $table) {
24
  if (in_array($table, $WORKING['DB_CHECK']['DONETABLE']))
25
  continue;
26
  $result=mysql_query('CHECK TABLE `'.$table.'` MEDIUM');
job/db_dump.php CHANGED
@@ -1,25 +1,28 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
-
9
  function db_dump() {
10
  global $WORKING,$STATIC;
11
  trigger_error(sprintf(__('%d. try for database dump...','backwpup'),$WORKING['DB_DUMP']['STEP_TRY']),E_USER_NOTICE);
12
  if (!isset($WORKING['DB_DUMP']['DONETABLE']) or !is_array($WORKING['DB_DUMP']['DONETABLE']))
13
  $WORKING['DB_DUMP']['DONETABLE']=array();
14
- $WORKING['STEPTODO']=count($STATIC['JOB']['dbtables']);
 
 
 
 
 
 
 
 
 
 
 
15
  //Set maintenance
16
  maintenance_mode(true);
17
 
18
- if (count($STATIC['JOB']['dbtables'])>0) {
19
  $result=mysql_query("SHOW TABLE STATUS FROM `".$STATIC['WP']['DB_NAME']."`"); //get table status
20
  if (!$result)
21
  trigger_error(sprintf(__('Database error %1$s for query %2$s','backwpup'), mysql_error(), "SHOW TABLE STATUS FROM `".$STATIC['WP']['DB_NAME']."`;"),E_USER_ERROR);
22
-
23
  while ($data = mysql_fetch_assoc($result)) {
24
  $status[$data['Name']]=$data;
25
  }
@@ -48,7 +51,7 @@ function db_dump() {
48
  fwrite($file, "/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;\n");
49
  fwrite($file, "/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n\n");
50
  //make table dumps
51
- foreach($STATIC['JOB']['dbtables'] as $table) {
52
  if (in_array($table, $WORKING['DB_DUMP']['DONETABLE']))
53
  continue;
54
  trigger_error(sprintf(__('Dump database table "%s"','backwpup'),$table),E_USER_NOTICE);
@@ -91,7 +94,6 @@ function db_dump() {
91
 
92
  function _db_dump_table($table,$status,$file) {
93
  global $WORKING,$STATIC;
94
-
95
  // create dump
96
  fwrite($file, "\n");
97
  fwrite($file, "--\n");
@@ -124,6 +126,7 @@ function _db_dump_table($table,$status,$file) {
124
  fwrite($file, "/*!40000 ALTER TABLE `".$table."` DISABLE KEYS */;\n");
125
 
126
  while ($data = mysql_fetch_assoc($result)) {
 
127
  $keys = array();
128
  $values = array();
129
  foreach($data as $key => $value) {
1
  <?PHP
 
 
 
 
 
 
 
2
  function db_dump() {
3
  global $WORKING,$STATIC;
4
  trigger_error(sprintf(__('%d. try for database dump...','backwpup'),$WORKING['DB_DUMP']['STEP_TRY']),E_USER_NOTICE);
5
  if (!isset($WORKING['DB_DUMP']['DONETABLE']) or !is_array($WORKING['DB_DUMP']['DONETABLE']))
6
  $WORKING['DB_DUMP']['DONETABLE']=array();
7
+
8
+ //to backup
9
+ $tabelstobackup=array();
10
+ $result=mysql_query("SHOW TABLES FROM `".$STATIC['WP']['DB_NAME']."`"); //get table status
11
+ if (!$result)
12
+ trigger_error(sprintf(__('Database error %1$s for query %2$s','backwpup'), mysql_error(), "SHOW TABLE STATUS FROM `".$STATIC['WP']['DB_NAME']."`;"),E_USER_ERROR);
13
+ while ($data = mysql_fetch_row($result)) {
14
+ if (!in_array($data[0],$STATIC['JOB']['dbexclude']))
15
+ $tabelstobackup[]=$data[0];
16
+ }
17
+ $WORKING['STEPTODO']=count($tabelstobackup);
18
+
19
  //Set maintenance
20
  maintenance_mode(true);
21
 
22
+ if (count($tabelstobackup)>0) {
23
  $result=mysql_query("SHOW TABLE STATUS FROM `".$STATIC['WP']['DB_NAME']."`"); //get table status
24
  if (!$result)
25
  trigger_error(sprintf(__('Database error %1$s for query %2$s','backwpup'), mysql_error(), "SHOW TABLE STATUS FROM `".$STATIC['WP']['DB_NAME']."`;"),E_USER_ERROR);
 
26
  while ($data = mysql_fetch_assoc($result)) {
27
  $status[$data['Name']]=$data;
28
  }
51
  fwrite($file, "/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;\n");
52
  fwrite($file, "/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n\n");
53
  //make table dumps
54
+ foreach($tabelstobackup as $table) {
55
  if (in_array($table, $WORKING['DB_DUMP']['DONETABLE']))
56
  continue;
57
  trigger_error(sprintf(__('Dump database table "%s"','backwpup'),$table),E_USER_NOTICE);
94
 
95
  function _db_dump_table($table,$status,$file) {
96
  global $WORKING,$STATIC;
 
97
  // create dump
98
  fwrite($file, "\n");
99
  fwrite($file, "--\n");
126
  fwrite($file, "/*!40000 ALTER TABLE `".$table."` DISABLE KEYS */;\n");
127
 
128
  while ($data = mysql_fetch_assoc($result)) {
129
+ update_working_file();
130
  $keys = array();
131
  $values = array();
132
  foreach($data as $key => $value) {
job/db_optimize.php CHANGED
@@ -1,19 +1,25 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function db_optimize() {
9
  global $WORKING,$STATIC;
10
  trigger_error(sprintf(__('%d. try for database optimize...','backwpup'),$WORKING['DB_OPTIMIZE']['STEP_TRY']),E_USER_NOTICE);
11
  if (!isset($WORKING['DB_OPTIMIZE']['DONETABLE']) or !is_array($WORKING['DB_OPTIMIZE']['DONETABLE']))
12
  $WORKING['DB_OPTIMIZE']['DONETABLE']=array();
13
- $WORKING['STEPTODO']=sizeof($STATIC['JOB']['dbtables']);
14
- if (sizeof($STATIC['JOB']['dbtables'])>0) {
 
 
 
 
 
 
 
 
 
 
 
 
15
  maintenance_mode(true);
16
- foreach ($STATIC['JOB']['dbtables'] as $table) {
17
  if (in_array($table, $WORKING['DB_OPTIMIZE']['DONETABLE']))
18
  continue;
19
  $result=mysql_query('OPTIMIZE TABLE `'.$table.'`');
@@ -23,7 +29,7 @@ function db_optimize() {
23
  }
24
  $optimize=mysql_fetch_assoc($result);
25
  $WORKING['DB_OPTIMIZE']['DONETABLE'][]=$table;
26
- $WORKING['STEPDONE']=sizeof($WORKING['DB_OPTIMIZE']['DONETABLE']);
27
  if ($optimize['Msg_type']=='error')
28
  trigger_error(sprintf(__('Result of table optimize for %1$s is: %2$s','backwpup'), $table, $optimize['Msg_text']),E_USER_ERROR);
29
  elseif ($optimize['Msg_type']=='warning')
1
  <?PHP
 
 
 
 
 
 
2
  function db_optimize() {
3
  global $WORKING,$STATIC;
4
  trigger_error(sprintf(__('%d. try for database optimize...','backwpup'),$WORKING['DB_OPTIMIZE']['STEP_TRY']),E_USER_NOTICE);
5
  if (!isset($WORKING['DB_OPTIMIZE']['DONETABLE']) or !is_array($WORKING['DB_OPTIMIZE']['DONETABLE']))
6
  $WORKING['DB_OPTIMIZE']['DONETABLE']=array();
7
+
8
+ //to backup
9
+ $tabelstobackup=array();
10
+ $result=mysql_query("SHOW TABLES FROM `".$STATIC['WP']['DB_NAME']."`"); //get table status
11
+ if (!$result)
12
+ trigger_error(sprintf(__('Database error %1$s for query %2$s','backwpup'), mysql_error(), "SHOW TABLE STATUS FROM `".$STATIC['WP']['DB_NAME']."`;"),E_USER_ERROR);
13
+ while ($data = mysql_fetch_row($result)) {
14
+ if (!in_array($data[0],$STATIC['JOB']['dbexclude']))
15
+ $tabelstobackup[]=$data[0];
16
+ }
17
+ //Set num of todos
18
+ $WORKING['STEPTODO']=count($tabelstobackup);
19
+
20
+ if (count($tabelstobackup)>0) {
21
  maintenance_mode(true);
22
+ foreach ($tabelstobackup as $table) {
23
  if (in_array($table, $WORKING['DB_OPTIMIZE']['DONETABLE']))
24
  continue;
25
  $result=mysql_query('OPTIMIZE TABLE `'.$table.'`');
29
  }
30
  $optimize=mysql_fetch_assoc($result);
31
  $WORKING['DB_OPTIMIZE']['DONETABLE'][]=$table;
32
+ $WORKING['STEPDONE']=count($WORKING['DB_OPTIMIZE']['DONETABLE']);
33
  if ($optimize['Msg_type']=='error')
34
  trigger_error(sprintf(__('Result of table optimize for %1$s is: %2$s','backwpup'), $table, $optimize['Msg_text']),E_USER_ERROR);
35
  elseif ($optimize['Msg_type']=='warning')
job/dest_dropbox.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_dropbox() {
9
  global $WORKING,$STATIC;
10
  $WORKING['STEPTODO']=2+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
@@ -45,13 +39,13 @@ function dest_dropbox() {
45
  $dropbox->setProgressFunction('curl_progresscallback');
46
  // put the file
47
  trigger_error(__('Upload to DropBox now started... ','backwpup'),E_USER_NOTICE);
48
- need_free_memory(filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile'])*2); //free memory to transfer to dropbox
49
  @set_time_limit($STATIC['CFG']['jobscriptruntimelong']);
50
  $response = $dropbox->upload($STATIC['JOB']['backupdir'].$STATIC['backupfile'],$STATIC['JOB']['dropedir']);
51
  if ($response['result']=="winner!") {
52
  $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloaddropbox&file='.$STATIC['JOB']['dropedir'].$STATIC['backupfile'].'&jobid='.$STATIC['JOB']['jobid'];
53
  $WORKING['STEPDONE']++;
54
- trigger_error(sprintf(__('Backup transferred to DropBox://%s','backwpup'),$STATIC['JOB']['droperoot'].'/'.$STATIC['JOB']['dropedir'].$STATIC['backupfile']),E_USER_NOTICE);
55
  } else {
56
  trigger_error(sprintf(__('Error on transfere backup to DropBox: %s','backwpup'),$response['error']),E_USER_ERROR);
57
  return;
1
  <?PHP
 
 
 
 
 
 
2
  function dest_dropbox() {
3
  global $WORKING,$STATIC;
4
  $WORKING['STEPTODO']=2+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
39
  $dropbox->setProgressFunction('curl_progresscallback');
40
  // put the file
41
  trigger_error(__('Upload to DropBox now started... ','backwpup'),E_USER_NOTICE);
42
+ need_free_memory(filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile'])*2.2); //free memory to transfer to dropbox
43
  @set_time_limit($STATIC['CFG']['jobscriptruntimelong']);
44
  $response = $dropbox->upload($STATIC['JOB']['backupdir'].$STATIC['backupfile'],$STATIC['JOB']['dropedir']);
45
  if ($response['result']=="winner!") {
46
  $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloaddropbox&file='.$STATIC['JOB']['dropedir'].$STATIC['backupfile'].'&jobid='.$STATIC['JOB']['jobid'];
47
  $WORKING['STEPDONE']++;
48
+ trigger_error(sprintf(__('Backup transferred to %s','backwpup'),'https://api-content.dropbox.com/0/files/'.$STATIC['JOB']['droperoot'].'/'.$STATIC['JOB']['dropedir'].$STATIC['backupfile']),E_USER_NOTICE);
49
  } else {
50
  trigger_error(sprintf(__('Error on transfere backup to DropBox: %s','backwpup'),$response['error']),E_USER_ERROR);
51
  return;
job/dest_folder.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_folder() {
9
  global $WORKING,$STATIC;
10
  $WORKING['STEPTODO']=1;
1
  <?PHP
 
 
 
 
 
 
2
  function dest_folder() {
3
  global $WORKING,$STATIC;
4
  $WORKING['STEPTODO']=1;
job/dest_ftp.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_ftp() {
9
  global $WORKING,$STATIC;
10
  if (empty($STATIC['JOB']['ftphost']) or empty($STATIC['JOB']['ftpuser']) or empty($STATIC['JOB']['ftppass'])) {
1
  <?PHP
 
 
 
 
 
 
2
  function dest_ftp() {
3
  global $WORKING,$STATIC;
4
  if (empty($STATIC['JOB']['ftphost']) or empty($STATIC['JOB']['ftpuser']) or empty($STATIC['JOB']['ftppass'])) {
job/dest_gstorage.php CHANGED
@@ -1,56 +1,49 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_gstorage() {
9
  global $WORKING,$STATIC;
 
10
  $WORKING['STEPTODO']=2+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
11
  $WORKING['STEPDONE']=0;
12
- trigger_error(sprintf(__('%d. try sending backup to Google Storage...','backwpup'),$WORKING['DEST_GSTORAGE']['STEP_TRY']),E_USER_NOTICE);
13
 
14
- require_once(dirname(__FILE__).'/../libs/googlestorage.php');
 
15
  try {
16
- $googlestorage = new GoogleStorage($STATIC['JOB']['GStorageAccessKey'], $STATIC['JOB']['GStorageSecret']);
17
- $googlestorage->setProgressFunction('curl_progresscallback');
18
- $bucket=$googlestorage->getBucketAcl($STATIC['JOB']['GStorageBucket']);
19
- if (is_object($bucket)) {
20
- trigger_error(sprintf(__('Connected to Google storage bucket: %s','backwpup'),$STATIC['JOB']['GStorageBucket']),E_USER_NOTICE);
21
- //set content Type
22
- if ($STATIC['JOB']['fileformart']=='.zip')
23
- $content_type='application/zip';
24
- if ($STATIC['JOB']['fileformart']=='.tar')
25
- $content_type='application/x-ustar';
26
- if ($STATIC['JOB']['fileformart']=='.tar.gz')
27
- $content_type='application/x-compressed';
28
- if ($STATIC['JOB']['fileformart']=='.tar.bz2')
29
- $content_type='application/x-compressed';
30
- //Transfer Backup to Google Storrage
31
- trigger_error(__('Upload to Google storage now started...','backwpup'),E_USER_NOTICE);
32
- @set_time_limit($STATIC['CFG']['jobscriptruntimelong']);
33
- $upload=$googlestorage->putObject($STATIC['JOB']['GStorageBucket'],$STATIC['JOB']['GStoragedir'].$STATIC['backupfile'],$STATIC['JOB']['backupdir'].$STATIC['backupfile'],'private',$content_type);
34
- if (empty($upload)) {
35
  $WORKING['STEPTODO']=1+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
36
- trigger_error(sprintf(__('Backup transferred to GSTORAGE://%s','backwpup'),$STATIC['JOB']['GStorageBucket'].'/'.$STATIC['JOB']['GStoragedir'].$STATIC['backupfile']),E_USER_NOTICE);
37
- $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloadgstorage&file='.$STATIC['JOB']['GStoragedir'].$STATIC['backupfile'].'&jobid='.$STATIC['JOB']['jobid'];
38
  } else {
39
- trigger_error(sprintf(__('Error "%s" on transfer backup to Google storage!','backwpup'),$upload),E_USER_ERROR);
40
  }
41
  } else {
42
- trigger_error(sprintf(__('Error "%s" on connect to Google Storage bucket','backwpup'),$bucket),E_USER_ERROR);
43
  }
44
  } catch (Exception $e) {
45
- trigger_error(sprintf(__('Google Storage API: %s','backwpup'),$e->getMessage()),E_USER_ERROR);
46
  return;
47
- }
48
- if (is_object($bucket)) {
 
49
  if ($STATIC['JOB']['GStoragemaxbackups']>0) { //Delete old backups
50
  $backupfilelist=array();
51
- $contents = $googlestorage->getBucket($STATIC['JOB']['GStorageBucket'],$STATIC['JOB']['GStoragedir']);
52
- if (is_object($contents)) {
53
- foreach ($contents as $object) {
54
  $file=basename($object->Key);
55
  if ($STATIC['JOB']['fileprefix'] == substr($file,0,strlen($STATIC['JOB']['fileprefix'])) and $STATIC['JOB']['fileformart'] == substr($file,-strlen($STATIC['JOB']['fileformart'])))
56
  $backupfilelist[]=$file;
@@ -60,16 +53,18 @@ function dest_gstorage() {
60
  rsort($backupfilelist);
61
  $numdeltefiles=0;
62
  for ($i=$STATIC['JOB']['GStoragemaxbackups'];$i<sizeof($backupfilelist);$i++) {
63
- $googlestorage->deleteObject($STATIC['JOB']['GStorageBucket'],$STATIC['JOB']['GStoragedir'].$backupfilelist[$i]); //delte files on Google Storage
64
- $numdeltefiles++;
 
 
65
  }
66
  if ($numdeltefiles>0)
67
- trigger_error(sprintf(_n('One file deleted on Google Storage bucket','%d files deleted on Google Storage bucket',$numdeltefiles,'backwpup'),$numdeltefiles),E_USER_NOTICE);
68
  }
69
  }
70
  }
71
  } catch (Exception $e) {
72
- trigger_error(sprintf(__('Google Storage API: %s','backwpup'),$e->getMessage()),E_USER_ERROR);
73
  return;
74
  }
75
 
1
  <?PHP
 
 
 
 
 
 
2
  function dest_gstorage() {
3
  global $WORKING,$STATIC;
4
+ trigger_error(sprintf(__('%d. try sending backup to Google Storage...','backwpup'),$WORKING['DEST_GSTORAGE']['STEP_TRY']),E_USER_NOTICE);
5
  $WORKING['STEPTODO']=2+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
6
  $WORKING['STEPDONE']=0;
 
7
 
8
+ require_once(dirname(__FILE__).'/../libs/aws/sdk.class.php');
9
+ need_free_memory(26214400*1.1);
10
  try {
11
+ $gstorage = new AmazonS3($STATIC['JOB']['GStorageAccessKey'], $STATIC['JOB']['GStorageSecret']);
12
+ //set up s3 for google
13
+ $gstorage->set_hostname('commondatastorage.googleapis.com');
14
+ $gstorage->allow_hostname_override(false);
15
+ if ($gstorage->if_bucket_exists($STATIC['JOB']['GStorageBucket'])) {
16
+ trigger_error(sprintf(__('Connected to GStorage Bucket: %s','backwpup'),$STATIC['JOB']['GStorageBucket']),E_USER_NOTICE);
17
+ //set surl Prozess bar
18
+ $curlops=array();
19
+ if (defined('CURLOPT_PROGRESSFUNCTION'))
20
+ $curlops=array(CURLOPT_NOPROGRESS=>false,CURLOPT_PROGRESSFUNCTION=>'curl_progresscallback',CURLOPT_BUFFERSIZE=>256);
21
+ else
22
+ @set_time_limit($STATIC['CFG']['jobscriptruntimelong']);
23
+ trigger_error(__('Upload to GStorage now started... ','backwpup'),E_USER_NOTICE);
24
+ //transfere file to GStorage
25
+ $result=$gstorage->create_mpu_object($STATIC['JOB']['GStorageBucket'], $STATIC['JOB']['GStoragedir'].$STATIC['backupfile'], array('fileUpload' => $STATIC['JOB']['backupdir'].$STATIC['backupfile'],'acl' => 'private','partSize'=>26214400,'curlopts'=>$curlops));
26
+ $result=(array)$result;
27
+ if ($result["status"]=200 and $result["status"]<300) {
 
 
28
  $WORKING['STEPTODO']=1+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
29
+ trigger_error(sprintf(__('Backup transferred to %s','backwpup'),"https://sandbox.google.com/storage/".$STATIC['JOB']['GStorageBucket']."/".$STATIC['JOB']['GStoragedir'].$STATIC['backupfile']),E_USER_NOTICE);
30
+ $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloads3&file='.$STATIC['JOB']['GStoragedir'].$STATIC['backupfile'].'&jobid='.$STATIC['JOB']['jobid'];
31
  } else {
32
+ trigger_error(sprintf(__('Can not transfer backup to GStorage! (%1$d) %2$s','backwpup'),$result["status"],$result["Message"]),E_USER_ERROR);
33
  }
34
  } else {
35
+ trigger_error(sprintf(__('GStorage Bucket "%s" not exists!','backwpup'),$STATIC['JOB']['GStorageBucket']),E_USER_ERROR);
36
  }
37
  } catch (Exception $e) {
38
+ trigger_error(sprintf(__('GStorage API: %s','backwpup'),$e->getMessage()),E_USER_ERROR);
39
  return;
40
+ }
41
+ try {
42
+ if ($gstorage->if_bucket_exists($STATIC['JOB']['GStorageBucket'])) {
43
  if ($STATIC['JOB']['GStoragemaxbackups']>0) { //Delete old backups
44
  $backupfilelist=array();
45
+ if (($contents = $gstorage->list_objects($STATIC['JOB']['GStorageBucket'],array('prefix'=>$STATIC['JOB']['GStoragedir']))) !== false) {
46
+ foreach ($contents->body->Contents as $object) {
 
47
  $file=basename($object->Key);
48
  if ($STATIC['JOB']['fileprefix'] == substr($file,0,strlen($STATIC['JOB']['fileprefix'])) and $STATIC['JOB']['fileformart'] == substr($file,-strlen($STATIC['JOB']['fileformart'])))
49
  $backupfilelist[]=$file;
53
  rsort($backupfilelist);
54
  $numdeltefiles=0;
55
  for ($i=$STATIC['JOB']['GStoragemaxbackups'];$i<sizeof($backupfilelist);$i++) {
56
+ if ($gstorage->delete_object($STATIC['JOB']['GStorageBucket'], $STATIC['JOB']['GStoragedir'].$backupfilelist[$i])) //delte files on S3
57
+ $numdeltefiles++;
58
+ else
59
+ trigger_error(sprintf(__('Can not delete backup on GStorage://%s','backwpup'),$STATIC['JOB']['awsBucket'].'/'.$STATIC['JOB']['GStoragedir'].$backupfilelist[$i]),E_USER_ERROR);
60
  }
61
  if ($numdeltefiles>0)
62
+ trigger_error(sprintf(_n('One file deleted on GStorage Bucket','%d files deleted on GStorage Bucket',$numdeltefiles,'backwpup'),$numdeltefiles),E_USER_NOTICE);
63
  }
64
  }
65
  }
66
  } catch (Exception $e) {
67
+ trigger_error(sprintf(__('GStorage API: %s','backwpup'),$e->getMessage()),E_USER_ERROR);
68
  return;
69
  }
70
 
job/dest_mail.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_mail() {
9
  global $WORKING,$STATIC;
10
  $WORKING['STEPTODO']=filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
1
  <?PHP
 
 
 
 
 
 
2
  function dest_mail() {
3
  global $WORKING,$STATIC;
4
  $WORKING['STEPTODO']=filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
job/dest_msazure.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_msazure() {
9
  global $WORKING,$STATIC;
10
  $WORKING['STEPTODO']=2+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
@@ -29,7 +23,7 @@ function dest_msazure() {
29
 
30
  if ($result->Name==$STATIC['JOB']['msazuredir'].$STATIC['backupfile']) {
31
  $WORKING['STEPTODO']=1+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
32
- trigger_error(sprintf(__('Backup transferred to azure://%s','backwpup'),$STATIC['JOB']['msazuredir'].$STATIC['backupfile']),E_USER_NOTICE);
33
  $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloadmsazure&file='.$STATIC['JOB']['msazuredir'].$STATIC['backupfile'].'&jobid='.$STATIC['JOB']['jobid'];
34
  } else {
35
  trigger_error(__('Can not transfer backup to Microsoft Azure!','backwpup'),E_USER_ERROR);
1
  <?PHP
 
 
 
 
 
 
2
  function dest_msazure() {
3
  global $WORKING,$STATIC;
4
  $WORKING['STEPTODO']=2+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
23
 
24
  if ($result->Name==$STATIC['JOB']['msazuredir'].$STATIC['backupfile']) {
25
  $WORKING['STEPTODO']=1+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
26
+ trigger_error(sprintf(__('Backup transferred to %s','backwpup'),'https://'.$STATIC['JOB']['msazureAccName'].'.'.$STATIC['JOB']['msazureHost'].'/'.$STATIC['JOB']['msazuredir'].$STATIC['backupfile']),E_USER_NOTICE);
27
  $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloadmsazure&file='.$STATIC['JOB']['msazuredir'].$STATIC['backupfile'].'&jobid='.$STATIC['JOB']['jobid'];
28
  } else {
29
  trigger_error(__('Can not transfer backup to Microsoft Azure!','backwpup'),E_USER_ERROR);
job/dest_rsc.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_rsc() {
9
  global $WORKING,$STATIC;
10
  trigger_error($WORKING['DEST_RSC']['STEP_TRY'].'. '.__('Try to sending backup file to Rackspace Cloud...','backwpup'),E_USER_NOTICE);
1
  <?PHP
 
 
 
 
 
 
2
  function dest_rsc() {
3
  global $WORKING,$STATIC;
4
  trigger_error($WORKING['DEST_RSC']['STEP_TRY'].'. '.__('Try to sending backup file to Rackspace Cloud...','backwpup'),E_USER_NOTICE);
job/dest_s3.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_s3() {
9
  global $WORKING,$STATIC;
10
  trigger_error(sprintf(__('%d. try sending backup file to Amazon S3...','backwpup'),$WORKING['DEST_S3']['STEP_TRY']),E_USER_NOTICE);
@@ -30,12 +24,15 @@ function dest_s3() {
30
  else
31
  @set_time_limit($STATIC['CFG']['jobscriptruntimelong']);
32
  trigger_error(__('Upload to Amazon S3 now started... ','backwpup'),E_USER_NOTICE);
33
- if ($s3->create_mpu_object($STATIC['JOB']['awsBucket'], $STATIC['JOB']['awsdir'].$STATIC['backupfile'], array('fileUpload' => $STATIC['JOB']['backupdir'].$STATIC['backupfile'],'acl' => AmazonS3::ACL_PRIVATE,'storage' => $storage,'partSize'=>26214400,'curlopts'=>$curlops))) {//transfere file to S3
 
 
 
34
  $WORKING['STEPTODO']=1+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
35
- trigger_error(sprintf(__('Backup transferred to S3://%s','backwpup'),$STATIC['JOB']['awsBucket'].'/'.$STATIC['JOB']['awsdir'].$STATIC['backupfile']),E_USER_NOTICE);
36
  $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloads3&file='.$STATIC['JOB']['awsdir'].$STATIC['backupfile'].'&jobid='.$STATIC['JOB']['jobid'];
37
  } else {
38
- trigger_error(__('Can not transfer backup to S3!','backwpup'),E_USER_ERROR);
39
  }
40
  } else {
41
  trigger_error(sprintf(__('S3 Bucket "%s" not exists!','backwpup'),$STATIC['JOB']['awsBucket']),E_USER_ERROR);
1
  <?PHP
 
 
 
 
 
 
2
  function dest_s3() {
3
  global $WORKING,$STATIC;
4
  trigger_error(sprintf(__('%d. try sending backup file to Amazon S3...','backwpup'),$WORKING['DEST_S3']['STEP_TRY']),E_USER_NOTICE);
24
  else
25
  @set_time_limit($STATIC['CFG']['jobscriptruntimelong']);
26
  trigger_error(__('Upload to Amazon S3 now started... ','backwpup'),E_USER_NOTICE);
27
+ //transfere file to S3
28
+ $result=$s3->create_mpu_object($STATIC['JOB']['awsBucket'], $STATIC['JOB']['awsdir'].$STATIC['backupfile'], array('fileUpload' => $STATIC['JOB']['backupdir'].$STATIC['backupfile'],'acl' => AmazonS3::ACL_PRIVATE,'storage' => $storage,'partSize'=>26214400,'curlopts'=>$curlops));
29
+ $result=(array)$result;
30
+ if ($result["status"]=200 and $result["status"]<300) {
31
  $WORKING['STEPTODO']=1+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
32
+ trigger_error(sprintf(__('Backup transferred to %s','backwpup'),$result["header"]["_info"]["url"]),E_USER_NOTICE);
33
  $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloads3&file='.$STATIC['JOB']['awsdir'].$STATIC['backupfile'].'&jobid='.$STATIC['JOB']['jobid'];
34
  } else {
35
+ trigger_error(sprintf(__('Can not transfer backup to S3! (%1$d) %2$s','backwpup'),$result["status"],$result["Message"]),E_USER_ERROR);
36
  }
37
  } else {
38
  trigger_error(sprintf(__('S3 Bucket "%s" not exists!','backwpup'),$STATIC['JOB']['awsBucket']),E_USER_ERROR);
job/dest_sugarsync.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function dest_sugarsync() {
9
  global $WORKING,$STATIC;
10
  $WORKING['STEPTODO']=2+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
@@ -40,7 +34,7 @@ function dest_sugarsync() {
40
  if (is_object($reponse)) {
41
  $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloadsugarsync&file='.(string)$reponse.'&jobid='.$STATIC['JOB']['jobid'];
42
  $WORKING['STEPDONE']++;
43
- trigger_error(sprintf(__('Backup transferred to SugarSync://%s','backwpup'),$sugarsync->showdir($dirid).$STATIC['backupfile']),E_USER_NOTICE);
44
  } else {
45
  trigger_error(__('Can not transfer backup to SugarSync!','backwpup'),E_USER_ERROR);
46
  return;
1
  <?PHP
 
 
 
 
 
 
2
  function dest_sugarsync() {
3
  global $WORKING,$STATIC;
4
  $WORKING['STEPTODO']=2+filesize($STATIC['JOB']['backupdir'].$STATIC['backupfile']);
34
  if (is_object($reponse)) {
35
  $STATIC['JOB']['lastbackupdownloadurl']=$STATIC['WP']['ADMINURL'].'?page=backwpupbackups&action=downloadsugarsync&file='.(string)$reponse.'&jobid='.$STATIC['JOB']['jobid'];
36
  $WORKING['STEPDONE']++;
37
+ trigger_error(sprintf(__('Backup transferred to %s','backwpup'),'https://'.$user->nickname.'.sugarsync.com/'.$sugarsync->showdir($dirid).$STATIC['backupfile']),E_USER_NOTICE);
38
  } else {
39
  trigger_error(__('Can not transfer backup to SugarSync!','backwpup'),E_USER_ERROR);
40
  return;
job/file_list.php CHANGED
@@ -1,11 +1,4 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
-
9
  function file_list() {
10
  global $WORKING,$STATIC,$tempfilelist;
11
  //Make filelist
@@ -18,6 +11,7 @@ function file_list() {
18
  $tempfilelist=array();
19
  //exlude of job
20
  $WORKING['FILEEXCLUDES']=explode(',',trim($STATIC['JOB']['fileexclude']));
 
21
  $WORKING['FILEEXCLUDES']=array_unique($WORKING['FILEEXCLUDES']);
22
 
23
  //File list for blog folders
@@ -57,7 +51,10 @@ function file_list() {
57
  for ($i=0; $i<count($tempfilelist); $i++) {
58
  $filestat=stat($tempfilelist[$i]);
59
  $WORKING['ALLFILESIZE']+=$filestat['size'];
60
- $filelist[]=array('FILE'=>$tempfilelist[$i],'OUTFILE'=>str_replace($removepath,'',$tempfilelist[$i]),'SIZE'=>$filestat['size'],'ATIME'=>$filestat['atime'],'MTIME'=>$filestat['mtime'],'CTIME'=>$filestat['ctime'],'UID'=>$filestat['uid'],'GID'=>$filestat['gid'],'MODE'=>$filestat['mode']);
 
 
 
61
  }
62
  add_file($filelist); //add files to list
63
  $WORKING['STEPDONE']=2;
1
  <?PHP
 
 
 
 
 
 
 
2
  function file_list() {
3
  global $WORKING,$STATIC,$tempfilelist;
4
  //Make filelist
11
  $tempfilelist=array();
12
  //exlude of job
13
  $WORKING['FILEEXCLUDES']=explode(',',trim($STATIC['JOB']['fileexclude']));
14
+ $WORKING['FILEEXCLUDES'][]='.tmp'; //do not backup .tmp files
15
  $WORKING['FILEEXCLUDES']=array_unique($WORKING['FILEEXCLUDES']);
16
 
17
  //File list for blog folders
51
  for ($i=0; $i<count($tempfilelist); $i++) {
52
  $filestat=stat($tempfilelist[$i]);
53
  $WORKING['ALLFILESIZE']+=$filestat['size'];
54
+ $outfile=str_replace($removepath,'',$tempfilelist[$i]);
55
+ if (substr($outfile,0,1)=='/') //remove first /
56
+ $outfile=substr($outfile,1);
57
+ $filelist[]=array('FILE'=>$tempfilelist[$i],'OUTFILE'=>$outfile,'SIZE'=>$filestat['size'],'ATIME'=>$filestat['atime'],'MTIME'=>$filestat['mtime'],'CTIME'=>$filestat['ctime'],'UID'=>$filestat['uid'],'GID'=>$filestat['gid'],'MODE'=>$filestat['mode']);
58
  }
59
  add_file($filelist); //add files to list
60
  $WORKING['STEPDONE']=2;
job/job_functions.php CHANGED
@@ -1,39 +1,17 @@
1
  <?PHP
2
- // don't load directly
3
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
4
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
5
- header("Status: 404 Not Found");
6
- die();
7
- }
8
-
9
  function __($message,$domain='backwpup') {
10
- global $STATIC;
11
- $msgid=md5($message);
12
- if (!empty($STATIC['TRANSLATE'][$msgid]))
13
- $message=$STATIC['TRANSLATE'][$msgid];
14
- return $message;
15
  }
16
 
17
  function _e($message,$domain='backwpup') {
18
- global $STATIC;
19
- $msgid=md5($message);
20
- if (!empty($STATIC['TRANSLATE'][$msgid]))
21
- $message=$STATIC['TRANSLATE'][$msgid];
22
- echo $message;
23
  }
24
 
25
- function _n($singular,$plural,$count,$domain='backwpup') {
26
- global $STATIC;
27
- if ($count<=1) {
28
- $msgid=md5($singular);
29
- $message=$singular;
30
- } else {
31
- $msgid=md5($plural);
32
- $message=$plural;
33
- }
34
- if (!empty($STATIC['TRANSLATE'][$msgid]))
35
- $message=$STATIC['TRANSLATE'][$msgid];
36
- return $message;
37
  }
38
 
39
  function exists_option($option='backwpup_jobs') {
@@ -83,7 +61,7 @@ function add_file($files) {
83
  file_put_contents($STATIC['TEMPDIR'].'.filelist',serialize($filelist));
84
  }
85
 
86
- // add to file list
87
  function get_filelist() {
88
  global $STATIC;
89
  if (file_exists($STATIC['TEMPDIR'].'.filelist') and $filelistfile=file_get_contents($STATIC['TEMPDIR'].'.filelist'))
@@ -204,7 +182,7 @@ function delete_working_file() {
204
  }
205
  }
206
 
207
- function update_working_file($mustwrite=false,$setpid=true) {
208
  global $WORKING,$STATIC,$runmicrotime;
209
  if (!file_exists($STATIC['TEMPDIR'].'.running'))
210
  job_end();
@@ -222,10 +200,7 @@ function update_working_file($mustwrite=false,$setpid=true) {
222
  $runningfile=file_get_contents($STATIC['TEMPDIR'].'.running');
223
  $infile=unserialize(trim($runningfile));
224
  if (is_writable($STATIC['TEMPDIR'].'.running')) {
225
- $PID=0;
226
- if ($setpid)
227
- $PID=getmypid();
228
- file_put_contents($STATIC['TEMPDIR'].'.running',serialize(array('timestamp'=>time(),'JOBID'=>$STATIC['JOB']['jobid'],'LOGFILE'=>$STATIC['LOGFILE'],'PID'=>getmypid(),'STEPSPERSENT'=>$stepspersent,'STEPPERSENT'=>$steppersent,'ABSPATH'=>$STATIC['WP']['ABSPATH'],'WORKING'=>$WORKING)));
229
  $runmicrotime=microtime();
230
  }
231
  }
@@ -503,7 +478,7 @@ function job_end() {
503
  }
504
 
505
  // execute on script job shutdown
506
- function job_shutdown() {
507
  global $WORKING,$STATIC;
508
  if (empty($STATIC['LOGFILE'])) //nothing on empty
509
  return;
@@ -526,7 +501,9 @@ function job_shutdown() {
526
  }
527
  //Put last error to log if one
528
  $lasterror=error_get_last();
529
- if (($lasterror['type']==E_ERROR or $lasterror['type']==E_PARSE or $lasterror['type']==E_CORE_ERROR or $lasterror['type']==E_COMPILE_ERROR) and is_writable($STATIC['LOGFILE'])) {
 
 
530
  file_put_contents($STATIC['LOGFILE'], "<span class=\"timestamp\" title=\"[Line: ".$lasterror['line']."|File: ".basename($lasterror['file'])."|Mem: ".formatbytes(@memory_get_usage(true))."|Mem Max: ".formatbytes(@memory_get_peak_usage(true))."|Mem Limit: ".ini_get('memory_limit')."|PID: ".getmypid()."]\">".date('Y/m/d H:i.s',time()+$STATIC['WP']['TIMEDIFF']).":</span> <span class=\"error\">[ERROR]".$lasterror['message']."</span><br />\n", FILE_APPEND);
531
  //write new log header
532
  $WORKING['ERROR']++;
@@ -542,16 +519,22 @@ function job_shutdown() {
542
  }
543
  fclose($fd);
544
  }
 
 
545
  //Excute jobrun again
546
  if (!file_exists($STATIC['TEMPDIR'].'.running'))
547
- return;
548
  if (is_writable($STATIC['LOGFILE']))
549
  file_put_contents($STATIC['LOGFILE'], "<span class=\"timestamp\" title=\"[Line: ".__LINE__."|File: ".basename(__FILE__)."|Mem: ".formatbytes(@memory_get_usage(true))."|Mem Max: ".formatbytes(@memory_get_peak_usage(true))."|Mem Limit: ".ini_get('memory_limit')."|PID: ".getmypid()."]\">".date('Y/m/d H:i.s',time()+$STATIC['WP']['TIMEDIFF']).":</span> <span>".$WORKING['RESTART'].'. '.__('Script stop! Will started again now!','backwpup')."</span><br />\n", FILE_APPEND);
550
- update_working_file(true,false);
551
  if (!empty($STATIC['JOBRUNURL'])) {
552
- include_once(dirname(__FILE__).'/../libs/class.http.php');
553
  $http = new Http();
554
  $http->setMethod('POST');
 
 
 
 
555
  $http->addParam('BackWPupJobTemp', $STATIC['TEMPDIR']);
556
  $http->addParam('nonce',$WORKING['NONCE']);
557
  $http->addParam('type', 'restart');
@@ -559,5 +542,6 @@ function job_shutdown() {
559
  $http->setTimeout(0.01);
560
  $http->execute($STATIC['JOBRUNURL']);
561
  }
 
562
  }
563
  ?>
1
  <?PHP
 
 
 
 
 
 
 
2
  function __($message,$domain='backwpup') {
3
+ global $TRANSLATE;
4
+ return $TRANSLATE->translate($message);
 
 
 
5
  }
6
 
7
  function _e($message,$domain='backwpup') {
8
+ global $TRANSLATE;
9
+ echo $TRANSLATE->translate($message);
 
 
 
10
  }
11
 
12
+ function _n($single, $plural, $number,$domain='backwpup') {
13
+ global $TRANSLATE;
14
+ return $TRANSLATE->translate_plural($single,$plural,$number);
 
 
 
 
 
 
 
 
 
15
  }
16
 
17
  function exists_option($option='backwpup_jobs') {
61
  file_put_contents($STATIC['TEMPDIR'].'.filelist',serialize($filelist));
62
  }
63
 
64
+ // get file list
65
  function get_filelist() {
66
  global $STATIC;
67
  if (file_exists($STATIC['TEMPDIR'].'.filelist') and $filelistfile=file_get_contents($STATIC['TEMPDIR'].'.filelist'))
182
  }
183
  }
184
 
185
+ function update_working_file($mustwrite=false) {
186
  global $WORKING,$STATIC,$runmicrotime;
187
  if (!file_exists($STATIC['TEMPDIR'].'.running'))
188
  job_end();
200
  $runningfile=file_get_contents($STATIC['TEMPDIR'].'.running');
201
  $infile=unserialize(trim($runningfile));
202
  if (is_writable($STATIC['TEMPDIR'].'.running')) {
203
+ file_put_contents($STATIC['TEMPDIR'].'.running',serialize(array('timestamp'=>time(),'JOBID'=>$STATIC['JOB']['jobid'],'LOGFILE'=>$STATIC['LOGFILE'],'STEPSPERSENT'=>$stepspersent,'STEPPERSENT'=>$steppersent,'ABSPATH'=>$STATIC['WP']['ABSPATH'],'WORKING'=>$WORKING)));
 
 
 
204
  $runmicrotime=microtime();
205
  }
206
  }
478
  }
479
 
480
  // execute on script job shutdown
481
+ function job_shutdown($signal='') {
482
  global $WORKING,$STATIC;
483
  if (empty($STATIC['LOGFILE'])) //nothing on empty
484
  return;
501
  }
502
  //Put last error to log if one
503
  $lasterror=error_get_last();
504
+ if (($lasterror['type']==E_ERROR or $lasterror['type']==E_PARSE or $lasterror['type']==E_CORE_ERROR or $lasterror['type']==E_COMPILE_ERROR or !empty($signal)) and is_writable($STATIC['LOGFILE'])) {
505
+ if (!empty($signal))
506
+ file_put_contents($STATIC['LOGFILE'], "<span class=\"timestamp\" title=\"[Line: ".__LINE__."|File: ".basename(__FILE__)."|Mem: ".formatbytes(@memory_get_usage(true))."|Mem Max: ".formatbytes(@memory_get_peak_usage(true))."|Mem Limit: ".ini_get('memory_limit')."|PID: ".getmypid()."]\">".date('Y/m/d H:i.s',time()+$STATIC['WP']['TIMEDIFF']).":</span> <span class=\"error\">[ERROR]".sprintf(__('Signal $d send to script!','backwpup'),$signal)."</span><br />\n", FILE_APPEND);
507
  file_put_contents($STATIC['LOGFILE'], "<span class=\"timestamp\" title=\"[Line: ".$lasterror['line']."|File: ".basename($lasterror['file'])."|Mem: ".formatbytes(@memory_get_usage(true))."|Mem Max: ".formatbytes(@memory_get_peak_usage(true))."|Mem Limit: ".ini_get('memory_limit')."|PID: ".getmypid()."]\">".date('Y/m/d H:i.s',time()+$STATIC['WP']['TIMEDIFF']).":</span> <span class=\"error\">[ERROR]".$lasterror['message']."</span><br />\n", FILE_APPEND);
508
  //write new log header
509
  $WORKING['ERROR']++;
519
  }
520
  fclose($fd);
521
  }
522
+ //set PID to 0
523
+ $WORKING['PID']=0;
524
  //Excute jobrun again
525
  if (!file_exists($STATIC['TEMPDIR'].'.running'))
526
+ exit;
527
  if (is_writable($STATIC['LOGFILE']))
528
  file_put_contents($STATIC['LOGFILE'], "<span class=\"timestamp\" title=\"[Line: ".__LINE__."|File: ".basename(__FILE__)."|Mem: ".formatbytes(@memory_get_usage(true))."|Mem Max: ".formatbytes(@memory_get_peak_usage(true))."|Mem Limit: ".ini_get('memory_limit')."|PID: ".getmypid()."]\">".date('Y/m/d H:i.s',time()+$STATIC['WP']['TIMEDIFF']).":</span> <span>".$WORKING['RESTART'].'. '.__('Script stop! Will started again now!','backwpup')."</span><br />\n", FILE_APPEND);
529
+ update_working_file(true);
530
  if (!empty($STATIC['JOBRUNURL'])) {
531
+ require_once(dirname(__FILE__).'/../libs/class.http.php');
532
  $http = new Http();
533
  $http->setMethod('POST');
534
+ $http->setCookiepath($STATIC['TEMPDIR']);
535
+ $http->followRedirects(false);
536
+ if (!empty($STATIC['CFG']['httpauthuser']) and !empty($STATIC['CFG']['httpauthpassword']))
537
+ $http->setAuth($STATIC['CFG']['httpauthuser'], base64_decode($STATIC['CFG']['httpauthpassword']));
538
  $http->addParam('BackWPupJobTemp', $STATIC['TEMPDIR']);
539
  $http->addParam('nonce',$WORKING['NONCE']);
540
  $http->addParam('type', 'restart');
542
  $http->setTimeout(0.01);
543
  $http->execute($STATIC['JOBRUNURL']);
544
  }
545
+ exit;
546
  }
547
  ?>
job/job_run.php CHANGED
@@ -5,8 +5,7 @@ define('BACKWPUP_JOBRUN_FOLDER', dirname(__FILE__).'/');
5
  require_once(BACKWPUP_JOBRUN_FOLDER.'job_functions.php');
6
  //check referer
7
  if ($_SERVER["HTTP_USER_AGENT"]!='BackWPup') {
8
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
9
- header("Status: 404 Not Found");
10
  die();
11
  }
12
  //get temp dir
@@ -45,25 +44,45 @@ if (empty($STATIC) or !file_exists($STATIC['LOGFILE'])) {
45
  delete_working_file();
46
  die('No logfile found!');
47
  }
 
 
 
 
 
 
 
 
 
 
 
48
  //set timezone
49
  date_default_timezone_set('UTC');
 
 
 
50
  //set function for PHP user defineid error handling
51
  set_error_handler('joberrorhandler',E_ALL | E_STRICT);
52
  //Get type and check job runs
53
  $runningfile=get_working_file();
54
  $revtime=time()-$STATIC['CFG']['jobscriptruntimelong']-10;
55
- if ($runningfile['PID']!=getmypid() and $runningfile['timestamp']>$revtime and $_POST['type']=='restarttime') {
56
  trigger_error(__('Job restart terminated, bcause old job runs again!','backwpup'),E_USER_ERROR);
57
  die();
58
  } elseif($_POST['type']=='restarttime') {
59
  trigger_error(__('Job restarted, bcause inactivity!','backwpup'),E_USER_ERROR);
60
- } elseif ($runningfile['PID']!=getmypid() and $runningfile['PID']!=0 and $runningfile['timestamp']>$revtime) {
61
  trigger_error(sprintf(__('Second Prozess is running, bcause old job runs! Start type is %s','backwpup'),$_POST['type']),E_USER_ERROR);
62
  die();
63
  }
64
  unset($runningfile);
 
 
65
  // execute function on job shutdown
66
  register_shutdown_function('job_shutdown');
 
 
 
 
67
  //disable safe mode
68
  @ini_set('safe_mode','0');
69
  //set execution time tom max on safe mode
5
  require_once(BACKWPUP_JOBRUN_FOLDER.'job_functions.php');
6
  //check referer
7
  if ($_SERVER["HTTP_USER_AGENT"]!='BackWPup') {
8
+ header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found",true,404);
 
9
  die();
10
  }
11
  //get temp dir
44
  delete_working_file();
45
  die('No logfile found!');
46
  }
47
+ //load translation
48
+ if (is_file(dirname(__FILE__).'/../lang/backwpup-'.$STATIC['WP']['WPLANG'].'.mo')) {
49
+ require($STATIC['WP']['ABSPATH'].$STATIC['WP']['WPINC'].'/pomo/mo.php');
50
+ $TRANSLATE = &new MO();
51
+ $TRANSLATE->import_from_file(dirname(__FILE__).'/../lang/backwpup-'.$STATIC['WP']['WPLANG'].'.mo');
52
+ } else {
53
+ require($STATIC['WP']['ABSPATH'].$STATIC['WP']['WPINC'].'/pomo/translations.php');
54
+ $TRANSLATE = &new NOOP_Translations;
55
+ }
56
+ //set ticks
57
+ declare(ticks=1);
58
  //set timezone
59
  date_default_timezone_set('UTC');
60
+ // set charakter encoding
61
+ if (!@mb_internal_encoding($STATIC['WP']['CHARSET']))
62
+ mb_internal_encoding('UTF-8');
63
  //set function for PHP user defineid error handling
64
  set_error_handler('joberrorhandler',E_ALL | E_STRICT);
65
  //Get type and check job runs
66
  $runningfile=get_working_file();
67
  $revtime=time()-$STATIC['CFG']['jobscriptruntimelong']-10;
68
+ if ($WORKING['PID']!=getmypid() and $runningfile['timestamp']>$revtime and $_POST['type']=='restarttime') {
69
  trigger_error(__('Job restart terminated, bcause old job runs again!','backwpup'),E_USER_ERROR);
70
  die();
71
  } elseif($_POST['type']=='restarttime') {
72
  trigger_error(__('Job restarted, bcause inactivity!','backwpup'),E_USER_ERROR);
73
+ } elseif ($WORKING['PID']!=getmypid() and $WORKING['PID']!=0 and $runningfile['timestamp']>$revtime) {
74
  trigger_error(sprintf(__('Second Prozess is running, bcause old job runs! Start type is %s','backwpup'),$_POST['type']),E_USER_ERROR);
75
  die();
76
  }
77
  unset($runningfile);
78
+ //set Pid
79
+ $WORKING['PID']=getmypid();
80
  // execute function on job shutdown
81
  register_shutdown_function('job_shutdown');
82
+ if (function_exists('pcntl_signal')) {
83
+ pcntl_signal(SIGTERM, 'job_shutdown');
84
+ pcntl_signal(SIGKILL, 'job_shutdown');
85
+ }
86
  //disable safe mode
87
  @ini_set('safe_mode','0');
88
  //set execution time tom max on safe mode
job/job_start.php CHANGED
@@ -1,11 +1,4 @@
1
- <?PHP
2
- // don't load directly
3
- if (!defined('ABSPATH')) {
4
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
5
- header("Status: 404 Not Found");
6
- die();
7
- }
8
-
9
  function backwpup_jobstart($jobid='',$cronstart=false) {
10
  global $wpdb,$wp_version;
11
  $jobid=(int)trim($jobid);
@@ -58,7 +51,7 @@ function backwpup_jobstart($jobid='',$cronstart=false) {
58
  }
59
  }
60
  //Write running file to prevent dobble runnging
61
- file_put_contents($backwpup_static['TEMPDIR'].'.running',serialize(array('timestamp'=>time(),'JOBID'=>$jobid,'LOGFILE'=>'','PID'=>0,'STEPSPERSENT'=>0,'STEPPERSENT'=>0,'WORKING'=>'')));
62
 
63
  //Set needed WP vars
64
  $backwpup_static['WP']['DB_NAME']=DB_NAME;
@@ -77,6 +70,7 @@ function backwpup_jobstart($jobid='',$cronstart=false) {
77
  $backwpup_static['WP']['TIMEDIFF']=get_option('gmt_offset')*3600;
78
  $backwpup_static['WP']['WPLANG']=WPLANG;
79
  $backwpup_static['WP']['VERSION']=$wp_version;
 
80
  //WP folder
81
  $backwpup_static['WP']['ABSPATH']=rtrim(str_replace('\\','/',ABSPATH),'/').'/';
82
  $backwpup_static['WP']['WP_CONTENT_DIR']=rtrim(str_replace('\\','/',WP_CONTENT_DIR),'/').'/';
@@ -86,19 +80,6 @@ function backwpup_jobstart($jobid='',$cronstart=false) {
86
  $backwpup_static['WP']['WPINC']=WPINC;
87
  $backwpup_static['WP']['MULTISITE']=is_multisite();
88
  $backwpup_static['WP']['ADMINURL']=backwpup_admin_url('admin.php');
89
- //Load Translation
90
- if (!empty($backwpup_static['WP']['WPLANG']) and is_file(dirname(__FILE__).'/../lang/backwpup-'.$backwpup_static['WP']['WPLANG'].'.po')) {
91
- $file = fopen (dirname(__FILE__).'/../lang/backwpup-'.$backwpup_static['WP']['WPLANG'].'.po', "r");
92
- while (!feof($file)){
93
- $line = trim(fgets($file));
94
- if (substr($line,0,7)=='msgid "') {
95
- $msgid=md5(substr($line,7,-1));
96
- $msgstr=substr(trim(fgets($file)),8,-1);
97
- $backwpup_static['TRANSLATE'][$msgid]=$msgstr;
98
- }
99
- }
100
- fclose($file);
101
- }
102
  //Set plugin data
103
  $backwpup_static['BACKWPUP']['PLUGIN_BASEDIR']=BACKWPUP_PLUGIN_BASEDIR;
104
  $backwpup_static['BACKWPUP']['VERSION']=BACKWPUP_VERSION;
@@ -223,6 +204,7 @@ function backwpup_jobstart($jobid='',$cronstart=false) {
223
  }
224
  $backwpup_static['CRONSTART']=$cronstart;
225
  $backwpup_working['NONCE']=wp_create_nonce('BackWPupJob');
 
226
  $backwpup_working['WARNING']=0;
227
  $backwpup_working['ERROR']=0;
228
  $backwpup_working['RESTART']=0;
@@ -269,11 +251,14 @@ function backwpup_jobstart($jobid='',$cronstart=false) {
269
  foreach($backwpup_working['STEPS'] as $step)
270
  $backwpup_working[$step]['DONE']=false;
271
  //write working file
272
- file_put_contents($backwpup_static['TEMPDIR'].'.running',serialize(array('timestamp'=>time(),'JOBID'=>$backwpup_static['JOB']['jobid'],'LOGFILE'=>$backwpup_static['LOGFILE'],'PID'=>0,'STEPSPERSENT'=>0,'STEPPERSENT'=>0,'WORKING'=>$backwpup_working)));
273
  //write static file
274
  file_put_contents($backwpup_static['TEMPDIR'].'.static',serialize($backwpup_static));
275
  //Run job
276
- wp_remote_post($backwpup_static['JOBRUNURL'], array('timeout' => 0.01, 'blocking' => false, 'sslverify' => false, 'body'=>array('BackWPupJobTemp'=>$backwpup_static['TEMPDIR'], 'nonce'=>$backwpup_working['NONCE'], 'type'=>'start'), 'user-agent'=>'BackWPup'));
 
 
 
277
  return $backwpup_static['LOGFILE'];
278
  }
279
  ?>
1
+ <?PHP
 
 
 
 
 
 
 
2
  function backwpup_jobstart($jobid='',$cronstart=false) {
3
  global $wpdb,$wp_version;
4
  $jobid=(int)trim($jobid);
51
  }
52
  }
53
  //Write running file to prevent dobble runnging
54
+ file_put_contents($backwpup_static['TEMPDIR'].'.running',serialize(array('timestamp'=>time(),'JOBID'=>$jobid,'LOGFILE'=>'','STEPSPERSENT'=>0,'STEPPERSENT'=>0,'WORKING'=>array('PID'=>0))));
55
 
56
  //Set needed WP vars
57
  $backwpup_static['WP']['DB_NAME']=DB_NAME;
70
  $backwpup_static['WP']['TIMEDIFF']=get_option('gmt_offset')*3600;
71
  $backwpup_static['WP']['WPLANG']=WPLANG;
72
  $backwpup_static['WP']['VERSION']=$wp_version;
73
+ $backwpup_static['WP']['CHARSET']=get_option('blog_charset');
74
  //WP folder
75
  $backwpup_static['WP']['ABSPATH']=rtrim(str_replace('\\','/',ABSPATH),'/').'/';
76
  $backwpup_static['WP']['WP_CONTENT_DIR']=rtrim(str_replace('\\','/',WP_CONTENT_DIR),'/').'/';
80
  $backwpup_static['WP']['WPINC']=WPINC;
81
  $backwpup_static['WP']['MULTISITE']=is_multisite();
82
  $backwpup_static['WP']['ADMINURL']=backwpup_admin_url('admin.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  //Set plugin data
84
  $backwpup_static['BACKWPUP']['PLUGIN_BASEDIR']=BACKWPUP_PLUGIN_BASEDIR;
85
  $backwpup_static['BACKWPUP']['VERSION']=BACKWPUP_VERSION;
204
  }
205
  $backwpup_static['CRONSTART']=$cronstart;
206
  $backwpup_working['NONCE']=wp_create_nonce('BackWPupJob');
207
+ $backwpup_working['PID']=0;
208
  $backwpup_working['WARNING']=0;
209
  $backwpup_working['ERROR']=0;
210
  $backwpup_working['RESTART']=0;
251
  foreach($backwpup_working['STEPS'] as $step)
252
  $backwpup_working[$step]['DONE']=false;
253
  //write working file
254
+ file_put_contents($backwpup_static['TEMPDIR'].'.running',serialize(array('timestamp'=>time(),'JOBID'=>$backwpup_static['JOB']['jobid'],'LOGFILE'=>$backwpup_static['LOGFILE'],'STEPSPERSENT'=>0,'STEPPERSENT'=>0,'WORKING'=>$backwpup_working)));
255
  //write static file
256
  file_put_contents($backwpup_static['TEMPDIR'].'.static',serialize($backwpup_static));
257
  //Run job
258
+ $httpauthheader='';
259
+ if (!empty($backwpup_static['CFG']['httpauthuser']) and !empty($backwpup_static['CFG']['httpauthpassword']))
260
+ $httpauthheader="Authorization: Basic ".base64_encode($backwpup_static['CFG']['httpauthuser'].':'.base64_decode($backwpup_static['CFG']['httpauthpassword']))."\r\n";
261
+ wp_remote_post($backwpup_static['JOBRUNURL'], array('timeout' => 0.01, 'blocking' => false, 'sslverify' => false, 'headers'=>$httpauthheader ,'body'=>array('BackWPupJobTemp'=>$backwpup_static['TEMPDIR'], 'nonce'=>$backwpup_working['NONCE'], 'type'=>'start'), 'user-agent'=>'BackWPup'));
262
  return $backwpup_static['LOGFILE'];
263
  }
264
  ?>
job/wp_export.php CHANGED
@@ -1,43 +1,34 @@
1
  <?PHP
2
- if (!defined('BACKWPUP_JOBRUN_FOLDER')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function wp_export() {
9
  global $WORKING,$STATIC;
10
  $WORKING['STEPTODO']=1;
11
  trigger_error(sprintf(__('%d. try for wordpress export to XML file...','backwpup'),$WORKING['WP_EXPORT']['STEP_TRY']),E_USER_NOTICE);
12
  need_free_memory(10485760); //10MB free memory
13
- if (function_exists('curl_exec')) {
14
- $ch = curl_init();
15
- curl_setopt($ch, CURLOPT_URL, substr($STATIC['JOBRUNURL'],0,-11).'wp_export_generate.php');
16
- curl_setopt($ch, CURLOPT_COOKIESESSION, true);
17
- curl_setopt($ch, CURLOPT_COOKIE,'BackWPupJobTemp='.$STATIC['TEMPDIR'].'; path=/');
18
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
20
- curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
21
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
22
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
23
- if (defined('CURLOPT_PROGRESSFUNCTION')) {
24
- curl_setopt($ch, CURLOPT_NOPROGRESS, false);
25
- curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, 'curl_progresscallback');
26
- curl_setopt($ch, CURLOPT_BUFFERSIZE, 512);
27
- }
28
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);
29
- $return=curl_exec($ch);
30
- $status=curl_getinfo($ch);
31
- if ($status['http_code']>=300 or $status['http_code']<200 or curl_errno($ch)>0) {
32
- if (0!=curl_errno($ch))
33
- trigger_error(__('cURL:','backwpup').' ('.curl_errno($ch).') '.curl_error($ch),E_USER_ERROR);
34
- else
35
- trigger_error(__('cURL:','backwpup').' ('.$status['http_code'].') Invalid response.',E_USER_ERROR);
36
- } else {
37
- file_put_contents($STATIC['TEMPDIR'].preg_replace( '/[^a-z0-9_\-]/', '', strtolower($STATIC['WP']['BLOGNAME'])).'.wordpress.'.date( 'Y-m-d' ).'.xml', $return);
38
- }
39
- curl_close($ch);
40
- }
41
  //add XML file to backupfiles
42
  if (is_readable($STATIC['TEMPDIR'].preg_replace( '/[^a-z0-9_\-]/', '', strtolower($STATIC['WP']['BLOGNAME'])).'.wordpress.'.date( 'Y-m-d' ).'.xml')) {
43
  $filestat=stat($STATIC['TEMPDIR'].preg_replace( '/[^a-z0-9_\-]/', '', strtolower($STATIC['WP']['BLOGNAME'])).'.wordpress.'.date( 'Y-m-d' ).'.xml');
1
  <?PHP
 
 
 
 
 
 
2
  function wp_export() {
3
  global $WORKING,$STATIC;
4
  $WORKING['STEPTODO']=1;
5
  trigger_error(sprintf(__('%d. try for wordpress export to XML file...','backwpup'),$WORKING['WP_EXPORT']['STEP_TRY']),E_USER_NOTICE);
6
  need_free_memory(10485760); //10MB free memory
7
+
8
+ require_once(dirname(__FILE__).'/../libs/class.http.php');
9
+ $http = new Http();
10
+ $http->setMethod('POST');
11
+ $http->setCookiepath($STATIC['TEMPDIR']);
12
+ $http->followRedirects(false);
13
+ if (!empty($STATIC['CFG']['httpauthuser']) and !empty($STATIC['CFG']['httpauthpassword']))
14
+ $http->setAuth($STATIC['CFG']['httpauthuser'], base64_decode($STATIC['CFG']['httpauthpassword']));
15
+ $http->addParam('BackWPupJobTemp', $STATIC['TEMPDIR']);
16
+ $http->addParam('nonce',$WORKING['NONCE']);
17
+ $http->addParam('type', 'getxmlexport');
18
+ $http->setUseragent('BackWPup');
19
+ $http->setTimeout(300);
20
+ $http->setProgressFunction('curl_progresscallback');
21
+ @set_time_limit($STATIC['CFG']['jobscriptruntimelong']);
22
+ $return=$http->execute(substr($STATIC['JOBRUNURL'],0,-11).'wp_export_generate.php');
23
+ $status=$http->getStatus();
24
+ $error=$http->getError();
25
+
26
+ if ($status>=300 or $status<200 or !empty($error)) {
27
+ trigger_error(sprintf(__('XML Export (%1$d) %2$s','backwpup'),$status,$error),E_USER_ERROR);
28
+ } else {
29
+ file_put_contents($STATIC['TEMPDIR'].preg_replace( '/[^a-z0-9_\-]/', '', strtolower($STATIC['WP']['BLOGNAME'])).'.wordpress.'.date( 'Y-m-d' ).'.xml', $return);
30
+ }
31
+
 
 
 
32
  //add XML file to backupfiles
33
  if (is_readable($STATIC['TEMPDIR'].preg_replace( '/[^a-z0-9_\-]/', '', strtolower($STATIC['WP']['BLOGNAME'])).'.wordpress.'.date( 'Y-m-d' ).'.xml')) {
34
  $filestat=stat($STATIC['TEMPDIR'].preg_replace( '/[^a-z0-9_\-]/', '', strtolower($STATIC['WP']['BLOGNAME'])).'.wordpress.'.date( 'Y-m-d' ).'.xml');
job/wp_export_generate.php CHANGED
@@ -1,16 +1,19 @@
1
  <?PHP
2
- if (is_writable(trim($_COOKIE['BackWPupJobTemp']).'.running'))
3
- $runningfile=file_get_contents(trim($_COOKIE['BackWPupJobTemp']).'.running');
 
 
 
 
 
 
 
4
  $infile=array();
5
  if (!empty($runningfile))
6
  $infile=unserialize(trim($runningfile));
7
- if (file_exists($infile['ABSPATH'].'wp-load.php')) {
8
  require_once($infile['ABSPATH'].'wp-load.php'); /** Setup WordPress environment */
9
  require_once($infile['ABSPATH'].'wp-admin/includes/export.php');
10
  export_wp();
11
- } else {
12
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
13
- header("Status: 404 Not Found");
14
- die();
15
- }
16
  ?>
1
  <?PHP
2
+ define('DONOTCACHEPAGE', true);
3
+ define('DONOTCACHEDB', true);
4
+ define('DONOTMINIFY', true);
5
+ define('DONOTCDN', true);
6
+ define('DONOTCACHCEOBJECT', true);
7
+ define('W3TC_IN_MINIFY',false); //W3TC will not loaded
8
+
9
+ if (is_writable(trim($_POST['BackWPupJobTemp']).'.running'))
10
+ $runningfile=file_get_contents(trim($_POST['BackWPupJobTemp']).'.running');
11
  $infile=array();
12
  if (!empty($runningfile))
13
  $infile=unserialize(trim($runningfile));
14
+ if (file_exists($infile['ABSPATH'].'wp-load.php') and $_POST['nonce']==$infile['WORKING']['NONCE'] and $_POST['type']=='getxmlexport') {
15
  require_once($infile['ABSPATH'].'wp-load.php'); /** Setup WordPress environment */
16
  require_once($infile['ABSPATH'].'wp-admin/includes/export.php');
17
  export_wp();
18
+ }
 
 
 
 
19
  ?>
lang/backwpup.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the BackWPup package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: BackWPup 2.0.5\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/backwpup\n"
7
- "POT-Creation-Date: 2011-07-22 20:16:29+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,2130 +12,2140 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: job/file_list.php:12
16
- msgid "%d. try for make list of files to backup...."
17
  msgstr ""
18
 
19
- #: job/file_list.php:69
20
- msgid "No files to backup"
 
 
 
21
  msgstr ""
22
 
23
- #: job/file_list.php:71
24
- msgid "%1$d files with %2$s to backup"
25
  msgstr ""
26
 
27
- #: job/file_list.php:94
28
- msgid "File or folder \"%s\" is not readable!"
29
  msgstr ""
30
 
31
- #: job/file_list.php:96
32
- msgid "Link \"%s\" not followed"
33
  msgstr ""
34
 
35
- #: job/file_list.php:102
36
- msgid "\"%s\" is not a file or directory"
37
  msgstr ""
38
 
39
- #: job/job_run.php:56
40
- msgid "Job restart terminated, bcause old job runs again!"
41
  msgstr ""
42
 
43
- #: job/job_run.php:59
44
- msgid "Job restarted, bcause inactivity!"
 
 
45
  msgstr ""
46
 
47
- #: job/job_run.php:61
48
- msgid "Second Prozess is running, bcause old job runs! Start type is %s"
 
49
  msgstr ""
50
 
51
- #: job/job_run.php:87
52
- msgid "Can not find job step file: %s"
53
  msgstr ""
54
 
55
- #: job/job_run.php:95
56
- msgid ""
57
- "[INFO]: BackWPup version %1$s, WordPress version %4$s Copyright &copy; %2$s %"
58
- "3$s"
59
  msgstr ""
60
 
61
- #: job/job_run.php:96
62
- msgid ""
63
- "[INFO]: BackWPup comes with ABSOLUTELY NO WARRANTY. This is free software, "
64
- "and you are welcome to redistribute it under certain conditions."
65
  msgstr ""
66
 
67
- #: job/job_run.php:97
68
- msgid "[INFO]: BackWPup job:"
69
  msgstr ""
70
 
71
- #: job/job_run.php:99
72
- msgid "[INFO]: BackWPup cron:"
73
  msgstr ""
74
 
75
- #: job/job_run.php:101
76
- msgid "[INFO]: BackWPup job strated by cron"
77
  msgstr ""
78
 
79
- #: job/job_run.php:103
80
- msgid "[INFO]: BackWPup job strated manualy"
81
  msgstr ""
82
 
83
- #: job/job_run.php:104
84
- msgid "[INFO]: PHP ver.:"
85
  msgstr ""
86
 
87
- #: job/job_run.php:106
88
- msgid "[INFO]: PHP Safe mode is ON! Maximum script execution time is %1$d sec."
 
89
  msgstr ""
90
 
91
- #: job/job_run.php:107
92
- msgid "[INFO]: MySQL ver.:"
93
  msgstr ""
94
 
95
- #: job/job_run.php:110
96
- msgid "[INFO]: curl ver.:"
97
  msgstr ""
98
 
99
- #: job/job_run.php:112
100
- msgid "[INFO]: Temp folder is:"
101
  msgstr ""
102
 
103
- #: job/job_run.php:114
104
- msgid "[INFO]: Backup file is:"
105
  msgstr ""
106
 
107
- #: job/job_run.php:125
108
- msgid "No destination defineid for backup!!! Please correct job settings"
109
  msgstr ""
110
 
111
- #: job/job_run.php:147
112
- msgid "Step arborted has too many trys!"
113
  msgstr ""
114
 
115
- #: job/job_run.php:149
116
- msgid "Can not find job step function %s!"
117
  msgstr ""
118
 
119
- #: job/dest_msazure.php:11
120
- msgid "%d. try sending backup to a Microsoft Azure (Blob)..."
121
  msgstr ""
122
 
123
- #: job/dest_msazure.php:20
124
- msgid "Microsoft Azure container \"%s\" not exists!"
 
 
125
  msgstr ""
126
 
127
- #: job/dest_msazure.php:23
128
- msgid "Connected to Microsoft Azure container \"%s\""
129
  msgstr ""
130
 
131
- #: job/dest_msazure.php:26
132
- msgid "Upload to MS Azure now started... "
133
  msgstr ""
134
 
135
- #: job/dest_msazure.php:32
136
- msgid "Backup transferred to azure://%s"
137
  msgstr ""
138
 
139
- #: job/dest_msazure.php:35
140
- msgid "Can not transfer backup to Microsoft Azure!"
141
  msgstr ""
142
 
143
- #: job/dest_msazure.php:56
144
- msgid "One file deleted on Microsoft Azure container"
145
- msgid_plural "%d files deleted on Microsoft Azure container"
146
- msgstr[0] ""
147
- msgstr[1] ""
148
-
149
- #: job/dest_msazure.php:61
150
- msgid "Microsoft Azure API: %s"
151
  msgstr ""
152
 
153
- #: job/backup_create.php:19
154
- msgid "%d. try to create backup zip archive..."
155
  msgstr ""
156
 
157
- #: job/backup_create.php:24
158
- msgid "Can not add \"%s\" to zip archive!"
159
  msgstr ""
160
 
161
- #: job/backup_create.php:31
162
- msgid "(4) ER_SEEK"
163
  msgstr ""
164
 
165
- #: job/backup_create.php:33
166
- msgid "(5) ER_READ"
167
  msgstr ""
168
 
169
- #: job/backup_create.php:35
170
- msgid "(9) ER_NOENT"
171
  msgstr ""
172
 
173
- #: job/backup_create.php:37
174
- msgid "(10) ER_EXISTS"
175
  msgstr ""
176
 
177
- #: job/backup_create.php:39
178
- msgid "(11) ER_OPEN"
 
179
  msgstr ""
180
 
181
- #: job/backup_create.php:41
182
- msgid "(14) ER_MEMORY"
183
  msgstr ""
184
 
185
- #: job/backup_create.php:43
186
- msgid "(18) ER_INVAL"
187
  msgstr ""
188
 
189
- #: job/backup_create.php:45
190
- msgid "(19) ER_NOZIP"
191
  msgstr ""
192
 
193
- #: job/backup_create.php:47
194
- msgid "(21) ER_INCONS"
195
  msgstr ""
196
 
197
- #: job/backup_create.php:48
198
- msgid "Zip returns status: %s"
199
  msgstr ""
200
 
201
- #: job/backup_create.php:52
202
- msgid "Backup zip archive create done!"
203
  msgstr ""
204
 
205
- #: job/backup_create.php:55
206
- msgid "Can not create backup zip archive $s!"
207
  msgstr ""
208
 
209
- #: job/backup_create.php:62
210
- msgid "%d. try to create backup zip (PclZip) archive..."
211
  msgstr ""
212
 
213
- #: job/backup_create.php:71
214
- msgid "Zip archive create error: %s"
215
  msgstr ""
216
 
217
- #: job/backup_create.php:75
218
- msgid "Backup zip archive create done"
219
  msgstr ""
220
 
221
- #: job/backup_create.php:90
222
- msgid "Can not create tar arcive file!"
 
 
223
  msgstr ""
224
 
225
- #: job/backup_create.php:93
226
- msgid "%1$d. try to create %2$s archive file..."
227
  msgstr ""
228
 
229
- #: job/backup_create.php:101
230
- msgid "File \"%s\" not readable!"
231
  msgstr ""
232
 
233
- #: job/backup_create.php:116
234
- msgid "File name \"%1$s\" to long to save corectly in %2$s archive!"
235
  msgstr ""
236
 
237
- #: job/backup_create.php:118
238
- msgid "File path \"%1$s\" to long to save corectly in %2$s archive!"
239
  msgstr ""
240
 
241
- #: job/backup_create.php:195
242
- msgid "%s archive creation done"
243
  msgstr ""
244
 
245
- #: job/backup_create.php:199
246
- msgid "Archive size is %s"
247
  msgstr ""
248
 
249
- #: job/backup_create.php:206
250
- msgid "PCL ZIP Error \"%1$s\" on file %2$s!"
251
  msgstr ""
252
 
253
- #: job/job_functions.php:56 job/job_functions.php:69 job/db_optimize.php:21
254
- #: job/db_check.php:23 job/db_check.php:38 job/db_dump.php:21
255
- #: job/db_dump.php:106 job/db_dump.php:116
256
- msgid "Database error %1$s for query %2$s"
257
  msgstr ""
258
 
259
- #: job/job_functions.php:107
260
- msgid "PHP Safe mode is on!!! Can not increase memory limit is %s"
261
  msgstr ""
262
 
263
- #: job/job_functions.php:134
264
- msgid "Memory increased from %1$s to %2$s"
265
  msgstr ""
266
 
267
- #: job/job_functions.php:136
268
- msgid "Can not increase memory limit is %1$s"
269
  msgstr ""
270
 
271
- #: job/job_functions.php:146
272
- msgid "Set Blog to maintenance mode"
273
  msgstr ""
274
 
275
- #: job/job_functions.php:160
276
- msgid "Cannot set Blog to maintenance mode! Root folder is not writeable!"
277
  msgstr ""
278
 
279
- #: job/job_functions.php:163
280
- msgid "Set Blog to normal mode"
281
  msgstr ""
282
 
283
- #: job/job_functions.php:241
284
- msgid "No MySQL connection: %s"
285
  msgstr ""
286
 
287
- #: job/job_functions.php:256
288
- msgid "No MySQL connection to database: %s"
289
  msgstr ""
290
 
291
- #: job/job_functions.php:280
292
- msgid "[WARNING]"
293
  msgstr ""
294
 
295
- #: job/job_functions.php:286
296
- msgid "[ERROR]"
297
  msgstr ""
298
 
299
- #: job/job_functions.php:290
300
- msgid "[DEPRECATED]"
301
  msgstr ""
302
 
303
- #: job/job_functions.php:293
304
- msgid "[STRICT NOTICE]"
305
  msgstr ""
306
 
307
- #: job/job_functions.php:296
308
- msgid "[RECOVERABLE ERROR]"
309
- msgstr ""
 
 
310
 
311
- #: job/job_functions.php:373
312
- msgid "One old log deleted"
313
- msgid_plural "%d old logs deleted"
314
  msgstr[0] ""
315
  msgstr[1] ""
316
 
317
- #: job/job_functions.php:377
318
- msgid "Job done in %s sec."
319
  msgstr ""
320
 
321
- #: job/job_functions.php:477
322
- msgid "Jobname: %s"
323
  msgstr ""
324
 
325
- #: job/job_functions.php:478
326
- msgid "Jobtype: %s"
 
 
 
327
  msgstr ""
328
 
329
- #: job/job_functions.php:480
330
- msgid "Errors: %d"
331
  msgstr ""
332
 
333
- #: job/job_functions.php:482
334
- msgid "Warnings: %d"
335
  msgstr ""
336
 
337
- #: job/job_functions.php:487
338
- msgid "BackWPup log from %1$s: %2$s"
 
 
339
  msgstr ""
340
 
341
- #: job/job_functions.php:512
342
- msgid "To many restarts...."
343
  msgstr ""
344
 
345
- #: job/job_functions.php:549
346
- msgid "Script stop! Will started again now!"
347
  msgstr ""
348
 
349
- #: job/dest_folder.php:31
350
- msgid "One backup file deleted"
351
- msgid_plural "%d backup files deleted"
352
- msgstr[0] ""
353
- msgstr[1] ""
354
 
355
- #: job/dest_dropbox.php:12
356
- msgid "%d. Try to sending backup file to DropBox..."
357
  msgstr ""
358
 
359
- #: job/dest_dropbox.php:21 job/dest_dropbox.php:24
360
- msgid "oAuth sign method for DropBox is %s"
361
  msgstr ""
362
 
363
- #: job/dest_dropbox.php:21 pages/func_backwpupeditjob.php:364
364
- msgid "PLAINTEXT"
365
  msgstr ""
366
 
367
- #: job/dest_dropbox.php:24 pages/func_backwpupeditjob.php:363
368
- msgid "HMAC-SHA1"
369
  msgstr ""
370
 
371
- #: job/dest_dropbox.php:33
372
- msgid "Authed with DropBox from %s"
373
  msgstr ""
374
 
375
- #: job/dest_dropbox.php:38
376
- msgid "No free space left on DropBox!!!"
377
  msgstr ""
378
 
379
- #: job/dest_dropbox.php:42
380
- msgid "%s free on DropBox"
381
  msgstr ""
382
 
383
- #: job/dest_dropbox.php:47
384
- msgid "Upload to DropBox now started... "
385
  msgstr ""
386
 
387
- #: job/dest_dropbox.php:54
388
- msgid "Backup transferred to DropBox://%s"
389
  msgstr ""
390
 
391
- #: job/dest_dropbox.php:56
392
- msgid "Error on transfere backup to DropBox: %s"
393
  msgstr ""
394
 
395
- #: job/dest_dropbox.php:62 job/dest_dropbox.php:87
396
- msgid "DropBox API: %s"
397
  msgstr ""
398
 
399
- #: job/dest_dropbox.php:83
400
- msgid "One file deleted on DropBox"
401
- msgid_plural "%d files deleted on DropBox"
402
- msgstr[0] ""
403
- msgstr[1] ""
404
 
405
- #: job/wp_export.php:11
406
- msgid "%d. try for wordpress export to XML file..."
407
  msgstr ""
408
 
409
- #: job/wp_export.php:33 job/wp_export.php:35
410
- msgid "cURL:"
411
  msgstr ""
412
 
413
- #: job/wp_export.php:44
414
- msgid "Add XML export \"%1$s\" to backup list with %2$s"
415
  msgstr ""
416
 
417
- #: job/job_start.php:22
418
- msgid "A job already running!"
419
  msgstr ""
420
 
421
- #: job/job_start.php:31
422
- msgid "Can not create temp folder: %s"
423
  msgstr ""
424
 
425
- #: job/job_start.php:36
426
- msgid "Temp dir not writeable"
427
  msgstr ""
428
 
429
- #: job/job_start.php:134
430
- msgid "Can not create folder for log files: %s"
431
  msgstr ""
432
 
433
- #: job/job_start.php:149
434
- msgid "Log folder not writeable!"
435
  msgstr ""
436
 
437
- #: job/job_start.php:173
438
- msgid "BackWPup log for %1$s from %2$s at %3$s"
439
  msgstr ""
440
 
441
- #: job/job_start.php:201
442
- msgid "Can not create folder for backups: %1$s"
 
 
443
  msgstr ""
444
 
445
- #: job/job_start.php:218
446
- msgid "Backup folder not writeable!"
447
  msgstr ""
448
 
449
- #: job/db_optimize.php:10
450
- msgid "%d. try for database optimize..."
451
  msgstr ""
452
 
453
- #: job/db_optimize.php:28 job/db_optimize.php:30 job/db_optimize.php:32
454
- msgid "Result of table optimize for %1$s is: %2$s"
455
  msgstr ""
456
 
457
- #: job/db_optimize.php:34
458
- msgid "Database optimize done!"
459
  msgstr ""
460
 
461
- #: job/db_optimize.php:37
462
- msgid "No tables to optimize"
463
  msgstr ""
464
 
465
- #: job/dest_rsc.php:10
466
- msgid "Try to sending backup file to Rackspace Cloud..."
467
  msgstr ""
468
 
469
- #: job/dest_rsc.php:19
470
- msgid "Connected to Rackspase ..."
471
  msgstr ""
472
 
473
- #: job/dest_rsc.php:35 job/dest_rsc.php:69 job/dest_rsc.php:98
474
- msgid "Rackspase Cloud API:"
475
  msgstr ""
476
 
477
- #: job/dest_rsc.php:40
478
- msgid "Rackspase Cloud Container not exists:"
479
  msgstr ""
480
 
481
- #: job/dest_rsc.php:59
482
- msgid "Upload to RSC now started ... "
483
  msgstr ""
484
 
485
- #: job/dest_rsc.php:63
486
- msgid "Backup File transferred to RSC://"
 
487
  msgstr ""
488
 
489
- #: job/dest_rsc.php:66
490
- msgid "Can not transfer backup to RSC."
491
  msgstr ""
492
 
493
- #: job/dest_rsc.php:91
494
- msgid "Can not delete file on RSC://"
495
  msgstr ""
496
 
497
- #: job/dest_rsc.php:94
498
- msgid "One file deleted on RSC container"
499
- msgid_plural "%d files deleted on RSC container"
500
- msgstr[0] ""
501
- msgstr[1] ""
502
 
503
- #: job/dest_sugarsync.php:12
504
- msgid "%d. try sending backup to SugarSync..."
505
  msgstr ""
506
 
507
- #: job/dest_sugarsync.php:21
508
- msgid "Authed to SugarSync with Nick %s"
509
  msgstr ""
510
 
511
- #: job/dest_sugarsync.php:25
512
- msgid "No free space left on SugarSync!!!"
513
  msgstr ""
514
 
515
- #: job/dest_sugarsync.php:30
516
- msgid "%s free on SugarSync"
517
  msgstr ""
518
 
519
- #: job/dest_sugarsync.php:37
520
- msgid "Upload to SugarSync now started... "
521
  msgstr ""
522
 
523
- #: job/dest_sugarsync.php:43
524
- msgid "Backup transferred to SugarSync://%s"
525
  msgstr ""
526
 
527
- #: job/dest_sugarsync.php:45
528
- msgid "Can not transfer backup to SugarSync!"
 
529
  msgstr ""
530
 
531
- #: job/dest_sugarsync.php:68
532
- msgid "One file deleted on SugarSync folder"
533
- msgid_plural "%d files deleted on SugarSync folder"
534
- msgstr[0] ""
535
- msgstr[1] ""
536
 
537
- #: job/dest_sugarsync.php:72
538
- msgid "SugarSync API: %s"
539
  msgstr ""
540
 
541
- #: job/dest_s3.php:10
542
- msgid "%d. try sending backup file to Amazon S3..."
543
  msgstr ""
544
 
545
- #: job/dest_s3.php:20
546
- msgid "Connected to S3 Bucket: %s"
547
  msgstr ""
548
 
549
- #: job/dest_s3.php:32
550
- msgid "Upload to Amazon S3 now started... "
 
 
551
  msgstr ""
552
 
553
- #: job/dest_s3.php:35
554
- msgid "Backup transferred to S3://%s"
555
  msgstr ""
556
 
557
- #: job/dest_s3.php:38
558
- msgid "Can not transfer backup to S3!"
 
 
559
  msgstr ""
560
 
561
- #: job/dest_s3.php:41
562
- msgid "S3 Bucket \"%s\" not exists!"
563
  msgstr ""
564
 
565
- #: job/dest_s3.php:44 job/dest_s3.php:73
566
- msgid "Amazon API: %s"
567
  msgstr ""
568
 
569
- #: job/dest_s3.php:65
570
- msgid "Can not delete backup on S3://%s"
571
  msgstr ""
572
 
573
- #: job/dest_s3.php:68
574
- msgid "One file deleted on S3 Bucket"
575
- msgid_plural "%d files deleted on S3 Bucket"
576
- msgstr[0] ""
577
- msgstr[1] ""
578
 
579
- #: job/dest_mail.php:12
580
- msgid "%d. try to sending backup with mail..."
581
  msgstr ""
582
 
583
- #: job/dest_mail.php:28
584
- msgid "Send mail with SMTP"
585
  msgstr ""
586
 
587
- #: job/dest_mail.php:32
588
- msgid "Send mail with Sendmail"
589
  msgstr ""
590
 
591
- #: job/dest_mail.php:35
592
- msgid "Send mail with PHP mail"
593
  msgstr ""
594
 
595
- #: job/dest_mail.php:38
596
- msgid "Creating mail"
 
 
597
  msgstr ""
598
 
599
- #: job/dest_mail.php:42
600
- msgid "BackWPup archive from %1$s: %2$s"
 
601
  msgstr ""
602
 
603
- #: job/dest_mail.php:44
604
- msgid "Backup archive: %s"
 
605
  msgstr ""
606
 
607
- #: job/dest_mail.php:50
608
- msgid "Backup archive too big for sending by mail!"
609
  msgstr ""
610
 
611
- #: job/dest_mail.php:57
612
- msgid "Adding backup archive to mail"
 
613
  msgstr ""
614
 
615
- #: job/dest_mail.php:61
616
- msgid "Send mail...."
617
  msgstr ""
618
 
619
- #: job/dest_mail.php:64
620
- msgid "Error \"%s\" on sending mail!"
621
  msgstr ""
622
 
623
- #: job/dest_mail.php:67
624
- msgid "Mail send!!!"
625
  msgstr ""
626
 
627
- #: job/db_check.php:10
628
- msgid "%d. try for database check..."
 
 
 
 
 
 
 
629
  msgstr ""
630
 
631
- #: job/db_check.php:28 job/db_check.php:30 job/db_check.php:32
632
- msgid "Result of table check for %1$s is: %2$s"
633
  msgstr ""
634
 
635
- #: job/db_check.php:43 job/db_check.php:45 job/db_check.php:47
636
- msgid "Result of table repair for %1$s is: %2$s"
637
  msgstr ""
638
 
639
- #: job/db_check.php:53
640
- msgid "Database check done!"
641
  msgstr ""
642
 
643
- #: job/db_check.php:55
644
- msgid "No tables to check"
645
  msgstr ""
646
 
647
- #: job/dest_gstorage.php:12
648
- msgid "%d. try sending backup to Google Storage..."
 
 
649
  msgstr ""
650
 
651
- #: job/dest_gstorage.php:20
652
- msgid "Connected to Google storage bucket: %s"
 
 
 
653
  msgstr ""
654
 
655
- #: job/dest_gstorage.php:31
656
- msgid "Upload to Google storage now started..."
657
  msgstr ""
658
 
659
- #: job/dest_gstorage.php:36
660
- msgid "Backup transferred to GSTORAGE://%s"
661
  msgstr ""
662
 
663
- #: job/dest_gstorage.php:39
664
- msgid "Error \"%s\" on transfer backup to Google storage!"
665
  msgstr ""
666
 
667
- #: job/dest_gstorage.php:42
668
- msgid "Error \"%s\" on connect to Google Storage bucket"
669
  msgstr ""
670
 
671
- #: job/dest_gstorage.php:45 job/dest_gstorage.php:72
672
- msgid "Google Storage API: %s"
673
  msgstr ""
674
 
675
- #: job/dest_gstorage.php:67
676
- msgid "One file deleted on Google Storage bucket"
677
- msgid_plural "%d files deleted on Google Storage bucket"
678
- msgstr[0] ""
679
- msgstr[1] ""
 
 
680
 
681
- #: job/db_dump.php:11
682
- msgid "%d. try for database dump..."
683
  msgstr ""
684
 
685
- #: job/db_dump.php:54
686
- msgid "Dump database table \"%s\""
687
  msgstr ""
688
 
689
- #: job/db_dump.php:71
690
- msgid "Database dump done!"
691
  msgstr ""
692
 
693
- #: job/db_dump.php:73
694
- msgid "Can not create database dump!"
695
  msgstr ""
696
 
697
- #: job/db_dump.php:76
698
- msgid "No tables to dump"
699
  msgstr ""
700
 
701
- #: job/db_dump.php:82
702
- msgid "Add database dump \"%1$s\" with %2$s to backup file list"
703
  msgstr ""
704
 
705
- #: job/dest_ftp.php:15
706
- msgid "%d. try to sending backup file to a FTP Server..."
707
  msgstr ""
708
 
709
- #: job/dest_ftp.php:23
710
- msgid "Connected by SSL-FTP to Server: %s"
711
  msgstr ""
712
 
713
- #: job/dest_ftp.php:25
714
- msgid "Can not connect by SSL-FTP to Server: %s"
715
  msgstr ""
716
 
717
- #: job/dest_ftp.php:29
718
- msgid "PHP function to connect with SSL-FTP to server not exists!"
 
 
 
 
719
  msgstr ""
720
 
721
- #: job/dest_ftp.php:35
722
- msgid "Connected to FTP server: %s"
723
  msgstr ""
724
 
725
- #: job/dest_ftp.php:37
726
- msgid "Can not connect to FTP server: %s"
727
  msgstr ""
728
 
729
- #: job/dest_ftp.php:44 job/dest_ftp.php:51 job/dest_ftp.php:63
730
- #: job/dest_ftp.php:76
731
- msgid "FTP Client command: %s"
732
  msgstr ""
733
 
734
- #: job/dest_ftp.php:46 job/dest_ftp.php:49 job/dest_ftp.php:53
735
- #: job/dest_ftp.php:66 job/dest_ftp.php:68 job/dest_ftp.php:71
736
- #: job/dest_ftp.php:73 job/dest_ftp.php:79 job/dest_ftp.php:81
737
- msgid "FTP Server reply: %s"
738
  msgstr ""
739
 
740
- #: job/dest_ftp.php:66
741
- msgid "Entering Passive Mode"
742
  msgstr ""
743
 
744
- #: job/dest_ftp.php:68
745
- msgid "Can not Entering Passive Mode"
746
  msgstr ""
747
 
748
- #: job/dest_ftp.php:71
749
- msgid "Entering Normal Mode"
750
  msgstr ""
751
 
752
- #: job/dest_ftp.php:73
753
- msgid "Can not Entering Normal Mode"
 
 
754
  msgstr ""
755
 
756
- #: job/dest_ftp.php:81
757
- msgid "Error getting SYSTYPE"
758
  msgstr ""
759
 
760
- #: job/dest_ftp.php:91
761
- msgid "FTP Folder \"%s\" created!"
762
  msgstr ""
763
 
764
- #: job/dest_ftp.php:94
765
- msgid "FTP Folder \"%s\" can not created!"
766
  msgstr ""
767
 
768
- #: job/dest_ftp.php:99
769
- msgid "Upload to FTP now started ... "
770
  msgstr ""
771
 
772
- #: job/dest_ftp.php:103
773
- msgid "Backup transferred to FTP server: %s"
774
  msgstr ""
775
 
776
- #: job/dest_ftp.php:106
777
- msgid "Can not transfer backup to FTP server!"
778
  msgstr ""
779
 
780
- #: job/dest_ftp.php:123
781
- msgid "Can not delete \"%s\" on FTP server!"
782
  msgstr ""
783
 
784
- #: job/dest_ftp.php:126
785
- msgid "One file deleted on FTP Server"
786
- msgid_plural "%d files deleted on FTP Server"
787
- msgstr[0] ""
788
- msgstr[1] ""
789
-
790
- #: pages/page_backwpupbackups.php:10
791
- msgid "BackWPup Manage Backups"
792
  msgstr ""
793
 
794
- #: pages/tools/db_restore.php:36 pages/tools/db_restore.php:55
795
- #: pages/tools/db_restore.php:70 pages/tools/db_restore.php:81
796
- #: pages/tools/db_restore.php:84 pages/tools/db_restore.php:87
797
- #: pages/tools/db_restore.php:92
798
- msgid "ERROR:"
799
  msgstr ""
800
 
801
- #: pages/tools/db_restore.php:36
802
- msgid "Pleace set <i>$table_prefix = '%1$s';</i> in wp-config.php"
803
  msgstr ""
804
 
805
- #: pages/tools/db_restore.php:55
806
- msgid "Pleace set <i>define('DB_CHARSET', '%1$s');</i> in wp-config.php"
807
  msgstr ""
808
 
809
- #: pages/tools/db_restore.php:70 pages/tools/db_restore.php:81
810
- #: pages/tools/db_restore.php:84 pages/tools/db_restore.php:87
811
- #: pages/tools/db_restore.php:92
812
- msgid "BackWPup database error %1$s for query %2$s"
813
  msgstr ""
814
 
815
- #: pages/tools/db_restore.php:76
816
- msgid "%1$s Database Querys done."
817
  msgstr ""
818
 
819
- #: pages/tools/db_restore.php:77
820
- msgid "Make changes for Blogurl and ABSPATH if needed."
 
 
821
  msgstr ""
822
 
823
- #: pages/tools/db_restore.php:94
824
- msgid "Restore Done. Please delete the SQL file after Restore."
825
  msgstr ""
826
 
827
- #: pages/page_backwpuplogs.php:10 backwpup-functions.php:473
828
- msgid "BackWPup Logs"
829
  msgstr ""
830
 
831
- #: pages/func_backwpuplogs.php:74
832
- msgid "No Logs."
833
  msgstr ""
834
 
835
- #: pages/func_backwpuplogs.php:79 pages/func_backwpuplogs.php:133
836
- #: pages/func_backwpup.php:53 pages/func_backwpup.php:109
837
- #: pages/func_backwpupeditjob.php:31 pages/func_backwpupbackups.php:136
838
- #: pages/func_backwpupbackups.php:233
839
- msgid "Delete"
840
  msgstr ""
841
 
842
- #: pages/func_backwpuplogs.php:86
843
- msgid "Job"
844
  msgstr ""
845
 
846
- #: pages/func_backwpuplogs.php:87 pages/func_backwpup.php:63
847
- #: pages/func_backwpupeditjob.php:177
848
- msgid "Type"
849
  msgstr ""
850
 
851
- #: pages/func_backwpuplogs.php:88
852
- msgid "Backup/Log Date/Time"
853
  msgstr ""
854
 
855
- #: pages/func_backwpuplogs.php:89
856
- msgid "Status"
857
  msgstr ""
858
 
859
- #: pages/func_backwpuplogs.php:90 pages/func_backwpupbackups.php:190
860
- msgid "Size"
861
  msgstr ""
862
 
863
- #: pages/func_backwpuplogs.php:91
864
- msgid "Runtime"
865
  msgstr ""
866
 
867
- #: pages/func_backwpuplogs.php:130
868
- msgid "View log"
869
  msgstr ""
870
 
871
- #: pages/func_backwpuplogs.php:132
872
- msgid "View"
873
  msgstr ""
874
 
875
- #: pages/func_backwpuplogs.php:134 pages/func_backwpup.php:155
876
- #: pages/func_backwpupbackups.php:234
877
- msgid "Download"
878
  msgstr ""
879
 
880
- #: pages/func_backwpuplogs.php:141 backwpup-functions.php:395
881
- msgid "%d ERROR"
882
- msgid_plural "%d ERRORS"
883
- msgstr[0] ""
884
- msgstr[1] ""
885
 
886
- #: pages/func_backwpuplogs.php:143 backwpup-functions.php:397
887
- msgid "%d WARNING"
888
- msgid_plural "%d WARNINGS"
889
- msgstr[0] ""
890
- msgstr[1] ""
891
 
892
- #: pages/func_backwpuplogs.php:145 backwpup-functions.php:399
893
- msgid "O.K."
894
  msgstr ""
895
 
896
- #: pages/func_backwpuplogs.php:153
897
- msgid "only Log"
898
  msgstr ""
899
 
900
- #: pages/func_backwpuplogs.php:159 pages/func_backwpup.php:134
901
- #: pages/func_backwpup.php:150 pages/page_backwpupsettings.php:127
902
- #: pages/page_backwpupsettings.php:133
903
- msgid "sec."
904
  msgstr ""
905
 
906
- #: pages/header_backwpupworking.php:14
907
- msgid "A job alredy running!!! Pleace try again if its done."
908
  msgstr ""
909
 
910
- #: pages/header_backwpupworking.php:26
911
- msgid "A job is running!!!"
912
  msgstr ""
913
 
914
- #: pages/header_backwpupworking.php:30
915
- msgid "Nothing..."
916
  msgstr ""
917
 
918
- #: pages/header_backwpupworking.php:35
919
- msgid "Here you see working jobs or logfiles"
920
  msgstr ""
921
 
922
- #: pages/page_backwpupworking.php:11
923
- msgid "BackWPup Working"
924
  msgstr ""
925
 
926
- #: pages/page_backwpupworking.php:31
927
- msgid "Warnings:"
928
  msgstr ""
929
 
930
- #: pages/page_backwpupworking.php:35
931
- msgid "Errors:"
932
  msgstr ""
933
 
934
- #: pages/page_backwpup.php:10
935
- msgid "BackWPup Jobs"
936
  msgstr ""
937
 
938
- #: pages/page_backwpup.php:10 backwpup-functions.php:13
939
- msgid "Add New"
940
  msgstr ""
941
 
942
- #: pages/page_backwpuptools.php:10
943
- msgid "BackWPup Tools"
944
  msgstr ""
945
 
946
- #: pages/page_backwpuptools.php:17
947
- msgid "Database restore"
948
  msgstr ""
949
 
950
- #: pages/page_backwpuptools.php:20
951
- msgid "DB Restore"
952
  msgstr ""
953
 
954
- #: pages/page_backwpuptools.php:23 pages/page_backwpuptools.php:42
955
- msgid "Restore"
956
  msgstr ""
957
 
958
- #: pages/page_backwpuptools.php:39
959
- msgid "SQL File to restore:"
960
  msgstr ""
961
 
962
- #: pages/page_backwpuptools.php:45
963
- msgid "Copy SQL file to blog root folder to use for a restoration."
964
  msgstr ""
965
 
966
- #: pages/page_backwpuptools.php:53
967
- msgid "Import Jobs settings"
968
  msgstr ""
969
 
970
- #: pages/page_backwpuptools.php:56
971
- msgid "Select file to import:"
972
  msgstr ""
973
 
974
- #: pages/page_backwpuptools.php:58 pages/page_backwpuptools.php:63
975
- msgid "Upload"
976
  msgstr ""
977
 
978
- #: pages/page_backwpuptools.php:64
979
- msgid "Select jobs to import"
 
 
 
980
  msgstr ""
981
 
982
- #: pages/page_backwpuptools.php:68
983
- msgid "Import Type"
984
  msgstr ""
985
 
986
- #: pages/page_backwpuptools.php:68
987
- msgid "No Import"
988
  msgstr ""
989
 
990
- #: pages/page_backwpuptools.php:70
991
- msgid "Overwrite"
992
  msgstr ""
993
 
994
- #: pages/page_backwpuptools.php:70
995
- msgid "Append"
996
  msgstr ""
997
 
998
- #: pages/page_backwpuptools.php:72 pages/page_backwpuptools.php:77
999
- #: pages/page_backwpuptools.php:79 pages/page_backwpuptools.php:80
1000
- msgid "Import"
1001
  msgstr ""
1002
 
1003
- #: pages/page_backwpuptools.php:116
1004
- msgid "Jobs imported!"
1005
  msgstr ""
1006
 
1007
- #: pages/header_backwpupsettings.php:54
1008
- msgid "Settings saved"
1009
  msgstr ""
1010
 
1011
- #: pages/header_backwpuplogs.php:61
1012
- msgid ""
1013
- "Here you can mange the log files of the jobs. You can download, view or "
1014
- "delete them."
1015
  msgstr ""
1016
 
1017
- #: pages/header_backwpuplogs.php:63 pages/header_backwpupbackups.php:361
1018
- #: pages/page_backwpupsettings.php:81 backwpup-functions.php:17
1019
- #: backwpup-functions.php:488
1020
- msgid "Logs"
1021
  msgstr ""
1022
 
1023
- #: pages/header_backwpupbackups.php:149 pages/func_backwpupbackups.php:505
1024
- msgid "Login failure!"
1025
  msgstr ""
1026
 
1027
- #: pages/header_backwpupbackups.php:359
1028
- msgid ""
1029
- "Here you see a list of backup files. Change the destionation to jobname:"
1030
- "destination to become a list of backups from other destinations and jobs. "
1031
- "Then you kann delete or download backup files."
1032
  msgstr ""
1033
 
1034
- #: pages/func_backwpup.php:47
1035
- msgid "No Jobs."
1036
  msgstr ""
1037
 
1038
- #: pages/func_backwpup.php:52 pages/func_backwpup.php:108
1039
- msgid "Export"
1040
  msgstr ""
1041
 
1042
- #: pages/func_backwpup.php:61
1043
- msgid "ID"
1044
  msgstr ""
1045
 
1046
- #: pages/func_backwpup.php:62
1047
- msgid "Job Name"
1048
  msgstr ""
1049
 
1050
- #: pages/func_backwpup.php:64
1051
- msgid "Information"
 
 
1052
  msgstr ""
1053
 
1054
- #: pages/func_backwpup.php:65
1055
- msgid "Next Run"
1056
  msgstr ""
1057
 
1058
- #: pages/func_backwpup.php:66
1059
- msgid "Last Run"
 
 
1060
  msgstr ""
1061
 
1062
- #: pages/func_backwpup.php:103
1063
- msgid "Edit:"
1064
  msgstr ""
1065
 
1066
- #: pages/func_backwpup.php:106
1067
- msgid "Edit"
1068
  msgstr ""
1069
 
1070
- #: pages/func_backwpup.php:107
1071
- msgid "Copy"
1072
  msgstr ""
1073
 
1074
- #: pages/func_backwpup.php:110
1075
- msgid "Run Now"
1076
  msgstr ""
1077
 
1078
- #: pages/func_backwpup.php:113 backwpup-functions.php:452
1079
- msgid "View!"
1080
  msgstr ""
1081
 
1082
- #: pages/func_backwpup.php:114 backwpup-functions.php:453
1083
- msgid "Abort!"
1084
  msgstr ""
1085
 
1086
- #: pages/func_backwpup.php:134
1087
- msgid "Running since:"
1088
  msgstr ""
1089
 
1090
- #: pages/func_backwpup.php:138
1091
- msgid "Inactive"
1092
  msgstr ""
1093
 
1094
- #: pages/func_backwpup.php:141
1095
- msgid "<a href=\"http://wikipedia.org/wiki/Cron\" target=\"_blank\">Cron</a>:"
1096
  msgstr ""
1097
 
1098
- #: pages/func_backwpup.php:150
1099
- msgid "Runtime:"
1100
  msgstr ""
1101
 
1102
- #: pages/func_backwpup.php:152
1103
- msgid "None"
1104
  msgstr ""
1105
 
1106
- #: pages/func_backwpup.php:155
1107
- msgid "Download last Backup"
1108
  msgstr ""
1109
 
1110
- #: pages/func_backwpup.php:157
1111
- msgid "View last Log"
1112
  msgstr ""
1113
 
1114
- #: pages/func_backwpup.php:157
1115
- msgid "Log"
1116
  msgstr ""
1117
 
1118
- #: pages/func_backwpup.php:245
1119
- msgid "DB Size:"
1120
  msgstr ""
1121
 
1122
- #: pages/func_backwpup.php:247
1123
- msgid "DB Tables:"
1124
  msgstr ""
1125
 
1126
- #: pages/func_backwpup.php:248
1127
- msgid "DB Rows:"
1128
  msgstr ""
1129
 
1130
- #: pages/func_backwpup.php:253
1131
- msgid "Files Size:"
1132
  msgstr ""
1133
 
1134
- #: pages/func_backwpup.php:255
1135
- msgid "Files count:"
1136
  msgstr ""
1137
 
1138
- #: pages/header_backwpup.php:37
1139
- msgid "Copy of"
1140
  msgstr ""
1141
 
1142
- #: pages/header_backwpup.php:67
1143
- msgid "Aborted by user!!!"
1144
  msgstr ""
1145
 
1146
- #: pages/header_backwpup.php:81
1147
- msgid "Job will be terminated."
1148
  msgstr ""
1149
 
1150
- #: pages/header_backwpup.php:84
1151
- msgid "Process killed with PID:"
1152
  msgstr ""
1153
 
1154
- #: pages/header_backwpup.php:99
1155
- msgid "Can't kill process with PID:"
1156
  msgstr ""
1157
 
1158
- #: pages/header_backwpup.php:114
1159
- msgid ""
1160
- "Here is the job overview with some information. You can see some further "
1161
- "information of the jobs, how many can be switched with the view button. Also "
1162
- "you can manage the jobs or abbort working jobs. Some links are added to have "
1163
- "direct access to the last log or download."
1164
  msgstr ""
1165
 
1166
- #: pages/page_backwpupsettings.php:12
1167
- msgid "BackWPup Settings"
1168
  msgstr ""
1169
 
1170
- #: pages/page_backwpupsettings.php:19
1171
- msgid "Send Mail"
1172
  msgstr ""
1173
 
1174
- #: pages/page_backwpupsettings.php:20
1175
  msgid ""
1176
- "Here you can set special things for Mail sending. The settings will be used "
1177
- "in jobs for sending backups via email or for sending log files."
1178
  msgstr ""
1179
 
1180
- #: pages/page_backwpupsettings.php:23
1181
- msgid "Sender email"
1182
  msgstr ""
1183
 
1184
- #: pages/page_backwpupsettings.php:28
1185
- msgid "Sender name"
1186
  msgstr ""
1187
 
1188
- #: pages/page_backwpupsettings.php:32
1189
- msgid "Send mail method"
1190
  msgstr ""
1191
 
1192
- #: pages/page_backwpupsettings.php:36
1193
- msgid "PHP: mail()"
1194
  msgstr ""
1195
 
1196
- #: pages/page_backwpupsettings.php:37
1197
- msgid "Sendmail"
1198
  msgstr ""
1199
 
1200
- #: pages/page_backwpupsettings.php:38
1201
- msgid "SMTP"
1202
  msgstr ""
1203
 
1204
- #: pages/page_backwpupsettings.php:44
1205
- msgid "Sendmail path"
1206
  msgstr ""
1207
 
1208
- #: pages/page_backwpupsettings.php:51
1209
- msgid "SMTP hostname"
1210
  msgstr ""
1211
 
1212
- #: pages/page_backwpupsettings.php:54 pages/func_backwpupeditjob.php:238
1213
- msgid "Port:"
1214
  msgstr ""
1215
 
1216
- #: pages/page_backwpupsettings.php:58
1217
- msgid "SMTP secure connection"
1218
  msgstr ""
1219
 
1220
- #: pages/page_backwpupsettings.php:61 backwpup-functions.php:407
1221
- #: backwpup-functions.php:437 backwpup-functions.php:465
1222
- msgid "none"
1223
  msgstr ""
1224
 
1225
- #: pages/page_backwpupsettings.php:68
1226
- msgid "SMTP username"
1227
  msgstr ""
1228
 
1229
- #: pages/page_backwpupsettings.php:74
1230
- msgid "SMTP password"
1231
  msgstr ""
1232
 
1233
- #: pages/page_backwpupsettings.php:82
1234
- msgid "Here you can set Logfile related things."
1235
  msgstr ""
1236
 
1237
- #: pages/page_backwpupsettings.php:85
1238
- msgid "Log file Folder"
1239
  msgstr ""
1240
 
1241
- #: pages/page_backwpupsettings.php:90
1242
- msgid "Max. Log Files in Folder"
1243
  msgstr ""
1244
 
1245
- #: pages/page_backwpupsettings.php:92 pages/func_backwpupeditjob.php:230
1246
- msgid "(Oldest files will deleted first.)"
1247
  msgstr ""
1248
 
1249
- #: pages/page_backwpupsettings.php:96 pages/page_backwpupsettings.php:97
1250
- msgid "Compression"
1251
  msgstr ""
1252
 
1253
- #: pages/page_backwpupsettings.php:99
1254
- msgid "Gzip Log files!"
1255
  msgstr ""
1256
 
1257
- #: pages/page_backwpupsettings.php:103 backwpup-functions.php:11
1258
- #: backwpup-functions.php:487
1259
- msgid "Jobs"
1260
  msgstr ""
1261
 
1262
- #: pages/page_backwpupsettings.php:104
1263
- msgid "Here you can set Job related things."
1264
  msgstr ""
1265
 
1266
- #: pages/page_backwpupsettings.php:107
1267
- msgid "Max. retrys for job steps"
1268
  msgstr ""
1269
 
1270
- #: pages/page_backwpupsettings.php:112
1271
- msgid "Max. retrys for job script restarts"
1272
  msgstr ""
1273
 
1274
- #: pages/page_backwpupsettings.php:126
1275
- msgid "Max. normal script runtime:"
1276
  msgstr ""
1277
 
1278
- #: pages/page_backwpupsettings.php:128
1279
- msgid ""
1280
- "Script runtime will reset on many job functions. You can only set it if "
1281
- "safemode off. Default runtime is 30 sec. Your ini setting is in sec.:"
1282
  msgstr ""
1283
 
1284
- #: pages/page_backwpupsettings.php:132
1285
- msgid "Max. long script runtime:"
1286
  msgstr ""
1287
 
1288
- #: pages/page_backwpupsettings.php:134
1289
- msgid ""
1290
- "Script runtime for loong operations withaut responce to script. You can only "
1291
- "set it if safemode off. Default runtime is 300 sec.(Max. on most webservers.)"
1292
- msgstr ""
1293
 
1294
- #: pages/page_backwpupsettings.php:137
1295
- msgid "PHP zip class"
1296
  msgstr ""
1297
 
1298
- #: pages/page_backwpupsettings.php:138
1299
- msgid "PHP zip"
1300
  msgstr ""
1301
 
1302
- #: pages/page_backwpupsettings.php:140
1303
- msgid "Use PHP zip class if available! Normaly PCL Zip class will used."
1304
  msgstr ""
1305
 
1306
- #: pages/page_backwpupsettings.php:145
1307
- msgid "WP Admin Bar"
1308
  msgstr ""
1309
 
1310
- #: pages/page_backwpupsettings.php:146
1311
- msgid "Will you see BackWPup in the WordPress Admin Bar?"
 
1312
  msgstr ""
1313
 
1314
- #: pages/page_backwpupsettings.php:149 pages/page_backwpupsettings.php:150
1315
- msgid "Admin Bar"
1316
  msgstr ""
1317
 
1318
- #: pages/page_backwpupsettings.php:152
1319
- msgid "Show BackWPup Links in Admin Bar."
1320
- msgstr ""
 
 
1321
 
1322
- #: pages/page_backwpupsettings.php:157
1323
- msgid "WP-Cron"
1324
  msgstr ""
1325
 
1326
- #: pages/page_backwpupsettings.php:158
1327
- msgid ""
1328
- "If you would use the cron job of your hoster you must point it to the url:"
1329
  msgstr ""
1330
 
1331
- #: pages/page_backwpupsettings.php:161 pages/page_backwpupsettings.php:162
1332
- msgid "Disable WP-Cron"
1333
  msgstr ""
1334
 
1335
- #: pages/page_backwpupsettings.php:164
1336
- msgid "Use your host's Cron Job and disable WP-Cron"
1337
  msgstr ""
1338
 
1339
- #: pages/page_backwpupsettings.php:168 pages/page_backwpupsettings.php:169
1340
- msgid "Use corn service of backwpup.com"
1341
  msgstr ""
1342
 
1343
- #: pages/page_backwpupsettings.php:171
1344
- msgid ""
1345
- "If you check this than the job Schedule will submited too backwpup.com. "
1346
- "Backwpup.com will call your blog wp-cron.php to start. <em>Use this service "
1347
- "only if you have not a cron service of your hoster, or a blog that have less "
1348
- "visits.</em> Pelase make a littel donaten for the plugin if you use this "
1349
- "servcie. The service can every time removed by me without a massage."
1350
  msgstr ""
1351
 
1352
- #: pages/func_backwpupeditjob.php:14 pages/func_backwpupeditjob.php:34
1353
- msgid "Save Changes"
1354
  msgstr ""
1355
 
1356
- #: pages/func_backwpupeditjob.php:23
1357
- msgid "PHP curl functions not available! Most backup destinations deaktivated!"
1358
  msgstr ""
1359
 
1360
- #: pages/func_backwpupeditjob.php:31
1361
  msgid ""
1362
- "You are about to delete this Job. \n"
1363
- " 'Cancel' to stop, 'OK' to delete."
1364
- msgstr ""
1365
-
1366
- #: pages/func_backwpupeditjob.php:44
1367
- msgid "File Prefix:"
1368
  msgstr ""
1369
 
1370
- #: pages/func_backwpupeditjob.php:46
1371
- msgid "File Formart:"
 
 
1372
  msgstr ""
1373
 
1374
- #: pages/func_backwpupeditjob.php:49 pages/func_backwpupeditjob.php:51
1375
- msgid "Zip"
1376
  msgstr ""
1377
 
1378
- #: pages/func_backwpupeditjob.php:52
1379
- msgid "Tar"
1380
  msgstr ""
1381
 
1382
- #: pages/func_backwpupeditjob.php:54 pages/func_backwpupeditjob.php:56
1383
- msgid "Tar GZip"
1384
  msgstr ""
1385
 
1386
- #: pages/func_backwpupeditjob.php:58 pages/func_backwpupeditjob.php:60
1387
- msgid "Tar BZip2"
1388
  msgstr ""
1389
 
1390
- #: pages/func_backwpupeditjob.php:61
1391
- msgid "Preview:"
1392
  msgstr ""
1393
 
1394
- #: pages/func_backwpupeditjob.php:66
1395
- msgid "E-Mail-Adress:"
1396
  msgstr ""
1397
 
1398
- #: pages/func_backwpupeditjob.php:68
1399
- msgid "Only send an e-mail if there are errors."
1400
  msgstr ""
1401
 
1402
- #: pages/func_backwpupeditjob.php:97
1403
- msgid "Activate scheduling"
1404
  msgstr ""
1405
 
1406
- #: pages/func_backwpupeditjob.php:98
1407
- msgid "advanced"
1408
  msgstr ""
1409
 
1410
- #: pages/func_backwpupeditjob.php:99
1411
- msgid "basic"
1412
  msgstr ""
1413
 
1414
- #: pages/func_backwpupeditjob.php:103
1415
- msgid "Minutes: "
1416
  msgstr ""
1417
 
1418
- #: pages/func_backwpupeditjob.php:105 pages/func_backwpupeditjob.php:117
1419
- #: pages/func_backwpupeditjob.php:128 pages/func_backwpupeditjob.php:139
1420
- #: pages/func_backwpupeditjob.php:159
1421
- msgid "Any (*)"
1422
  msgstr ""
1423
 
1424
- #: pages/func_backwpupeditjob.php:114
1425
- msgid "Hours:"
1426
  msgstr ""
1427
 
1428
- #: pages/func_backwpupeditjob.php:126
1429
- msgid "Day of Month:"
1430
  msgstr ""
1431
 
1432
- #: pages/func_backwpupeditjob.php:137
1433
- msgid "Month:"
1434
  msgstr ""
1435
 
1436
- #: pages/func_backwpupeditjob.php:141
1437
- msgid "January"
1438
  msgstr ""
1439
 
1440
- #: pages/func_backwpupeditjob.php:142
1441
- msgid "February"
1442
  msgstr ""
1443
 
1444
- #: pages/func_backwpupeditjob.php:143
1445
- msgid "March"
1446
  msgstr ""
1447
 
1448
- #: pages/func_backwpupeditjob.php:144
1449
- msgid "April"
1450
  msgstr ""
1451
 
1452
- #: pages/func_backwpupeditjob.php:145
1453
- msgid "May"
1454
  msgstr ""
1455
 
1456
- #: pages/func_backwpupeditjob.php:146
1457
- msgid "June"
1458
- msgstr ""
 
 
1459
 
1460
- #: pages/func_backwpupeditjob.php:147
1461
- msgid "July"
1462
  msgstr ""
1463
 
1464
- #: pages/func_backwpupeditjob.php:148
1465
- msgid "Augest"
 
 
 
1466
  msgstr ""
1467
 
1468
- #: pages/func_backwpupeditjob.php:149
1469
- msgid "September"
1470
  msgstr ""
1471
 
1472
- #: pages/func_backwpupeditjob.php:150
1473
- msgid "October"
1474
  msgstr ""
1475
 
1476
- #: pages/func_backwpupeditjob.php:151
1477
- msgid "November"
1478
  msgstr ""
1479
 
1480
- #: pages/func_backwpupeditjob.php:152
1481
- msgid "December"
1482
  msgstr ""
1483
 
1484
- #: pages/func_backwpupeditjob.php:157
1485
- msgid "Day of Week:"
1486
  msgstr ""
1487
 
1488
- #: pages/func_backwpupeditjob.php:161 pages/func_backwpupeditjob.php:197
1489
- msgid "Sunday"
1490
  msgstr ""
1491
 
1492
- #: pages/func_backwpupeditjob.php:162 pages/func_backwpupeditjob.php:198
1493
- msgid "Monday"
1494
  msgstr ""
1495
 
1496
- #: pages/func_backwpupeditjob.php:163 pages/func_backwpupeditjob.php:199
1497
- msgid "Tuesday"
1498
  msgstr ""
1499
 
1500
- #: pages/func_backwpupeditjob.php:164 pages/func_backwpupeditjob.php:200
1501
- msgid "Wednesday"
1502
  msgstr ""
1503
 
1504
- #: pages/func_backwpupeditjob.php:165 pages/func_backwpupeditjob.php:201
1505
- msgid "Thursday"
1506
  msgstr ""
1507
 
1508
- #: pages/func_backwpupeditjob.php:166 pages/func_backwpupeditjob.php:202
1509
- msgid "Friday"
1510
  msgstr ""
1511
 
1512
- #: pages/func_backwpupeditjob.php:167 pages/func_backwpupeditjob.php:203
1513
- msgid "Saturday"
1514
  msgstr ""
1515
 
1516
- #: pages/func_backwpupeditjob.php:182
1517
- msgid "Hour"
1518
  msgstr ""
1519
 
1520
- #: pages/func_backwpupeditjob.php:185
1521
- msgid "Minute"
1522
  msgstr ""
1523
 
1524
- #: pages/func_backwpupeditjob.php:189
1525
- msgid "monthly"
1526
  msgstr ""
1527
 
1528
- #: pages/func_backwpupeditjob.php:190
1529
- msgid "on"
1530
  msgstr ""
1531
 
1532
- #: pages/func_backwpupeditjob.php:195
1533
- msgid "weekly"
1534
- msgstr ""
 
 
1535
 
1536
- #: pages/func_backwpupeditjob.php:209
1537
- msgid "daily"
1538
  msgstr ""
1539
 
1540
- #: pages/func_backwpupeditjob.php:215
1541
- msgid "hourly"
1542
  msgstr ""
1543
 
1544
- #: pages/func_backwpupeditjob.php:227
1545
- msgid "Full Path to folder for Backup Files:"
1546
  msgstr ""
1547
 
1548
- #: pages/func_backwpupeditjob.php:229
1549
- msgid "Your WordPress dir is:"
1550
  msgstr ""
1551
 
1552
- #: pages/func_backwpupeditjob.php:230 pages/func_backwpupeditjob.php:395
1553
- msgid "Max. backup files in folder:"
1554
  msgstr ""
1555
 
1556
- #: pages/func_backwpupeditjob.php:236
1557
- msgid "Hostname:"
1558
  msgstr ""
1559
 
1560
- #: pages/func_backwpupeditjob.php:240 pages/func_backwpupeditjob.php:331
1561
- msgid "Username:"
1562
  msgstr ""
1563
 
1564
- #: pages/func_backwpupeditjob.php:242 pages/func_backwpupeditjob.php:388
1565
- msgid "Password:"
1566
  msgstr ""
1567
 
1568
- #: pages/func_backwpupeditjob.php:244
1569
- msgid "Folder on Server:"
1570
  msgstr ""
1571
 
1572
- #: pages/func_backwpupeditjob.php:247
1573
- msgid "Max. backup files in FTP folder:"
1574
  msgstr ""
1575
 
1576
- #: pages/func_backwpupeditjob.php:247 pages/func_backwpupeditjob.php:266
1577
- #: pages/func_backwpupeditjob.php:291 pages/func_backwpupeditjob.php:318
1578
- #: pages/func_backwpupeditjob.php:341 pages/func_backwpupeditjob.php:373
1579
- #: pages/func_backwpupeditjob.php:395
1580
- msgid "(Oldest files will be deleted first.)"
1581
  msgstr ""
1582
 
1583
- #: pages/func_backwpupeditjob.php:248
1584
- msgid "Use SSL-FTP Connection."
1585
  msgstr ""
1586
 
1587
- #: pages/func_backwpupeditjob.php:249
1588
- msgid "Use FTP Passiv mode."
1589
  msgstr ""
1590
 
1591
- #: pages/func_backwpupeditjob.php:256
1592
- msgid "Access Key ID:"
1593
  msgstr ""
1594
 
1595
- #: pages/func_backwpupeditjob.php:258
1596
- msgid "Secret Access Key:"
1597
  msgstr ""
1598
 
1599
- #: pages/func_backwpupeditjob.php:260 pages/func_backwpupeditjob.php:285
1600
- msgid "Bucket:"
1601
  msgstr ""
1602
 
1603
- #: pages/func_backwpupeditjob.php:263 pages/func_backwpupeditjob.php:288
1604
- msgid "Create bucket:"
1605
  msgstr ""
1606
 
1607
- #: pages/func_backwpupeditjob.php:263
1608
- msgid "Bucket Region"
1609
  msgstr ""
1610
 
1611
- #: pages/func_backwpupeditjob.php:263
1612
- msgid "US-East (Northern Virginia)"
1613
  msgstr ""
1614
 
1615
- #: pages/func_backwpupeditjob.php:263
1616
- msgid "US-West (Northern California)"
1617
  msgstr ""
1618
 
1619
- #: pages/func_backwpupeditjob.php:263
1620
- msgid "EU (Ireland)"
1621
  msgstr ""
1622
 
1623
- #: pages/func_backwpupeditjob.php:263
1624
- msgid "Asia Pacific (Singapore)"
 
1625
  msgstr ""
1626
 
1627
- #: pages/func_backwpupeditjob.php:263
1628
- msgid "Asia Pacific (Japan)"
 
 
1629
  msgstr ""
1630
 
1631
- #: pages/func_backwpupeditjob.php:264 pages/func_backwpupeditjob.php:289
1632
- msgid "Folder in bucket:"
1633
  msgstr ""
1634
 
1635
- #: pages/func_backwpupeditjob.php:266 pages/func_backwpupeditjob.php:291
1636
- msgid "Max. backup files in bucket folder:"
1637
  msgstr ""
1638
 
1639
- #: pages/func_backwpupeditjob.php:267
1640
- msgid "Save Backups with reduced redundancy!"
1641
  msgstr ""
1642
 
1643
- #: pages/func_backwpupeditjob.php:270 pages/func_backwpupeditjob.php:294
1644
- #: pages/func_backwpupeditjob.php:321 pages/func_backwpupeditjob.php:344
1645
- #: pages/func_backwpupeditjob.php:376 pages/func_backwpupeditjob.php:398
1646
- msgid "Create Account"
1647
  msgstr ""
1648
 
1649
- #: pages/func_backwpupeditjob.php:271 pages/func_backwpupeditjob.php:295
1650
- msgid "Find Keys"
1651
  msgstr ""
1652
 
1653
- #: pages/func_backwpupeditjob.php:272 pages/func_backwpupeditjob.php:296
1654
- #: pages/func_backwpupeditjob.php:346 pages/func_backwpupeditjob.php:377
1655
- #: pages/func_backwpupeditjob.php:399
1656
- msgid "Webinterface"
1657
  msgstr ""
1658
 
1659
- #: pages/func_backwpupeditjob.php:281 pages/func_backwpupeditjob.php:310
1660
- msgid "Access Key:"
1661
  msgstr ""
1662
 
1663
- #: pages/func_backwpupeditjob.php:283
1664
- msgid "Secret:"
1665
  msgstr ""
1666
 
1667
- #: pages/func_backwpupeditjob.php:306
1668
- msgid "Host:"
1669
  msgstr ""
1670
 
1671
- #: pages/func_backwpupeditjob.php:307
1672
- msgid "Normely: blob.core.windows.net"
1673
  msgstr ""
1674
 
1675
- #: pages/func_backwpupeditjob.php:308
1676
- msgid "Account Name:"
1677
  msgstr ""
1678
 
1679
- #: pages/func_backwpupeditjob.php:312 pages/func_backwpupeditjob.php:335
1680
- msgid "Container:"
1681
- msgstr ""
 
 
1682
 
1683
- #: pages/func_backwpupeditjob.php:315 pages/func_backwpupeditjob.php:338
1684
- msgid "Create Container:"
1685
  msgstr ""
1686
 
1687
- #: pages/func_backwpupeditjob.php:316
1688
- msgid "Folder in Container:"
1689
  msgstr ""
1690
 
1691
- #: pages/func_backwpupeditjob.php:318 pages/func_backwpupeditjob.php:341
1692
- msgid "Max. backup files in container folder:"
1693
  msgstr ""
1694
 
1695
- #: pages/func_backwpupeditjob.php:322 pages/func_backwpupeditjob.php:345
1696
- msgid "Find Key"
1697
  msgstr ""
1698
 
1699
- #: pages/func_backwpupeditjob.php:333
1700
- msgid "API Key:"
1701
  msgstr ""
1702
 
1703
- #: pages/func_backwpupeditjob.php:339
1704
- msgid "Folder in container:"
1705
  msgstr ""
1706
 
1707
- #: pages/func_backwpupeditjob.php:355
1708
- msgid "Login:"
1709
  msgstr ""
1710
 
1711
- #: pages/func_backwpupeditjob.php:357
1712
- msgid "Not authenticated!"
1713
  msgstr ""
1714
 
1715
- #: pages/func_backwpupeditjob.php:357
1716
- msgid "Authenticate!"
1717
  msgstr ""
1718
 
1719
- #: pages/func_backwpupeditjob.php:359
1720
- msgid "Authenticated!"
1721
  msgstr ""
1722
 
1723
- #: pages/func_backwpupeditjob.php:359
1724
- msgid "Delete!"
1725
  msgstr ""
1726
 
1727
- #: pages/func_backwpupeditjob.php:361
1728
- msgid "oAuth sign method:"
1729
  msgstr ""
1730
 
1731
- #: pages/func_backwpupeditjob.php:366 pages/func_backwpupeditjob.php:390
1732
- msgid "Root:"
1733
  msgstr ""
1734
 
1735
- #: pages/func_backwpupeditjob.php:368
1736
- msgid "dropbox"
1737
  msgstr ""
1738
 
1739
- #: pages/func_backwpupeditjob.php:369
1740
- msgid "sandbox (disabled by DropBox)"
1741
- msgstr ""
 
 
1742
 
1743
- #: pages/func_backwpupeditjob.php:371 pages/func_backwpupeditjob.php:393
1744
- msgid "Folder:"
1745
- msgstr ""
 
 
1746
 
1747
- #: pages/func_backwpupeditjob.php:373
1748
- msgid "Max. backup files in Dropbox folder:"
1749
  msgstr ""
1750
 
1751
- #: pages/func_backwpupeditjob.php:386 pages/func_backwpupeditjob.php:406
1752
- msgid "E-mail address:"
1753
  msgstr ""
1754
 
1755
- #: pages/func_backwpupeditjob.php:409
1756
- msgid "Max. File Size for sending Backups with mail:"
1757
  msgstr ""
1758
 
1759
- #: pages/func_backwpupeditjob.php:456
1760
- msgid ""
1761
- "Working as <a href=\"http://wikipedia.org/wiki/Cron\" target=\"_blank"
1762
- "\">Cron</a> job schedule:"
1763
  msgstr ""
1764
 
1765
- #: pages/func_backwpupeditjob.php:462
1766
- msgid "ATTENTION: Job runs every %d mins.!!!"
1767
  msgstr ""
1768
 
1769
- #: pages/func_backwpupeditjob.php:468
1770
- msgid "ATTENTION: Job runs every %d houers.!!!"
1771
  msgstr ""
1772
 
1773
- #: pages/func_backwpupeditjob.php:472
1774
- msgid "ATTENTION: Can't calculate cron!!!"
1775
  msgstr ""
1776
 
1777
- #: pages/func_backwpupeditjob.php:474
1778
- msgid "Next runtime:"
1779
  msgstr ""
1780
 
1781
- #: pages/func_backwpupeditjob.php:500
1782
- msgid "Missing Access Key ID!"
 
 
 
 
 
 
1783
  msgstr ""
1784
 
1785
- #: pages/func_backwpupeditjob.php:507
1786
- msgid "Missing Secret Access Key!"
1787
  msgstr ""
1788
 
1789
- #: pages/func_backwpupeditjob.php:558 pages/func_backwpupeditjob.php:694
1790
- msgid "Missing Access Key!"
1791
  msgstr ""
1792
 
1793
- #: pages/func_backwpupeditjob.php:565
1794
- msgid "Missing Secret!"
1795
  msgstr ""
1796
 
1797
- #: pages/func_backwpupeditjob.php:617 pages/func_backwpupeditjob.php:746
1798
- msgid "Missing Username!"
1799
  msgstr ""
1800
 
1801
- #: pages/func_backwpupeditjob.php:624
1802
- msgid "Missing API Key!"
1803
  msgstr ""
1804
 
1805
- #: pages/func_backwpupeditjob.php:645
1806
- msgid "No Containerss found!"
1807
  msgstr ""
1808
 
1809
- #: pages/func_backwpupeditjob.php:680
1810
- msgid "Missing Hostname!"
1811
  msgstr ""
1812
 
1813
- #: pages/func_backwpupeditjob.php:687
1814
- msgid "Missing Account Name!"
1815
  msgstr ""
1816
 
1817
- #: pages/func_backwpupeditjob.php:711
1818
- msgid "No Container found!"
1819
  msgstr ""
1820
 
1821
- #: pages/func_backwpupeditjob.php:753
1822
- msgid "Missing Password!"
1823
  msgstr ""
1824
 
1825
- #: pages/func_backwpupeditjob.php:773
1826
- msgid "No Syncfolders found!"
 
 
 
 
 
 
1827
  msgstr ""
1828
 
1829
- #: pages/page_backwpupeditjob.php:11
1830
- msgid "Job Type"
1831
  msgstr ""
1832
 
1833
- #: pages/page_backwpupeditjob.php:12
1834
- msgid "Job Schedule"
1835
  msgstr ""
1836
 
1837
- #: pages/page_backwpupeditjob.php:13
1838
- msgid "Backup to Folder"
1839
  msgstr ""
1840
 
1841
- #: pages/page_backwpupeditjob.php:14
1842
- msgid "Backup to E-Mail"
1843
  msgstr ""
1844
 
1845
- #: pages/page_backwpupeditjob.php:29
1846
- msgid "BackWPup Job Settings"
1847
  msgstr ""
1848
 
1849
- #: pages/page_backwpupeditjob.php:53
1850
- msgid "Enter Job name here"
1851
  msgstr ""
1852
 
1853
- #: pages/page_backwpupeditjob.php:59
1854
- msgid "Database Jobs"
1855
  msgstr ""
1856
 
1857
- #: pages/page_backwpupeditjob.php:62
1858
- msgid "Database tables to use:"
1859
  msgstr ""
1860
 
1861
- #: pages/page_backwpupeditjob.php:72
1862
- msgid "Use short INSERTs instead of full (with keys)"
1863
  msgstr ""
1864
 
1865
- #: pages/page_backwpupeditjob.php:73
1866
- msgid "Set Blog Maintenance Mode on Database Operations"
1867
  msgstr ""
1868
 
1869
- #: pages/page_backwpupeditjob.php:78 backwpup-functions.php:319
1870
- msgid "File Backup"
1871
  msgstr ""
1872
 
1873
- #: pages/page_backwpupeditjob.php:80
1874
- msgid "Blog Folders to Backup:"
1875
  msgstr ""
1876
 
1877
- #: pages/page_backwpupeditjob.php:83
1878
- msgid "root"
1879
  msgstr ""
1880
 
1881
- #: pages/page_backwpupeditjob.php:86 pages/page_backwpupeditjob.php:102
1882
- #: pages/page_backwpupeditjob.php:118 pages/page_backwpupeditjob.php:134
1883
- #: pages/page_backwpupeditjob.php:150
1884
- msgid "Exclude:"
1885
  msgstr ""
1886
 
1887
- #: pages/page_backwpupeditjob.php:99
1888
- msgid "Content"
1889
  msgstr ""
1890
 
1891
- #: pages/page_backwpupeditjob.php:115
1892
- msgid "Plugins"
1893
  msgstr ""
1894
 
1895
- #: pages/page_backwpupeditjob.php:131
1896
- msgid "Themes"
1897
  msgstr ""
1898
 
1899
- #: pages/page_backwpupeditjob.php:147
1900
- msgid "Blog Uploads"
1901
  msgstr ""
1902
 
1903
- #: pages/page_backwpupeditjob.php:164
1904
- msgid "Include Folders to Backup:"
1905
  msgstr ""
1906
 
1907
- #: pages/page_backwpupeditjob.php:165 pages/page_backwpupeditjob.php:169
1908
- msgid "Example:"
1909
  msgstr ""
1910
 
1911
- #: pages/page_backwpupeditjob.php:168
1912
- msgid "Exclude Files/Folders from Backup:"
1913
  msgstr ""
1914
 
1915
- #: pages/header_backwpupeditjob.php:26
1916
- msgid "Dropbox authentication complete!"
1917
  msgstr ""
1918
 
1919
- #: pages/header_backwpupeditjob.php:28
1920
- msgid "Wrong Token for Dropbox authentication reseved!"
1921
  msgstr ""
1922
 
1923
- #: pages/header_backwpupeditjob.php:31
1924
- msgid "No Dropbox authentication reseved!"
1925
  msgstr ""
1926
 
1927
- #: pages/header_backwpupeditjob.php:212
1928
- msgid "Dropbox authentication deleted!"
1929
  msgstr ""
1930
 
1931
- #: pages/header_backwpupeditjob.php:236
1932
- msgid "Job '%1' changes saved."
1933
  msgstr ""
1934
 
1935
- #: pages/header_backwpupeditjob.php:236
1936
- msgid "Jobs overview."
1937
  msgstr ""
1938
 
1939
- #: pages/header_backwpupeditjob.php:248
1940
- msgid "Backup File"
1941
  msgstr ""
1942
 
1943
- #: pages/header_backwpupeditjob.php:249
1944
- msgid "Send log"
1945
  msgstr ""
1946
 
1947
- #: pages/header_backwpupeditjob.php:251
1948
- msgid "Backup to FTP Server"
1949
  msgstr ""
1950
 
1951
- #: pages/header_backwpupeditjob.php:253
1952
- msgid "Backup to Dropbox"
1953
  msgstr ""
1954
 
1955
- #: pages/header_backwpupeditjob.php:255
1956
- msgid "Backup to SugarSync"
1957
  msgstr ""
1958
 
1959
- #: pages/header_backwpupeditjob.php:257
1960
- msgid "Backup to Amazon S3"
1961
  msgstr ""
1962
 
1963
- #: pages/header_backwpupeditjob.php:259
1964
- msgid "Backup to Google storage"
1965
  msgstr ""
1966
 
1967
- #: pages/header_backwpupeditjob.php:261
1968
- msgid "Backup to Micosoft Azure (Blob)"
1969
  msgstr ""
1970
 
1971
- #: pages/header_backwpupeditjob.php:263
1972
- msgid "Backup to Rackspace Cloud"
1973
  msgstr ""
1974
 
1975
- #: pages/func_backwpupbackups.php:131
1976
- msgid "No Files found."
1977
  msgstr ""
1978
 
1979
- #: pages/func_backwpupbackups.php:151
1980
- msgid "Change Destination"
1981
  msgstr ""
1982
 
1983
- #: pages/func_backwpupbackups.php:188
1984
- msgid "File"
1985
  msgstr ""
1986
 
1987
- #: pages/func_backwpupbackups.php:189 pages/func_backwpupbackups.php:191
1988
- msgid "Folder"
1989
  msgstr ""
1990
 
1991
- #: pages/func_backwpupbackups.php:192
1992
- msgid "Time"
1993
  msgstr ""
1994
 
1995
- #: pages/func_backwpupbackups.php:233
1996
- msgid ""
1997
- "You are about to delete this Backup Archive. \n"
1998
- " 'Cancel' to stop, 'OK' to delete."
1999
  msgstr ""
2000
 
2001
- #: pages/func_backwpupbackups.php:248
2002
- msgid "?"
2003
  msgstr ""
2004
 
2005
- #. #-#-#-#-# plugin.pot (BackWPup 2.0.5) #-#-#-#-#
2006
  #. Plugin Name of the plugin/theme
2007
- #: backwpup-functions.php:10 backwpup-functions.php:264
2008
- #: backwpup-functions.php:484
2009
  msgid "BackWPup"
2010
  msgstr ""
2011
 
2012
- #: backwpup-functions.php:15
2013
  msgid "Working"
2014
  msgstr ""
2015
 
2016
- #: backwpup-functions.php:19 backwpup-functions.php:489
2017
  msgid "Backups"
2018
  msgstr ""
2019
 
2020
- #: backwpup-functions.php:21
2021
  msgid "Tools"
2022
  msgstr ""
2023
 
2024
- #: backwpup-functions.php:23 backwpup-functions.php:245
2025
  msgid "Settings"
2026
  msgstr ""
2027
 
2028
- #: backwpup-functions.php:100
2029
  msgid "For more information:"
2030
  msgstr ""
2031
 
2032
- #: backwpup-functions.php:101 backwpup-functions.php:256
2033
  msgid "Support"
2034
  msgstr ""
2035
 
2036
- #: backwpup-functions.php:102 backwpup-functions.php:255
2037
  msgid "FAQ"
2038
  msgstr ""
2039
 
2040
- #: backwpup-functions.php:103
2041
  msgid "Plugin Homepage"
2042
  msgstr ""
2043
 
2044
- #: backwpup-functions.php:104
2045
  msgid "Plugin on WordPress.org"
2046
  msgstr ""
2047
 
2048
- #: backwpup-functions.php:105 backwpup-functions.php:257
2049
  msgid "Donate"
2050
  msgstr ""
2051
 
2052
- #: backwpup-functions.php:106
2053
  msgid "Flattr"
2054
  msgstr ""
2055
 
2056
- #: backwpup-functions.php:107
2057
  msgid ""
2058
  "BackWPup comes with ABSOLUTELY NO WARRANTY. This is free software, and you "
2059
  "are welcome to redistribute it under certain conditions."
2060
  msgstr ""
2061
 
2062
- #: backwpup-functions.php:245
2063
  msgid "Go to Settings Page"
2064
  msgstr ""
2065
 
2066
- #: backwpup-functions.php:316
2067
  msgid "WP XML Export"
2068
  msgstr ""
2069
 
2070
- #: backwpup-functions.php:322
2071
  msgid "Database Backup"
2072
  msgstr ""
2073
 
2074
- #: backwpup-functions.php:325
2075
  msgid "Optimize Database Tables"
2076
  msgstr ""
2077
 
2078
- #: backwpup-functions.php:328
2079
  msgid "Check Database Tables"
2080
  msgstr ""
2081
 
2082
- #: backwpup-functions.php:393
2083
  msgid "View Log:"
2084
  msgstr ""
2085
 
2086
- #: backwpup-functions.php:425
2087
  msgid "How many of the lastes logs would you like to display?"
2088
  msgstr ""
2089
 
2090
- #: backwpup-functions.php:451
2091
  msgid "working since %d sec."
2092
  msgstr ""
2093
 
2094
- #: backwpup-functions.php:458
2095
  msgid "Edit Job"
2096
  msgstr ""
2097
 
2098
- #: backwpup-functions.php:474
2099
  msgid "BackWPup Aktive Jobs"
2100
  msgstr ""
2101
 
2102
- #: backwpup-functions.php:486
2103
  msgid "See Working!"
2104
  msgstr ""
2105
 
2106
- #: backwpup-functions.php:491
2107
  msgid "BackWPup Job"
2108
  msgstr ""
2109
 
2110
- #: backwpup-functions.php:709
2111
- msgid "- WordPress %d or heiger needed!"
2112
  msgstr ""
2113
 
2114
- #: backwpup-functions.php:713
2115
- msgid "- PHP 5.2.4 or higher needed!"
2116
  msgstr ""
2117
 
2118
- #: backwpup-functions.php:720
2119
- msgid "- Logs Folder not exists:"
2120
  msgstr ""
2121
 
2122
- #: backwpup-functions.php:723
2123
- msgid "- Logs Folder not writeable:"
2124
  msgstr ""
2125
 
2126
- #: backwpup-functions.php:726
2127
- msgid "- Logs Folder in open_basedir path:"
2128
  msgstr ""
2129
 
2130
- #: backwpup-functions.php:732
2131
- msgid "- Please Check Scheduling time for Job:"
2132
  msgstr ""
2133
 
2134
- #: backwpup-functions.php:737
2135
- msgid "- WP-Cron don't working please check it!"
2136
  msgstr ""
2137
 
2138
- #: backwpup-functions.php:790
2139
  msgid "New"
2140
  msgstr ""
2141
 
2
  # This file is distributed under the same license as the BackWPup package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: BackWPup 2.1.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/backwpup\n"
7
+ "POT-Creation-Date: 2011-07-30 19:30:25+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: pages/func_backwpupbackups.php:125
16
+ msgid "No Files found."
17
  msgstr ""
18
 
19
+ #: pages/func_backwpupbackups.php:130 pages/func_backwpupbackups.php:227
20
+ #: pages/func_backwpup.php:47 pages/func_backwpup.php:103
21
+ #: pages/func_backwpuplogs.php:73 pages/func_backwpuplogs.php:127
22
+ #: pages/func_backwpupeditjob.php:25
23
+ msgid "Delete"
24
  msgstr ""
25
 
26
+ #: pages/func_backwpupbackups.php:145
27
+ msgid "Change Destination"
28
  msgstr ""
29
 
30
+ #: pages/func_backwpupbackups.php:182
31
+ msgid "File"
32
  msgstr ""
33
 
34
+ #: pages/func_backwpupbackups.php:183 pages/func_backwpupbackups.php:185
35
+ msgid "Folder"
36
  msgstr ""
37
 
38
+ #: pages/func_backwpupbackups.php:184 pages/func_backwpuplogs.php:84
39
+ msgid "Size"
40
  msgstr ""
41
 
42
+ #: pages/func_backwpupbackups.php:186
43
+ msgid "Time"
44
  msgstr ""
45
 
46
+ #: pages/func_backwpupbackups.php:227
47
+ msgid ""
48
+ "You are about to delete this Backup Archive. \n"
49
+ " 'Cancel' to stop, 'OK' to delete."
50
  msgstr ""
51
 
52
+ #: pages/func_backwpupbackups.php:228 pages/func_backwpup.php:149
53
+ #: pages/func_backwpuplogs.php:128
54
+ msgid "Download"
55
  msgstr ""
56
 
57
+ #: pages/func_backwpupbackups.php:242
58
+ msgid "?"
59
  msgstr ""
60
 
61
+ #: pages/func_backwpupbackups.php:399 pages/header_backwpupbackups.php:48
62
+ #: job/dest_gstorage.php:38 job/dest_gstorage.php:67
63
+ msgid "GStorage API: %s"
 
64
  msgstr ""
65
 
66
+ #: pages/func_backwpupbackups.php:497 pages/header_backwpupbackups.php:144
67
+ msgid "Login failure!"
 
 
68
  msgstr ""
69
 
70
+ #: pages/page_backwpupeditjob.php:9
71
+ msgid "Job Type"
72
  msgstr ""
73
 
74
+ #: pages/page_backwpupeditjob.php:10
75
+ msgid "Job Schedule"
76
  msgstr ""
77
 
78
+ #: pages/page_backwpupeditjob.php:11
79
+ msgid "Backup to Folder"
80
  msgstr ""
81
 
82
+ #: pages/page_backwpupeditjob.php:12
83
+ msgid "Backup to E-Mail"
84
  msgstr ""
85
 
86
+ #: pages/page_backwpupeditjob.php:28
87
+ msgid "BackWPup Job Settings"
88
  msgstr ""
89
 
90
+ #: pages/page_backwpupeditjob.php:28 pages/page_backwpup.php:8
91
+ #: backwpup-functions.php:7
92
+ msgid "Add New"
93
  msgstr ""
94
 
95
+ #: pages/page_backwpupeditjob.php:53
96
+ msgid "Enter Job name here"
97
  msgstr ""
98
 
99
+ #: pages/page_backwpupeditjob.php:59
100
+ msgid "Database Jobs"
101
  msgstr ""
102
 
103
+ #: pages/page_backwpupeditjob.php:62
104
+ msgid "Database tables to use:"
105
  msgstr ""
106
 
107
+ #: pages/page_backwpupeditjob.php:72
108
+ msgid "Use short INSERTs instead of full (with keys)"
109
  msgstr ""
110
 
111
+ #: pages/page_backwpupeditjob.php:73
112
+ msgid "Set Blog Maintenance Mode on Database Operations"
113
  msgstr ""
114
 
115
+ #: pages/page_backwpupeditjob.php:78 backwpup-functions.php:323
116
+ msgid "File Backup"
117
  msgstr ""
118
 
119
+ #: pages/page_backwpupeditjob.php:80
120
+ msgid "Blog Folders to Backup:"
121
  msgstr ""
122
 
123
+ #: pages/page_backwpupeditjob.php:83
124
+ msgid "root"
125
  msgstr ""
126
 
127
+ #: pages/page_backwpupeditjob.php:86 pages/page_backwpupeditjob.php:102
128
+ #: pages/page_backwpupeditjob.php:118 pages/page_backwpupeditjob.php:134
129
+ #: pages/page_backwpupeditjob.php:150
130
+ msgid "Exclude:"
131
  msgstr ""
132
 
133
+ #: pages/page_backwpupeditjob.php:99
134
+ msgid "Content"
135
  msgstr ""
136
 
137
+ #: pages/page_backwpupeditjob.php:115
138
+ msgid "Plugins"
139
  msgstr ""
140
 
141
+ #: pages/page_backwpupeditjob.php:131
142
+ msgid "Themes"
143
  msgstr ""
144
 
145
+ #: pages/page_backwpupeditjob.php:147
146
+ msgid "Blog Uploads"
147
  msgstr ""
148
 
149
+ #: pages/page_backwpupeditjob.php:164
150
+ msgid "Include Folders to Backup:"
 
 
 
 
 
 
151
  msgstr ""
152
 
153
+ #: pages/page_backwpupeditjob.php:165 pages/page_backwpupeditjob.php:169
154
+ msgid "Example:"
155
  msgstr ""
156
 
157
+ #: pages/page_backwpupeditjob.php:168
158
+ msgid "Exclude Files/Folders from Backup:"
159
  msgstr ""
160
 
161
+ #: pages/func_backwpup.php:41
162
+ msgid "No Jobs."
163
  msgstr ""
164
 
165
+ #: pages/func_backwpup.php:46 pages/func_backwpup.php:102
166
+ msgid "Export"
167
  msgstr ""
168
 
169
+ #: pages/func_backwpup.php:55
170
+ msgid "ID"
171
  msgstr ""
172
 
173
+ #: pages/func_backwpup.php:56
174
+ msgid "Job Name"
175
  msgstr ""
176
 
177
+ #: pages/func_backwpup.php:57 pages/func_backwpuplogs.php:81
178
+ #: pages/func_backwpupeditjob.php:171
179
+ msgid "Type"
180
  msgstr ""
181
 
182
+ #: pages/func_backwpup.php:58
183
+ msgid "Information"
184
  msgstr ""
185
 
186
+ #: pages/func_backwpup.php:59
187
+ msgid "Next Run"
188
  msgstr ""
189
 
190
+ #: pages/func_backwpup.php:60
191
+ msgid "Last Run"
192
  msgstr ""
193
 
194
+ #: pages/func_backwpup.php:97
195
+ msgid "Edit:"
196
  msgstr ""
197
 
198
+ #: pages/func_backwpup.php:100
199
+ msgid "Edit"
200
  msgstr ""
201
 
202
+ #: pages/func_backwpup.php:101
203
+ msgid "Copy"
204
  msgstr ""
205
 
206
+ #: pages/func_backwpup.php:104
207
+ msgid "Run Now"
208
  msgstr ""
209
 
210
+ #: pages/func_backwpup.php:107 backwpup-functions.php:456
211
+ msgid "View!"
212
  msgstr ""
213
 
214
+ #: pages/func_backwpup.php:108 backwpup-functions.php:457
215
+ msgid "Abort!"
216
  msgstr ""
217
 
218
+ #: pages/func_backwpup.php:128
219
+ msgid "Running since:"
220
  msgstr ""
221
 
222
+ #: pages/func_backwpup.php:128 pages/func_backwpup.php:144
223
+ #: pages/func_backwpuplogs.php:153 pages/page_backwpupsettings.php:125
224
+ #: pages/page_backwpupsettings.php:131
225
+ msgid "sec."
226
  msgstr ""
227
 
228
+ #: pages/func_backwpup.php:132
229
+ msgid "Inactive"
230
  msgstr ""
231
 
232
+ #: pages/func_backwpup.php:135
233
+ msgid "<a href=\"http://wikipedia.org/wiki/Cron\" target=\"_blank\">Cron</a>:"
234
  msgstr ""
235
 
236
+ #: pages/func_backwpup.php:144
237
+ msgid "Runtime:"
238
  msgstr ""
239
 
240
+ #: pages/func_backwpup.php:146
241
+ msgid "None"
242
  msgstr ""
243
 
244
+ #: pages/func_backwpup.php:149
245
+ msgid "Download last Backup"
246
  msgstr ""
247
 
248
+ #: pages/func_backwpup.php:151
249
+ msgid "View last Log"
250
  msgstr ""
251
 
252
+ #: pages/func_backwpup.php:151
253
+ msgid "Log"
254
  msgstr ""
255
 
256
+ #: pages/func_backwpup.php:240
257
+ msgid "DB Size:"
 
 
258
  msgstr ""
259
 
260
+ #: pages/func_backwpup.php:242
261
+ msgid "DB Tables:"
262
  msgstr ""
263
 
264
+ #: pages/func_backwpup.php:243
265
+ msgid "DB Rows:"
266
  msgstr ""
267
 
268
+ #: pages/func_backwpup.php:248
269
+ msgid "Files Size:"
270
  msgstr ""
271
 
272
+ #: pages/func_backwpup.php:250
273
+ msgid "Files count:"
274
  msgstr ""
275
 
276
+ #: pages/page_backwpuplogs.php:8 backwpup-functions.php:477
277
+ msgid "BackWPup Logs"
278
  msgstr ""
279
 
280
+ #: pages/func_backwpuplogs.php:68
281
+ msgid "No Logs."
282
  msgstr ""
283
 
284
+ #: pages/func_backwpuplogs.php:80
285
+ msgid "Job"
286
  msgstr ""
287
 
288
+ #: pages/func_backwpuplogs.php:82
289
+ msgid "Backup/Log Date/Time"
290
  msgstr ""
291
 
292
+ #: pages/func_backwpuplogs.php:83
293
+ msgid "Status"
294
  msgstr ""
295
 
296
+ #: pages/func_backwpuplogs.php:85
297
+ msgid "Runtime"
298
  msgstr ""
299
 
300
+ #: pages/func_backwpuplogs.php:124
301
+ msgid "View log"
302
  msgstr ""
303
 
304
+ #: pages/func_backwpuplogs.php:126
305
+ msgid "View"
306
  msgstr ""
307
 
308
+ #: pages/func_backwpuplogs.php:135 backwpup-functions.php:399
309
+ msgid "%d ERROR"
310
+ msgid_plural "%d ERRORS"
311
+ msgstr[0] ""
312
+ msgstr[1] ""
313
 
314
+ #: pages/func_backwpuplogs.php:137 backwpup-functions.php:401
315
+ msgid "%d WARNING"
316
+ msgid_plural "%d WARNINGS"
317
  msgstr[0] ""
318
  msgstr[1] ""
319
 
320
+ #: pages/func_backwpuplogs.php:139 backwpup-functions.php:403
321
+ msgid "O.K."
322
  msgstr ""
323
 
324
+ #: pages/func_backwpuplogs.php:147
325
+ msgid "only Log"
326
  msgstr ""
327
 
328
+ #: pages/tools/db_restore.php:34 pages/tools/db_restore.php:53
329
+ #: pages/tools/db_restore.php:68 pages/tools/db_restore.php:79
330
+ #: pages/tools/db_restore.php:82 pages/tools/db_restore.php:85
331
+ #: pages/tools/db_restore.php:90
332
+ msgid "ERROR:"
333
  msgstr ""
334
 
335
+ #: pages/tools/db_restore.php:34
336
+ msgid "Pleace set <i>$table_prefix = '%1$s';</i> in wp-config.php"
337
  msgstr ""
338
 
339
+ #: pages/tools/db_restore.php:53
340
+ msgid "Pleace set <i>define('DB_CHARSET', '%1$s');</i> in wp-config.php"
341
  msgstr ""
342
 
343
+ #: pages/tools/db_restore.php:68 pages/tools/db_restore.php:79
344
+ #: pages/tools/db_restore.php:82 pages/tools/db_restore.php:85
345
+ #: pages/tools/db_restore.php:90
346
+ msgid "BackWPup database error %1$s for query %2$s"
347
  msgstr ""
348
 
349
+ #: pages/tools/db_restore.php:74
350
+ msgid "%1$s Database Querys done."
351
  msgstr ""
352
 
353
+ #: pages/tools/db_restore.php:75
354
+ msgid "Make changes for Blogurl and ABSPATH if needed."
355
  msgstr ""
356
 
357
+ #: pages/tools/db_restore.php:92
358
+ msgid "Restore Done. Please delete the SQL file after restoring."
359
+ msgstr ""
 
 
360
 
361
+ #: pages/header_backwpupworking.php:12
362
+ msgid "A job alredy running!!! Pleace try again if its done."
363
  msgstr ""
364
 
365
+ #: pages/header_backwpupworking.php:24
366
+ msgid "A job is running!!!"
367
  msgstr ""
368
 
369
+ #: pages/header_backwpupworking.php:28
370
+ msgid "Nothing..."
371
  msgstr ""
372
 
373
+ #: pages/header_backwpupworking.php:33
374
+ msgid "Here you see working jobs or logfiles"
375
  msgstr ""
376
 
377
+ #: pages/header_backwpupeditjob.php:24
378
+ msgid "Dropbox authentication complete!"
379
  msgstr ""
380
 
381
+ #: pages/header_backwpupeditjob.php:26
382
+ msgid "Wrong Token for Dropbox authentication received!"
383
  msgstr ""
384
 
385
+ #: pages/header_backwpupeditjob.php:29
386
+ msgid "No Dropbox authentication received!"
387
  msgstr ""
388
 
389
+ #: pages/header_backwpupeditjob.php:224
390
+ msgid "Dropbox authentication deleted!"
391
  msgstr ""
392
 
393
+ #: pages/header_backwpupeditjob.php:248
394
+ msgid "Job '%1' changes saved."
395
  msgstr ""
396
 
397
+ #: pages/header_backwpupeditjob.php:248
398
+ msgid "Jobs overview."
399
  msgstr ""
400
 
401
+ #: pages/header_backwpupeditjob.php:260
402
+ msgid "Backup File"
403
  msgstr ""
404
 
405
+ #: pages/header_backwpupeditjob.php:261
406
+ msgid "Send log"
407
+ msgstr ""
 
 
408
 
409
+ #: pages/header_backwpupeditjob.php:263
410
+ msgid "Backup to FTP Server"
411
  msgstr ""
412
 
413
+ #: pages/header_backwpupeditjob.php:265
414
+ msgid "Backup to Dropbox"
415
  msgstr ""
416
 
417
+ #: pages/header_backwpupeditjob.php:267
418
+ msgid "Backup to SugarSync"
419
  msgstr ""
420
 
421
+ #: pages/header_backwpupeditjob.php:269
422
+ msgid "Backup to Amazon S3"
423
  msgstr ""
424
 
425
+ #: pages/header_backwpupeditjob.php:271
426
+ msgid "Backup to Google storage"
427
  msgstr ""
428
 
429
+ #: pages/header_backwpupeditjob.php:273
430
+ msgid "Backup to Micosoft Azure (Blob)"
431
  msgstr ""
432
 
433
+ #: pages/header_backwpupeditjob.php:275
434
+ msgid "Backup to Rackspace Cloud"
435
  msgstr ""
436
 
437
+ #: pages/page_backwpupsettings.php:10
438
+ msgid "BackWPup Settings"
439
  msgstr ""
440
 
441
+ #: pages/page_backwpupsettings.php:17
442
+ msgid "Send Mail"
443
  msgstr ""
444
 
445
+ #: pages/page_backwpupsettings.php:18
446
+ msgid ""
447
+ "Here you can set the options for email sending. The settings will be used in "
448
+ "jobs for sending backups via email or for sending log files."
449
  msgstr ""
450
 
451
+ #: pages/page_backwpupsettings.php:21
452
+ msgid "Sender email"
453
  msgstr ""
454
 
455
+ #: pages/page_backwpupsettings.php:26
456
+ msgid "Sender name"
457
  msgstr ""
458
 
459
+ #: pages/page_backwpupsettings.php:30
460
+ msgid "Send mail method"
461
  msgstr ""
462
 
463
+ #: pages/page_backwpupsettings.php:34
464
+ msgid "PHP: mail()"
465
  msgstr ""
466
 
467
+ #: pages/page_backwpupsettings.php:35
468
+ msgid "Sendmail"
469
  msgstr ""
470
 
471
+ #: pages/page_backwpupsettings.php:36
472
+ msgid "SMTP"
473
  msgstr ""
474
 
475
+ #: pages/page_backwpupsettings.php:42
476
+ msgid "Sendmail path"
477
  msgstr ""
478
 
479
+ #: pages/page_backwpupsettings.php:49
480
+ msgid "SMTP hostname"
481
  msgstr ""
482
 
483
+ #: pages/page_backwpupsettings.php:52 pages/func_backwpupeditjob.php:232
484
+ msgid "Port:"
485
  msgstr ""
486
 
487
+ #: pages/page_backwpupsettings.php:56
488
+ msgid "SMTP secure connection"
489
  msgstr ""
490
 
491
+ #: pages/page_backwpupsettings.php:59 backwpup-functions.php:411
492
+ #: backwpup-functions.php:441 backwpup-functions.php:469
493
+ msgid "none"
494
  msgstr ""
495
 
496
+ #: pages/page_backwpupsettings.php:66
497
+ msgid "SMTP username"
498
  msgstr ""
499
 
500
+ #: pages/page_backwpupsettings.php:72
501
+ msgid "SMTP password"
502
  msgstr ""
503
 
504
+ #: pages/page_backwpupsettings.php:79 pages/header_backwpuplogs.php:61
505
+ #: pages/header_backwpupbackups.php:330 backwpup-functions.php:11
506
+ #: backwpup-functions.php:492
507
+ msgid "Logs"
508
+ msgstr ""
509
 
510
+ #: pages/page_backwpupsettings.php:80
511
+ msgid "Here you can set Logfile related options."
512
  msgstr ""
513
 
514
+ #: pages/page_backwpupsettings.php:83
515
+ msgid "Log file Folder"
516
  msgstr ""
517
 
518
+ #: pages/page_backwpupsettings.php:88
519
+ msgid "Max. Log Files in Folder"
520
  msgstr ""
521
 
522
+ #: pages/page_backwpupsettings.php:90 pages/func_backwpupeditjob.php:224
523
+ msgid "(Oldest files will deleted first.)"
524
  msgstr ""
525
 
526
+ #: pages/page_backwpupsettings.php:94 pages/page_backwpupsettings.php:95
527
+ msgid "Compression"
528
  msgstr ""
529
 
530
+ #: pages/page_backwpupsettings.php:97
531
+ msgid "Gzip Log files!"
532
  msgstr ""
533
 
534
+ #: pages/page_backwpupsettings.php:101 backwpup-functions.php:5
535
+ #: backwpup-functions.php:491
536
+ msgid "Jobs"
537
  msgstr ""
538
 
539
+ #: pages/page_backwpupsettings.php:102
540
+ msgid "Here you can set Job related options."
541
+ msgstr ""
 
 
542
 
543
+ #: pages/page_backwpupsettings.php:105
544
+ msgid "Max. retrys for job steps"
545
  msgstr ""
546
 
547
+ #: pages/page_backwpupsettings.php:110
548
+ msgid "Max. retrys for job script retries"
549
  msgstr ""
550
 
551
+ #: pages/page_backwpupsettings.php:124
552
+ msgid "Max. normal script runtime:"
553
  msgstr ""
554
 
555
+ #: pages/page_backwpupsettings.php:126
556
+ msgid ""
557
+ "Script runtime will reset on many job functions. You can only set it if "
558
+ "safemode off. Default runtime is 30 sec. Your ini setting is in sec.:"
559
  msgstr ""
560
 
561
+ #: pages/page_backwpupsettings.php:130
562
+ msgid "Max. long script runtime:"
563
  msgstr ""
564
 
565
+ #: pages/page_backwpupsettings.php:132
566
+ msgid ""
567
+ "Script runtime for long operations withaut responce to script. You can only "
568
+ "set it if safemode off. Default runtime is 300 sec.(Max. on most webservers.)"
569
  msgstr ""
570
 
571
+ #: pages/page_backwpupsettings.php:135
572
+ msgid "PHP zip class"
573
  msgstr ""
574
 
575
+ #: pages/page_backwpupsettings.php:136
576
+ msgid "PHP zip"
577
  msgstr ""
578
 
579
+ #: pages/page_backwpupsettings.php:138
580
+ msgid "Use PHP zip class if available! Normaly PCL Zip class will used."
581
  msgstr ""
582
 
583
+ #: pages/page_backwpupsettings.php:143
584
+ msgid "WP Admin Bar"
585
+ msgstr ""
 
 
586
 
587
+ #: pages/page_backwpupsettings.php:144
588
+ msgid "Will you see BackWPup in the WordPress Admin Bar?"
589
  msgstr ""
590
 
591
+ #: pages/page_backwpupsettings.php:147 pages/page_backwpupsettings.php:148
592
+ msgid "Admin Bar"
593
  msgstr ""
594
 
595
+ #: pages/page_backwpupsettings.php:150
596
+ msgid "Show BackWPup Links in Admin Bar."
597
  msgstr ""
598
 
599
+ #: pages/page_backwpupsettings.php:155
600
+ msgid "Http basic authentication"
601
  msgstr ""
602
 
603
+ #: pages/page_backwpupsettings.php:156
604
+ msgid ""
605
+ "Is your blog behind a http basic authentication (.htaccess)? Then you must "
606
+ "set the username and password four authentication."
607
  msgstr ""
608
 
609
+ #: pages/page_backwpupsettings.php:159 pages/func_backwpupeditjob.php:234
610
+ #: pages/func_backwpupeditjob.php:325
611
+ msgid "Username:"
612
  msgstr ""
613
 
614
+ #: pages/page_backwpupsettings.php:164 pages/func_backwpupeditjob.php:236
615
+ #: pages/func_backwpupeditjob.php:382
616
+ msgid "Password:"
617
  msgstr ""
618
 
619
+ #: pages/page_backwpupsettings.php:169
620
+ msgid "WP-Cron"
621
  msgstr ""
622
 
623
+ #: pages/page_backwpupsettings.php:170
624
+ msgid ""
625
+ "If you would use the cron job of your hoster you must point it to the url:"
626
  msgstr ""
627
 
628
+ #: pages/page_backwpupsettings.php:173 pages/page_backwpupsettings.php:174
629
+ msgid "Disable WP-Cron"
630
  msgstr ""
631
 
632
+ #: pages/page_backwpupsettings.php:176
633
+ msgid "Use your host's Cron Job and disable WP-Cron"
634
  msgstr ""
635
 
636
+ #: pages/page_backwpupsettings.php:180 pages/page_backwpupsettings.php:181
637
+ msgid "Use cron service of backwpup.com"
638
  msgstr ""
639
 
640
+ #: pages/page_backwpupsettings.php:183
641
+ msgid ""
642
+ "If you check this, the job schedule will submited to backwpup.com. Backwpup."
643
+ "com will call your blog wp-cron.php to start. <em>Use this service only if "
644
+ "you have not a cron service of your hoster, or a blog that has a few "
645
+ "visitors.</em> The cron service can start cron behind a basic "
646
+ "authentication, on that the http authentication data will transferd too! "
647
+ "Please make a little donation for the plugin if you use this servcie. The "
648
+ "service can be removed by me without a massage."
649
  msgstr ""
650
 
651
+ #: pages/page_backwpup.php:8
652
+ msgid "BackWPup Jobs"
653
  msgstr ""
654
 
655
+ #: pages/page_backwpupworking.php:9
656
+ msgid "BackWPup Working"
657
  msgstr ""
658
 
659
+ #: pages/page_backwpupworking.php:29
660
+ msgid "Warnings:"
661
  msgstr ""
662
 
663
+ #: pages/page_backwpupworking.php:33
664
+ msgid "Errors:"
665
  msgstr ""
666
 
667
+ #: pages/header_backwpuplogs.php:59
668
+ msgid ""
669
+ "Here you can manage the log files of the jobs. You can download, view, or "
670
+ "delete them."
671
  msgstr ""
672
 
673
+ #: pages/header_backwpupbackups.php:328
674
+ msgid ""
675
+ "Here you see a list of backup files. Change the destionation to jobname:"
676
+ "destination to become a list of backups from other destinations and jobs. "
677
+ "Then you kann delete or download backup files."
678
  msgstr ""
679
 
680
+ #: pages/header_backwpup.php:35
681
+ msgid "Copy of"
682
  msgstr ""
683
 
684
+ #: pages/header_backwpup.php:78
685
+ msgid "Aborted by user!!!"
686
  msgstr ""
687
 
688
+ #: pages/header_backwpup.php:93
689
+ msgid "Job will be terminated."
690
  msgstr ""
691
 
692
+ #: pages/header_backwpup.php:96
693
+ msgid "Process killed with PID:"
694
  msgstr ""
695
 
696
+ #: pages/header_backwpup.php:98
697
+ msgid "Can't kill process with PID:"
698
  msgstr ""
699
 
700
+ #: pages/header_backwpup.php:114
701
+ msgid ""
702
+ "Here is the job overview with some information. You can see some further "
703
+ "information of the jobs, how many can be switched with the view button. Also "
704
+ "you can manage the jobs or abbort working jobs. Some links are added to have "
705
+ "direct access to the last log or download."
706
+ msgstr ""
707
 
708
+ #: pages/page_backwpuptools.php:8
709
+ msgid "BackWPup Tools"
710
  msgstr ""
711
 
712
+ #: pages/page_backwpuptools.php:15
713
+ msgid "Database restore"
714
  msgstr ""
715
 
716
+ #: pages/page_backwpuptools.php:18
717
+ msgid "DB Restore"
718
  msgstr ""
719
 
720
+ #: pages/page_backwpuptools.php:21 pages/page_backwpuptools.php:40
721
+ msgid "Restore"
722
  msgstr ""
723
 
724
+ #: pages/page_backwpuptools.php:37
725
+ msgid "SQL File to restore:"
726
  msgstr ""
727
 
728
+ #: pages/page_backwpuptools.php:43
729
+ msgid "Copy SQL file to blog root folder to use for a restoring."
730
  msgstr ""
731
 
732
+ #: pages/page_backwpuptools.php:51
733
+ msgid "Import Jobs settings"
734
  msgstr ""
735
 
736
+ #: pages/page_backwpuptools.php:54
737
+ msgid "Select file to import:"
738
  msgstr ""
739
 
740
+ #: pages/page_backwpuptools.php:56 pages/page_backwpuptools.php:61
741
+ msgid "Upload"
742
  msgstr ""
743
 
744
+ #: pages/page_backwpuptools.php:62
745
+ msgid "Select jobs to import"
746
+ msgstr ""
747
+
748
+ #: pages/page_backwpuptools.php:66
749
+ msgid "Import Type"
750
  msgstr ""
751
 
752
+ #: pages/page_backwpuptools.php:66
753
+ msgid "No Import"
754
  msgstr ""
755
 
756
+ #: pages/page_backwpuptools.php:68
757
+ msgid "Overwrite"
758
  msgstr ""
759
 
760
+ #: pages/page_backwpuptools.php:68
761
+ msgid "Append"
 
762
  msgstr ""
763
 
764
+ #: pages/page_backwpuptools.php:70 pages/page_backwpuptools.php:75
765
+ #: pages/page_backwpuptools.php:77 pages/page_backwpuptools.php:78
766
+ msgid "Import"
 
767
  msgstr ""
768
 
769
+ #: pages/page_backwpuptools.php:114
770
+ msgid "Jobs imported!"
771
  msgstr ""
772
 
773
+ #: pages/func_backwpupeditjob.php:8 pages/func_backwpupeditjob.php:28
774
+ msgid "Save Changes"
775
  msgstr ""
776
 
777
+ #: pages/func_backwpupeditjob.php:17
778
+ msgid "PHP curl functions not available! Most backup destinations deaktivated!"
779
  msgstr ""
780
 
781
+ #: pages/func_backwpupeditjob.php:25
782
+ msgid ""
783
+ "You are about to delete this Job. \n"
784
+ " 'Cancel' to stop, 'OK' to delete."
785
  msgstr ""
786
 
787
+ #: pages/func_backwpupeditjob.php:38
788
+ msgid "File Prefix:"
789
  msgstr ""
790
 
791
+ #: pages/func_backwpupeditjob.php:40
792
+ msgid "File Formart:"
793
  msgstr ""
794
 
795
+ #: pages/func_backwpupeditjob.php:43 pages/func_backwpupeditjob.php:45
796
+ msgid "Zip"
797
  msgstr ""
798
 
799
+ #: pages/func_backwpupeditjob.php:46
800
+ msgid "Tar"
801
  msgstr ""
802
 
803
+ #: pages/func_backwpupeditjob.php:48 pages/func_backwpupeditjob.php:50
804
+ msgid "Tar GZip"
805
  msgstr ""
806
 
807
+ #: pages/func_backwpupeditjob.php:52 pages/func_backwpupeditjob.php:54
808
+ msgid "Tar BZip2"
809
  msgstr ""
810
 
811
+ #: pages/func_backwpupeditjob.php:55
812
+ msgid "Preview:"
813
  msgstr ""
814
 
815
+ #: pages/func_backwpupeditjob.php:60
816
+ msgid "E-Mail-Adress:"
 
 
 
 
 
 
817
  msgstr ""
818
 
819
+ #: pages/func_backwpupeditjob.php:62
820
+ msgid "Only send an e-mail if there are errors."
 
 
 
821
  msgstr ""
822
 
823
+ #: pages/func_backwpupeditjob.php:91
824
+ msgid "Activate scheduling"
825
  msgstr ""
826
 
827
+ #: pages/func_backwpupeditjob.php:92
828
+ msgid "advanced"
829
  msgstr ""
830
 
831
+ #: pages/func_backwpupeditjob.php:93
832
+ msgid "basic"
 
 
833
  msgstr ""
834
 
835
+ #: pages/func_backwpupeditjob.php:97
836
+ msgid "Minutes: "
837
  msgstr ""
838
 
839
+ #: pages/func_backwpupeditjob.php:99 pages/func_backwpupeditjob.php:111
840
+ #: pages/func_backwpupeditjob.php:122 pages/func_backwpupeditjob.php:133
841
+ #: pages/func_backwpupeditjob.php:153
842
+ msgid "Any (*)"
843
  msgstr ""
844
 
845
+ #: pages/func_backwpupeditjob.php:108
846
+ msgid "Hours:"
847
  msgstr ""
848
 
849
+ #: pages/func_backwpupeditjob.php:120
850
+ msgid "Day of Month:"
851
  msgstr ""
852
 
853
+ #: pages/func_backwpupeditjob.php:131
854
+ msgid "Month:"
855
  msgstr ""
856
 
857
+ #: pages/func_backwpupeditjob.php:135
858
+ msgid "January"
 
 
 
859
  msgstr ""
860
 
861
+ #: pages/func_backwpupeditjob.php:136
862
+ msgid "February"
863
  msgstr ""
864
 
865
+ #: pages/func_backwpupeditjob.php:137
866
+ msgid "March"
 
867
  msgstr ""
868
 
869
+ #: pages/func_backwpupeditjob.php:138
870
+ msgid "April"
871
  msgstr ""
872
 
873
+ #: pages/func_backwpupeditjob.php:139
874
+ msgid "May"
875
  msgstr ""
876
 
877
+ #: pages/func_backwpupeditjob.php:140
878
+ msgid "June"
879
  msgstr ""
880
 
881
+ #: pages/func_backwpupeditjob.php:141
882
+ msgid "July"
883
  msgstr ""
884
 
885
+ #: pages/func_backwpupeditjob.php:142
886
+ msgid "Augest"
887
  msgstr ""
888
 
889
+ #: pages/func_backwpupeditjob.php:143
890
+ msgid "September"
891
  msgstr ""
892
 
893
+ #: pages/func_backwpupeditjob.php:144
894
+ msgid "October"
 
895
  msgstr ""
896
 
897
+ #: pages/func_backwpupeditjob.php:145
898
+ msgid "November"
899
+ msgstr ""
 
 
900
 
901
+ #: pages/func_backwpupeditjob.php:146
902
+ msgid "December"
903
+ msgstr ""
 
 
904
 
905
+ #: pages/func_backwpupeditjob.php:151
906
+ msgid "Day of Week:"
907
  msgstr ""
908
 
909
+ #: pages/func_backwpupeditjob.php:155 pages/func_backwpupeditjob.php:191
910
+ msgid "Sunday"
911
  msgstr ""
912
 
913
+ #: pages/func_backwpupeditjob.php:156 pages/func_backwpupeditjob.php:192
914
+ msgid "Monday"
 
 
915
  msgstr ""
916
 
917
+ #: pages/func_backwpupeditjob.php:157 pages/func_backwpupeditjob.php:193
918
+ msgid "Tuesday"
919
  msgstr ""
920
 
921
+ #: pages/func_backwpupeditjob.php:158 pages/func_backwpupeditjob.php:194
922
+ msgid "Wednesday"
923
  msgstr ""
924
 
925
+ #: pages/func_backwpupeditjob.php:159 pages/func_backwpupeditjob.php:195
926
+ msgid "Thursday"
927
  msgstr ""
928
 
929
+ #: pages/func_backwpupeditjob.php:160 pages/func_backwpupeditjob.php:196
930
+ msgid "Friday"
931
  msgstr ""
932
 
933
+ #: pages/func_backwpupeditjob.php:161 pages/func_backwpupeditjob.php:197
934
+ msgid "Saturday"
935
  msgstr ""
936
 
937
+ #: pages/func_backwpupeditjob.php:176
938
+ msgid "Hour"
939
  msgstr ""
940
 
941
+ #: pages/func_backwpupeditjob.php:179
942
+ msgid "Minute"
943
  msgstr ""
944
 
945
+ #: pages/func_backwpupeditjob.php:183
946
+ msgid "monthly"
947
  msgstr ""
948
 
949
+ #: pages/func_backwpupeditjob.php:184
950
+ msgid "on"
951
  msgstr ""
952
 
953
+ #: pages/func_backwpupeditjob.php:189
954
+ msgid "weekly"
955
  msgstr ""
956
 
957
+ #: pages/func_backwpupeditjob.php:203
958
+ msgid "daily"
959
  msgstr ""
960
 
961
+ #: pages/func_backwpupeditjob.php:209
962
+ msgid "hourly"
963
  msgstr ""
964
 
965
+ #: pages/func_backwpupeditjob.php:221
966
+ msgid "Full Path to folder for Backup Files:"
967
  msgstr ""
968
 
969
+ #: pages/func_backwpupeditjob.php:223
970
+ msgid "Your WordPress dir is:"
971
  msgstr ""
972
 
973
+ #: pages/func_backwpupeditjob.php:224 pages/func_backwpupeditjob.php:389
974
+ msgid "Max. backup files in folder:"
975
  msgstr ""
976
 
977
+ #: pages/func_backwpupeditjob.php:230
978
+ msgid "Hostname:"
979
  msgstr ""
980
 
981
+ #: pages/func_backwpupeditjob.php:238
982
+ msgid "Folder on Server:"
983
  msgstr ""
984
 
985
+ #: pages/func_backwpupeditjob.php:241
986
+ msgid "Max. backup files in FTP folder:"
987
  msgstr ""
988
 
989
+ #: pages/func_backwpupeditjob.php:241 pages/func_backwpupeditjob.php:260
990
+ #: pages/func_backwpupeditjob.php:285 pages/func_backwpupeditjob.php:312
991
+ #: pages/func_backwpupeditjob.php:335 pages/func_backwpupeditjob.php:367
992
+ #: pages/func_backwpupeditjob.php:389
993
+ msgid "(Oldest files will be deleted first.)"
994
  msgstr ""
995
 
996
+ #: pages/func_backwpupeditjob.php:242
997
+ msgid "Use SSL-FTP Connection."
998
  msgstr ""
999
 
1000
+ #: pages/func_backwpupeditjob.php:243
1001
+ msgid "Use FTP Passiv mode."
1002
  msgstr ""
1003
 
1004
+ #: pages/func_backwpupeditjob.php:250
1005
+ msgid "Access Key ID:"
1006
  msgstr ""
1007
 
1008
+ #: pages/func_backwpupeditjob.php:252
1009
+ msgid "Secret Access Key:"
1010
  msgstr ""
1011
 
1012
+ #: pages/func_backwpupeditjob.php:254 pages/func_backwpupeditjob.php:279
1013
+ msgid "Bucket:"
 
1014
  msgstr ""
1015
 
1016
+ #: pages/func_backwpupeditjob.php:257 pages/func_backwpupeditjob.php:282
1017
+ msgid "Create bucket:"
1018
  msgstr ""
1019
 
1020
+ #: pages/func_backwpupeditjob.php:257
1021
+ msgid "Bucket Region"
1022
  msgstr ""
1023
 
1024
+ #: pages/func_backwpupeditjob.php:257
1025
+ msgid "US-East (Northern Virginia)"
 
 
1026
  msgstr ""
1027
 
1028
+ #: pages/func_backwpupeditjob.php:257
1029
+ msgid "US-West (Northern California)"
 
 
1030
  msgstr ""
1031
 
1032
+ #: pages/func_backwpupeditjob.php:257
1033
+ msgid "EU (Ireland)"
1034
  msgstr ""
1035
 
1036
+ #: pages/func_backwpupeditjob.php:257
1037
+ msgid "Asia Pacific (Singapore)"
 
 
 
1038
  msgstr ""
1039
 
1040
+ #: pages/func_backwpupeditjob.php:257
1041
+ msgid "Asia Pacific (Japan)"
1042
  msgstr ""
1043
 
1044
+ #: pages/func_backwpupeditjob.php:258 pages/func_backwpupeditjob.php:283
1045
+ msgid "Folder in bucket:"
1046
  msgstr ""
1047
 
1048
+ #: pages/func_backwpupeditjob.php:260 pages/func_backwpupeditjob.php:285
1049
+ msgid "Max. backup files in bucket folder:"
1050
  msgstr ""
1051
 
1052
+ #: pages/func_backwpupeditjob.php:261
1053
+ msgid "Save Backups with reduced redundancy!"
1054
  msgstr ""
1055
 
1056
+ #: pages/func_backwpupeditjob.php:264 pages/func_backwpupeditjob.php:288
1057
+ #: pages/func_backwpupeditjob.php:315 pages/func_backwpupeditjob.php:338
1058
+ #: pages/func_backwpupeditjob.php:370 pages/func_backwpupeditjob.php:392
1059
+ msgid "Create Account"
1060
  msgstr ""
1061
 
1062
+ #: pages/func_backwpupeditjob.php:265 pages/func_backwpupeditjob.php:289
1063
+ msgid "Find Keys"
1064
  msgstr ""
1065
 
1066
+ #: pages/func_backwpupeditjob.php:266 pages/func_backwpupeditjob.php:290
1067
+ #: pages/func_backwpupeditjob.php:340 pages/func_backwpupeditjob.php:371
1068
+ #: pages/func_backwpupeditjob.php:393
1069
+ msgid "Webinterface"
1070
  msgstr ""
1071
 
1072
+ #: pages/func_backwpupeditjob.php:275 pages/func_backwpupeditjob.php:304
1073
+ msgid "Access Key:"
1074
  msgstr ""
1075
 
1076
+ #: pages/func_backwpupeditjob.php:277
1077
+ msgid "Secret:"
1078
  msgstr ""
1079
 
1080
+ #: pages/func_backwpupeditjob.php:300
1081
+ msgid "Host:"
1082
  msgstr ""
1083
 
1084
+ #: pages/func_backwpupeditjob.php:301
1085
+ msgid "Normely: blob.core.windows.net"
1086
  msgstr ""
1087
 
1088
+ #: pages/func_backwpupeditjob.php:302
1089
+ msgid "Account Name:"
1090
  msgstr ""
1091
 
1092
+ #: pages/func_backwpupeditjob.php:306 pages/func_backwpupeditjob.php:329
1093
+ msgid "Container:"
1094
  msgstr ""
1095
 
1096
+ #: pages/func_backwpupeditjob.php:309 pages/func_backwpupeditjob.php:332
1097
+ msgid "Create Container:"
1098
  msgstr ""
1099
 
1100
+ #: pages/func_backwpupeditjob.php:310
1101
+ msgid "Folder in Container:"
1102
  msgstr ""
1103
 
1104
+ #: pages/func_backwpupeditjob.php:312 pages/func_backwpupeditjob.php:335
1105
+ msgid "Max. backup files in container folder:"
1106
  msgstr ""
1107
 
1108
+ #: pages/func_backwpupeditjob.php:316 pages/func_backwpupeditjob.php:339
1109
+ msgid "Find Key"
1110
  msgstr ""
1111
 
1112
+ #: pages/func_backwpupeditjob.php:327
1113
+ msgid "API Key:"
1114
  msgstr ""
1115
 
1116
+ #: pages/func_backwpupeditjob.php:333
1117
+ msgid "Folder in container:"
1118
  msgstr ""
1119
 
1120
+ #: pages/func_backwpupeditjob.php:349
1121
+ msgid "Login:"
1122
  msgstr ""
1123
 
1124
+ #: pages/func_backwpupeditjob.php:351
1125
+ msgid "Not authenticated!"
1126
  msgstr ""
1127
 
1128
+ #: pages/func_backwpupeditjob.php:351
1129
+ msgid "Authenticate!"
1130
  msgstr ""
1131
 
1132
+ #: pages/func_backwpupeditjob.php:353
1133
+ msgid "Authenticated!"
1134
  msgstr ""
1135
 
1136
+ #: pages/func_backwpupeditjob.php:353
1137
+ msgid "Delete!"
1138
  msgstr ""
1139
 
1140
+ #: pages/func_backwpupeditjob.php:355
1141
+ msgid "oAuth sign method:"
1142
  msgstr ""
1143
 
1144
+ #: pages/func_backwpupeditjob.php:357 job/dest_dropbox.php:18
1145
+ msgid "HMAC-SHA1"
1146
  msgstr ""
1147
 
1148
+ #: pages/func_backwpupeditjob.php:358 job/dest_dropbox.php:15
1149
+ msgid "PLAINTEXT"
1150
  msgstr ""
1151
 
1152
+ #: pages/func_backwpupeditjob.php:360 pages/func_backwpupeditjob.php:384
1153
+ msgid "Root:"
1154
  msgstr ""
1155
 
1156
+ #: pages/func_backwpupeditjob.php:362
1157
+ msgid "dropbox"
1158
  msgstr ""
1159
 
1160
+ #: pages/func_backwpupeditjob.php:363
1161
+ msgid "sandbox (disabled by DropBox)"
1162
  msgstr ""
1163
 
1164
+ #: pages/func_backwpupeditjob.php:365 pages/func_backwpupeditjob.php:387
1165
+ msgid "Folder:"
1166
  msgstr ""
1167
 
1168
+ #: pages/func_backwpupeditjob.php:367
1169
+ msgid "Max. backup files in Dropbox folder:"
 
 
 
 
1170
  msgstr ""
1171
 
1172
+ #: pages/func_backwpupeditjob.php:380 pages/func_backwpupeditjob.php:400
1173
+ msgid "E-mail address:"
1174
  msgstr ""
1175
 
1176
+ #: pages/func_backwpupeditjob.php:403
1177
+ msgid "Max. File Size for sending Backups with mail:"
1178
  msgstr ""
1179
 
1180
+ #: pages/func_backwpupeditjob.php:450
1181
  msgid ""
1182
+ "Working as <a href=\"http://wikipedia.org/wiki/Cron\" target=\"_blank"
1183
+ "\">Cron</a> job schedule:"
1184
  msgstr ""
1185
 
1186
+ #: pages/func_backwpupeditjob.php:456
1187
+ msgid "ATTENTION: Job runs every %d mins.!!!"
1188
  msgstr ""
1189
 
1190
+ #: pages/func_backwpupeditjob.php:462
1191
+ msgid "ATTENTION: Job runs every %d houers.!!!"
1192
  msgstr ""
1193
 
1194
+ #: pages/func_backwpupeditjob.php:466
1195
+ msgid "ATTENTION: Can't calculate cron!!!"
1196
  msgstr ""
1197
 
1198
+ #: pages/func_backwpupeditjob.php:468
1199
+ msgid "Next runtime:"
1200
  msgstr ""
1201
 
1202
+ #: pages/func_backwpupeditjob.php:494 pages/func_backwpupeditjob.php:559
1203
+ msgid "Missing access key!"
1204
  msgstr ""
1205
 
1206
+ #: pages/func_backwpupeditjob.php:501 pages/func_backwpupeditjob.php:566
1207
+ msgid "Missing secret access key!"
1208
  msgstr ""
1209
 
1210
+ #: pages/func_backwpupeditjob.php:525 pages/func_backwpupeditjob.php:592
1211
+ msgid "No bucket fount!"
1212
  msgstr ""
1213
 
1214
+ #: pages/func_backwpupeditjob.php:627 pages/func_backwpupeditjob.php:756
1215
+ msgid "Missing Username!"
1216
  msgstr ""
1217
 
1218
+ #: pages/func_backwpupeditjob.php:634
1219
+ msgid "Missing API Key!"
1220
  msgstr ""
1221
 
1222
+ #: pages/func_backwpupeditjob.php:655
1223
+ msgid "No Containerss found!"
1224
  msgstr ""
1225
 
1226
+ #: pages/func_backwpupeditjob.php:690
1227
+ msgid "Missing Hostname!"
 
1228
  msgstr ""
1229
 
1230
+ #: pages/func_backwpupeditjob.php:697
1231
+ msgid "Missing Account Name!"
1232
  msgstr ""
1233
 
1234
+ #: pages/func_backwpupeditjob.php:704
1235
+ msgid "Missing Access Key!"
1236
  msgstr ""
1237
 
1238
+ #: pages/func_backwpupeditjob.php:721
1239
+ msgid "No Container found!"
1240
  msgstr ""
1241
 
1242
+ #: pages/func_backwpupeditjob.php:763
1243
+ msgid "Missing Password!"
1244
  msgstr ""
1245
 
1246
+ #: pages/func_backwpupeditjob.php:783
1247
+ msgid "No Syncfolders found!"
1248
  msgstr ""
1249
 
1250
+ #: pages/page_backwpupbackups.php:8
1251
+ msgid "BackWPup Manage Backups"
1252
  msgstr ""
1253
 
1254
+ #: pages/header_backwpupsettings.php:54
1255
+ msgid "Settings saved"
1256
  msgstr ""
1257
 
1258
+ #: job/dest_rsc.php:4
1259
+ msgid "Try to sending backup file to Rackspace Cloud..."
1260
  msgstr ""
1261
 
1262
+ #: job/dest_rsc.php:13
1263
+ msgid "Connected to Rackspase ..."
 
1264
  msgstr ""
1265
 
1266
+ #: job/dest_rsc.php:29 job/dest_rsc.php:63 job/dest_rsc.php:92
1267
+ msgid "Rackspase Cloud API:"
1268
  msgstr ""
1269
 
1270
+ #: job/dest_rsc.php:34
1271
+ msgid "Rackspase Cloud Container not exists:"
1272
  msgstr ""
1273
 
1274
+ #: job/dest_rsc.php:53
1275
+ msgid "Upload to RSC now started ... "
1276
  msgstr ""
1277
 
1278
+ #: job/dest_rsc.php:57
1279
+ msgid "Backup File transferred to RSC://"
1280
  msgstr ""
1281
 
1282
+ #: job/dest_rsc.php:60
1283
+ msgid "Can not transfer backup to RSC."
 
 
1284
  msgstr ""
1285
 
1286
+ #: job/dest_rsc.php:85
1287
+ msgid "Can not delete file on RSC://"
1288
  msgstr ""
1289
 
1290
+ #: job/dest_rsc.php:88
1291
+ msgid "One file deleted on RSC container"
1292
+ msgid_plural "%d files deleted on RSC container"
1293
+ msgstr[0] ""
1294
+ msgstr[1] ""
1295
 
1296
+ #: job/dest_msazure.php:5
1297
+ msgid "%d. try sending backup to a Microsoft Azure (Blob)..."
1298
  msgstr ""
1299
 
1300
+ #: job/dest_msazure.php:14
1301
+ msgid "Microsoft Azure container \"%s\" not exists!"
1302
  msgstr ""
1303
 
1304
+ #: job/dest_msazure.php:17
1305
+ msgid "Connected to Microsoft Azure container \"%s\""
1306
  msgstr ""
1307
 
1308
+ #: job/dest_msazure.php:20
1309
+ msgid "Upload to MS Azure now started... "
1310
  msgstr ""
1311
 
1312
+ #: job/dest_msazure.php:26 job/dest_s3.php:32 job/dest_gstorage.php:29
1313
+ #: job/dest_dropbox.php:48 job/dest_sugarsync.php:37
1314
+ msgid "Backup transferred to %s"
1315
  msgstr ""
1316
 
1317
+ #: job/dest_msazure.php:29
1318
+ msgid "Can not transfer backup to Microsoft Azure!"
1319
  msgstr ""
1320
 
1321
+ #: job/dest_msazure.php:50
1322
+ msgid "One file deleted on Microsoft Azure container"
1323
+ msgid_plural "%d files deleted on Microsoft Azure container"
1324
+ msgstr[0] ""
1325
+ msgstr[1] ""
1326
 
1327
+ #: job/dest_msazure.php:55
1328
+ msgid "Microsoft Azure API: %s"
1329
  msgstr ""
1330
 
1331
+ #: job/wp_export.php:5
1332
+ msgid "%d. try for wordpress export to XML file..."
 
1333
  msgstr ""
1334
 
1335
+ #: job/wp_export.php:27
1336
+ msgid "XML Export (%1$d) %2$s"
1337
  msgstr ""
1338
 
1339
+ #: job/wp_export.php:35
1340
+ msgid "Add XML export \"%1$s\" to backup list with %2$s"
1341
  msgstr ""
1342
 
1343
+ #: job/job_run.php:69
1344
+ msgid "Job restart terminated, bcause old job runs again!"
1345
  msgstr ""
1346
 
1347
+ #: job/job_run.php:72
1348
+ msgid "Job restarted, bcause inactivity!"
 
 
 
 
 
1349
  msgstr ""
1350
 
1351
+ #: job/job_run.php:74
1352
+ msgid "Second Prozess is running, bcause old job runs! Start type is %s"
1353
  msgstr ""
1354
 
1355
+ #: job/job_run.php:106
1356
+ msgid "Can not find job step file: %s"
1357
  msgstr ""
1358
 
1359
+ #: job/job_run.php:114
1360
  msgid ""
1361
+ "[INFO]: BackWPup version %1$s, WordPress version %4$s Copyright &copy; %2$s %"
1362
+ "3$s"
 
 
 
 
1363
  msgstr ""
1364
 
1365
+ #: job/job_run.php:115
1366
+ msgid ""
1367
+ "[INFO]: BackWPup comes with ABSOLUTELY NO WARRANTY. This is free software, "
1368
+ "and you are welcome to redistribute it under certain conditions."
1369
  msgstr ""
1370
 
1371
+ #: job/job_run.php:116
1372
+ msgid "[INFO]: BackWPup job:"
1373
  msgstr ""
1374
 
1375
+ #: job/job_run.php:118
1376
+ msgid "[INFO]: BackWPup cron:"
1377
  msgstr ""
1378
 
1379
+ #: job/job_run.php:120
1380
+ msgid "[INFO]: BackWPup job strated by cron"
1381
  msgstr ""
1382
 
1383
+ #: job/job_run.php:122
1384
+ msgid "[INFO]: BackWPup job strated manualy"
1385
  msgstr ""
1386
 
1387
+ #: job/job_run.php:123
1388
+ msgid "[INFO]: PHP ver.:"
1389
  msgstr ""
1390
 
1391
+ #: job/job_run.php:125
1392
+ msgid "[INFO]: PHP Safe mode is ON! Maximum script execution time is %1$d sec."
1393
  msgstr ""
1394
 
1395
+ #: job/job_run.php:126
1396
+ msgid "[INFO]: MySQL ver.:"
1397
  msgstr ""
1398
 
1399
+ #: job/job_run.php:129
1400
+ msgid "[INFO]: curl ver.:"
1401
  msgstr ""
1402
 
1403
+ #: job/job_run.php:131
1404
+ msgid "[INFO]: Temp folder is:"
1405
  msgstr ""
1406
 
1407
+ #: job/job_run.php:133
1408
+ msgid "[INFO]: Backup file is:"
1409
  msgstr ""
1410
 
1411
+ #: job/job_run.php:144
1412
+ msgid "No destination defineid for backup!!! Please correct job settings"
1413
  msgstr ""
1414
 
1415
+ #: job/job_run.php:166
1416
+ msgid "Step arborted has too many trys!"
 
 
1417
  msgstr ""
1418
 
1419
+ #: job/job_run.php:168
1420
+ msgid "Can not find job step function %s!"
1421
  msgstr ""
1422
 
1423
+ #: job/dest_s3.php:4
1424
+ msgid "%d. try sending backup file to Amazon S3..."
1425
  msgstr ""
1426
 
1427
+ #: job/dest_s3.php:14
1428
+ msgid "Connected to S3 Bucket: %s"
1429
  msgstr ""
1430
 
1431
+ #: job/dest_s3.php:26
1432
+ msgid "Upload to Amazon S3 now started... "
1433
  msgstr ""
1434
 
1435
+ #: job/dest_s3.php:35
1436
+ msgid "Can not transfer backup to S3! (%1$d) %2$s"
1437
  msgstr ""
1438
 
1439
+ #: job/dest_s3.php:38
1440
+ msgid "S3 Bucket \"%s\" not exists!"
1441
  msgstr ""
1442
 
1443
+ #: job/dest_s3.php:41 job/dest_s3.php:70
1444
+ msgid "Amazon API: %s"
1445
  msgstr ""
1446
 
1447
+ #: job/dest_s3.php:62
1448
+ msgid "Can not delete backup on S3://%s"
1449
  msgstr ""
1450
 
1451
+ #: job/dest_s3.php:65
1452
+ msgid "One file deleted on S3 Bucket"
1453
+ msgid_plural "%d files deleted on S3 Bucket"
1454
+ msgstr[0] ""
1455
+ msgstr[1] ""
1456
 
1457
+ #: job/db_optimize.php:4
1458
+ msgid "%d. try for database optimize..."
1459
  msgstr ""
1460
 
1461
+ #: job/db_optimize.php:12 job/db_optimize.php:27 job/job_functions.php:34
1462
+ #: job/job_functions.php:47 job/db_check.php:12 job/db_check.php:28
1463
+ #: job/db_check.php:43 job/db_dump.php:12 job/db_dump.php:25
1464
+ #: job/db_dump.php:109 job/db_dump.php:119
1465
+ msgid "Database error %1$s for query %2$s"
1466
  msgstr ""
1467
 
1468
+ #: job/db_optimize.php:34 job/db_optimize.php:36 job/db_optimize.php:38
1469
+ msgid "Result of table optimize for %1$s is: %2$s"
1470
  msgstr ""
1471
 
1472
+ #: job/db_optimize.php:40
1473
+ msgid "Database optimize done!"
1474
  msgstr ""
1475
 
1476
+ #: job/db_optimize.php:43
1477
+ msgid "No tables to optimize"
1478
  msgstr ""
1479
 
1480
+ #: job/job_functions.php:85
1481
+ msgid "PHP Safe mode is on!!! Can not increase memory limit is %s"
1482
  msgstr ""
1483
 
1484
+ #: job/job_functions.php:112
1485
+ msgid "Memory increased from %1$s to %2$s"
1486
  msgstr ""
1487
 
1488
+ #: job/job_functions.php:114
1489
+ msgid "Can not increase memory limit is %1$s"
1490
  msgstr ""
1491
 
1492
+ #: job/job_functions.php:124
1493
+ msgid "Set Blog to maintenance mode"
1494
  msgstr ""
1495
 
1496
+ #: job/job_functions.php:138
1497
+ msgid "Cannot set Blog to maintenance mode! Root folder is not writeable!"
1498
  msgstr ""
1499
 
1500
+ #: job/job_functions.php:141
1501
+ msgid "Set Blog to normal mode"
1502
  msgstr ""
1503
 
1504
+ #: job/job_functions.php:216
1505
+ msgid "No MySQL connection: %s"
1506
  msgstr ""
1507
 
1508
+ #: job/job_functions.php:231
1509
+ msgid "No MySQL connection to database: %s"
1510
  msgstr ""
1511
 
1512
+ #: job/job_functions.php:255
1513
+ msgid "[WARNING]"
1514
  msgstr ""
1515
 
1516
+ #: job/job_functions.php:261
1517
+ msgid "[ERROR]"
1518
  msgstr ""
1519
 
1520
+ #: job/job_functions.php:265
1521
+ msgid "[DEPRECATED]"
1522
  msgstr ""
1523
 
1524
+ #: job/job_functions.php:268
1525
+ msgid "[STRICT NOTICE]"
1526
  msgstr ""
1527
 
1528
+ #: job/job_functions.php:271
1529
+ msgid "[RECOVERABLE ERROR]"
1530
  msgstr ""
1531
 
1532
+ #: job/job_functions.php:348
1533
+ msgid "One old log deleted"
1534
+ msgid_plural "%d old logs deleted"
1535
+ msgstr[0] ""
1536
+ msgstr[1] ""
1537
 
1538
+ #: job/job_functions.php:352
1539
+ msgid "Job done in %s sec."
1540
  msgstr ""
1541
 
1542
+ #: job/job_functions.php:452
1543
+ msgid "Jobname: %s"
1544
  msgstr ""
1545
 
1546
+ #: job/job_functions.php:453
1547
+ msgid "Jobtype: %s"
1548
  msgstr ""
1549
 
1550
+ #: job/job_functions.php:455
1551
+ msgid "Errors: %d"
1552
  msgstr ""
1553
 
1554
+ #: job/job_functions.php:457
1555
+ msgid "Warnings: %d"
1556
  msgstr ""
1557
 
1558
+ #: job/job_functions.php:462
1559
+ msgid "BackWPup log from %1$s: %2$s"
1560
  msgstr ""
1561
 
1562
+ #: job/job_functions.php:487
1563
+ msgid "To many restarts...."
1564
  msgstr ""
1565
 
1566
+ #: job/job_functions.php:506
1567
+ msgid "Signal $d send to script!"
1568
  msgstr ""
1569
 
1570
+ #: job/job_functions.php:528
1571
+ msgid "Script stop! Will started again now!"
1572
  msgstr ""
1573
 
1574
+ #: job/file_list.php:5
1575
+ msgid "%d. try for make list of files to backup...."
1576
  msgstr ""
1577
 
1578
+ #: job/file_list.php:66
1579
+ msgid "No files to backup"
 
 
 
1580
  msgstr ""
1581
 
1582
+ #: job/file_list.php:68
1583
+ msgid "%1$d files with %2$s to backup"
1584
  msgstr ""
1585
 
1586
+ #: job/file_list.php:91
1587
+ msgid "File or folder \"%s\" is not readable!"
1588
  msgstr ""
1589
 
1590
+ #: job/file_list.php:93
1591
+ msgid "Link \"%s\" not followed"
1592
  msgstr ""
1593
 
1594
+ #: job/file_list.php:99
1595
+ msgid "\"%s\" is not a file or directory"
1596
  msgstr ""
1597
 
1598
+ #: job/dest_ftp.php:9
1599
+ msgid "%d. try to sending backup file to a FTP Server..."
1600
  msgstr ""
1601
 
1602
+ #: job/dest_ftp.php:17
1603
+ msgid "Connected by SSL-FTP to Server: %s"
1604
  msgstr ""
1605
 
1606
+ #: job/dest_ftp.php:19
1607
+ msgid "Can not connect by SSL-FTP to Server: %s"
1608
  msgstr ""
1609
 
1610
+ #: job/dest_ftp.php:23
1611
+ msgid "PHP function to connect with SSL-FTP to server not exists!"
1612
  msgstr ""
1613
 
1614
+ #: job/dest_ftp.php:29
1615
+ msgid "Connected to FTP server: %s"
1616
  msgstr ""
1617
 
1618
+ #: job/dest_ftp.php:31
1619
+ msgid "Can not connect to FTP server: %s"
1620
  msgstr ""
1621
 
1622
+ #: job/dest_ftp.php:38 job/dest_ftp.php:45 job/dest_ftp.php:57
1623
+ #: job/dest_ftp.php:70
1624
+ msgid "FTP Client command: %s"
1625
  msgstr ""
1626
 
1627
+ #: job/dest_ftp.php:40 job/dest_ftp.php:43 job/dest_ftp.php:47
1628
+ #: job/dest_ftp.php:60 job/dest_ftp.php:62 job/dest_ftp.php:65
1629
+ #: job/dest_ftp.php:67 job/dest_ftp.php:73 job/dest_ftp.php:75
1630
+ msgid "FTP Server reply: %s"
1631
  msgstr ""
1632
 
1633
+ #: job/dest_ftp.php:60
1634
+ msgid "Entering Passive Mode"
1635
  msgstr ""
1636
 
1637
+ #: job/dest_ftp.php:62
1638
+ msgid "Can not Entering Passive Mode"
1639
  msgstr ""
1640
 
1641
+ #: job/dest_ftp.php:65
1642
+ msgid "Entering Normal Mode"
1643
  msgstr ""
1644
 
1645
+ #: job/dest_ftp.php:67
1646
+ msgid "Can not Entering Normal Mode"
 
 
1647
  msgstr ""
1648
 
1649
+ #: job/dest_ftp.php:75
1650
+ msgid "Error getting SYSTYPE"
1651
  msgstr ""
1652
 
1653
+ #: job/dest_ftp.php:85
1654
+ msgid "FTP Folder \"%s\" created!"
 
 
1655
  msgstr ""
1656
 
1657
+ #: job/dest_ftp.php:88
1658
+ msgid "FTP Folder \"%s\" can not created!"
1659
  msgstr ""
1660
 
1661
+ #: job/dest_ftp.php:93
1662
+ msgid "Upload to FTP now started ... "
1663
  msgstr ""
1664
 
1665
+ #: job/dest_ftp.php:97
1666
+ msgid "Backup transferred to FTP server: %s"
1667
  msgstr ""
1668
 
1669
+ #: job/dest_ftp.php:100
1670
+ msgid "Can not transfer backup to FTP server!"
1671
  msgstr ""
1672
 
1673
+ #: job/dest_ftp.php:117
1674
+ msgid "Can not delete \"%s\" on FTP server!"
1675
  msgstr ""
1676
 
1677
+ #: job/dest_ftp.php:120
1678
+ msgid "One file deleted on FTP Server"
1679
+ msgid_plural "%d files deleted on FTP Server"
1680
+ msgstr[0] ""
1681
+ msgstr[1] ""
1682
 
1683
+ #: job/job_start.php:15
1684
+ msgid "A job already running!"
1685
  msgstr ""
1686
 
1687
+ #: job/job_start.php:24
1688
+ msgid "Can not create temp folder: %s"
1689
  msgstr ""
1690
 
1691
+ #: job/job_start.php:29
1692
+ msgid "Temp dir not writeable"
1693
  msgstr ""
1694
 
1695
+ #: job/job_start.php:115
1696
+ msgid "Can not create folder for log files: %s"
1697
  msgstr ""
1698
 
1699
+ #: job/job_start.php:130
1700
+ msgid "Log folder not writeable!"
1701
  msgstr ""
1702
 
1703
+ #: job/job_start.php:154
1704
+ msgid "BackWPup log for %1$s from %2$s at %3$s"
1705
  msgstr ""
1706
 
1707
+ #: job/job_start.php:182
1708
+ msgid "Can not create folder for backups: %1$s"
1709
  msgstr ""
1710
 
1711
+ #: job/job_start.php:199
1712
+ msgid "Backup folder not writeable!"
1713
  msgstr ""
1714
 
1715
+ #: job/dest_gstorage.php:4
1716
+ msgid "%d. try sending backup to Google Storage..."
1717
  msgstr ""
1718
 
1719
+ #: job/dest_gstorage.php:16
1720
+ msgid "Connected to GStorage Bucket: %s"
1721
  msgstr ""
1722
 
1723
+ #: job/dest_gstorage.php:23
1724
+ msgid "Upload to GStorage now started... "
1725
  msgstr ""
1726
 
1727
+ #: job/dest_gstorage.php:32
1728
+ msgid "Can not transfer backup to GStorage! (%1$d) %2$s"
1729
  msgstr ""
1730
 
1731
+ #: job/dest_gstorage.php:35
1732
+ msgid "GStorage Bucket \"%s\" not exists!"
1733
  msgstr ""
1734
 
1735
+ #: job/dest_gstorage.php:59
1736
+ msgid "Can not delete backup on GStorage://%s"
1737
  msgstr ""
1738
 
1739
+ #: job/dest_gstorage.php:62
1740
+ msgid "One file deleted on GStorage Bucket"
1741
+ msgid_plural "%d files deleted on GStorage Bucket"
1742
+ msgstr[0] ""
1743
+ msgstr[1] ""
1744
 
1745
+ #: job/dest_folder.php:25
1746
+ msgid "One backup file deleted"
1747
+ msgid_plural "%d backup files deleted"
1748
+ msgstr[0] ""
1749
+ msgstr[1] ""
1750
 
1751
+ #: job/dest_dropbox.php:6
1752
+ msgid "%d. Try to sending backup file to DropBox..."
1753
  msgstr ""
1754
 
1755
+ #: job/dest_dropbox.php:15 job/dest_dropbox.php:18
1756
+ msgid "oAuth sign method for DropBox is %s"
1757
  msgstr ""
1758
 
1759
+ #: job/dest_dropbox.php:27
1760
+ msgid "Authed with DropBox from %s"
1761
  msgstr ""
1762
 
1763
+ #: job/dest_dropbox.php:32
1764
+ msgid "No free space left on DropBox!!!"
 
 
1765
  msgstr ""
1766
 
1767
+ #: job/dest_dropbox.php:36
1768
+ msgid "%s free on DropBox"
1769
  msgstr ""
1770
 
1771
+ #: job/dest_dropbox.php:41
1772
+ msgid "Upload to DropBox now started... "
1773
  msgstr ""
1774
 
1775
+ #: job/dest_dropbox.php:50
1776
+ msgid "Error on transfere backup to DropBox: %s"
1777
  msgstr ""
1778
 
1779
+ #: job/dest_dropbox.php:56 job/dest_dropbox.php:81
1780
+ msgid "DropBox API: %s"
1781
  msgstr ""
1782
 
1783
+ #: job/dest_dropbox.php:77
1784
+ msgid "One file deleted on DropBox"
1785
+ msgid_plural "%d files deleted on DropBox"
1786
+ msgstr[0] ""
1787
+ msgstr[1] ""
1788
+
1789
+ #: job/db_check.php:4
1790
+ msgid "%d. try for database check..."
1791
  msgstr ""
1792
 
1793
+ #: job/db_check.php:33 job/db_check.php:35 job/db_check.php:37
1794
+ msgid "Result of table check for %1$s is: %2$s"
1795
  msgstr ""
1796
 
1797
+ #: job/db_check.php:48 job/db_check.php:50 job/db_check.php:52
1798
+ msgid "Result of table repair for %1$s is: %2$s"
1799
  msgstr ""
1800
 
1801
+ #: job/db_check.php:58
1802
+ msgid "Database check done!"
1803
  msgstr ""
1804
 
1805
+ #: job/db_check.php:60
1806
+ msgid "No tables to check"
1807
  msgstr ""
1808
 
1809
+ #: job/dest_sugarsync.php:6
1810
+ msgid "%d. try sending backup to SugarSync..."
1811
  msgstr ""
1812
 
1813
+ #: job/dest_sugarsync.php:15
1814
+ msgid "Authed to SugarSync with Nick %s"
1815
  msgstr ""
1816
 
1817
+ #: job/dest_sugarsync.php:19
1818
+ msgid "No free space left on SugarSync!!!"
1819
  msgstr ""
1820
 
1821
+ #: job/dest_sugarsync.php:24
1822
+ msgid "%s free on SugarSync"
1823
  msgstr ""
1824
 
1825
+ #: job/dest_sugarsync.php:31
1826
+ msgid "Upload to SugarSync now started... "
1827
  msgstr ""
1828
 
1829
+ #: job/dest_sugarsync.php:39
1830
+ msgid "Can not transfer backup to SugarSync!"
1831
  msgstr ""
1832
 
1833
+ #: job/dest_sugarsync.php:62
1834
+ msgid "One file deleted on SugarSync folder"
1835
+ msgid_plural "%d files deleted on SugarSync folder"
1836
+ msgstr[0] ""
1837
+ msgstr[1] ""
1838
+
1839
+ #: job/dest_sugarsync.php:66
1840
+ msgid "SugarSync API: %s"
1841
  msgstr ""
1842
 
1843
+ #: job/backup_create.php:13
1844
+ msgid "%d. try to create backup zip archive..."
1845
  msgstr ""
1846
 
1847
+ #: job/backup_create.php:18
1848
+ msgid "Can not add \"%s\" to zip archive!"
1849
  msgstr ""
1850
 
1851
+ #: job/backup_create.php:25
1852
+ msgid "(4) ER_SEEK"
1853
  msgstr ""
1854
 
1855
+ #: job/backup_create.php:27
1856
+ msgid "(5) ER_READ"
1857
  msgstr ""
1858
 
1859
+ #: job/backup_create.php:29
1860
+ msgid "(9) ER_NOENT"
1861
  msgstr ""
1862
 
1863
+ #: job/backup_create.php:31
1864
+ msgid "(10) ER_EXISTS"
1865
  msgstr ""
1866
 
1867
+ #: job/backup_create.php:33
1868
+ msgid "(11) ER_OPEN"
1869
  msgstr ""
1870
 
1871
+ #: job/backup_create.php:35
1872
+ msgid "(14) ER_MEMORY"
1873
  msgstr ""
1874
 
1875
+ #: job/backup_create.php:37
1876
+ msgid "(18) ER_INVAL"
1877
  msgstr ""
1878
 
1879
+ #: job/backup_create.php:39
1880
+ msgid "(19) ER_NOZIP"
1881
  msgstr ""
1882
 
1883
+ #: job/backup_create.php:41
1884
+ msgid "(21) ER_INCONS"
1885
  msgstr ""
1886
 
1887
+ #: job/backup_create.php:42
1888
+ msgid "Zip returns status: %s"
1889
  msgstr ""
1890
 
1891
+ #: job/backup_create.php:46
1892
+ msgid "Backup zip archive create done!"
1893
  msgstr ""
1894
 
1895
+ #: job/backup_create.php:49
1896
+ msgid "Can not create backup zip archive $s!"
 
 
1897
  msgstr ""
1898
 
1899
+ #: job/backup_create.php:56
1900
+ msgid "%d. try to create backup zip (PclZip) archive..."
1901
  msgstr ""
1902
 
1903
+ #: job/backup_create.php:65
1904
+ msgid "Zip archive create error: %s"
1905
  msgstr ""
1906
 
1907
+ #: job/backup_create.php:69
1908
+ msgid "Backup zip archive create done"
1909
  msgstr ""
1910
 
1911
+ #: job/backup_create.php:84
1912
+ msgid "Can not create tar arcive file!"
1913
  msgstr ""
1914
 
1915
+ #: job/backup_create.php:87
1916
+ msgid "%1$d. try to create %2$s archive file..."
1917
  msgstr ""
1918
 
1919
+ #: job/backup_create.php:95
1920
+ msgid "File \"%s\" not readable!"
1921
  msgstr ""
1922
 
1923
+ #: job/backup_create.php:110
1924
+ msgid "File name \"%1$s\" to long to save corectly in %2$s archive!"
1925
  msgstr ""
1926
 
1927
+ #: job/backup_create.php:112
1928
+ msgid "File path \"%1$s\" to long to save corectly in %2$s archive!"
1929
  msgstr ""
1930
 
1931
+ #: job/backup_create.php:189
1932
+ msgid "%s archive creation done"
1933
  msgstr ""
1934
 
1935
+ #: job/backup_create.php:193
1936
+ msgid "Archive size is %s"
1937
  msgstr ""
1938
 
1939
+ #: job/backup_create.php:200
1940
+ msgid "PCL ZIP Error \"%1$s\" on file %2$s!"
1941
  msgstr ""
1942
 
1943
+ #: job/db_dump.php:4
1944
+ msgid "%d. try for database dump..."
1945
  msgstr ""
1946
 
1947
+ #: job/db_dump.php:57
1948
+ msgid "Dump database table \"%s\""
1949
  msgstr ""
1950
 
1951
+ #: job/db_dump.php:74
1952
+ msgid "Database dump done!"
1953
  msgstr ""
1954
 
1955
+ #: job/db_dump.php:76
1956
+ msgid "Can not create database dump!"
1957
  msgstr ""
1958
 
1959
+ #: job/db_dump.php:79
1960
+ msgid "No tables to dump"
1961
  msgstr ""
1962
 
1963
+ #: job/db_dump.php:85
1964
+ msgid "Add database dump \"%1$s\" with %2$s to backup file list"
1965
  msgstr ""
1966
 
1967
+ #: job/dest_mail.php:6
1968
+ msgid "%d. try to sending backup with mail..."
1969
  msgstr ""
1970
 
1971
+ #: job/dest_mail.php:22
1972
+ msgid "Send mail with SMTP"
1973
  msgstr ""
1974
 
1975
+ #: job/dest_mail.php:26
1976
+ msgid "Send mail with Sendmail"
1977
  msgstr ""
1978
 
1979
+ #: job/dest_mail.php:29
1980
+ msgid "Send mail with PHP mail"
1981
  msgstr ""
1982
 
1983
+ #: job/dest_mail.php:32
1984
+ msgid "Creating mail"
1985
  msgstr ""
1986
 
1987
+ #: job/dest_mail.php:36
1988
+ msgid "BackWPup archive from %1$s: %2$s"
1989
  msgstr ""
1990
 
1991
+ #: job/dest_mail.php:38
1992
+ msgid "Backup archive: %s"
1993
  msgstr ""
1994
 
1995
+ #: job/dest_mail.php:44
1996
+ msgid "Backup archive too big for sending by mail!"
1997
  msgstr ""
1998
 
1999
+ #: job/dest_mail.php:51
2000
+ msgid "Adding backup archive to mail"
2001
  msgstr ""
2002
 
2003
+ #: job/dest_mail.php:55
2004
+ msgid "Send mail...."
2005
  msgstr ""
2006
 
2007
+ #: job/dest_mail.php:58
2008
+ msgid "Error \"%s\" on sending mail!"
 
 
2009
  msgstr ""
2010
 
2011
+ #: job/dest_mail.php:61
2012
+ msgid "Mail send!!!"
2013
  msgstr ""
2014
 
2015
+ #. #-#-#-#-# plugin.pot (BackWPup 2.1.1) #-#-#-#-#
2016
  #. Plugin Name of the plugin/theme
2017
+ #: backwpup-functions.php:4 backwpup-functions.php:265
2018
+ #: backwpup-functions.php:488
2019
  msgid "BackWPup"
2020
  msgstr ""
2021
 
2022
+ #: backwpup-functions.php:9
2023
  msgid "Working"
2024
  msgstr ""
2025
 
2026
+ #: backwpup-functions.php:13 backwpup-functions.php:493
2027
  msgid "Backups"
2028
  msgstr ""
2029
 
2030
+ #: backwpup-functions.php:15
2031
  msgid "Tools"
2032
  msgstr ""
2033
 
2034
+ #: backwpup-functions.php:17 backwpup-functions.php:246
2035
  msgid "Settings"
2036
  msgstr ""
2037
 
2038
+ #: backwpup-functions.php:94
2039
  msgid "For more information:"
2040
  msgstr ""
2041
 
2042
+ #: backwpup-functions.php:95 backwpup-functions.php:257
2043
  msgid "Support"
2044
  msgstr ""
2045
 
2046
+ #: backwpup-functions.php:96 backwpup-functions.php:256
2047
  msgid "FAQ"
2048
  msgstr ""
2049
 
2050
+ #: backwpup-functions.php:97
2051
  msgid "Plugin Homepage"
2052
  msgstr ""
2053
 
2054
+ #: backwpup-functions.php:98
2055
  msgid "Plugin on WordPress.org"
2056
  msgstr ""
2057
 
2058
+ #: backwpup-functions.php:99 backwpup-functions.php:258
2059
  msgid "Donate"
2060
  msgstr ""
2061
 
2062
+ #: backwpup-functions.php:100
2063
  msgid "Flattr"
2064
  msgstr ""
2065
 
2066
+ #: backwpup-functions.php:101
2067
  msgid ""
2068
  "BackWPup comes with ABSOLUTELY NO WARRANTY. This is free software, and you "
2069
  "are welcome to redistribute it under certain conditions."
2070
  msgstr ""
2071
 
2072
+ #: backwpup-functions.php:246
2073
  msgid "Go to Settings Page"
2074
  msgstr ""
2075
 
2076
+ #: backwpup-functions.php:320
2077
  msgid "WP XML Export"
2078
  msgstr ""
2079
 
2080
+ #: backwpup-functions.php:326
2081
  msgid "Database Backup"
2082
  msgstr ""
2083
 
2084
+ #: backwpup-functions.php:329
2085
  msgid "Optimize Database Tables"
2086
  msgstr ""
2087
 
2088
+ #: backwpup-functions.php:332
2089
  msgid "Check Database Tables"
2090
  msgstr ""
2091
 
2092
+ #: backwpup-functions.php:397
2093
  msgid "View Log:"
2094
  msgstr ""
2095
 
2096
+ #: backwpup-functions.php:429
2097
  msgid "How many of the lastes logs would you like to display?"
2098
  msgstr ""
2099
 
2100
+ #: backwpup-functions.php:455
2101
  msgid "working since %d sec."
2102
  msgstr ""
2103
 
2104
+ #: backwpup-functions.php:462
2105
  msgid "Edit Job"
2106
  msgstr ""
2107
 
2108
+ #: backwpup-functions.php:478
2109
  msgid "BackWPup Aktive Jobs"
2110
  msgstr ""
2111
 
2112
+ #: backwpup-functions.php:490
2113
  msgid "See Working!"
2114
  msgstr ""
2115
 
2116
+ #: backwpup-functions.php:494
2117
  msgid "BackWPup Job"
2118
  msgstr ""
2119
 
2120
+ #: backwpup-functions.php:703
2121
+ msgid "- WordPress %d or heiger is needed!"
2122
  msgstr ""
2123
 
2124
+ #: backwpup-functions.php:707
2125
+ msgid "- PHP 5.2.4 or higher is needed!"
2126
  msgstr ""
2127
 
2128
+ #: backwpup-functions.php:714
2129
+ msgid "- Log folder does not exists:"
2130
  msgstr ""
2131
 
2132
+ #: backwpup-functions.php:717
2133
+ msgid "- Log folder is not writeable:"
2134
  msgstr ""
2135
 
2136
+ #: backwpup-functions.php:720
2137
+ msgid "- Log folder is not in open_basedir path:"
2138
  msgstr ""
2139
 
2140
+ #: backwpup-functions.php:726
2141
+ msgid "- Please check the scheduled time for the job:"
2142
  msgstr ""
2143
 
2144
+ #: backwpup-functions.php:731
2145
+ msgid "- WP-Cron isn't working, please check it!"
2146
  msgstr ""
2147
 
2148
+ #: backwpup-functions.php:784
2149
  msgid "New"
2150
  msgstr ""
2151
 
libs/aws/sdk.class.php CHANGED
@@ -102,9 +102,9 @@ function __aws_sdk_ua_callback()
102
  // INTERMEDIARY CONSTANTS
103
 
104
  define('CFRUNTIME_NAME', 'aws-sdk-php');
105
- define('CFRUNTIME_VERSION', '1.3.6');
106
  // define('CFRUNTIME_BUILD', gmdate('YmdHis', filemtime(__FILE__))); // @todo: Hardcode for release.
107
- define('CFRUNTIME_BUILD', '20110713055831');
108
  define('CFRUNTIME_USERAGENT', CFRUNTIME_NAME . '/' . CFRUNTIME_VERSION . ' PHP/' . PHP_VERSION . ' ' . php_uname('s') . '/' . php_uname('r') . ' Arch/' . php_uname('m') . ' SAPI/' . php_sapi_name() . ' Integer/' . PHP_INT_MAX . ' Build/' . CFRUNTIME_BUILD . __aws_sdk_ua_callback());
109
 
110
 
102
  // INTERMEDIARY CONSTANTS
103
 
104
  define('CFRUNTIME_NAME', 'aws-sdk-php');
105
+ define('CFRUNTIME_VERSION', '1.3.7');
106
  // define('CFRUNTIME_BUILD', gmdate('YmdHis', filemtime(__FILE__))); // @todo: Hardcode for release.
107
+ define('CFRUNTIME_BUILD', '20110725055831');
108
  define('CFRUNTIME_USERAGENT', CFRUNTIME_NAME . '/' . CFRUNTIME_VERSION . ' PHP/' . PHP_VERSION . ' ' . php_uname('s') . '/' . php_uname('r') . ' Arch/' . php_uname('m') . ' SAPI/' . php_sapi_name() . ' Integer/' . PHP_INT_MAX . ' Build/' . CFRUNTIME_BUILD . __aws_sdk_ua_callback());
109
 
110
 
libs/aws/services/as.class.php CHANGED
@@ -38,7 +38,7 @@
38
  * href="http://docs.amazonwebservices.com/general/latest/gr/index.html?rande.html">Regions and Endpoints</a> in the Amazon Web Services
39
  * General Reference.
40
  *
41
- * @version Tue Jun 07 16:11:09 PDT 2011
42
  * @license See the included NOTICE.md file for complete information.
43
  * @copyright See the included NOTICE.md file for complete information.
44
  * @link http://aws.amazon.com/autoscaling/Amazon Auto-Scaling
@@ -140,8 +140,10 @@ class AmazonAS extends CFRuntime
140
  *
141
  * @param string $auto_scaling_group_name (Required) The name or ARN of the Auto Scaling Group.
142
  * @param string $scheduled_action_name (Required) The name of this scaling action.
143
- * @param string $time (Required) The time for this action to start. Accepts any value that <php:strtotime()> understands.
144
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
 
145
  * <li><code>MinSize</code> - <code>integer</code> - Optional - The minimum size for the new Auto Scaling group. </li>
146
  * <li><code>MaxSize</code> - <code>integer</code> - Optional - The maximum size for the Auto Scaling group. </li>
147
  * <li><code>DesiredCapacity</code> - <code>integer</code> - Optional - The number of EC2 instances that should be running in the group. </li>
@@ -149,12 +151,23 @@ class AmazonAS extends CFRuntime
149
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
150
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
151
  */
152
- public function put_scheduled_update_group_action($auto_scaling_group_name, $scheduled_action_name, $time, $opt = null)
153
  {
154
  if (!$opt) $opt = array();
155
  $opt['AutoScalingGroupName'] = $auto_scaling_group_name;
156
  $opt['ScheduledActionName'] = $scheduled_action_name;
157
- $opt['Time'] = $this->util->convert_date_to_iso8601($time);
 
 
 
 
 
 
 
 
 
 
 
158
 
159
  return $this->authenticate('PutScheduledUpdateGroupAction', $opt, $this->hostname);
160
  }
38
  * href="http://docs.amazonwebservices.com/general/latest/gr/index.html?rande.html">Regions and Endpoints</a> in the Amazon Web Services
39
  * General Reference.
40
  *
41
+ * @version Wed Jul 20 13:14:36 PDT 2011
42
  * @license See the included NOTICE.md file for complete information.
43
  * @copyright See the included NOTICE.md file for complete information.
44
  * @link http://aws.amazon.com/autoscaling/Amazon Auto-Scaling
140
  *
141
  * @param string $auto_scaling_group_name (Required) The name or ARN of the Auto Scaling Group.
142
  * @param string $scheduled_action_name (Required) The name of this scaling action.
 
143
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
144
+ * <li><code>Time</code> - <code>string</code> - Optional - The time for this action to start. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
145
+ * <li><code>EndTime</code> - <code>string</code> - Optional - May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
146
+ * <li><code>Recurrence</code> - <code>string</code> - Optional - </li>
147
  * <li><code>MinSize</code> - <code>integer</code> - Optional - The minimum size for the new Auto Scaling group. </li>
148
  * <li><code>MaxSize</code> - <code>integer</code> - Optional - The maximum size for the Auto Scaling group. </li>
149
  * <li><code>DesiredCapacity</code> - <code>integer</code> - Optional - The number of EC2 instances that should be running in the group. </li>
151
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
152
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
153
  */
154
+ public function put_scheduled_update_group_action($auto_scaling_group_name, $scheduled_action_name, $opt = null)
155
  {
156
  if (!$opt) $opt = array();
157
  $opt['AutoScalingGroupName'] = $auto_scaling_group_name;
158
  $opt['ScheduledActionName'] = $scheduled_action_name;
159
+
160
+ // Optional parameter
161
+ if (isset($opt['Time']))
162
+ {
163
+ $opt['Time'] = $this->util->convert_date_to_iso8601($opt['Time']);
164
+ }
165
+
166
+ // Optional parameter
167
+ if (isset($opt['EndTime']))
168
+ {
169
+ $opt['EndTime'] = $this->util->convert_date_to_iso8601($opt['EndTime']);
170
+ }
171
 
172
  return $this->authenticate('PutScheduledUpdateGroupAction', $opt, $this->hostname);
173
  }
libs/aws/services/s3.class.php CHANGED
@@ -2370,6 +2370,7 @@ class AmazonS3 extends CFRuntime
2370
  * <li><code>method</code> - <code>string</code> - Optional - The HTTP method to use for the request. Defaults to a value of <code>GET</code>.</li>
2371
  * <li><code>response</code> - <code>array</code> - Optional - Allows adjustments to specific response headers. Pass an associative array where each key is one of the following: <code>cache-control</code>, <code>content-disposition</code>, <code>content-encoding</code>, <code>content-language</code>, <code>content-type</code>, <code>expires</code>. The <code>expires</code> value should use <php:gmdate()> and be formatted with the <code>DATE_RFC2822</code> constant.</li>
2372
  * <li><code>torrent</code> - <code>boolean</code> - Optional - A value of <code>true</code> will return a URL to a torrent of the Amazon S3 object. A value of <code>false</code> will return a non-torrent URL. Defaults to <code>false</code>.</li>
 
2373
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2374
  * @return string The file URL, with authentication and/or torrent parameters if requested.
2375
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/S3_QSAuth.html Using Query String Authentication
2370
  * <li><code>method</code> - <code>string</code> - Optional - The HTTP method to use for the request. Defaults to a value of <code>GET</code>.</li>
2371
  * <li><code>response</code> - <code>array</code> - Optional - Allows adjustments to specific response headers. Pass an associative array where each key is one of the following: <code>cache-control</code>, <code>content-disposition</code>, <code>content-encoding</code>, <code>content-language</code>, <code>content-type</code>, <code>expires</code>. The <code>expires</code> value should use <php:gmdate()> and be formatted with the <code>DATE_RFC2822</code> constant.</li>
2372
  * <li><code>torrent</code> - <code>boolean</code> - Optional - A value of <code>true</code> will return a URL to a torrent of the Amazon S3 object. A value of <code>false</code> will return a non-torrent URL. Defaults to <code>false</code>.</li>
2373
+ * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
2374
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2375
  * @return string The file URL, with authentication and/or torrent parameters if requested.
2376
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/S3_QSAuth.html Using Query String Authentication
libs/aws/services/sdb.class.php CHANGED
@@ -31,7 +31,7 @@
31
  *
32
  * Visit <a href="http://aws.amazon.com/simpledb/">http://aws.amazon.com/simpledb/</a> for more information.
33
  *
34
- * @version Tue Jul 12 16:12:15 PDT 2011
35
  * @license See the included NOTICE.md file for complete information.
36
  * @copyright See the included NOTICE.md file for complete information.
37
  * @link http://aws.amazon.com/simpledb/Amazon SimpleDB
@@ -276,7 +276,7 @@ class AmazonSDB extends CFRuntime
276
  * The PutAttributes operation creates or replaces attributes in an item.
277
  *
278
  * A single item can have the attributes <code>{ "first_name", "first_value" }</code> and
279
- * <code>{ "first_name", second_value" }</code>. However, it cannot have two attribute instances where
280
  * both the attribute name and attribute value are the same. Optionally, the requestor can supply the
281
  * <code>Replace</code> parameter for each individual attribute. Setting this value to true causes the
282
  * new attribute value to replace the existing attribute value(s).
@@ -366,12 +366,13 @@ class AmazonSDB extends CFRuntime
366
  * @param array $item_keypairs (Required) Associative array of parameters which are treated as item-key-value and item-key-multivalue pairs (i.e. a key can have one or more values; think tags). <ul>
367
  * <li><code>[item]</code> - <code>array</code> - Set the custom item name as the key for this value.<ul>
368
  * <li><code>[key]</code> - <code>array</code> - Set the custom key name as the key for this value. For the value, pass a string for a single value, or an indexed array for multiple values.</li>
369
- * </ul></li></ul>
 
370
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
371
  * <li><code>Item</code> - <code>array</code> - Optional - A list of items on which to perform the operation. <ul>
372
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
373
- * <li><code>ItemName</code> - <code>string</code> - Optional - This is the parameter format supported by the web service API. This is the item name to use.<ul>
374
- * <li><code>Attribute</code> - <code>array</code> - Optional - This is the parameter format supported by the web service API. This is the attribute node.<ul>
375
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
376
  * <li><code>Name</code> - <code>string</code> - Required - The name of the attribute. </li>
377
  * <li><code>AlternateNameEncoding</code> - <code>string</code> - Optional - This is the parameter format supported by the web service API. This is the alternate name encoding to use.</li>
@@ -598,15 +599,16 @@ class AmazonSDB extends CFRuntime
598
  *
599
  * @param string $domain_name (Required) The name of the domain in which the attributes are being deleted.
600
  * @param array $item_keypairs (Required) Associative array of parameters which are treated as item-key-value and item-key-multivalue pairs (i.e. a key can have one or more values; think tags). <ul>
601
- * <li><code>[item]</code> - <code>array</code> - Set the custom item name as the key for this value.<ul>
602
  * <li><code>[key]</code> - <code>array</code> - Set the custom key name as the key for this value. For the value, pass a string for a single value, or an indexed array for multiple values.</li>
603
- * </ul></li></ul>
 
604
  * @param boolean|array $replace (Optional) Whether to replace a key-value pair if a matching key already exists. Supports either a boolean (which affects ALL key-value pairs) or an indexed array of key names (which affects only the keys specified). Defaults to boolean <code>false</code>.
605
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
606
  * <li><code>Item</code> - <code>array</code> - Optional - A list of items on which to perform the operation. <ul>
607
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
608
- * <li><code>ItemName</code> - <code>string</code> - Optional - This is the parameter format supported by the web service API. This is the item name to use.<ul>
609
- * <li><code>Attribute</code> - <code>array</code> - Optional - This is the parameter format supported by the web service API. This is the attribute node.<ul>
610
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
611
  * <li><code>Name</code> - <code>string</code> - Required - The name of the attribute. </li>
612
  * <li><code>AlternateNameEncoding</code> - <code>string</code> - Optional - This is the parameter format supported by the web service API. This is the alternate name encoding to use.</li>
31
  *
32
  * Visit <a href="http://aws.amazon.com/simpledb/">http://aws.amazon.com/simpledb/</a> for more information.
33
  *
34
+ * @version Wed Jul 20 13:20:46 PDT 2011
35
  * @license See the included NOTICE.md file for complete information.
36
  * @copyright See the included NOTICE.md file for complete information.
37
  * @link http://aws.amazon.com/simpledb/Amazon SimpleDB
276
  * The PutAttributes operation creates or replaces attributes in an item.
277
  *
278
  * A single item can have the attributes <code>{ "first_name", "first_value" }</code> and
279
+ * <code>{ "first_name", "second_value" }</code>. However, it cannot have two attribute instances where
280
  * both the attribute name and attribute value are the same. Optionally, the requestor can supply the
281
  * <code>Replace</code> parameter for each individual attribute. Setting this value to true causes the
282
  * new attribute value to replace the existing attribute value(s).
366
  * @param array $item_keypairs (Required) Associative array of parameters which are treated as item-key-value and item-key-multivalue pairs (i.e. a key can have one or more values; think tags). <ul>
367
  * <li><code>[item]</code> - <code>array</code> - Set the custom item name as the key for this value.<ul>
368
  * <li><code>[key]</code> - <code>array</code> - Set the custom key name as the key for this value. For the value, pass a string for a single value, or an indexed array for multiple values.</li>
369
+ * </ul></li>
370
+ * </ul>
371
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
372
  * <li><code>Item</code> - <code>array</code> - Optional - A list of items on which to perform the operation. <ul>
373
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
374
+ * <li><code>ItemName</code> - <code>string</code> - Optional - This is the parameter format supported by the web service API. This is the item name to use.</li>
375
+ * <li><code>Attribute</code> - <code>array</code> - Optional - This is the parameter format supported by the web service API. This is the attribute node. <ul>
376
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
377
  * <li><code>Name</code> - <code>string</code> - Required - The name of the attribute. </li>
378
  * <li><code>AlternateNameEncoding</code> - <code>string</code> - Optional - This is the parameter format supported by the web service API. This is the alternate name encoding to use.</li>
599
  *
600
  * @param string $domain_name (Required) The name of the domain in which the attributes are being deleted.
601
  * @param array $item_keypairs (Required) Associative array of parameters which are treated as item-key-value and item-key-multivalue pairs (i.e. a key can have one or more values; think tags). <ul>
602
+ * <li><code>[item]</code> - <code>array</code> - Set the custom item name as the key for this value. <ul>
603
  * <li><code>[key]</code> - <code>array</code> - Set the custom key name as the key for this value. For the value, pass a string for a single value, or an indexed array for multiple values.</li>
604
+ * </ul></li>
605
+ * </ul>
606
  * @param boolean|array $replace (Optional) Whether to replace a key-value pair if a matching key already exists. Supports either a boolean (which affects ALL key-value pairs) or an indexed array of key names (which affects only the keys specified). Defaults to boolean <code>false</code>.
607
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
608
  * <li><code>Item</code> - <code>array</code> - Optional - A list of items on which to perform the operation. <ul>
609
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
610
+ * <li><code>ItemName</code> - <code>string</code> - Optional - This is the parameter format supported by the web service API. This is the item name to use.</li>
611
+ * <li><code>Attribute</code> - <code>array</code> - Optional - This is the parameter format supported by the web service API. This is the attribute node. <ul>
612
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
613
  * <li><code>Name</code> - <code>string</code> - Required - The name of the attribute. </li>
614
  * <li><code>AlternateNameEncoding</code> - <code>string</code> - Optional - This is the parameter format supported by the web service API. This is the alternate name encoding to use.</li>
libs/aws/services/sqs.class.php CHANGED
@@ -28,7 +28,7 @@
28
  *
29
  * Visit <a href="http://aws.amazon.com/sqs/">http://aws.amazon.com/sqs/</a> for more information.
30
  *
31
- * @version Tue Jul 12 16:13:05 PDT 2011
32
  * @license See the included NOTICE.md file for complete information.
33
  * @copyright See the included NOTICE.md file for complete information.
34
  * @link http://aws.amazon.com/sqs/Amazon Simple Queue Service
@@ -390,6 +390,8 @@ class AmazonSQS extends CFRuntime
390
  * This action unconditionally deletes the queue specified by the queue URL. Use this operation WITH CARE! The queue is deleted even if it is
391
  * NOT empty.
392
  *
 
 
393
  * @param string $queue_url (Required) The URL of the SQS queue to take action on.
394
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
395
  * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
28
  *
29
  * Visit <a href="http://aws.amazon.com/sqs/">http://aws.amazon.com/sqs/</a> for more information.
30
  *
31
+ * @version Wed Jul 20 13:21:47 PDT 2011
32
  * @license See the included NOTICE.md file for complete information.
33
  * @copyright See the included NOTICE.md file for complete information.
34
  * @link http://aws.amazon.com/sqs/Amazon Simple Queue Service
390
  * This action unconditionally deletes the queue specified by the queue URL. Use this operation WITH CARE! The queue is deleted even if it is
391
  * NOT empty.
392
  *
393
+ * Once a queue has been deleted, the queue name is unavailable for use with new queues for 60 seconds.
394
+ *
395
  * @param string $queue_url (Required) The URL of the SQS queue to take action on.
396
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
397
  * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
libs/class.http.php CHANGED
@@ -212,6 +212,8 @@ class Http
212
  * @todo will keep debug messages
213
  */
214
  var $debugMsg;
 
 
215
 
216
  /**
217
  * Constructor for initializing the class with default values.
@@ -563,6 +565,13 @@ class Http
563
  {
564
  return $this->error;
565
  }
 
 
 
 
 
 
 
566
 
567
  /**
568
  * Execute a HTTP request
@@ -688,6 +697,7 @@ class Http
688
  // Basic Authentication configuration
689
  if ($this->username && $this->password)
690
  {
 
691
  curl_setopt($ch, CURLOPT_USERPWD, $this->username . ':' . $this->password);
692
  }
693
 
@@ -697,6 +707,12 @@ class Http
697
  curl_setopt ($ch, CURLOPT_COOKIE, $cookieString);
698
  }
699
 
 
 
 
 
 
 
700
  curl_setopt($ch, CURLOPT_HEADER, TRUE); // No need of headers
701
  curl_setopt($ch, CURLOPT_NOBODY, FALSE); // Return body
702
 
@@ -894,14 +910,14 @@ class Http
894
  if($this->status == 0)
895
  {
896
  // Oooops !
897
- if(!eregi($match = "^http/[0-9]+\\.[0-9]+[ \t]+([0-9]+)[ \t]*(.*)\$", $headers[0], $matches))
898
  {
899
- $this->_setError('Unexpected HTTP response status');
900
  return FALSE;
901
  }
902
 
903
  // Gotcha!
904
- $this->status = $matches[1];
905
  array_shift($headers);
906
  }
907
 
212
  * @todo will keep debug messages
213
  */
214
  var $debugMsg;
215
+
216
+ protected $ProgressFunction = false;
217
 
218
  /**
219
  * Constructor for initializing the class with default values.
565
  {
566
  return $this->error;
567
  }
568
+
569
+ public function setProgressFunction($function) {
570
+ if (function_exists($function))
571
+ $this->ProgressFunction = $function;
572
+ else
573
+ $this->ProgressFunction = false;
574
+ }
575
 
576
  /**
577
  * Execute a HTTP request
697
  // Basic Authentication configuration
698
  if ($this->username && $this->password)
699
  {
700
+ curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
701
  curl_setopt($ch, CURLOPT_USERPWD, $this->username . ':' . $this->password);
702
  }
703
 
707
  curl_setopt ($ch, CURLOPT_COOKIE, $cookieString);
708
  }
709
 
710
+ if (defined('CURLOPT_PROGRESSFUNCTION') and !empty($this->ProgressFunction)) {
711
+ curl_setopt($ch, CURLOPT_NOPROGRESS, false);
712
+ curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, $this->ProgressFunction);
713
+ curl_setopt($ch, CURLOPT_BUFFERSIZE, 512);
714
+ }
715
+
716
  curl_setopt($ch, CURLOPT_HEADER, TRUE); // No need of headers
717
  curl_setopt($ch, CURLOPT_NOBODY, FALSE); // Return body
718
 
910
  if($this->status == 0)
911
  {
912
  // Oooops !
913
+ if(!preg_match('~^HTTP/1\.\d (?P<status>\d+)~', $headers[0], $matches))
914
  {
915
+ $this->_setError('Unexpected HTTP response status: '.$headers[0]);
916
  return FALSE;
917
  }
918
 
919
  // Gotcha!
920
+ $this->status = $matches['status'];
921
  array_shift($headers);
922
  }
923
 
libs/googlestorage.php DELETED
@@ -1,344 +0,0 @@
1
- <?php
2
- /**
3
- * Implements the Google Storage REST API
4
- * @author Andries Mooij
5
- * @author Slawomir Jasinski <slav123@gmail.com>
6
- *
7
- *
8
- */
9
-
10
- /**
11
- * Provides access to Google Storage
12
- * Relies on the unsurpassed CURL Extension and PHP >= 5.1.2 (because of hash_hmac)
13
- * This class returns the HTTP Code directly on failure.
14
- *
15
- * On ACL Strings:
16
- * - private<br>
17
- * Gives the requester FULL_CONTROL permission for a bucket or object. This is the default ACL that's applied when you upload an object or create a bucket.
18
- * - public-read<br>
19
- * Gives the requester FULL_CONTROL permission and gives all anonymous users READ permission. When you apply this to an object, anyone on the Internet can read the object without authenticating.
20
- * - public-read-write<br>
21
- * Gives the requester FULL_CONTROL permission and gives all anonymous users READ and WRITE permission. This ACL applies only to buckets.
22
- * - authenticated-read<br>
23
- * Gives the requester FULL_CONTROL permission and gives all authenticated Google account holders READ permission.
24
- * - bucket-owner-read<br>
25
- * Gives the requester FULL_CONTROL permission and gives the bucket owner READ permission. This is used only with objects.
26
- * - bucket-owner-full-control<br>
27
- * Gives the requester FULL_CONTROL permission and gives the bucket owner FULL_CONTROL permission. This is used only with objects.
28
- *
29
- * @package Util
30
- */
31
- class GoogleStorage {
32
- /**
33
- * Google Storage Access Key
34
- * @access protected
35
- * @var string
36
- */
37
- protected $accessKey;
38
- /**
39
- * Google Storage Secret
40
- * @access protected
41
- * @var string
42
- */
43
- protected $secret;
44
- /**
45
- * The Host for Google Storage. You can change this if you're using CNAME access.
46
- * @access public
47
- * @var string
48
- */
49
- public static $host = "commondatastorage.googleapis.com";
50
- /**
51
- * Enables debugging mode. Breaks some stuff, but helps you figure out errors.
52
- * @access protected
53
- * @var bool
54
- */
55
- protected $debug = false;
56
-
57
- protected $ProgressFunction = false;
58
-
59
- /**
60
- * Creates a new Google Storage class
61
- *
62
- * @param string $accessKey
63
- * @param string $secret
64
- */
65
- public function __construct($accessKey, $secret) {
66
- $this->accessKey = $accessKey;
67
- $this->secret = $secret;
68
- }
69
-
70
- /**
71
- * Lists your buckets.
72
- *
73
- * @return SimpleXMLElement|integer
74
- */
75
- public function listBuckets() {
76
- $ret = $this->curlExec(self::$host, "GET", "/");
77
- return is_object($ret) ? $ret->Buckets->Bucket : $ret;
78
- }
79
-
80
-
81
-
82
- public function setProgressFunction($function) {
83
- if (function_exists($function))
84
- $this->ProgressFunction = $function;
85
- else
86
- $this->ProgressFunction = false;
87
- }
88
-
89
- /**
90
- * Creates a bucket.
91
- * Returns the HTTP Result Code.
92
- *
93
- * @param string $name
94
- * @param string|SimpleXMLElement $acl
95
- * @return integer
96
- */
97
- public function createBucket($name, $acl = null) {
98
- $body = $acl instanceof SimpleXMLElement ? (string)$acl : "";
99
- if (is_string($acl) && strlen($acl)) {
100
- $headers[] = "x-goog-acl: " . $acl;
101
- }
102
- return $this->curlExec($name . "." . self::$host, "PUT", "/", "", array(), $body);
103
- }
104
-
105
- /**
106
- * Retrieves information about a bucket and it's contents.
107
- *
108
- * @param string $name
109
- * @param string $prefix
110
- * @param string $delimiter
111
- * @param string $marker
112
- * @param string $maxKeys
113
- * @return SimpleXMLElement|integer
114
- */
115
- public function getBucket($name, $prefix = "", $delimiter = "", $marker = "", $maxKeys = -1) {
116
- $parameters = array();
117
- if (strlen($prefix)) {
118
- $parameters[] = "prefix=" . urlencode($prefix);
119
- }
120
- if (strlen($delimiter)) {
121
- $parameters[] = "delimiter=" . urlencode($delimiter);
122
- }
123
- if (strlen($marker)) {
124
- $parameters[] = "marker=" . urlencode($marker);
125
- }
126
- if ($maxKeys != -1) {
127
- $parameters[] = "max-keys=" . $maxKeys;
128
- }
129
- $parameters = (count($parameters) ? "?" : "") . implode("&", $parameters);
130
-
131
- $ret = $this->curlExec($name . "." . self::$host, "GET", "/", $parameters);
132
- return is_object($ret) ? $ret->Contents : $ret;
133
- }
134
-
135
- /**
136
- * Retrieves the ACL Settings for a bucket.
137
- *
138
- * @param string $name
139
- * @return SimpleXMLElement|integer
140
- */
141
- public function getBucketAcl($name) {
142
- $ret = $this->curlExec($name . "." . self::$host, "GET", "/?acl");
143
- return is_object($ret) ? $ret->AccessControlList : $ret;
144
- }
145
-
146
- /**
147
- * Deletes an empty bucket. You can't delete non-empty buckets.
148
- *
149
- * @param string $name
150
- * @return integer
151
- */
152
- public function deleteBucket($name) {
153
- return $this->curlExec($name . "." . self::$host, "DELETE", "/");
154
- }
155
-
156
- /**
157
- * Stores a file in an object.
158
- *
159
- * @param string $bucket
160
- * @param string $name
161
- * @param string $file
162
- * @param string $aclString
163
- * @return integer
164
- */
165
- public function putObject($bucket, $name, $content, $aclString = NULL, $mimeType = NULL) {
166
- $headers = array();
167
-
168
- if (function_exists('finfo_open') and !empty($mimeType)) {
169
- $finfo = finfo_open(FILEINFO_MIME_TYPE);
170
- $headers[]= 'Content-Type: ' .finfo_file($finfo, $file);
171
- finfo_close($finfo);
172
- } else {
173
- $headers[]= 'Content-Type: '.$mimeType;
174
- }
175
-
176
- if (strlen($aclString)) {
177
- $headers[] = "x-goog-acl: " . $aclString;
178
- }
179
-
180
- return $this->curlExec($bucket . "." . self::$host, "PUT", "/" . $name, "", $headers, $content);
181
- }
182
-
183
- /**
184
- * Retrieves an object.
185
- *
186
- * @param string $bucket
187
- * @param string $name
188
- * @return string
189
- */
190
- public function getObject($bucket, $name) {
191
- return $this->curlExec($bucket . "." . self::$host, "GET", "/" . $name);
192
- }
193
-
194
- /**
195
- * Deletes an object.
196
- *
197
- * @param string $bucket
198
- * @param string $name
199
- * @return integer
200
- */
201
- public function deleteObject($bucket, $name) {
202
- return $this->curlExec($bucket . "." . self::$host, "DELETE", "/" . $name);
203
- }
204
-
205
- /**
206
- * CURL Helper function. Does all the work.
207
- *
208
- * @param string $host
209
- * @param string $method
210
- * @param string $scope
211
- * @param string $parameters
212
- * @param array $headers
213
- * @param string $body
214
- * @return SimpleXMLElement|integer|string
215
- */
216
- protected function curlExec($host, $method, $scope, $parameters = "", $headers = array(), $body = "") {
217
- $headers[] = 'Date: ' . date("r");
218
- $headers[] = 'Host: ' . $host;
219
- //$headers[] = 'x-goog-api-version: 2';
220
-
221
- $ch = curl_init();
222
- curl_setopt($ch, CURLOPT_URL, $host . "." . $scope . $parameters);
223
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
224
- if ($method == "POST") {
225
- $headers[] = 'Content-Length: ' . strlen($body);
226
- curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
227
- }
228
- elseif ($method == "PUT") {
229
- if (is_file($body) and is_readable($body)) {
230
- $headers[]='Content-Length: ' .filesize($body);
231
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
232
- $datafilefd=fopen($body,'r');
233
- curl_setopt($ch, CURLOPT_PUT,true);
234
- curl_setopt($ch, CURLOPT_INFILE,$datafilefd);
235
- curl_setopt($ch, CURLOPT_INFILESIZE,filesize($body));
236
- } else {
237
- $headers[]='Content-Length: ' .strlen($body);
238
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
239
- curl_setopt($ch, CURLOPT_PUT,true);
240
- curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
241
- }
242
- if (function_exists($this->ProgressFunction) and defined('CURLOPT_PROGRESSFUNCTION')) {
243
- curl_setopt($ch, CURLOPT_NOPROGRESS, false);
244
- curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, $this->ProgressFunction);
245
- curl_setopt($ch, CURLOPT_BUFFERSIZE, 512);
246
- }
247
- }
248
- else {
249
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
250
- }
251
- $subdomain = str_replace(array(self::$host, "."), array("", ""), $host);
252
- $subdomain = strlen($subdomain) ? ("/" . $subdomain) : "";
253
- $headers[] = $this->getAuthorizationHeader($method, $subdomain . $scope, $headers);
254
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
255
- if ($this->debug) {
256
- curl_setopt($ch, CURLOPT_HEADER, true);
257
- }
258
- $ret = curl_exec($ch);
259
- $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
260
- if ($this->debug) {
261
- echo "<pre>" . $code . "\n" . $ret . "</pre>";
262
- }
263
- if (false !== stripos(curl_getinfo($ch, CURLINFO_CONTENT_TYPE),'xml'))
264
- $ret=simplexml_load_string($ret);
265
- //var_dump($ret);
266
- if ($code >= 200 and $code<300) {
267
- return $ret;
268
- }
269
- else {
270
- return $code.' '.$ret->Message;
271
- }
272
- }
273
-
274
- /**
275
- * Creates the Authorization-header in the GOOG1 format.
276
- *
277
- * @param string $method
278
- * @param string $resource
279
- * @param array $headers
280
- * @return string
281
- */
282
- protected function getAuthorizationHeader($method, $resource, $headers) {
283
- /*
284
- CanonicalHeaders = HTTP-Verb + "\n" +
285
- Content-MD5 + "\n" +
286
- Content-Type + "\n" +
287
- Date + "\n"
288
- */
289
- $canonicalHeaders = $method . "\n";
290
- $md5 = preg_grep("/^Content-MD5\s*:/i", $headers);
291
- if (count($md5)) {
292
- list($name, $content) = explode(": ", current($md5));
293
- $canonicalHeaders .= $content . "\n";
294
- }
295
- else {
296
- $canonicalHeaders .= "\n";
297
- }
298
- $contentType = preg_grep("/^Content-Type\s*:/i", $headers);
299
- if (count($contentType)) {
300
- list($name, $content) = explode(": ", current($contentType));
301
- $canonicalHeaders .= $content . "\n";
302
- }
303
- else {
304
- $canonicalHeaders .= "\n";
305
- }
306
- $date = preg_grep("/^Date\s*:/i", $headers);
307
- if (count($date)) {
308
- list($name, $content) = explode(": ", current($date));
309
- $canonicalHeaders .= $content . "\n";
310
- }
311
- else {
312
- $canonicalHeaders .= "\n";
313
- }
314
-
315
- /*
316
- You construct the CanonicalExtensionHeaders portion of the message by concatenating all extension (custom) headers that begin with x-goog-. However, you cannot perform a simple concatenation. You must concatenate the headers using the following process:
317
- - Make all custom header names lowercase.
318
- - Sort all custom headers lexicographically by header name.
319
- - Eliminate duplicate header names by creating one header name with a comma-separated list of values. Be sure there is no whitespace between the values and be sure that the order of the comma-separated list matches the order that the headers appear in your request. For more information, see RFC 2616 section 4.2.
320
- - Replace any folding whitespace or newlines (CRLF or LF) with a single space. For more information about folding whitespace, see RFC 2822 section 2.2.3.
321
- - Remove any whitespace around the colon that appears after the header name.
322
- - Append a newline (U+000A) to each custom header.
323
- - Concatenate all custom headers.
324
- - It's important to note that you use both the header name and the header value when you construct the CanonicalExtensionHeaders portion of the message. This is different than the CanonicalHeaders portion of the message, which used only header values.
325
- */
326
-
327
- $customHeaders = preg_grep("/^x-goog-/i", $headers);
328
- $customHeaders = preg_replace("/^(x-goog-[^:]+)\s*:\s*/ie", "strtolower('$1:')", $customHeaders);
329
- sort($customHeaders, SORT_STRING);
330
- $customHeaders = preg_replace("/\r\n(\s)/s", "$1", $customHeaders);
331
- $customHeaders = implode(",", $customHeaders) . (count($customHeaders) ? "\n" : "");
332
-
333
- /*
334
- Signature = Base64-Encoding-Of(HMAC-SHA1(UTF-8-Encoding-Of(YourGoogleStorageSecretKey, MessageToBeSigned)))
335
-
336
- To create the signature you use a cryptographic hash function known as HMAC-SHA1. HMAC-SHA1 is a hash-based message authentication code (MAC) and is described in RFC 2104. It requires two input parameters, both UTF-8 encoded: a key and a message. You use your Google Storage secret as the key. You must construct the message by concatenating specific HTTP headers in a specific order.
337
- The message that you sign is a UTF-8 encoded byte string. The following pseudocode notation shows how to construct this byte string:
338
-
339
- MessageToBeSigned = UTF-8-Encoding-Of(CanonicalHeaders + CanonicalExtensionHeaders + CanonicalResource)
340
- */
341
- return "Authorization: GOOG1 " . $this->accessKey . ":" . base64_encode(hash_hmac("sha1", $canonicalHeaders . $customHeaders . $resource, $this->secret, true));
342
- }
343
-
344
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pages/func_backwpup.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  include_once( trailingslashit(ABSPATH).'wp-admin/includes/class-wp-list-table.php');
9
 
10
  class BackWPup_Jobs_Table extends WP_List_Table {
@@ -195,6 +189,7 @@ function backwpup_calc_file_size($jobvalues) {
195
  $backwpup_temp_files=array('size'=>0,'num'=>0);
196
  //Exclude Files
197
  $backwpup_exclude=explode(',',trim($jobvalues['fileexclude']));
 
198
  $backwpup_exclude=array_unique($backwpup_exclude);
199
 
200
  //File list for blog folders
@@ -236,7 +231,7 @@ function backwpup_show_info_td() {
236
  $dbsize=array('size'=>0,'num'=>0,'rows'=>0);
237
  $status=$wpdb->get_results("SHOW TABLE STATUS FROM `".DB_NAME."`;", ARRAY_A);
238
  foreach($status as $tablekey => $tablevalue) {
239
- if (in_array($tablevalue['Name'],$jobvalue['dbtables'])) {
240
  $dbsize['size']=$dbsize['size']+$tablevalue["Data_length"]+$tablevalue["Index_length"];
241
  $dbsize['num']++;
242
  $dbsize['rows']=$dbsize['rows']+$tablevalue["Rows"];
1
  <?PHP
 
 
 
 
 
 
2
  include_once( trailingslashit(ABSPATH).'wp-admin/includes/class-wp-list-table.php');
3
 
4
  class BackWPup_Jobs_Table extends WP_List_Table {
189
  $backwpup_temp_files=array('size'=>0,'num'=>0);
190
  //Exclude Files
191
  $backwpup_exclude=explode(',',trim($jobvalues['fileexclude']));
192
+ $backwpup_exclude[]='.tmp'; //do not backup .tmp files
193
  $backwpup_exclude=array_unique($backwpup_exclude);
194
 
195
  //File list for blog folders
231
  $dbsize=array('size'=>0,'num'=>0,'rows'=>0);
232
  $status=$wpdb->get_results("SHOW TABLE STATUS FROM `".DB_NAME."`;", ARRAY_A);
233
  foreach($status as $tablekey => $tablevalue) {
234
+ if (!in_array($tablevalue['Name'],$jobvalue['dbexclude'])) {
235
  $dbsize['size']=$dbsize['size']+$tablevalue["Data_length"]+$tablevalue["Index_length"];
236
  $dbsize['num']++;
237
  $dbsize['rows']=$dbsize['rows']+$tablevalue["Rows"];
pages/func_backwpupbackups.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  include_once( trailingslashit(ABSPATH).'wp-admin/includes/class-wp-list-table.php');
9
 
10
  class BackWPup_Backups_Table extends WP_List_Table {
@@ -310,7 +304,7 @@ function backwpup_get_backup_files($jobid,$dest) {
310
  if ($object['is_dir']!=true) {
311
  $files[$filecounter]['JOBID']=$jobid;
312
  $files[$filecounter]['DEST']=$dest;
313
- $files[$filecounter]['folder']="DROPBOX:/".dirname($object['path']).'/';
314
  $files[$filecounter]['file']=$object['path'];
315
  $files[$filecounter]['filename']=basename($object['path']);
316
  $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloaddropbox&file='.$object['path'].'&jobid='.$jobid;
@@ -333,13 +327,14 @@ function backwpup_get_backup_files($jobid,$dest) {
333
  try {
334
  $sugarsync = new SugarSync($jobvalue['sugaruser'],base64_decode($jobvalue['sugarpass']),BACKWPUP_SUGARSYNC_ACCESSKEY, BACKWPUP_SUGARSYNC_PRIVATEACCESSKEY);
335
  $dirid=$sugarsync->chdir($jobvalue['sugardir'],$jobvalue['sugarroot']);
 
336
  $dir=$sugarsync->showdir($dirid);
337
  $getfiles=$sugarsync->getcontents('file');
338
  if (is_object($getfiles)) {
339
  foreach ($getfiles->file as $getfile) {
340
  $files[$filecounter]['JOBID']=$jobid;
341
  $files[$filecounter]['DEST']=$dest;
342
- $files[$filecounter]['folder']="SUGARSYNC://".$dir;
343
  $files[$filecounter]['file']=(string)$getfile->ref;
344
  $files[$filecounter]['filename']=utf8_decode((string) $getfile->displayName);
345
  $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloadsugarsync&file='.(string) $getfile->ref.'&jobid='.$jobid;
@@ -364,7 +359,7 @@ function backwpup_get_backup_files($jobid,$dest) {
364
  foreach ($contents->body->Contents as $object) {
365
  $files[$filecounter]['JOBID']=$jobid;
366
  $files[$filecounter]['DEST']=$dest;
367
- $files[$filecounter]['folder']="S3://".$jobvalue['awsBucket']."/".dirname((string)$object->Key).'/';
368
  $files[$filecounter]['file']=(string)$object->Key;
369
  $files[$filecounter]['filename']=basename($object->Key);
370
  $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloads3&file='.$object->Key.'&jobid='.$jobid;
@@ -380,27 +375,28 @@ function backwpup_get_backup_files($jobid,$dest) {
380
  }
381
  //Get files/filinfo from Google Storage
382
  if ($dest=='GSTORAGE' and !empty($jobvalue['GStorageAccessKey']) and !empty($jobvalue['GStorageSecret']) and !empty($jobvalue['GStorageBucket'])) {
383
- if (!class_exists('GoogleStorage'))
384
- require_once(dirname(__FILE__).'/../libs/googlestorage.php');
385
- if (class_exists('GoogleStorage')) {
386
  try {
387
- $googlestorage = new GoogleStorage($jobvalue['GStorageAccessKey'],$jobvalue['GStorageSecret']);
388
- $contents = $googlestorage->getBucket($jobvalue['GStorageBucket'],$jobvalue['GStoragedir']);
389
- if (is_object($contents)) {
390
- foreach ($contents as $object) {
 
391
  $files[$filecounter]['JOBID']=$jobid;
392
  $files[$filecounter]['DEST']=$dest;
393
- $files[$filecounter]['folder']="GSTORAGE://".$jobvalue['GStorageBucket']."/".dirname((string)$object->Key).'/';
394
  $files[$filecounter]['file']=(string)$object->Key;
395
  $files[$filecounter]['filename']=basename($object->Key);
396
- $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloadgstorage&file='.$object->Key.'&jobid='.$jobid;
397
  $files[$filecounter]['filesize']=(string)$object->Size;
398
  $files[$filecounter]['time']=strtotime($object->LastModified);
399
  $filecounter++;
400
  }
401
  }
402
  } catch (Exception $e) {
403
- $backwpup_message.='Google Sorage: '.$e->getMessage().'<br />';
404
  }
405
  }
406
  }
@@ -416,7 +412,7 @@ function backwpup_get_backup_files($jobid,$dest) {
416
  foreach ($blobs as $blob) {
417
  $files[$filecounter]['JOBID']=$jobid;
418
  $files[$filecounter]['DEST']=$dest;
419
- $files[$filecounter]['folder']="MSAZURE://".$jobvalue['msazureContainer']."/".dirname($blob->Name)."/";
420
  $files[$filecounter]['file']=$blob->Name;
421
  $files[$filecounter]['filename']=basename($blob->Name);
422
  $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloadmsazure&file='.$blob->Name.'&jobid='.$jobid;
@@ -462,15 +458,11 @@ function backwpup_get_backup_files($jobid,$dest) {
462
  }
463
  //Get files/filinfo from FTP
464
  if ($dest=='FTP' and !empty($jobvalue['ftphost']) and function_exists('ftp_connect') and !empty($jobvalue['ftpuser']) and !empty($jobvalue['ftppass'])) {
465
- $ftpport=21;
466
- $ftphost=$jobvalue['ftphost'];
467
- if (false !== strpos($jobvalue['ftphost'],':')) //look for port
468
- list($ftphost,$ftpport)=explode(':',$jobvalue,2);
469
 
470
  if (function_exists('ftp_ssl_connect') and $jobvalue['ftpssl']) { //make SSL FTP connection
471
- $ftp_conn_id = ftp_ssl_connect($ftphost,$ftpport,10);
472
  } elseif (!$jobvalue['ftpssl']) { //make normal FTP conection if SSL not work
473
- $ftp_conn_id = ftp_connect($ftphost,$ftpport,10);
474
  }
475
  $loginok=false;
476
  if ($ftp_conn_id) {
@@ -492,10 +484,10 @@ function backwpup_get_backup_files($jobid,$dest) {
492
  continue;
493
  $files[$filecounter]['JOBID']=$jobid;
494
  $files[$filecounter]['DEST']=$dest;
495
- $files[$filecounter]['folder']="FTP://".$jobvalue['ftphost'].dirname($ftpfiles)."/";
496
  $files[$filecounter]['file']=$ftpfiles;
497
  $files[$filecounter]['filename']=basename($ftpfiles);
498
- $files[$filecounter]['downloadurl']="ftp://".rawurlencode($jobvalue['ftpuser']).":".rawurlencode(base64_decode($jobvalue['ftppass']))."@".$jobvalue['ftphost'].rawurlencode($ftpfiles);
499
  $files[$filecounter]['filesize']=ftp_size($ftp_conn_id,$ftpfiles);
500
  $files[$filecounter]['time']=ftp_mdtm($ftp_conn_id,$ftpfiles);
501
  $filecounter++;
1
  <?PHP
 
 
 
 
 
 
2
  include_once( trailingslashit(ABSPATH).'wp-admin/includes/class-wp-list-table.php');
3
 
4
  class BackWPup_Backups_Table extends WP_List_Table {
304
  if ($object['is_dir']!=true) {
305
  $files[$filecounter]['JOBID']=$jobid;
306
  $files[$filecounter]['DEST']=$dest;
307
+ $files[$filecounter]['folder']="https://api-content.dropbox.com/0/files/".$jobvalue['droperoot']."/".dirname($object['path'])."/";
308
  $files[$filecounter]['file']=$object['path'];
309
  $files[$filecounter]['filename']=basename($object['path']);
310
  $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloaddropbox&file='.$object['path'].'&jobid='.$jobid;
327
  try {
328
  $sugarsync = new SugarSync($jobvalue['sugaruser'],base64_decode($jobvalue['sugarpass']),BACKWPUP_SUGARSYNC_ACCESSKEY, BACKWPUP_SUGARSYNC_PRIVATEACCESSKEY);
329
  $dirid=$sugarsync->chdir($jobvalue['sugardir'],$jobvalue['sugarroot']);
330
+ $user=$sugarsync->user();
331
  $dir=$sugarsync->showdir($dirid);
332
  $getfiles=$sugarsync->getcontents('file');
333
  if (is_object($getfiles)) {
334
  foreach ($getfiles->file as $getfile) {
335
  $files[$filecounter]['JOBID']=$jobid;
336
  $files[$filecounter]['DEST']=$dest;
337
+ $files[$filecounter]['folder']='https://'.$user->nickname.'.sugarsync.com/'.$dir;
338
  $files[$filecounter]['file']=(string)$getfile->ref;
339
  $files[$filecounter]['filename']=utf8_decode((string) $getfile->displayName);
340
  $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloadsugarsync&file='.(string) $getfile->ref.'&jobid='.$jobid;
359
  foreach ($contents->body->Contents as $object) {
360
  $files[$filecounter]['JOBID']=$jobid;
361
  $files[$filecounter]['DEST']=$dest;
362
+ $files[$filecounter]['folder']="https://".$jobvalue['awsBucket'].".s3.amazonaws.com/".dirname((string)$object->Key).'/';
363
  $files[$filecounter]['file']=(string)$object->Key;
364
  $files[$filecounter]['filename']=basename($object->Key);
365
  $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloads3&file='.$object->Key.'&jobid='.$jobid;
375
  }
376
  //Get files/filinfo from Google Storage
377
  if ($dest=='GSTORAGE' and !empty($jobvalue['GStorageAccessKey']) and !empty($jobvalue['GStorageSecret']) and !empty($jobvalue['GStorageBucket'])) {
378
+ if (!class_exists('AmazonS3'))
379
+ require_once(dirname(__FILE__).'/../libs/aws/sdk.class.php');
380
+ if (class_exists('AmazonS3')) {
381
  try {
382
+ $gstorage = new AmazonS3($jobvalue['GStorageAccessKey'], $jobvalue['GStorageSecret']);
383
+ $gstorage->set_hostname('commondatastorage.googleapis.com');
384
+ $gstorage->allow_hostname_override(false);
385
+ if (($contents = $gstorage->list_objects($jobvalue['GStorageBucket'],array('prefix'=>$jobvalue['GStoragedir']))) !== false) {
386
+ foreach ($contents->body->Contents as $object) {
387
  $files[$filecounter]['JOBID']=$jobid;
388
  $files[$filecounter]['DEST']=$dest;
389
+ $files[$filecounter]['folder']="https://sandbox.google.com/storage/".$jobvalue['GStorageBucket']."/".dirname((string)$object->Key).'/';
390
  $files[$filecounter]['file']=(string)$object->Key;
391
  $files[$filecounter]['filename']=basename($object->Key);
392
+ $files[$filecounter]['downloadurl']="https://sandbox.google.com/storage/".$jobvalue['GStorageBucket']."/".(string)$object->Key;
393
  $files[$filecounter]['filesize']=(string)$object->Size;
394
  $files[$filecounter]['time']=strtotime($object->LastModified);
395
  $filecounter++;
396
  }
397
  }
398
  } catch (Exception $e) {
399
+ $backwpup_message.=sprintf(__('GStorage API: %s','backwpup'),$e->getMessage()).'<br />';
400
  }
401
  }
402
  }
412
  foreach ($blobs as $blob) {
413
  $files[$filecounter]['JOBID']=$jobid;
414
  $files[$filecounter]['DEST']=$dest;
415
+ $files[$filecounter]['folder']="https://".$jobvalue['msazureAccName'].'.'.$jobvalue['msazureHost']."/".$jobvalue['msazureContainer']."/".dirname($blob->Name)."/";
416
  $files[$filecounter]['file']=$blob->Name;
417
  $files[$filecounter]['filename']=basename($blob->Name);
418
  $files[$filecounter]['downloadurl']=backwpup_admin_url('admin.php').'?page=backwpupbackups&action=downloadmsazure&file='.$blob->Name.'&jobid='.$jobid;
458
  }
459
  //Get files/filinfo from FTP
460
  if ($dest=='FTP' and !empty($jobvalue['ftphost']) and function_exists('ftp_connect') and !empty($jobvalue['ftpuser']) and !empty($jobvalue['ftppass'])) {
 
 
 
 
461
 
462
  if (function_exists('ftp_ssl_connect') and $jobvalue['ftpssl']) { //make SSL FTP connection
463
+ $ftp_conn_id = ftp_ssl_connect($jobvalue['ftphost'],$jobvalue['ftphostport'],10);
464
  } elseif (!$jobvalue['ftpssl']) { //make normal FTP conection if SSL not work
465
+ $ftp_conn_id = ftp_connect($jobvalue['ftphost'],$jobvalue['ftphostport'],10);
466
  }
467
  $loginok=false;
468
  if ($ftp_conn_id) {
484
  continue;
485
  $files[$filecounter]['JOBID']=$jobid;
486
  $files[$filecounter]['DEST']=$dest;
487
+ $files[$filecounter]['folder']="ftp://".$jobvalue['ftphost'].':'.$jobvalue['ftphostport'].dirname($ftpfiles)."/";
488
  $files[$filecounter]['file']=$ftpfiles;
489
  $files[$filecounter]['filename']=basename($ftpfiles);
490
+ $files[$filecounter]['downloadurl']="ftp://".rawurlencode($jobvalue['ftpuser']).":".rawurlencode(base64_decode($jobvalue['ftppass']))."@".$jobvalue['ftphost'].':'.$jobvalue['ftphostport'].rawurlencode($ftpfiles);
491
  $files[$filecounter]['filesize']=ftp_size($ftp_conn_id,$ftpfiles);
492
  $files[$filecounter]['time']=ftp_mdtm($ftp_conn_id,$ftpfiles);
493
  $filecounter++;
pages/func_backwpupeditjob.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  function backwpup_jobedit_metabox_save($jobvalue) {
9
  ?>
10
  <div class="submitbox" id="submitlink">
@@ -292,7 +286,7 @@ function backwpup_jobedit_metabox_destgstorage($jobvalue) {
292
  </div>
293
  <div class="destlinks">
294
  <a href="http://code.google.com/apis/storage/docs/signup.html" target="_blank"><?PHP _e('Create Account','backwpup'); ?></a><br />
295
- <a href="https://code.google.com/apis/console/?pli=1#storage:legacy" target="_blank"><?PHP _e('Find Keys','backwpup'); ?></a><br />
296
  <a href="https://sandbox.google.com/storage/" target="_blank"><?PHP _e('Webinterface','backwpup'); ?></a><br />
297
  </div>
298
  <br class="clear" />
@@ -497,14 +491,14 @@ function backwpup_get_aws_buckets($args='') {
497
  if (!class_exists('CFRuntime'))
498
  require_once(dirname(__FILE__).'/../libs/aws/sdk.class.php');
499
  if (empty($awsAccessKey)) {
500
- echo '<span id="awsBucket" style="color:red;">'.__('Missing Access Key ID!','backwpup').'</span>';
501
  if ($ajax)
502
  die();
503
  else
504
  return;
505
  }
506
  if (empty($awsSecretKey)) {
507
- echo '<span id="awsBucket" style="color:red;">'.__('Missing Secret Access Key!','backwpup').'</span>';
508
  if ($ajax)
509
  die();
510
  else
@@ -526,7 +520,14 @@ function backwpup_get_aws_buckets($args='') {
526
  die();
527
  else
528
  return;
529
- }
 
 
 
 
 
 
 
530
  echo '<select name="awsBucket" id="awsBucket">';
531
  foreach ($buckets->body->Buckets->Bucket as $bucket) {
532
  echo "<option ".selected(strtolower($awsselected),strtolower($bucket->Name),false).">".$bucket->Name."</option>";
@@ -552,25 +553,27 @@ function backwpup_get_gstorage_buckets($args='') {
552
  $GStorageselected=$_POST['GStorageselected'];
553
  $ajax=true;
554
  }
555
- if (!class_exists('Tws_Service_Google_Storage'))
556
- require_once(dirname(__FILE__).'/../libs/googlestorage.php');
557
  if (empty($GStorageAccessKey)) {
558
- echo '<span id="GStorageBucket" style="color:red;">'.__('Missing Access Key!','backwpup').'</span>';
559
  if ($ajax)
560
  die();
561
  else
562
  return;
563
  }
564
  if (empty($GStorageSecret)) {
565
- echo '<span id="GStorageBucket" style="color:red;">'.__('Missing Secret!','backwpup').'</span>';
566
  if ($ajax)
567
  die();
568
  else
569
  return;
570
  }
571
  try {
572
- $googlestorage = new GoogleStorage($GStorageAccessKey, $GStorageSecret);
573
- $gbuckets=$googlestorage->listBuckets();
 
 
574
  } catch (Exception $e) {
575
  echo '<span id="GStorageBucket" style="color:red;">'.$e->getMessage().'</span>';
576
  if ($ajax)
@@ -578,15 +581,22 @@ function backwpup_get_gstorage_buckets($args='') {
578
  else
579
  return;
580
  }
581
- if (!is_object($gbuckets)) {
582
- echo '<span id="GStorageBucket" style="color:red;">'.$gbuckets.'</span>';
583
  if ($ajax)
584
  die();
585
  else
586
  return;
587
  }
 
 
 
 
 
 
 
588
  echo '<select name="GStorageBucket" id="GStorageBucket">';
589
- foreach ($gbuckets as $bucket) {
590
  echo "<option ".selected(strtolower($GStorageselected),strtolower($bucket->Name),false).">".$bucket->Name."</option>";
591
  }
592
  echo '</select>';
1
  <?PHP
 
 
 
 
 
 
2
  function backwpup_jobedit_metabox_save($jobvalue) {
3
  ?>
4
  <div class="submitbox" id="submitlink">
286
  </div>
287
  <div class="destlinks">
288
  <a href="http://code.google.com/apis/storage/docs/signup.html" target="_blank"><?PHP _e('Create Account','backwpup'); ?></a><br />
289
+ <a href="https://code.google.com/apis/console/" target="_blank"><?PHP _e('Find Keys','backwpup'); ?></a><br />
290
  <a href="https://sandbox.google.com/storage/" target="_blank"><?PHP _e('Webinterface','backwpup'); ?></a><br />
291
  </div>
292
  <br class="clear" />
491
  if (!class_exists('CFRuntime'))
492
  require_once(dirname(__FILE__).'/../libs/aws/sdk.class.php');
493
  if (empty($awsAccessKey)) {
494
+ echo '<span id="awsBucket" style="color:red;">'.__('Missing access key!','backwpup').'</span>';
495
  if ($ajax)
496
  die();
497
  else
498
  return;
499
  }
500
  if (empty($awsSecretKey)) {
501
+ echo '<span id="awsBucket" style="color:red;">'.__('Missing secret access key!','backwpup').'</span>';
502
  if ($ajax)
503
  die();
504
  else
520
  die();
521
  else
522
  return;
523
+ }
524
+ if (count($buckets->body->Buckets->Bucket)<1) {
525
+ echo '<span id="awsBucket" style="color:red;">'.__('No bucket fount!','backwpup').'</span>';
526
+ if ($ajax)
527
+ die();
528
+ else
529
+ return;
530
+ }
531
  echo '<select name="awsBucket" id="awsBucket">';
532
  foreach ($buckets->body->Buckets->Bucket as $bucket) {
533
  echo "<option ".selected(strtolower($awsselected),strtolower($bucket->Name),false).">".$bucket->Name."</option>";
553
  $GStorageselected=$_POST['GStorageselected'];
554
  $ajax=true;
555
  }
556
+ if (!class_exists('CFRuntime'))
557
+ require_once(dirname(__FILE__).'/../libs/aws/sdk.class.php');
558
  if (empty($GStorageAccessKey)) {
559
+ echo '<span id="GStorageBucket" style="color:red;">'.__('Missing access key!','backwpup').'</span>';
560
  if ($ajax)
561
  die();
562
  else
563
  return;
564
  }
565
  if (empty($GStorageSecret)) {
566
+ echo '<span id="GStorageBucket" style="color:red;">'.__('Missing secret access key!','backwpup').'</span>';
567
  if ($ajax)
568
  die();
569
  else
570
  return;
571
  }
572
  try {
573
+ $gstorage = new AmazonS3($GStorageAccessKey, $GStorageSecret);
574
+ $gstorage->set_hostname('commondatastorage.googleapis.com');
575
+ $gstorage->allow_hostname_override(false);
576
+ $buckets=$gstorage->list_buckets();
577
  } catch (Exception $e) {
578
  echo '<span id="GStorageBucket" style="color:red;">'.$e->getMessage().'</span>';
579
  if ($ajax)
581
  else
582
  return;
583
  }
584
+ if ($buckets->status<200 or $buckets->status>=300) {
585
+ echo '<span id="GStorageBucket" style="color:red;">'.$buckets->status.': '.$buckets->body->Message.'</span>';
586
  if ($ajax)
587
  die();
588
  else
589
  return;
590
  }
591
+ if (count($buckets->body->Buckets->Bucket)<1) {
592
+ echo '<span id="GStorageBucket" style="color:red;">'.__('No bucket fount!','backwpup').'</span>';
593
+ if ($ajax)
594
+ die();
595
+ else
596
+ return;
597
+ }
598
  echo '<select name="GStorageBucket" id="GStorageBucket">';
599
+ foreach ($buckets->body->Buckets->Bucket as $bucket) {
600
  echo "<option ".selected(strtolower($GStorageselected),strtolower($bucket->Name),false).">".$bucket->Name."</option>";
601
  }
602
  echo '</select>';
pages/func_backwpuplogs.php CHANGED
@@ -1,10 +1,4 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  include_once(trailingslashit(ABSPATH).'wp-admin/includes/class-wp-list-table.php');
9
 
10
  class BackWPup_Logs_Table extends WP_List_Table {
1
  <?PHP
 
 
 
 
 
 
2
  include_once(trailingslashit(ABSPATH).'wp-admin/includes/class-wp-list-table.php');
3
 
4
  class BackWPup_Logs_Table extends WP_List_Table {
pages/func_backwpupworking.php CHANGED
@@ -1,10 +1,4 @@
1
- <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
- die();
6
- }
7
-
8
  // Remove header and footer form logfile
9
  function backwpup_read_logfile($logfile) {
10
  if (is_file($logfile) and strtolower(substr($logfile,-3))=='.gz')
1
+ <?PHP
 
 
 
 
 
 
2
  // Remove header and footer form logfile
3
  function backwpup_read_logfile($logfile) {
4
  if (is_file($logfile) and strtolower(substr($logfile,-3))=='.gz')
pages/header_backwpup.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  //Create Table
9
  $backwpup_listtable = new BackWPup_Jobs_Table;
@@ -62,50 +60,52 @@ if (!empty($doaction)) {
62
  case 'abort': //Abort Job
63
  check_admin_referer('abort-job');
64
  $runningfile=backwpup_get_working_file();
65
- unlink(backwpup_get_temp().'.running'); //delete runnig file
66
- unlink(backwpup_get_temp().'.static'); //delete static file
67
- file_put_contents($runningfile['LOGFILE'], "<span class=\"timestamp\">".backwpup_date_i18n('Y-m-d H:i.s').":</span> <span class=\"error\">[ERROR]".__('Aborted by user!!!','backwpup')."</span><br />\n", FILE_APPEND);
68
- //write new log header
69
- $runningfile['WORKING']['ERROR']++;
70
- $fd=fopen($runningfile['LOGFILE'],'r+');
71
- while (!feof($fd)) {
72
- $line=fgets($fd);
73
- if (stripos($line,"<meta name=\"backwpup_errors\"") !== false) {
74
- fseek($fd,$filepos);
75
- fwrite($fd,str_pad("<meta name=\"backwpup_errors\" content=\"".$runningfile['WORKING']['ERROR']."\" />",100)."\n");
76
- break;
77
  }
78
- $filepos=ftell($fd);
79
  }
80
- fclose($fd);
81
- $backwpup_message=__('Job will be terminated.','backwpup').'<br />';
82
- if (!empty($runningfile['PID']) and function_exists('posix_kill')) {
83
- if (posix_kill($runningfile['PID'],9)) {
84
- $backwpup_message.=__('Process killed with PID:','backwpup').' '.$runningfile['PID'];
85
- //gzip logfile
86
- file_put_contents($runningfile['LOGFILE'], "</body>\n</html>\n", FILE_APPEND);
87
- $cfg=get_option('backwpup');
88
- if ($cfg['gzlogs']) {
89
- $fd=fopen($runningfile['LOGFILE'],'r');
90
- $zd=gzopen($runningfile['LOGFILE'].'.gz','w9');
91
- while (!feof($fd))
92
- gzwrite($zd,fread($fd,4096));
93
- gzclose($zd);
94
- fclose($fd);
95
- unlink($runningfile['LOGFILE']);
96
- $newlogfile=$runningfile['LOGFILE'].'.gz';
97
  }
98
- } else {
99
- $backwpup_message.=__('Can\'t kill process with PID:','backwpup').' '.$runningfile['PID'];
100
  }
 
 
 
 
 
 
 
 
101
  }
102
  //update job settings
103
- $jobs=get_option('backwpup_jobs');
104
- if (isset($newlogfile) and !empty($newlogfile))
105
- $jobs[$runningfile['JOBID']]['logfile']=$newlogfile;
106
- $jobs[$runningfile['JOBID']]['lastrun']=$jobs[$runningfile['JOBID']]['starttime'];
107
- $jobs[$runningfile['JOBID']]['lastruntime']=$runningfile['timestamp']-$jobs[$runningfile['JOBID']]['starttime'];
108
- update_option('backwpup_jobs',$jobs); //Save Settings
 
 
109
  break;
110
  }
111
  }
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  //Create Table
7
  $backwpup_listtable = new BackWPup_Jobs_Table;
60
  case 'abort': //Abort Job
61
  check_admin_referer('abort-job');
62
  $runningfile=backwpup_get_working_file();
63
+ $tempdir=backwpup_get_temp();
64
+ //clean up temp
65
+ if (is_dir($tempdir)) {
66
+ if ($dir = opendir($tempdir)) {
67
+ while (($file = readdir($dir)) !== false) {
68
+ if (is_readable($tempdir.$file) and is_file($tempdir.$file)) {
69
+ if ($file!='.' and $file!='..') {
70
+ unlink($tempdir.$file);
71
+ }
72
+ }
73
+ }
74
+ closedir($dir);
75
  }
 
76
  }
77
+ if (!empty($runningfile['LOGFILE'])) {
78
+ file_put_contents($runningfile['LOGFILE'], "<span class=\"timestamp\">".backwpup_date_i18n('Y/m/d H:i.s').":</span> <span class=\"error\">[ERROR]".__('Aborted by user!!!','backwpup')."</span><br />\n", FILE_APPEND);
79
+ //write new log header
80
+ $runningfile['WORKING']['ERROR']++;
81
+ $fd=fopen($runningfile['LOGFILE'],'r+');
82
+ while (!feof($fd)) {
83
+ $line=fgets($fd);
84
+ if (stripos($line,"<meta name=\"backwpup_errors\"") !== false) {
85
+ fseek($fd,$filepos);
86
+ fwrite($fd,str_pad("<meta name=\"backwpup_errors\" content=\"".$runningfile['WORKING']['ERROR']."\" />",100)."\n");
87
+ break;
 
 
 
 
 
 
88
  }
89
+ $filepos=ftell($fd);
 
90
  }
91
+ fclose($fd);
92
+ }
93
+ $backwpup_message=__('Job will be terminated.','backwpup').'<br />';
94
+ if (!empty($runningfile['WORKING']['PID']) and function_exists('posix_kill')) {
95
+ if (posix_kill($runningfile['WORKING']['PID'],9))
96
+ $backwpup_message.=__('Process killed with PID:','backwpup').' '.$runningfile['WORKING']['PID'];
97
+ else
98
+ $backwpup_message.=__('Can\'t kill process with PID:','backwpup').' '.$runningfile['WORKING']['PID'];
99
  }
100
  //update job settings
101
+ if (!empty($runningfile['JOBID'])) {
102
+ $jobs=get_option('backwpup_jobs');
103
+ if (isset($newlogfile) and !empty($newlogfile))
104
+ $jobs[$runningfile['JOBID']]['logfile']=$newlogfile;
105
+ $jobs[$runningfile['JOBID']]['lastrun']=$jobs[$runningfile['JOBID']]['starttime'];
106
+ $jobs[$runningfile['JOBID']]['lastruntime']=$runningfile['timestamp']-$jobs[$runningfile['JOBID']]['starttime'];
107
+ update_option('backwpup_jobs',$jobs); //Save Settings
108
+ }
109
  break;
110
  }
111
  }
pages/header_backwpupbackups.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
  //Create Table
8
  $backwpup_listtable = new BackWPup_Backups_Table;
9
 
@@ -36,16 +34,18 @@ if (!empty($doaction)) {
36
  }
37
  }
38
  } elseif ($dest=='GSTORAGE') {
39
- if (!class_exists('GoogleStorage'))
40
- require_once(dirname(__FILE__).'/../libs/googlestorage.php');
41
- if (class_exists('GoogleStorage')) {
42
  if (!empty($jobvalue['GStorageAccessKey']) and !empty($jobvalue['GStorageSecret']) and !empty($jobvalue['GStorageBucket'])) {
43
  try {
44
- $googlestorage = new GoogleStorage($jobvalue['GStorageAccessKey'], $jobvalue['GStorageSecret']);
45
- $googlestorage->deleteObject($jobvalue['GStorageBucket'],$backupfile);
46
- unset($googlestorage);
 
 
47
  } catch (Exception $e) {
48
- $backwpup_message.='Google Storage: '.$e->getMessage().'<br />';
49
  }
50
  }
51
  }
@@ -120,15 +120,10 @@ if (!empty($doaction)) {
120
  }
121
  } elseif ($dest=='FTP') {
122
  if (!empty($jobvalue['ftphost']) and !empty($jobvalue['ftpuser']) and !empty($jobvalue['ftppass']) and function_exists('ftp_connect')) {
123
- $ftpport=21;
124
- $ftphost=$jobvalue['ftphost'];
125
- if (false !== strpos($jobvalue['ftphost'],':')) //look for port
126
- list($ftphost,$ftpport)=explode(':',$jobvalue,2);
127
-
128
  if (function_exists('ftp_ssl_connect') and $jobvalue['ftpssl']) { //make SSL FTP connection
129
- $ftp_conn_id = ftp_ssl_connect($ftphost,$ftpport,10);
130
  } elseif (!$jobvalue['ftpssl']) { //make normal FTP conection if SSL not work
131
- $ftp_conn_id = ftp_connect($ftphost,$ftpport,10);
132
  }
133
  $loginok=false;
134
  if ($ftp_conn_id) {
@@ -143,7 +138,7 @@ if (!empty($doaction)) {
143
  }
144
  }
145
  if ($loginok) {
146
- ftp_pasv($ftp_conn_id, true);
147
  ftp_delete($ftp_conn_id, $backupfile);
148
  } else {
149
  $backwpup_message.='FTP: '.__('Login failure!','backwpup').'<br />';
@@ -202,32 +197,6 @@ if (!empty($doaction)) {
202
  die();
203
  }
204
  break;
205
- case 'downloadgstorage': //Download Google Storage Backup
206
- check_admin_referer('download-backup');
207
- require_once(dirname(__FILE__).'/../libs/googlestorage.php');
208
- $jobs=get_option('backwpup_jobs');
209
- $jobid=$_GET['jobid'];
210
- try {
211
- $googlestorage = new GoogleStorage($jobs[$jobid]['GStorageAccessKey'], $jobs[$jobid]['GStorageSecret']);
212
- $gstoragefile=$googlestorage->getObject($jobs[$jobid]['GStorageBucket'], $_GET['file']);
213
- } catch (Exception $e) {
214
- die($e->getMessage());
215
- }
216
- if ($gstoragefile) {
217
- header("Pragma: public");
218
- header("Expires: 0");
219
- header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
220
- //header("Content-Type: ".$gstoragefile->header->_info->content_type);
221
- header("Content-Type: application/force-download");
222
- header("Content-Type: application/octet-stream");
223
- header("Content-Type: application/download");
224
- header("Content-Disposition: attachment; filename=".basename($_GET['file']).";");
225
- header("Content-Transfer-Encoding: binary");
226
- header("Content-Length: ".strlen($gstoragefile));
227
- echo $gstoragefile;
228
- die();
229
- }
230
- break;
231
  case 'downloaddropbox': //Download Dropbox Backup
232
  check_admin_referer('download-backup');
233
  require_once(realpath(dirname(__FILE__).'/../libs/dropbox/dropbox.php'));
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
  //Create Table
6
  $backwpup_listtable = new BackWPup_Backups_Table;
7
 
34
  }
35
  }
36
  } elseif ($dest=='GSTORAGE') {
37
+ if (!class_exists('AmazonS3'))
38
+ require_once(realpath(dirname(__FILE__).'/../libs/aws/sdk.class.php'));
39
+ if (class_exists('AmazonS3')) {
40
  if (!empty($jobvalue['GStorageAccessKey']) and !empty($jobvalue['GStorageSecret']) and !empty($jobvalue['GStorageBucket'])) {
41
  try {
42
+ $gstorage = new AmazonS3($jobvalue['GStorageAccessKey'], $jobvalue['GStorageSecret']);
43
+ $gstorage->set_hostname('commondatastorage.googleapis.com');
44
+ $gstorage->allow_hostname_override(false);
45
+ $gstorage->delete_object($jobvalue['GStorageBucket'],$backupfile);
46
+ unset($gstorage);
47
  } catch (Exception $e) {
48
+ $backwpup_message.=sprintf(__('GStorage API: %s','backwpup'),$e->getMessage()).'<br />';
49
  }
50
  }
51
  }
120
  }
121
  } elseif ($dest=='FTP') {
122
  if (!empty($jobvalue['ftphost']) and !empty($jobvalue['ftpuser']) and !empty($jobvalue['ftppass']) and function_exists('ftp_connect')) {
 
 
 
 
 
123
  if (function_exists('ftp_ssl_connect') and $jobvalue['ftpssl']) { //make SSL FTP connection
124
+ $ftp_conn_id = ftp_ssl_connect($jobvalue['ftphost'],$jobvalue['ftphostport'],10);
125
  } elseif (!$jobvalue['ftpssl']) { //make normal FTP conection if SSL not work
126
+ $ftp_conn_id = ftp_connect($jobvalue['ftphost'],$jobvalue['ftphostport'],10);
127
  }
128
  $loginok=false;
129
  if ($ftp_conn_id) {
138
  }
139
  }
140
  if ($loginok) {
141
+ ftp_pasv($ftp_conn_id, $jobvalue['ftppasv']);
142
  ftp_delete($ftp_conn_id, $backupfile);
143
  } else {
144
  $backwpup_message.='FTP: '.__('Login failure!','backwpup').'<br />';
197
  die();
198
  }
199
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  case 'downloaddropbox': //Download Dropbox Backup
201
  check_admin_referer('download-backup');
202
  require_once(realpath(dirname(__FILE__).'/../libs/dropbox/dropbox.php'));
pages/header_backwpupeditjob.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  //Save Dropbox settings
9
  if (isset($_GET['dropboxauth']) and $_GET['dropboxauth']=='AccessToken') {
@@ -25,10 +23,10 @@ if (isset($_GET['dropboxauth']) and $_GET['dropboxauth']=='AccessToken') {
25
  update_option('backwpup_jobs',$jobs);
26
  $backwpup_message.=__('Dropbox authentication complete!','backwpup').'<br />';
27
  } else {
28
- $backwpup_message.=__('Wrong Token for Dropbox authentication reseved!','backwpup').'<br />';
29
  }
30
  } else {
31
- $backwpup_message.=__('No Dropbox authentication reseved!','backwpup').'<br />';
32
  }
33
  delete_transient('backwpup_dropboxrequest');
34
  $_POST['jobid']=$jobid;
@@ -91,7 +89,18 @@ if ((isset($_POST['submit']) or isset($_POST['dropboxauth']) or isset($_POST['dr
91
  $jobvalues['cronnextrun']=backwpup_cron_next($jobvalues['cron']);
92
  $jobvalues['mailaddresslog']= isset($_POST['mailaddresslog']) ? sanitize_email($_POST['mailaddresslog']) : '';
93
  $jobvalues['mailerroronly']= (isset($_POST['mailerroronly']) && $_POST['mailerroronly']==1) ? true : false;
94
- $jobvalues['dbtables']=!empty($_POST['dbtables']) ? (array)$_POST['dbtables'] : array();
 
 
 
 
 
 
 
 
 
 
 
95
  $jobvalues['dbshortinsert']= (isset($_POST['dbshortinsert']) && $_POST['dbshortinsert']==1) ? true : false;
96
  $jobvalues['maintenance']= (isset($_POST['maintenance']) && $_POST['maintenance']==1) ? true : false;
97
  $jobvalues['fileexclude']=isset($_POST['fileexclude']) ? stripslashes($_POST['fileexclude']) : '';
@@ -165,13 +174,16 @@ if ((isset($_POST['submit']) or isset($_POST['dropboxauth']) or isset($_POST['dr
165
  }
166
  }
167
 
168
- if (!empty($_POST['GStorageAccessKey']) and !empty($_POST['GStorageSecret']) and !empty($_POST['newGStorageBucket'])) { //create new google strage bucket if needed
169
- if (!class_exists('Tws_Service_Google_Storage'))
170
- require_once(dirname(__FILE__).'/../libs/googlestorage.php');
171
  try {
172
- $googlestorage = new GoogleStorage($_POST['GStorageAccessKey'], $_POST['GStorageSecret']);
173
- $googlestorage->createBucket($_POST['newGStorageBucket'],'private');
 
 
174
  $jobvalues['GStorageBucket']=$_POST['newGStorageBucket'];
 
175
  } catch (Exception $e) {
176
  $backwpup_message.=__($e->getMessage(),'backwpup').'<br />';
177
  }
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  //Save Dropbox settings
7
  if (isset($_GET['dropboxauth']) and $_GET['dropboxauth']=='AccessToken') {
23
  update_option('backwpup_jobs',$jobs);
24
  $backwpup_message.=__('Dropbox authentication complete!','backwpup').'<br />';
25
  } else {
26
+ $backwpup_message.=__('Wrong Token for Dropbox authentication received!','backwpup').'<br />';
27
  }
28
  } else {
29
+ $backwpup_message.=__('No Dropbox authentication received!','backwpup').'<br />';
30
  }
31
  delete_transient('backwpup_dropboxrequest');
32
  $_POST['jobid']=$jobid;
89
  $jobvalues['cronnextrun']=backwpup_cron_next($jobvalues['cron']);
90
  $jobvalues['mailaddresslog']= isset($_POST['mailaddresslog']) ? sanitize_email($_POST['mailaddresslog']) : '';
91
  $jobvalues['mailerroronly']= (isset($_POST['mailerroronly']) && $_POST['mailerroronly']==1) ? true : false;
92
+ $checedtables=array();
93
+ if (isset($_POST['jobtabs'])) {
94
+ foreach ($_POST['jobtabs'] as $dbtable) {
95
+ $checedtables[]=base64_decode($dbtable);
96
+ }
97
+ }
98
+ global $wpdb;
99
+ $tables=$wpdb->get_col('SHOW TABLES FROM `'.DB_NAME.'`');
100
+ foreach ($tables as $dbtable) {
101
+ if (!in_array($dbtable,$checedtables))
102
+ $jobvalues['dbexclude'][]=$dbtable;
103
+ }
104
  $jobvalues['dbshortinsert']= (isset($_POST['dbshortinsert']) && $_POST['dbshortinsert']==1) ? true : false;
105
  $jobvalues['maintenance']= (isset($_POST['maintenance']) && $_POST['maintenance']==1) ? true : false;
106
  $jobvalues['fileexclude']=isset($_POST['fileexclude']) ? stripslashes($_POST['fileexclude']) : '';
174
  }
175
  }
176
 
177
+ if (!empty($_POST['GStorageAccessKey']) and !empty($_POST['GStorageSecret']) and !empty($_POST['newGStorageBucket'])) { //create new google storage bucket if needed
178
+ if (!class_exists('CFRuntime'))
179
+ require_once(dirname(__FILE__).'/../libs/aws/sdk.class.php');
180
  try {
181
+ $gstorage = new AmazonS3($_POST['GStorageAccessKey'], $_POST['GStorageSecret']);
182
+ $gstorage->set_hostname('commondatastorage.googleapis.com');
183
+ $gstorage->allow_hostname_override(false);
184
+ $gstorage->create_bucket($_POST['newGStorageBucket'],'');
185
  $jobvalues['GStorageBucket']=$_POST['newGStorageBucket'];
186
+ sleep(1); //creation take a moment
187
  } catch (Exception $e) {
188
  $backwpup_message.=__($e->getMessage(),'backwpup').'<br />';
189
  }
pages/header_backwpuplogs.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  //Create Table
9
  $backwpup_listtable = new BackWPup_Logs_Table;
@@ -58,7 +56,7 @@ if (isset($_POST['screen-options-apply']) and isset($_POST['wp_screen_options'][
58
  }
59
 
60
  //add Help
61
- backwpup_contextual_help(__('Here you can mange the log files of the jobs. You can download, view or delete them.','backwpup'));
62
 
63
  add_screen_option( 'per_page', array('label' => __('Logs','backwpup'), 'default' => 20, 'option' =>'backwpuplogs_per_page') );
64
 
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  //Create Table
7
  $backwpup_listtable = new BackWPup_Logs_Table;
56
  }
57
 
58
  //add Help
59
+ backwpup_contextual_help(__('Here you can manage the log files of the jobs. You can download, view, or delete them.','backwpup'));
60
 
61
  add_screen_option( 'per_page', array('label' => __('Logs','backwpup'), 'default' => 20, 'option' =>'backwpuplogs_per_page') );
62
 
pages/header_backwpupsettings.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  if (isset($_POST['submit']) and isset($_POST['action']) and $_POST['action']=='update') {
9
  check_admin_referer('backwpup-cfg');
@@ -23,7 +21,7 @@ if (isset($_POST['submit']) and isset($_POST['action']) and $_POST['action']=='u
23
  $cfg['jobstepretry']=(int)$_POST['jobstepretry'];
24
  if (100>$_POST['jobscriptretry'] and 0<$_POST['jobscriptretry'])
25
  $cfg['jobscriptretry']=(int)$_POST['jobscriptretry'];
26
- if (100>$_POST['jobscriptruntime'] and 0<$_POST['jobscriptruntime'])
27
  $cfg['jobscriptruntime']=(int)$_POST['jobscriptruntime'];
28
  if (1000>$_POST['jobscriptruntimelong'] and 0<$_POST['jobscriptruntimelong'])
29
  $cfg['jobscriptruntimelong']=(int)$_POST['jobscriptruntimelong'];
@@ -39,6 +37,8 @@ if (isset($_POST['submit']) and isset($_POST['action']) and $_POST['action']=='u
39
  $cfg['gzlogs']=isset($_POST['gzlogs']) ? true : false;
40
  $cfg['phpzip']=isset($_POST['phpzip']) ? true : false;
41
  $cfg['apicronservice']=isset($_POST['apicronservice']) ? true : false;
 
 
42
  $cfg['dirlogs']=trailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes(trim($_POST['dirlogs'])))));
43
  //set def. folders
44
  if (!isset($cfg['dirlogs']) or $cfg['dirlogs']=='/' or empty($cfg['dirlogs'])) {
@@ -52,6 +52,7 @@ if (isset($_POST['submit']) and isset($_POST['action']) and $_POST['action']=='u
52
  }
53
  if (update_option('backwpup',$cfg))
54
  $backwpup_message=__('Settings saved', 'backwpup');
 
55
  }
56
 
57
  //add Help
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  if (isset($_POST['submit']) and isset($_POST['action']) and $_POST['action']=='update') {
7
  check_admin_referer('backwpup-cfg');
21
  $cfg['jobstepretry']=(int)$_POST['jobstepretry'];
22
  if (100>$_POST['jobscriptretry'] and 0<$_POST['jobscriptretry'])
23
  $cfg['jobscriptretry']=(int)$_POST['jobscriptretry'];
24
+ if (300>$_POST['jobscriptruntime'] and 0<$_POST['jobscriptruntime'])
25
  $cfg['jobscriptruntime']=(int)$_POST['jobscriptruntime'];
26
  if (1000>$_POST['jobscriptruntimelong'] and 0<$_POST['jobscriptruntimelong'])
27
  $cfg['jobscriptruntimelong']=(int)$_POST['jobscriptruntimelong'];
37
  $cfg['gzlogs']=isset($_POST['gzlogs']) ? true : false;
38
  $cfg['phpzip']=isset($_POST['phpzip']) ? true : false;
39
  $cfg['apicronservice']=isset($_POST['apicronservice']) ? true : false;
40
+ $cfg['httpauthuser']=$_POST['httpauthuser'];
41
+ $cfg['httpauthpassword']=base64_encode($_POST['httpauthpassword']);
42
  $cfg['dirlogs']=trailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes(trim($_POST['dirlogs'])))));
43
  //set def. folders
44
  if (!isset($cfg['dirlogs']) or $cfg['dirlogs']=='/' or empty($cfg['dirlogs'])) {
52
  }
53
  if (update_option('backwpup',$cfg))
54
  $backwpup_message=__('Settings saved', 'backwpup');
55
+ backwpup_api(true);
56
  }
57
 
58
  //add Help
pages/header_backwpuptools.php CHANGED
@@ -1,9 +1,6 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  //add Help
9
  backwpup_contextual_help();
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
 
4
 
5
  //add Help
6
  backwpup_contextual_help();
pages/header_backwpupworking.php CHANGED
@@ -1,11 +1,9 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
- backwpup_send_no_cache_header(); //no chache
 
9
 
10
  if (isset($_GET['action']) and $_GET['action']=='runnow' and !empty($_GET['jobid'])) {
11
  $jobid = (int) $_GET['jobid'];
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
 
4
 
5
+
6
+ nocache_headers(); //no chache
7
 
8
  if (isset($_GET['action']) and $_GET['action']=='runnow' and !empty($_GET['jobid'])) {
9
  $jobid = (int) $_GET['jobid'];
pages/page_backwpup.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  echo "<div class=\"wrap\">";
9
  screen_icon();
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  echo "<div class=\"wrap\">";
7
  screen_icon();
pages/page_backwpupbackups.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  echo "<div class=\"wrap\">";
9
  screen_icon();
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  echo "<div class=\"wrap\">";
7
  screen_icon();
pages/page_backwpupeditjob.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  global $wpdb,$screen_layout_columns;
9
 
@@ -25,8 +23,10 @@ $todo=explode('+',$jobvalue['type']);
25
  $dests=explode(',',strtoupper(BACKWPUP_DESTS));
26
  ?>
27
  <div class="wrap">
28
- <?php screen_icon(); ?>
29
- <h2><?php echo esc_html( __('BackWPup Job Settings', 'backwpup') ); ?></h2>
 
 
30
 
31
  <?php if (isset($backwpup_message) and !empty($backwpup_message)) : ?>
32
  <div id="message" class="updated"><p><?php echo $backwpup_message; ?></p></div>
@@ -64,7 +64,7 @@ $dests=explode(',',strtoupper(BACKWPUP_DESTS));
64
  <?php
65
  $tables=$wpdb->get_col('SHOW TABLES FROM `'.DB_NAME.'`');
66
  foreach ($tables as $table) {
67
- echo ' <input class="checkbox" type="checkbox"'.checked(in_array($table,(array)$jobvalue['dbtables']),true,false).' name="dbtables[]" value="'.$table.'"/> '.$table.'<br />';
68
  }
69
  ?>
70
  </div>
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  global $wpdb,$screen_layout_columns;
7
 
23
  $dests=explode(',',strtoupper(BACKWPUP_DESTS));
24
  ?>
25
  <div class="wrap">
26
+ <?php
27
+ screen_icon();
28
+ echo "<h2>".esc_html( __('BackWPup Job Settings', 'backwpup'))."&nbsp;<a href=\"".wp_nonce_url(backwpup_admin_url('admin.php').'?page=backwpupeditjob', 'edit-job')."\" class=\"add-new-h2\">".esc_html__('Add New','backwpup')."</a></h2>";
29
+ ?>
30
 
31
  <?php if (isset($backwpup_message) and !empty($backwpup_message)) : ?>
32
  <div id="message" class="updated"><p><?php echo $backwpup_message; ?></p></div>
64
  <?php
65
  $tables=$wpdb->get_col('SHOW TABLES FROM `'.DB_NAME.'`');
66
  foreach ($tables as $table) {
67
+ echo ' <input class="checkbox" type="checkbox"'.checked(!in_array($table,$jobvalue['dbexclude']),true,false).' name="jobtabs[]" value="'.base64_encode($table).'"/> '.$table.'<br />';
68
  }
69
  ?>
70
  </div>
pages/page_backwpuplogs.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  echo "<div class=\"wrap\">";
9
  screen_icon();
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  echo "<div class=\"wrap\">";
7
  screen_icon();
pages/page_backwpupsettings.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  $cfg=get_option('backwpup');
9
 
@@ -17,7 +15,7 @@ wp_nonce_field('backwpup-cfg');
17
  ?>
18
  <input type="hidden" name="action" value="update" />
19
  <h3><?PHP _e('Send Mail','backwpup'); ?></h3>
20
- <p><?PHP _e('Here you can set special things for Mail sending. The settings will be used in jobs for sending backups via email or for sending log files.','backwpup'); ?></p>
21
  <table class="form-table">
22
  <tr valign="top">
23
  <th scope="row"><label for="mailsndemail"><?PHP _e('Sender email','backwpup'); ?></label></th>
@@ -79,7 +77,7 @@ echo '</select>';
79
  </table>
80
 
81
  <h3><?PHP _e('Logs','backwpup'); ?></h3>
82
- <p><?PHP _e('Here you can set Logfile related things.','backwpup'); ?></p>
83
  <table class="form-table">
84
  <tr valign="top">
85
  <th scope="row"><label for="dirlogs"><?PHP _e('Log file Folder','backwpup'); ?></label></th>
@@ -101,7 +99,7 @@ echo '</select>';
101
  </tr>
102
  </table>
103
  <h3><?PHP _e('Jobs','backwpup'); ?></h3>
104
- <p><?PHP _e('Here you can set Job related things.','backwpup'); ?></p>
105
  <table class="form-table">
106
  <tr valign="top">
107
  <th scope="row"><label for="jobstepretry"><?PHP _e('Max. retrys for job steps','backwpup'); ?></label></th>
@@ -109,7 +107,7 @@ echo '</select>';
109
  </td>
110
  </tr>
111
  <tr valign="top">
112
- <th scope="row"><label for="jobscriptretry"><?PHP _e('Max. retrys for job script restarts','backwpup'); ?></label></th>
113
  <td><input name="jobscriptretry" type="text" id="jobscriptretry" value="<?PHP echo $cfg['jobscriptretry'];?>" class="small-text code" />
114
  </td>
115
  </tr>
@@ -131,7 +129,7 @@ if (ini_get('safe_mode')) {
131
  <tr valign="top">
132
  <th scope="row"><label for="jobscriptruntimelong"><?PHP _e('Max. long script runtime:','backwpup'); ?></label></th>
133
  <td><input name="jobscriptruntimelong" type="text" id="jobscriptruntimelong" value="<?PHP echo $cfg['jobscriptruntimelong'];?>" class="small-text code" <?PHP echo $disabled;?>/> <?PHP _e('sec.','backwpup');?>&nbsp;
134
- <span class="description"><?PHP _e('Script runtime for loong operations withaut responce to script. You can only set it if safemode off. Default runtime is 300 sec.(Max. on most webservers.)','backwpup');?></span></td>
135
  </tr>
136
  <tr valign="top">
137
  <th scope="row"><?PHP _e('PHP zip class','backwpup'); ?></th>
@@ -154,6 +152,20 @@ if (ini_get('safe_mode')) {
154
  </tr>
155
  </table>
156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  <h3><?PHP _e('WP-Cron','backwpup'); ?></h3>
158
  <p><?PHP _e('If you would use the cron job of your hoster you must point it to the url:','backwpup'); echo ' <i>'.get_option('siteurl').'/wp-cron.php</i>'; ?></p>
159
  <table class="form-table">
@@ -165,15 +177,14 @@ if (ini_get('safe_mode')) {
165
  </fieldset></td>
166
  </tr>
167
  <tr valign="top">
168
- <th scope="row"><?PHP _e('Use corn service of backwpup.com','backwpup'); ?></th>
169
- <td><fieldset><legend class="screen-reader-text"><span><?PHP _e('Use corn service of backwpup.com','backwpup'); ?></span></legend><label for="apicronservice">
170
  <input name="apicronservice" type="checkbox" id="apicronservice" value="1" <?php checked($cfg['apicronservice'],true); ?> />
171
- <?PHP _e('If you check this than the job Schedule will submited too backwpup.com. Backwpup.com will call your blog wp-cron.php to start. <em>Use this service only if you have not a cron service of your hoster, or a blog that have less visits.</em> Pelase make a littel donaten for the plugin if you use this servcie. The service can every time removed by me without a massage.','backwpup'); ?><br />
172
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q3QSVRSFXBLSE" target="_new"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" title="PayPal - The safer, easier way to pay online!"></a>
173
  </label>
174
  </fieldset>
175
  </td>
176
- </tr>
177
  </table>
178
  <p class="submit"><input type="submit" name="submit" id="submit" class="button-primary" value="Save Changes" /></p>
179
  </form>
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  $cfg=get_option('backwpup');
7
 
15
  ?>
16
  <input type="hidden" name="action" value="update" />
17
  <h3><?PHP _e('Send Mail','backwpup'); ?></h3>
18
+ <p><?PHP _e('Here you can set the options for email sending. The settings will be used in jobs for sending backups via email or for sending log files.','backwpup'); ?></p>
19
  <table class="form-table">
20
  <tr valign="top">
21
  <th scope="row"><label for="mailsndemail"><?PHP _e('Sender email','backwpup'); ?></label></th>
77
  </table>
78
 
79
  <h3><?PHP _e('Logs','backwpup'); ?></h3>
80
+ <p><?PHP _e('Here you can set Logfile related options.','backwpup'); ?></p>
81
  <table class="form-table">
82
  <tr valign="top">
83
  <th scope="row"><label for="dirlogs"><?PHP _e('Log file Folder','backwpup'); ?></label></th>
99
  </tr>
100
  </table>
101
  <h3><?PHP _e('Jobs','backwpup'); ?></h3>
102
+ <p><?PHP _e('Here you can set Job related options.','backwpup'); ?></p>
103
  <table class="form-table">
104
  <tr valign="top">
105
  <th scope="row"><label for="jobstepretry"><?PHP _e('Max. retrys for job steps','backwpup'); ?></label></th>
107
  </td>
108
  </tr>
109
  <tr valign="top">
110
+ <th scope="row"><label for="jobscriptretry"><?PHP _e('Max. retrys for job script retries','backwpup'); ?></label></th>
111
  <td><input name="jobscriptretry" type="text" id="jobscriptretry" value="<?PHP echo $cfg['jobscriptretry'];?>" class="small-text code" />
112
  </td>
113
  </tr>
129
  <tr valign="top">
130
  <th scope="row"><label for="jobscriptruntimelong"><?PHP _e('Max. long script runtime:','backwpup'); ?></label></th>
131
  <td><input name="jobscriptruntimelong" type="text" id="jobscriptruntimelong" value="<?PHP echo $cfg['jobscriptruntimelong'];?>" class="small-text code" <?PHP echo $disabled;?>/> <?PHP _e('sec.','backwpup');?>&nbsp;
132
+ <span class="description"><?PHP _e('Script runtime for long operations withaut responce to script. You can only set it if safemode off. Default runtime is 300 sec.(Max. on most webservers.)','backwpup');?></span></td>
133
  </tr>
134
  <tr valign="top">
135
  <th scope="row"><?PHP _e('PHP zip class','backwpup'); ?></th>
152
  </tr>
153
  </table>
154
 
155
+ <h3><?PHP _e('Http basic authentication','backwpup'); ?></h3>
156
+ <p><?PHP _e('Is your blog behind a http basic authentication (.htaccess)? Then you must set the username and password four authentication.','backwpup'); ?></p>
157
+ <table class="form-table">
158
+ </tr>
159
+ <th scope="row"><label for="httpauthuser"><?PHP _e('Username:','backwpup'); ?></label></th>
160
+ <td><input name="httpauthuser" type="text" id="httpauthuser" value="<?PHP echo $cfg['httpauthuser'];?>" class="regular-text" />
161
+ </td>
162
+ </tr>
163
+ <tr valign="top">
164
+ <th scope="row"><label for="httpauthpassword"><?PHP _e('Password:','backwpup'); ?></label></th>
165
+ <td><input name="httpauthpassword" type="password" id="httpauthpassword" value="<?PHP echo base64_decode($cfg['httpauthpassword']);?>" class="regular-text" />
166
+ </tr>
167
+ </table>
168
+
169
  <h3><?PHP _e('WP-Cron','backwpup'); ?></h3>
170
  <p><?PHP _e('If you would use the cron job of your hoster you must point it to the url:','backwpup'); echo ' <i>'.get_option('siteurl').'/wp-cron.php</i>'; ?></p>
171
  <table class="form-table">
177
  </fieldset></td>
178
  </tr>
179
  <tr valign="top">
180
+ <th scope="row"><?PHP _e('Use cron service of backwpup.com','backwpup'); ?></th>
181
+ <td><fieldset><legend class="screen-reader-text"><span><?PHP _e('Use cron service of backwpup.com','backwpup'); ?></span></legend><label for="apicronservice">
182
  <input name="apicronservice" type="checkbox" id="apicronservice" value="1" <?php checked($cfg['apicronservice'],true); ?> />
183
+ <?PHP _e('If you check this, the job schedule will submited to backwpup.com. Backwpup.com will call your blog wp-cron.php to start. <em>Use this service only if you have not a cron service of your hoster, or a blog that has a few visitors.</em> The cron service can start cron behind a basic authentication, on that the http authentication data will transferd too! Please make a little donation for the plugin if you use this servcie. The service can be removed by me without a massage.','backwpup'); ?><br />
184
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q3QSVRSFXBLSE" target="_new"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" title="PayPal - The safer, easier way to pay online!"></a>
185
  </label>
186
  </fieldset>
187
  </td>
 
188
  </table>
189
  <p class="submit"><input type="submit" name="submit" id="submit" class="button-primary" value="Save Changes" /></p>
190
  </form>
pages/page_backwpuptools.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  echo "<div class=\"wrap\">";
9
  screen_icon();
@@ -42,7 +40,7 @@ if (isset($_POST['dbrestore']) and $_POST['dbrestore']==__('Restore', 'backwpup'
42
  <input type="submit" name="dbrestore" class="button-primary" value="<?php _e('Restore', 'backwpup'); ?>" />
43
  <?PHP
44
  } else {
45
- echo __('Copy SQL file to blog root folder to use for a restoration.', 'backwpup')."<br />";
46
  }
47
  }
48
  ?>
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  echo "<div class=\"wrap\">";
7
  screen_icon();
40
  <input type="submit" name="dbrestore" class="button-primary" value="<?php _e('Restore', 'backwpup'); ?>" />
41
  <?PHP
42
  } else {
43
+ echo __('Copy SQL file to blog root folder to use for a restoring.', 'backwpup')."<br />";
44
  }
45
  }
46
  ?>
pages/page_backwpupworking.php CHANGED
@@ -1,9 +1,7 @@
1
  <?PHP
2
- if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
- }
7
 
8
  ?>
9
  <div class="wrap">
1
  <?PHP
2
+ if (!defined('ABSPATH'))
 
 
3
  die();
4
+
5
 
6
  ?>
7
  <div class="wrap">
pages/tools/db_restore.php CHANGED
@@ -1,7 +1,5 @@
1
  <?PHP
2
  if (!defined('ABSPATH')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
  }
7
 
@@ -91,7 +89,8 @@ if (!empty($oldblogabspath) and $oldblogabspath!=$blogabspath) {
91
  if ($sqlerr=mysql_error())
92
  echo __('ERROR:','backwpup').' '.sprintf(__('BackWPup database error %1$s for query %2$s','backwpup'), $sqlerr, "UPDATE ".$wpdb->prefix."options SET option_value = replace(option_value, '".untrailingslashit($oldblogabspath)."', '".untrailingslashit($blogabspath)."');")."<br />\n";
93
  }
94
- echo __('Restore Done. Please delete the SQL file after Restore.','backwpup')."<br />";
 
95
 
96
 
97
 
1
  <?PHP
2
  if (!defined('ABSPATH')) {
 
 
3
  die();
4
  }
5
 
89
  if ($sqlerr=mysql_error())
90
  echo __('ERROR:','backwpup').' '.sprintf(__('BackWPup database error %1$s for query %2$s','backwpup'), $sqlerr, "UPDATE ".$wpdb->prefix."options SET option_value = replace(option_value, '".untrailingslashit($oldblogabspath)."', '".untrailingslashit($blogabspath)."');")."<br />\n";
91
  }
92
+ echo __('Restore Done. Please delete the SQL file after restoring.','backwpup')."<br />";
93
+
94
 
95
 
96
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === BackWPup ===
2
  Contributors: danielhuesken
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q3QSVRSFXBLSE
4
- Tags: backup, admin, file, Database, mysql, Cron, ftp, S3, export, xml, Rackspace, Cloud, Azure, DropBox, SugarSync, Google, Storage
5
  Requires at least: 3.1
6
  Tested up to: 3.2.1
7
- Stable tag: 2.1.0
8
 
9
  Backup your WordPress Database and Files, and more!
10
 
@@ -51,6 +51,16 @@ Do backups and more.
51
  4. Backups Manage Page
52
 
53
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
54
  = 2.1.0 =
55
  * No more sessions and curl needed
56
  * Respect open_basdir for temp folder
1
  === BackWPup ===
2
  Contributors: danielhuesken
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q3QSVRSFXBLSE
4
+ Tags: backup, admin, file, Database, mysql, Cron, ftp, S3, export, xml, multisite, Rackspace, Cloud, Azure, DropBox, SugarSync, Google, Storage
5
  Requires at least: 3.1
6
  Tested up to: 3.2.1
7
+ Stable tag: 2.1.1
8
 
9
  Backup your WordPress Database and Files, and more!
10
 
51
  4. Backups Manage Page
52
 
53
  == Changelog ==
54
+ = 2.1.1 =
55
+ * Fiexd problem with translation
56
+ * Don't display dashboard Wigets on Mulitsite for not super amdins
57
+ * Some improvements for Multisite
58
+ * Updated AWS lib to 1.3.7
59
+ * Google Storage uses now AWS lib
60
+ * Added http basic autentication support
61
+ * now DB jobs uses new not selected tabels too
62
+ * bug fixes
63
+
64
  = 2.1.0 =
65
  * No more sessions and curl needed
66
  * Respect open_basdir for temp folder
uninstall.php CHANGED
@@ -1,7 +1,5 @@
1
  <?PHP
2
  if (!defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) {
3
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
4
- header("Status: 404 Not Found");
5
  die();
6
  }
7
 
@@ -9,7 +7,7 @@ global $wp_version;
9
  $blugurl=get_option('siteurl');
10
  if (defined('WP_SITEURL'))
11
  $blugurl=WP_SITEURL;
12
- wp_remote_post( 'http://api.backwpup.com', array('timeout' => 10, 'blocking' => false, 'sslverify' => false, 'body'=>array('URL'=>$blugurl,'EMAIL'=>get_option('admin_email'),'WP_VER'=>$wp_version,'BACKWPUP_VER'=>0,'ACTIVE'=>'D'), 'user-agent'=>'BackWPup'));
13
  delete_option('backwpup');
14
  delete_option('backwpup_jobs');
15
  delete_option('backwpup_last_activate');
1
  <?PHP
2
  if (!defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) {
 
 
3
  die();
4
  }
5
 
7
  $blugurl=get_option('siteurl');
8
  if (defined('WP_SITEURL'))
9
  $blugurl=WP_SITEURL;
10
+ wp_remote_post( 'http://api.backwpup.com', array('timeout' => 10, 'blocking' => false, 'sslverify' => false, 'body'=>array('URL'=>$blugurl,'EMAIL'=>get_option('admin_email'),'WP_VER'=>$wp_version,'ACTIVE'=>'D'), 'user-agent'=>'BackWPup'));
11
  delete_option('backwpup');
12
  delete_option('backwpup_jobs');
13
  delete_option('backwpup_last_activate');