Version Description
- fixed S3 lib not found bug again.
- improved reschedule on activation problem.
Download this release
Release Info
| Developer | danielhuesken |
| Plugin | |
| Version | 1.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0 to 1.1.1
- app/backwpup_dojob.php +2 -2
- app/functions.php +10 -14
- backwpup.php +2 -2
- readme.txt +5 -1
app/backwpup_dojob.php
CHANGED
|
@@ -194,8 +194,8 @@ class backwpup_dojob {
|
|
| 194 |
$jobs=get_option('backwpup_jobs'); //load jobdata
|
| 195 |
$jobs[$this->jobid]['starttime']=current_time('timestamp'); //set start time for job
|
| 196 |
$jobs[$this->jobid]['stoptime']=''; //Set stop time for job
|
| 197 |
-
if ($
|
| 198 |
-
$jobs[$this->jobid]['scheduletime']
|
| 199 |
update_option('backwpup_jobs',$jobs); //Save job Settings
|
| 200 |
$this->job=backwpup_check_job_vars($jobs[$this->jobid]);//Set and check job settings
|
| 201 |
//set waht to do
|
| 194 |
$jobs=get_option('backwpup_jobs'); //load jobdata
|
| 195 |
$jobs[$this->jobid]['starttime']=current_time('timestamp'); //set start time for job
|
| 196 |
$jobs[$this->jobid]['stoptime']=''; //Set stop time for job
|
| 197 |
+
if ($jobs[$this->jobid]['activated'] and wp_get_schedule('backwpup_cron',array('jobid'=>$this->jobid)) !== false) //set Schedule time to next scheduled
|
| 198 |
+
$jobs[$this->jobid]['scheduletime']=wp_next_scheduled('backwpup_cron',array('jobid'=>$this->jobid));
|
| 199 |
update_option('backwpup_jobs',$jobs); //Save job Settings
|
| 200 |
$this->job=backwpup_check_job_vars($jobs[$this->jobid]);//Set and check job settings
|
| 201 |
//set waht to do
|
app/functions.php
CHANGED
|
@@ -323,9 +323,8 @@ if ( !defined('ABSPATH') )
|
|
| 323 |
$jobs=get_option('backwpup_jobs');
|
| 324 |
if (is_array($jobs)) {
|
| 325 |
foreach ($jobs as $jobid => $jobvalue) {
|
| 326 |
-
if ($jobvalue['activated'])
|
| 327 |
wp_schedule_event($jobvalue['scheduletime'], 'backwpup_int_'.$jobid, 'backwpup_cron',array('jobid'=>$jobid));
|
| 328 |
-
}
|
| 329 |
}
|
| 330 |
}
|
| 331 |
//Set defaults
|
|
@@ -350,13 +349,7 @@ if ( !defined('ABSPATH') )
|
|
| 350 |
function backwpup_plugin_deactivate() {
|
| 351 |
//remove cron jobs
|
| 352 |
$jobs=get_option('backwpup_jobs');
|
| 353 |
-
|
| 354 |
-
foreach ($jobs as $jobid => $jobvalue) {
|
| 355 |
-
if ($time=wp_next_scheduled('backwpup_cron',array('jobid'=>$jobid))) {
|
| 356 |
-
wp_unschedule_event($time,'backwpup_cron',array('jobid'=>$jobid));
|
| 357 |
-
}
|
| 358 |
-
}
|
| 359 |
-
}
|
| 360 |
}
|
| 361 |
|
| 362 |
//add edit setting to plugins page
|
|
@@ -575,10 +568,13 @@ if ( !defined('ABSPATH') )
|
|
| 575 |
if ( defined('UPLOADS') && !$main_override && ( !isset( $switched ) || $switched === false ) ) {
|
| 576 |
$dir = ABSPATH . UPLOADS;
|
| 577 |
}
|
| 578 |
-
if (
|
| 579 |
-
if (
|
| 580 |
-
|
| 581 |
-
|
|
|
|
|
|
|
|
|
|
| 582 |
return str_replace('\\','/',trailingslashit($dir));
|
| 583 |
}
|
| 584 |
|
|
@@ -615,7 +611,7 @@ if ( !defined('ABSPATH') )
|
|
| 615 |
$selected=$_POST['selected'];
|
| 616 |
$ajax=true;
|
| 617 |
}
|
| 618 |
-
require_once(plugin_dir_path(__FILE__).'libs/
|
| 619 |
if (empty($awsAccessKey)) {
|
| 620 |
echo '<span id="awsBucket" style="color:red;">'.__('Missing Access Key ID!','backwpup').'</span>';
|
| 621 |
die();
|
| 323 |
$jobs=get_option('backwpup_jobs');
|
| 324 |
if (is_array($jobs)) {
|
| 325 |
foreach ($jobs as $jobid => $jobvalue) {
|
| 326 |
+
if ($jobvalue['activated'] and wp_get_schedule('backwpup_cron',array('jobid'=>$jobid)) === false)
|
| 327 |
wp_schedule_event($jobvalue['scheduletime'], 'backwpup_int_'.$jobid, 'backwpup_cron',array('jobid'=>$jobid));
|
|
|
|
| 328 |
}
|
| 329 |
}
|
| 330 |
//Set defaults
|
| 349 |
function backwpup_plugin_deactivate() {
|
| 350 |
//remove cron jobs
|
| 351 |
$jobs=get_option('backwpup_jobs');
|
| 352 |
+
wp_clear_scheduled_hook('backwpup_cron');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 353 |
}
|
| 354 |
|
| 355 |
//add edit setting to plugins page
|
| 568 |
if ( defined('UPLOADS') && !$main_override && ( !isset( $switched ) || $switched === false ) ) {
|
| 569 |
$dir = ABSPATH . UPLOADS;
|
| 570 |
}
|
| 571 |
+
if (function_exists('is_multisite')) {
|
| 572 |
+
if ( is_multisite() && !$main_override && ( !isset( $switched ) || $switched === false ) ) {
|
| 573 |
+
if ( defined( 'BLOGUPLOADDIR' ) )
|
| 574 |
+
$dir = untrailingslashit(BLOGUPLOADDIR);
|
| 575 |
+
}
|
| 576 |
+
}
|
| 577 |
+
|
| 578 |
return str_replace('\\','/',trailingslashit($dir));
|
| 579 |
}
|
| 580 |
|
| 611 |
$selected=$_POST['selected'];
|
| 612 |
$ajax=true;
|
| 613 |
}
|
| 614 |
+
require_once(plugin_dir_path(__FILE__).'libs/S3.php');
|
| 615 |
if (empty($awsAccessKey)) {
|
| 616 |
echo '<span id="awsBucket" style="color:red;">'.__('Missing Access Key ID!','backwpup').'</span>';
|
| 617 |
die();
|
backwpup.php
CHANGED
|
@@ -4,7 +4,7 @@ Plugin Name: BackWPup
|
|
| 4 |
Plugin URI: http://danielhuesken.de/portfolio/backwpup/
|
| 5 |
Description: Backup and more of your WordPress Blog Database and Files.
|
| 6 |
Author: Daniel Hüsken
|
| 7 |
-
Version: 1.1.
|
| 8 |
Author URI: http://danielhuesken.de
|
| 9 |
Text Domain: backwpup
|
| 10 |
Domain Path: /lang/
|
|
@@ -35,7 +35,7 @@ if ( !defined('ABSPATH') )
|
|
| 35 |
//Set plugin dirname
|
| 36 |
define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
|
| 37 |
//Set Plugin Version
|
| 38 |
-
define('BACKWPUP_VERSION', '1.1.
|
| 39 |
//load Text Domain
|
| 40 |
load_plugin_textdomain('backwpup', false, BACKWPUP_PLUGIN_BASEDIR.'/lang');
|
| 41 |
//Load functions file
|
| 4 |
Plugin URI: http://danielhuesken.de/portfolio/backwpup/
|
| 5 |
Description: Backup and more of your WordPress Blog Database and Files.
|
| 6 |
Author: Daniel Hüsken
|
| 7 |
+
Version: 1.1.1
|
| 8 |
Author URI: http://danielhuesken.de
|
| 9 |
Text Domain: backwpup
|
| 10 |
Domain Path: /lang/
|
| 35 |
//Set plugin dirname
|
| 36 |
define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
|
| 37 |
//Set Plugin Version
|
| 38 |
+
define('BACKWPUP_VERSION', '1.1.1');
|
| 39 |
//load Text Domain
|
| 40 |
load_plugin_textdomain('backwpup', false, BACKWPUP_PLUGIN_BASEDIR.'/lang');
|
| 41 |
//Load functions file
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=danie
|
|
| 4 |
Tags: backup, admin, file, Database, mysql, cron, ftp, S3, export
|
| 5 |
Requires at least: 2.8
|
| 6 |
Tested up to: 3.0.0
|
| 7 |
-
Stable tag: 1.1.
|
| 8 |
|
| 9 |
Backup and more of your WordPress Blog Database and Files
|
| 10 |
|
|
@@ -81,6 +81,10 @@ Pleace mail only littele archives
|
|
| 81 |
1. Job Page
|
| 82 |
|
| 83 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
= 1.1.0 =
|
| 85 |
* added fuction to check/update job settings
|
| 86 |
* added no ajax bucket list to job page
|
| 4 |
Tags: backup, admin, file, Database, mysql, cron, ftp, S3, export
|
| 5 |
Requires at least: 2.8
|
| 6 |
Tested up to: 3.0.0
|
| 7 |
+
Stable tag: 1.1.1
|
| 8 |
|
| 9 |
Backup and more of your WordPress Blog Database and Files
|
| 10 |
|
| 81 |
1. Job Page
|
| 82 |
|
| 83 |
== Changelog ==
|
| 84 |
+
= 1.1.1 =
|
| 85 |
+
* fixed S3 lib not found bug again.
|
| 86 |
+
* improved reschedule on activation problem.
|
| 87 |
+
|
| 88 |
= 1.1.0 =
|
| 89 |
* added fuction to check/update job settings
|
| 90 |
* added no ajax bucket list to job page
|
