Backup and Restore WordPress – WPBackItUp Backup Plugin - Version 1.31.0

Version Description

Download this release

Release Info

Developer cssimmon
Plugin Icon 128x128 Backup and Restore WordPress – WPBackItUp Backup Plugin
Version 1.31.0
Comparing to
See all releases

Code changes from version 1.30.0 to 1.31.0

js/wp-backitup-admin.min.js CHANGED
@@ -1 +1 @@
1
- var WPBNewBackupData={},ajaxNamespace="wpbackitup-safe",ENUM={GDRIVE:"GDRIVE",AMAZONS3:"AMAZONS3",DROPBOX:"DROPBOX"},CLOUDSTATUS={READY:"ready",UPLOADING:"uploading",UPLOADED:"uploaded",ERROR:"error"},debugFlag=!1;if("undefined"==typeof WPBackItUpSafeLocals)var WPBackItUpSafeLocals=[];var wpbackitup_get_action_name=function(e){return ajaxNamespace+"_"+e},AjaxGetSafe=function(e){return jQuery.ajax({url:ajaxurl,type:"GET",data:{action:wpbackitup_get_action_name(e),security:WPBackItUpSafeLocals[e]},dataType:"json"})},AjaxGetCore=function(e){var a=wpbackitup_local[e];return jQuery.ajax({url:ajaxurl,type:"GET",data:{action:"wp-backitup_"+e,security:a},dataType:"json"})},AjaxPostSafe=function(e,a){var a=a||{};return a.action=wpbackitup_get_action_name(e),a.security=WPBackItUpSafeLocals[e],jQuery.ajax({url:ajaxurl,type:"POST",data:a,dataType:"json"})};!function(e){"use strict";if(document.querySelector("#wpbackitup-core-backup"))var a=new Vue({el:"#wpbackitup-core-backup",data:{cloudStatus:{},isNewRowAvailable:!1,backupNewRow:{}},methods:{getAvailableBackups:function(){AjaxGetCore("get_available_backups").then(function(e){if(e.success)for(var t=0;t<e.data.length;t++){var i=e.data[t].backup_job_id,s=e.data[t].backup_job_cloud_status;a.$set(a.cloudStatus,i,s)}})},getBackupStatus:function(){var e=WPBNewBackupData;if("success"===e.backupStatus){var a=e.backupName,t=a.lastIndexOf("_"),i=a.substring(t+1);this.isNewRowAvailable=!0,this.backupNewRow={name:e.backupName,type:e.backupRuntype,date:e.backupDate,duration:e.backupDuration,status:e.backupStatus,row:99999,jobId:i,zipExist:!0},WPBNewBackupData={}}}},mounted:function(){this.getAvailableBackups(),this.getBackupStatusInterval=setInterval(function(){0!==Object.keys(WPBNewBackupData).length&&this.getBackupStatus()}.bind(this),1e3),this.getAvailableBackupsInterval=setInterval(function(){this.getAvailableBackups()}.bind(this),3e3)},beforeDestroy:function(){clearInterval(this.getAvailableBackupsInterval),clearInterval(this.getBackupStatusInterval)}})}(jQuery),function(e){function a(){e(".viewloglink").click(function(){var a=e(this).attr("href");return e("#backup_name").val(a),e("#viewlog").submit(),!1})}function t(){e(".downloadbackuplink").bind("click",function(){var a=e(this).attr("href");return e("#backup_file").val(a),e(this).append('<i class="fa fa-check"></i>'),e(this).css({color:"green"}),e("#download_backup").submit(),!1})}function i(a,i){var n=({action:f("backup_zip_filelist"),job_id:a},i.replace(/[^A-Za-z0-9\-]/g,"")),o=0,c="",l='<div id="'+n+'"> <h2>'+wpbackitup_local.bl_backup_set+"&nbsp; <em>"+i+'</em></h2> <div class="wpbiu-notes"> <textarea class="backupnotes" id="wpbiu-note-box" placeholder="'+wpbackitup_local.bl_note_placeholder+'"></textarea> <button id="wpbiu-note-btn" class="button-primary">'+wpbackitup_local.bl_note_save+'</button><span id="wpbiu-note-response">'+wpbackitup_local.bl_note_saved_success+"</span></div> <p>"+wpbackitup_local.bl_backup_download+'</p> <table class="widefat" id="datatable"> <tbody>';e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup_zip_filelist"),job_id:a},dataType:"json"}).done(function(i){i.data?(e.each(i.data,function(){var a=e(this)[0].name.split(/[\/]+/).pop(),t=e(this)[0].size,i=e(this)[0].file_exists;if(console.log(a,t),a.indexOf("-backupset-")>-1)c='<p><a class="downloadbackuplink" href="'+a+'"><i class="fa fa-cloud-download fa-3x"></i> <strong>'+wpbackitup_local.bl_backup_download_single+"</strong></a> <br><em>"+wpbackitup_local.bl_please_note+t+wpbackitup_local.bl_may_timeout+"</em></p>";else{o++;var s="";o%2!=0&&(s="alternate"),l+='<tr class="'+s+'" id="row'+o+'">',l+=i?'<td><a class="downloadbackuplink" href="'+a+'">'+a+"</a></td>":"<td>"+a+"</td>",l+="<td>"+t+"</td> </tr>"}}),l+=c+"</tbody></table></div>",e("#TB_ajaxContent").html(l),t(),e.ajax({url:ajaxurl,type:"post",data:{action:f("backup_get_note"),job_id:a},success:function(a){e("#wpbiu-note-box").val(a.data)}}),e("#wpbiu-note-btn").click(function(){var t=e("#wpbiu-note-box").val();e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup_add_note"),job_id:a,note:t},dataType:"json"}).success(function(a){e("#wpbiu-note-response").fadeIn()})}),e("#wpbiu-note-box").focus(function(){e("#wpbiu-note-response").hide()})):s(i,null,null)}).fail(function(e,a,t){s(e,a,t)})}function s(e,a,t){var i="Error-Invalid response from server: ";a&&(i+=a+"\n"),t&&(i+=t+"\n"),i+="\nResponse: \n\n"+JSON.stringify(e),alert(i)}function n(){var a={action:f("restore_status_reader"),job_id:v};e.post(ajaxurl,a,function(a){var t=e(a);t.each(function(){var a="."+e(this).attr("class"),t="."+e(this).attr("class")+"-icon";0==e(this).html()&&(e(a).find(".status").hide(),e(a).find(".status-icon").hide()),1==e(this).html()&&(e(t).css("visibility","visible"),e(a).find(".status").fadeOut(200),e(a).find(".status-icon").fadeIn(1500)),2==e(this).html()&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".status").fadeIn(1500)),e(this).html()==-1&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".fail").fadeIn(1500),e(a).find(".isa_error").fadeIn(1500),clearInterval(window.intervalDefine)),e(this).html()==-2&&e(a).find(".isa_warning").fadeIn(1500),99==e(this).html()&&(e(a).find(".isa_success").fadeIn(1500),clearInterval(window.intervalDefine))})})}function o(){var a={action:f("backup_status_reader"),job_id:v};e.post(ajaxurl,a,function(a){if(x)return clearInterval(window.intervalDefine),e(".status-icon").fadeOut(200),e("#backup-button").removeAttr("disabled"),e("#cancel-button").addClass("button-hidden").fadeOut(200),e("#backup-button").removeClass("button-hidden").fadeIn(200),e(".backup-cancelled").fadeIn(200),!1;var t=e(a);t.each(function(){var a="."+e(this).attr("class"),t="."+e(this).attr("class")+"-icon";0==e(this).html()&&(e(a).find(".status").hide(),e(a).find(".status-icon").hide()),1==e(this).html()&&(e(t).css("visibility","visible"),e(a).find(".status").fadeOut(200),e(a).find(".status-icon").fadeIn(1500)),2==e(this).html()&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".status").fadeIn(1500)),e(this).html()==-1&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".fail").fadeIn(1500),clearInterval(window.intervalDefine),c()),e(this).html()==-2&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".wpbackitup-warning").fadeIn(1500)),99==e(this).html()&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".status").fadeIn(1500),clearInterval(window.intervalDefine),c())})})}function c(){var a=e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup_response_reader")},dataType:"json"});a.always(function(a,t,i){if(console.log("Backup Response:"+JSON.stringify(a)),"undefined"!=typeof a.backupStatus&&"undefined"!=typeof a.backupMessage){if(console.log("JSON Backup Status:"+a.backupStatus),console.log("JSON Backup Message:"+a.backupMessage),y)return;switch(y=!0,a.backupStatus){case"success":if(console.log("JSON success response received."),e(".status-icon").fadeOut(200),e("#backup-button").removeAttr("disabled"),e("#cancel-button").addClass("button-hidden").fadeOut(200),e("#backup-button").removeClass("button-hidden").fadeIn(200),e(".isa_success").show,e(".backup-success").fadeIn(1500),_(a),"undefined"!=typeof a.backupWarnings){var s=e(".backup-warning"),n=a.backupWarnings;n.forEach(function(e){var a=e.warningMessage;s.append('<li class="isa_warning">'+wpbackitup_local.warning+": "+a+"</li>")}),s.fadeIn(1500)}break;case"error":console.log("JSON error response received.");var o=wpbackitup_local.unexpected_err;"undefined"!=typeof a.backupMessage&&(o=a.backupMessage);var c=wpbackitup_local.error+": &nbsp;"+o,l=e(".backup-error");l.html(c),l.addClass("isa_error"),l.fadeIn(1500),e(".status-icon").fadeOut(200),e("#backup-button").removeAttr("disabled"),e("#cancel-button").addClass("button-hidden").fadeOut(200),e("#backup-button").removeClass("button-hidden").fadeIn(200);break;default:console.log("Unexpected JSON response status received.");var o=wpbackitup_local.unexpected_err2;"undefined"!=typeof a.backupMessage&&(o=a.backupMessage);var c=wpbackitup_local.error+"(JS998) : &nbsp;"+o,u=e(".backup-error");u.html(c),u.addClass("isa_error"),u.fadeIn(1500),e(".status-icon").fadeOut(200),e("#backup-button").removeAttr("disabled"),e("#cancel-button").addClass("button-hidden").fadeOut(200),e("#backup-button").removeClass("button-hidden").fadeIn(200)}}else{console.log("NON JSON response received."),console.log("Backup Response:"+i),c=wpbackitup_local.unexpected_err3+": &nbsp;",c+="</br>"+wpbackitup_local.response+": &nbsp;"+JSON.stringify(a),c+="</br>"+wpbackitup_local.status+": &nbsp;"+t,c+="</br>"+wpbackitup_local.error+": &nbsp;"+JSON.stringify(i),e(".backup-status").hide();var u=e(".backup-error");u.html(c),u.addClass("isa_error"),u.show(),e(".status-icon").fadeOut(200)}})}function l(){e(".backup-icon").css("visibility","visible"),e(".backup-icon").show(),e(".backup-success").hide(),e(".default-status").hide(),e(".backup-error").hide(),e(".backup-cancelled").hide(),e("ul.backup-status").children().children().hide(),e(".backup-errors").children().children().hide(),e(".backup-success").children().children().hide(),e(".backup-status").show(),y=!1,window.intervalDefine=setInterval(o,5e3)}function u(){e(".backup-icon").css("visibility","visible"),e(".backup-icon").show(),e(".backup-status").show(),y=!1,clearInterval(window.intervalDefine),window.intervalDefine=setInterval(o,5e3)}function r(){e(".restore-icon").css("visibility","visible"),e(".default-status, .upload-status").hide(),e("ul.restore-status").children().children().hide(),e(".restore-errors").children().children().hide(),e(".restore-success").children().children().hide(),e(".restore-status, .restore-errors, .restore-success").show(),e(".preparing-icon").css("visibility","visible"),e(".preparing").find(".status-icon").fadeIn(1500),window.intervalDefine=setInterval(n,5e3)}function p(a){var t=new plupload.Uploader(a);t.init(),t.bind("FilesAdded",function(a,t){plupload.each(t,function(a){e("#filelist").append('<div id="media-item-'+a.id+'" class="media-item child-of-0"><img class="pinkynail" alt="" src="'+site_url+'/wp-includes/images/media/archive.png"><div class="filename new" id="'+a.id+'">'+a.name+" (<span>"+plupload.formatSize(0)+"</span> of "+plupload.formatSize(a.size)+') <div class="progress" style="width: 0%;"></div></div></div>')}),a.refresh(),a.start()}),t.bind("UploadProgress",function(a,t){e("#"+t.id+" .progress").width(.15*t.percent+"%"),e("#"+t.id+" span").html(plupload.formatSize(parseInt(t.size*t.percent/100)))}),t.bind(" ChunkUploaded",function(e,a,t){console.log("Chunk Uploaded:"),console.log(t),d(t,e,a)&&console.log("chunk error")}),t.bind("Error",function(a,t){console.log("PlUpload Error:"),console.log(t);var i="error-item-"+t.file.id;e("#"+i).length||e("#filelist").append('<div class="error-div error" id="'+i+'" ><strong>'+t.file.name+" has failed to upload due to error:&nbsp;</strong> <span>"+t.message+"</span> </div>")}),t.bind("FileUploaded",function(a,t,i){console.log("File Uploaded"),console.log(i),d(i,a,t)?console.log("uploaded error"):(console.log("uploaded success"),e("#"+t.id+" .progress").css("background-color","green"),e("#import-uploads").show())})}function d(e,a,t){if("200"!=e.status)return alert("Unknown server response status: "+e.code),console.log(e),b(a,t,999,e.response),!0;try{return response_json=jQuery.parseJSON(e.response),!!response_json.error&&(b(a,t,100,response_json.error),!0)}catch(i){return console.log("Unexpected JSON Error"+i),b(a,t,998,e.response),!0}}function b(a,t,i,s){t.status=plupload.FAILED,a.trigger("Error",{code:i,message:s,file:t}),e("#media-item-"+t.id).hide()}function _(i){"undefined"!=typeof i&&(WPBNewBackupData=i,e("#nofiles")&&e("#nofiles").remove(),a(),t())}function f(e){return w+"_"+e}function k(){notification_bar=e("#wp-backitup-notification-parent"),notification_bar.fadeOut("slow")}function h(a){notification_bar_message=e("#wp-backitup-notification-message"),notification_bar_message.html("<p>"+a+"</p>"),notification_bar=e("#wp-backitup-notification-parent"),notification_bar.toggleClass("error",!1),notification_bar.toggleClass("updated",!0),notification_bar.show(),e("html, body").animate({scrollTop:0},"slow")}function g(a){notification_bar_message=e("#wp-backitup-notification-message"),notification_bar_message.html("<p>"+a+"</p>"),notification_bar=e("#wp-backitup-notification-parent"),notification_bar.toggleClass("updated",!1),notification_bar.toggleClass("error",!0),notification_bar.show(),e("html, body").animate({scrollTop:0},"slow")}var w="wp-backitup",v=0;a(),t();try{"undefined"!=typeof wpbackitup_plupload_config&&p(wpbackitup_plupload_config)}catch(m){console.log(m)}e(".logs_backup").click(function(){var a=e(this).attr("href");return e("#backup_file").val(a),e("#download_logs").val(),e("#download_backup").submit(),!1}),e("#scheduled-backups-accordian").click(function(){scheduled_backups=e("#scheduled-backups"),scheduled_backups_button=e("#scheduled-backups-accordian"),e(this).is(".fa-angle-double-down")?(scheduled_backups.fadeIn("slow"),scheduled_backups_button.toggleClass("fa-angle-double-down",!1),scheduled_backups_button.toggleClass("fa-angle-double-up",!0)):(scheduled_backups_button.toggleClass("fa-angle-double-down",!0),scheduled_backups_button.toggleClass("fa-angle-double-up",!1),scheduled_backups.fadeOut("slow"))}),e("#upload-backups-accordian").click(function(){upload_backups=e("#wpbackitup-plupload-modal"),upload_backups_button=e("#upload-backups-accordian"),e(this).is(".fa-angle-double-down")?(upload_backups.fadeIn("slow"),upload_backups_button.toggleClass("fa-angle-double-down",!1),upload_backups_button.toggleClass("fa-angle-double-up",!0)):(upload_backups_button.toggleClass("fa-angle-double-down",!0),upload_backups_button.toggleClass("fa-angle-double-up",!1),upload_backups.fadeOut("slow"))}),e("#wpbackitup-zip").bind("change",function(){var a=this.files[0].size,t=e("#maxfilesize").val();"undefined"!=a&&"undefined"!=t&&""!=a&&""!=t&&a>t&&(alert(wpbackitup_local.upload_file_size_exceed),e("#wpbackitup-zip").val(""))}),e("#import-uploads").click(function(){setTimeout(function(){window.location.reload()},100)}),e(document.body).on("click",".thickbox",function(){if(!e(this).parents(".wpbiu-restore-item").length){var a=e(this).data("jobid");console.log(a);var t=this.name;i(a,t)}}),e(document.body).on("click",".thickbox",function(){var a=e(this).data("jobid"),t=e(this).attr("name");if(e(this).parents(".wpbiu-restore-item").length){var i="<h2>"+wpbackitup_local.bl_backup_set+"&nbsp;<em>"+t+'</em></h2> <div class="wpbiu-notes"> <textarea class="backupnotes" id="wpbiu-restore-note-box" placeholder="'+wpbackitup_local.bl_note_placeholder+'"></textarea> <button id="wpbiu-restore-note-btn" class="button-primary">'+wpbackitup_local.bl_note_save+'</button> <span id="wpbiu-restore-note-response">'+wpbackitup_local.bl_note_saved_success+"</span> </div>";e("#wpbiu-restore-note").html(i),e("#wpbiu-restore-note-response").hide(),e.ajax({url:ajaxurl,type:"post",data:{action:f("backup_get_note"),job_id:a},success:function(a){e("#wpbiu-restore-note-box").val(a.data)}}),e("#wpbiu-restore-note-btn").click(function(){var t=e("#wpbiu-restore-note-box").val();e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup_add_note"),job_id:a,note:t},dataType:"json"}).success(function(a){e("#wpbiu-restore-note-response").fadeIn()})})}e("#wpbiu-restore-note-box").focus(function(){e("#wpbiu-restore-note-response").hide()})});var y=!1;e("#wp-backitup-notification-widget-close").click(function(){notification_bar=e("#wp-backitup-notification-widget"),notification_bar.fadeOut("slow");var a=e.ajax({url:ajaxurl,type:"POST",data:{action:f("delete_transient")},dataType:"json"});a.always(function(a,t,i){a!==!1&&(notification_bar.removeClass(),notification_bar.addClass("notice"),notification_bar.addClass("notice-"+a.message_type),e("#wp-backitup-notification-widget-message p").html(a.message),notification_bar.hide().fadeIn("slow"))})}),e("#wp-backitup-notification-close").click(function(){k()}),e("#wp-backitup-save_schedule_form").submit(function(){var a=new FormData;a.append("action",f("update-schedule")),a.append("_wpnonce",e("#wp-backitup_nonce-update-schedule").val()),a.append("_wp_http_referer",e("[name='_wp_http_referer']").val());var t=[];return e.each(e("input[name='dow']:checked"),function(){t.push(e(this).val())}),a.append("days_selected",t),jQuery.ajax({url:ajaxurl,type:"POST",cache:!1,contentType:!1,processData:!1,dataType:"json",data:a,success:function(e,a,t){switch(response=e.message,console.log("Success:"+response),response){case"success":h(wpbackitup_local.scheduled_saved);break;case"error":g(wpbackitup_local.scheduled_not_saved)}},error:function(e,a,t){console.log("Error."+a+":"+t)},complete:function(e,a){console.log("Complete")}}),!1});var j=null;e(".backup-button").click(function(a){a.preventDefault(),x=!1,e("#backup-button").attr("disabled","disabled"),e("#backup-button").addClass("button-hidden"),e("#cancel-button").removeClass("button-hidden"),e("#cancel-button").removeAttr("disabled"),e("#cancel-button").fadeIn(200),j=e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup")},cache:!1,dataType:"json",beforeSend:function(e,a){console.log("BeforeSend:Nothing to report."),l()}}),j.always(function(e,a,t){console.log("Backup Button Click - Always"),console.log(e.message),"undefined"!=typeof e.job_id?(v=e.job_id,console.log("Job_Id:"+e.job_id)):console.log("No Job Id found:"+e)})}),e(".get-backup-schedule-button").click(function(a){a.preventDefault();var t="get_backup_schedule",i=wpbackitup_local[t];j=e.ajax({url:ajaxurl,type:"POST",data:{action:"wp-backitup_"+t,security:i},cache:!1,dataType:"json",beforeSend:function(e,a){console.log("BeforeSend:Nothing to report.")}})}),e(".set-backup-schedule-button").click(function(a){a.preventDefault();var t="set_backup_schedule",i=wpbackitup_local[t],s="daily",n=!0,o="16:30",c="M";j=e.ajax({url:ajaxurl,type:"POST",data:{action:"wp-backitup_"+t,security:i,frequency:s,start_time:o,days:c,enabled:n},cache:!1,dataType:"json",beforeSend:function(e,a){console.log("BeforeSend:Nothing to report.")}})});var x=!1;e(".cancel-button").click(function(a){a.preventDefault(),e("#cancel-button").attr("disabled","disabled"),null!=j&&(j.abort(),j=null),j=e.ajax({url:ajaxurl,type:"POST",data:{action:f("cancel_backup"),job_id:v},cache:!1,dataType:"json",beforeSend:function(e,a){console.log("BeforeSend:Nothing to report."),u()}}),j.always(function(e,a,t){console.log("Cancel Button Click - Always"),console.log(e),"undefined"!=typeof e.success&&1==e.success?console.log("Job Cancelled successfully"):console.log("Job was not cancelled successfully"),x=!0})}),e("#datatable").on("click","a.restoreRow",function(a){if(a.preventDefault(),confirm(wpbackitup_local.confirm_restore)){var t=this.title;this.id.replace("restoreRow","row");userid=e("input[name=user_id]").val();var i=e.ajax({url:ajaxurl,type:"post",data:{action:f("restore"),selected_file:t,user_id:userid},cache:!1,dataType:"json",beforeSend:function(){console.log("BeforeSend:Nothing to report."),r()}});i.always(function(e,a,t){"undefined"!=typeof e.job_id?(v=e.job_id,console.log("Job_Id:"+e.job_id)):console.log("No Job Id found:"+e)})}}),e("#datatable").on("click","a.deleteRow",function(a){if(a.preventDefault(),confirm(wpbackitup_local.sure)){var t=this.title,i=e(this).data("id"),s=this.id.replace("deleteRow","row");e.ajax({url:ajaxurl,type:"post",data:{action:f("delete_file"),filed:t,post_id:i},success:function(a){var t=a.search("deleted");0==t?e("#"+s).remove():alert(wpbackitup_local.file_not_del)}})}})}(jQuery),function(e){"use strict";var a="wp-backitup",t=function(e){return a+"_"+e},i=function(a){return e.ajax({url:ajaxurl,type:"GET",data:{action:t(a)},dataType:"json"})},s=function(a,i){var i=i||{};return i.action=t(a),i.security=e("#wpbackitup-core-ajax-nonce").val(),e.ajax({url:ajaxurl,type:"POST",data:i,dataType:"json"})};e(window).load(function(){if(document.querySelector("#wpbackitup-core-settings")){Vue.use(VueTabs);var e=new Vue({el:"#wpbackitup-core-settings",data:{loading:!1,updated:!1,emailsArray:[],errorMessages:{},backup_retained_number:3,logging:!1,single_file_db:!1,single_file_backupset:!1,rversion_compare:!1,remove_supporting_zip_files:!1,backup_plugins_filter:[],backup_themes_filter:[],backup_uploads_filter:[],backup_others_filter:[],dbFilterOptions:[],db_filters:[],allow_usage_tracking:!1,backup_dbtables_batch_size:1e4,backup_sql_merge_batch_size:1e4,backup_sql_batch_size:1e4,backup_plugins_batch_size:5e3,backup_themes_batch_size:5e3,backup_uploads_batch_size:500,backup_others_batch_size:500,backup_zip_max_size:524288e3,backup_max_timeout:120,delete_all:!1,safe_sync:!1},computed:{dbFilterHasSearch:function(){return 0==this.dbFilterOptions.length},dbFilterPlaceholder:function(){return this.dbFilterOptions.length>0?wpbackitup_local.settings_select_database_table_to_filter:wpbackitup_local.settings_no_database_table_to_filter}},methods:{handleEmailInput:function(e){},handleTagsInput:function(e){},setSettings:function(){var a={data:{notification_email:this.emailsArray.join(","),backup_retained_number:this.backup_retained_number,logging:this.logging,single_file_db:this.single_file_db,single_file_backupset:this.single_file_backupset,rversion_compare:this.rversion_compare,remove_supporting_zip_files:this.remove_supporting_zip_files,backup_plugins_filter:this.backup_plugins_filter.join(","),backup_themes_filter:this.backup_themes_filter.join(","),backup_uploads_filter:this.backup_uploads_filter.join(","),backup_others_filter:this.backup_others_filter.join(","),backup_dbtables_filter_list:this.db_filters.map(function(e){return e.value}).join(","),backup_dbtables_batch_size:this.backup_dbtables_batch_size,backup_sql_merge_batch_size:this.backup_sql_merge_batch_size,backup_sql_batch_size:this.backup_sql_batch_size,backup_plugins_batch_size:this.backup_plugins_batch_size,backup_themes_batch_size:this.backup_themes_batch_size,backup_uploads_batch_size:this.backup_uploads_batch_size,backup_others_batch_size:this.backup_others_batch_size,backup_zip_max_size:this.backup_zip_max_size,backup_max_timeout:this.backup_max_timeout,delete_all:this.delete_all,safe_sync:this.safe_sync,allow_usage_tracking:this.allow_usage_tracking}};console.log(a),s("set_settings",a).then(function(a){a.success?(e.updated=!0,e.errorMessages={},swal(wpbackitup_local.settings_save_awesome,wpbackitup_local.settings_save_success_message,"success")):(e.errorMessages=a.data,swal(wpbackitup_local.settings_save_oops,wpbackitup_local.settings_save_error_message,"error"))})},getSettings:function(){this.loading=!0,i("get_settings").then(function(a){e.loading=!1,a.success&&(console.log(a),e.emailsArray=a.data.notification_email.split(",").filter(Boolean),e.backup_retained_number=a.data.backup_retained_number,e.logging="1"===a.data.logging,e.single_file_db="1"===a.data.single_file_db,e.rversion_compare="1"===a.data.rversion_compare,e.single_file_backupset="1"===a.data.single_file_backupset,e.remove_supporting_zip_files="1"===a.data.remove_supporting_zip_files,e.backup_plugins_filter=a.data.backup_plugins_filter.split(",").filter(Boolean),e.backup_themes_filter=a.data.backup_themes_filter.split(",").filter(Boolean),e.backup_uploads_filter=a.data.backup_uploads_filter.split(",").filter(Boolean),e.backup_others_filter=a.data.backup_others_filter.split(",").filter(Boolean),e.db_filters=a.data.backup_dbtables_filter_list.split(",").filter(Boolean).map(function(e){return{label:e,value:e}}),e.dbFilterOptions=Object.keys(a.data.backup_dbtables_filterable).map(function(e){var t=a.data.backup_dbtables_filterable[e];return{label:t,value:t}}),e.allow_usage_tracking=a.data.allow_usage_tracking,e.backup_dbtables_batch_size=a.data.backup_dbtables_batch_size,e.backup_sql_merge_batch_size=a.data.backup_sql_merge_batch_size,e.backup_sql_batch_size=a.data.backup_sql_batch_size,e.backup_plugins_batch_size=a.data.backup_plugins_batch_size,e.backup_themes_batch_size=a.data.backup_themes_batch_size,e.backup_uploads_batch_size=a.data.backup_uploads_batch_size,e.backup_others_batch_size=a.data.backup_others_batch_size,e.backup_zip_max_size=a.data.backup_zip_max_size,e.backup_max_timeout=a.data.backup_max_timeout,e.delete_all="1"===a.data.delete_all,e.safe_sync="1"===a.data.safe_sync)})}},created:function(){this.getSettings()}})}})}(jQuery);
1
+ var WPBNewBackupData={},ajaxSafeNamespace="wpbackitup-premium",ENUM={GDRIVE:"GDRIVE",AMAZONS3:"AMAZONS3",DROPBOX:"DROPBOX"},CLOUDSTATUS={READY:"ready",UPLOADING:"uploading",UPLOADED:"uploaded",ERROR:"error"},debugFlag=!1;if("undefined"==typeof WPBackItUpSafeLocals)var WPBackItUpSafeLocals=[];var wpbackitup_get_action_name=function(e){return ajaxSafeNamespace+"_"+e},AjaxGetSafe=function(e){return jQuery.ajax({url:ajaxurl,type:"GET",data:{action:wpbackitup_get_action_name(e),security:WPBackItUpSafeLocals[e]},dataType:"json"})},AjaxGetCore=function(e){var a=wpbackitup_local[e];return jQuery.ajax({url:ajaxurl,type:"GET",data:{action:"wp-backitup_"+e,security:a},dataType:"json"})},AjaxPostSafe=function(e,a){var a=a||{};return a.action=wpbackitup_get_action_name(e),a.security=WPBackItUpSafeLocals[e],jQuery.ajax({url:ajaxurl,type:"POST",data:a,dataType:"json"})};!function(e){"use strict";if(document.querySelector("#wpbackitup-core-backup"))var a=new Vue({el:"#wpbackitup-core-backup",data:{cloudStatus:{},isNewRowAvailable:!1,backupNewRow:{}},methods:{getAvailableBackups:function(){AjaxGetCore("get_available_backups").then(function(e){if(e.success)for(var t=0;t<e.data.length;t++){var i=e.data[t].backup_job_id,s=e.data[t].backup_job_cloud_status;a.$set(a.cloudStatus,i,s)}})},getBackupStatus:function(){var e=WPBNewBackupData;if("success"===e.backupStatus){var a=e.backupName,t=a.lastIndexOf("_"),i=a.substring(t+1);this.isNewRowAvailable=!0,this.backupNewRow={name:e.backupName,type:e.backupRuntype,date:e.backupDate,duration:e.backupDuration,status:e.backupStatus,row:99999,jobId:i,zipExist:!0},WPBNewBackupData={}}}},mounted:function(){this.getAvailableBackups(),this.getBackupStatusInterval=setInterval(function(){0!==Object.keys(WPBNewBackupData).length&&this.getBackupStatus()}.bind(this),1e3),this.getAvailableBackupsInterval=setInterval(function(){this.getAvailableBackups()}.bind(this),3e3)},beforeDestroy:function(){clearInterval(this.getAvailableBackupsInterval),clearInterval(this.getBackupStatusInterval)}})}(jQuery),function(e){function a(){e(".viewloglink").click(function(){var a=e(this).attr("href");return e("#backup_name").val(a),e("#viewlog").submit(),!1})}function t(){e(".downloadbackuplink").bind("click",function(){var a=e(this).attr("href");return e("#backup_file").val(a),e(this).append('<i class="fas fa-check"></i>'),e(this).css({color:"green"}),e("#download_backup").submit(),!1})}function i(a,i){var n=({action:f("backup_zip_filelist"),job_id:a},i.replace(/[^A-Za-z0-9\-]/g,"")),o=0,c="",l='<div id="'+n+'"> <h2>'+wpbackitup_local.bl_backup_set+"&nbsp; <em>"+i+'</em></h2> <div class="wpbiu-notes"> <textarea class="backupnotes" id="wpbiu-note-box" placeholder="'+wpbackitup_local.bl_note_placeholder+'"></textarea> <button id="wpbiu-note-btn" class="button-primary">'+wpbackitup_local.bl_note_save+'</button><span id="wpbiu-note-response">'+wpbackitup_local.bl_note_saved_success+"</span></div> <p>"+wpbackitup_local.bl_backup_download+'</p> <table class="widefat" id="datatable"> <tbody>';e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup_zip_filelist"),job_id:a},dataType:"json"}).done(function(i){i.data?(e.each(i.data,function(){var a=e(this)[0].name.split(/[\/]+/).pop(),t=e(this)[0].size,i=e(this)[0].file_exists;if(console.log(a,t),a.indexOf("-backupset-")>-1)c='<p><a class="downloadbackuplink" href="'+a+'"><i class="fas fa-cloud-download-alt fa-2x"></i> <strong>'+wpbackitup_local.bl_backup_download_single+"</strong></a> <br><em>"+wpbackitup_local.bl_please_note+t+wpbackitup_local.bl_may_timeout+"</em></p>";else{o++;var s="";o%2!=0&&(s="alternate"),l+='<tr class="'+s+'" id="row'+o+'">',l+=i?'<td><a class="downloadbackuplink" href="'+a+'">'+a+"</a></td>":"<td>"+a+"</td>",l+="<td>"+t+"</td> </tr>"}}),l+=c+"</tbody></table></div>",e("#TB_ajaxContent").html(l),t(),e.ajax({url:ajaxurl,type:"post",data:{action:f("backup_get_note"),job_id:a},success:function(a){e("#wpbiu-note-box").val(a.data)}}),e("#wpbiu-note-btn").click(function(){var t=e("#wpbiu-note-box").val();e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup_add_note"),job_id:a,note:t},dataType:"json"}).success(function(a){e("#wpbiu-note-response").fadeIn()})}),e("#wpbiu-note-box").focus(function(){e("#wpbiu-note-response").hide()})):s(i,null,null)}).fail(function(e,a,t){s(e,a,t)})}function s(e,a,t){var i="Error-Invalid response from server: ";a&&(i+=a+"\n"),t&&(i+=t+"\n"),i+="\nResponse: \n\n"+JSON.stringify(e),alert(i)}function n(){var a={action:f("restore_status_reader"),job_id:v};e.post(ajaxurl,a,function(a){var t=e(a);t.each(function(){var a="."+e(this).attr("class"),t="."+e(this).attr("class")+"-icon";0==e(this).html()&&(e(a).find(".status").hide(),e(a).find(".status-icon").hide()),1==e(this).html()&&(e(t).css("visibility","visible"),e(a).find(".status").fadeOut(200),e(a).find(".status-icon").fadeIn(1500)),2==e(this).html()&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".status").fadeIn(1500)),e(this).html()==-1&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".fail").fadeIn(1500),e(a).find(".isa_error").fadeIn(1500),clearInterval(window.intervalDefine)),e(this).html()==-2&&e(a).find(".isa_warning").fadeIn(1500),99==e(this).html()&&(e(a).find(".isa_success").fadeIn(1500),clearInterval(window.intervalDefine))})})}function o(){var a={action:f("backup_status_reader"),job_id:v};e.post(ajaxurl,a,function(a){if(x)return clearInterval(window.intervalDefine),e(".status-icon").fadeOut(200),e("#backup-button").removeAttr("disabled"),e("#cancel-button").addClass("button-hidden").fadeOut(200),e("#backup-button").removeClass("button-hidden").fadeIn(200),e(".backup-cancelled").fadeIn(200),!1;var t=e(a);t.each(function(){var a="."+e(this).attr("class"),t="."+e(this).attr("class")+"-icon";0==e(this).html()&&(e(a).find(".status").hide(),e(a).find(".status-icon").hide()),1==e(this).html()&&(e(t).css("visibility","visible"),e(a).find(".status").fadeOut(200),e(a).find(".status-icon").fadeIn(1500)),2==e(this).html()&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".status").fadeIn(1500)),e(this).html()==-1&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".fail").fadeIn(1500),clearInterval(window.intervalDefine),c()),e(this).html()==-2&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".wpbackitup-warning").fadeIn(1500)),99==e(this).html()&&(e(a).find(".status-icon").fadeOut(200),e(a).find(".status").fadeIn(1500),clearInterval(window.intervalDefine),c())})})}function c(){var a=e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup_response_reader")},dataType:"json"});a.always(function(a,t,i){if(console.log("Backup Response:"+JSON.stringify(a)),"undefined"!=typeof a.backupStatus&&"undefined"!=typeof a.backupMessage){if(console.log("JSON Backup Status:"+a.backupStatus),console.log("JSON Backup Message:"+a.backupMessage),y)return;switch(y=!0,a.backupStatus){case"success":if(console.log("JSON success response received."),e(".status-icon").fadeOut(200),e("#backup-button").removeAttr("disabled"),e("#cancel-button").addClass("button-hidden").fadeOut(200),e("#backup-button").removeClass("button-hidden").fadeIn(200),e(".isa_success").show,e(".backup-success").fadeIn(1500),_(a),"undefined"!=typeof a.backupWarnings){var s=e(".backup-warning"),n=a.backupWarnings;n.forEach(function(e){var a=e.warningMessage;s.append('<li class="isa_warning">'+wpbackitup_local.warning+": "+a+"</li>")}),s.fadeIn(1500)}break;case"error":console.log("JSON error response received.");var o=wpbackitup_local.unexpected_err;"undefined"!=typeof a.backupMessage&&(o=a.backupMessage);var c=wpbackitup_local.error+": &nbsp;"+o,l=e(".backup-error");l.html(c),l.addClass("isa_error"),l.fadeIn(1500),e(".status-icon").fadeOut(200),e("#backup-button").removeAttr("disabled"),e("#cancel-button").addClass("button-hidden").fadeOut(200),e("#backup-button").removeClass("button-hidden").fadeIn(200);break;default:console.log("Unexpected JSON response status received.");var o=wpbackitup_local.unexpected_err2;"undefined"!=typeof a.backupMessage&&(o=a.backupMessage);var c=wpbackitup_local.error+"(JS998) : &nbsp;"+o,u=e(".backup-error");u.html(c),u.addClass("isa_error"),u.fadeIn(1500),e(".status-icon").fadeOut(200),e("#backup-button").removeAttr("disabled"),e("#cancel-button").addClass("button-hidden").fadeOut(200),e("#backup-button").removeClass("button-hidden").fadeIn(200)}}else{console.log("NON JSON response received."),console.log("Backup Response:"+i),c=wpbackitup_local.unexpected_err3+": &nbsp;",c+="</br>"+wpbackitup_local.response+": &nbsp;"+JSON.stringify(a),c+="</br>"+wpbackitup_local.status+": &nbsp;"+t,c+="</br>"+wpbackitup_local.error+": &nbsp;"+JSON.stringify(i),e(".backup-status").hide();var u=e(".backup-error");u.html(c),u.addClass("isa_error"),u.show(),e(".status-icon").fadeOut(200)}})}function l(){e(".backup-icon").css("visibility","visible"),e(".backup-icon").show(),e(".backup-success").hide(),e(".default-status").hide(),e(".backup-error").hide(),e(".backup-cancelled").hide(),e("ul.backup-status").children().children().hide(),e(".backup-errors").children().children().hide(),e(".backup-success").children().children().hide(),e(".backup-status").show(),y=!1,window.intervalDefine=setInterval(o,5e3)}function u(){e(".backup-icon").css("visibility","visible"),e(".backup-icon").show(),e(".backup-status").show(),y=!1,clearInterval(window.intervalDefine),window.intervalDefine=setInterval(o,5e3)}function r(){e(".restore-icon").css("visibility","visible"),e(".default-status, .upload-status").hide(),e("ul.restore-status").children().children().hide(),e(".restore-errors").children().children().hide(),e(".restore-success").children().children().hide(),e(".restore-status, .restore-errors, .restore-success").show(),e(".preparing-icon").css("visibility","visible"),e(".preparing").find(".status-icon").fadeIn(1500),window.intervalDefine=setInterval(n,5e3)}function p(a){var t=new plupload.Uploader(a);t.init(),t.bind("FilesAdded",function(a,t){plupload.each(t,function(a){e("#filelist").append('<div id="media-item-'+a.id+'" class="media-item child-of-0"><img class="pinkynail" alt="" src="'+site_url+'/wp-includes/images/media/archive.png"><div class="filename new" id="'+a.id+'">'+a.name+" (<span>"+plupload.formatSize(0)+"</span> of "+plupload.formatSize(a.size)+') <div class="progress" style="width: 0%;"></div></div></div>')}),a.refresh(),a.start()}),t.bind("UploadProgress",function(a,t){e("#"+t.id+" .progress").width(.15*t.percent+"%"),e("#"+t.id+" span").html(plupload.formatSize(parseInt(t.size*t.percent/100)))}),t.bind(" ChunkUploaded",function(e,a,t){console.log("Chunk Uploaded:"),console.log(t),d(t,e,a)&&console.log("chunk error")}),t.bind("Error",function(a,t){console.log("PlUpload Error:"),console.log(t);var i="error-item-"+t.file.id;e("#"+i).length||e("#filelist").append('<div class="error-div error" id="'+i+'" ><strong>'+t.file.name+" has failed to upload due to error:&nbsp;</strong> <span>"+t.message+"</span> </div>")}),t.bind("FileUploaded",function(a,t,i){console.log("File Uploaded"),console.log(i),d(i,a,t)?console.log("uploaded error"):(console.log("uploaded success"),e("#"+t.id+" .progress").css("background-color","green"),e("#import-uploads").show())})}function d(e,a,t){if("200"!=e.status)return alert("Unknown server response status: "+e.code),console.log(e),b(a,t,999,e.response),!0;try{return response_json=jQuery.parseJSON(e.response),!!response_json.error&&(b(a,t,100,response_json.error),!0)}catch(i){return console.log("Unexpected JSON Error"+i),b(a,t,998,e.response),!0}}function b(a,t,i,s){t.status=plupload.FAILED,a.trigger("Error",{code:i,message:s,file:t}),e("#media-item-"+t.id).hide()}function _(i){"undefined"!=typeof i&&(WPBNewBackupData=i,e("#nofiles")&&e("#nofiles").remove(),a(),t())}function f(e){return w+"_"+e}function k(){notification_bar=e("#wp-backitup-notification-parent"),notification_bar.fadeOut("slow")}function h(a){notification_bar_message=e("#wp-backitup-notification-message"),notification_bar_message.html("<p>"+a+"</p>"),notification_bar=e("#wp-backitup-notification-parent"),notification_bar.toggleClass("error",!1),notification_bar.toggleClass("updated",!0),notification_bar.show(),e("html, body").animate({scrollTop:0},"slow")}function g(a){notification_bar_message=e("#wp-backitup-notification-message"),notification_bar_message.html("<p>"+a+"</p>"),notification_bar=e("#wp-backitup-notification-parent"),notification_bar.toggleClass("updated",!1),notification_bar.toggleClass("error",!0),notification_bar.show(),e("html, body").animate({scrollTop:0},"slow")}var w="wp-backitup",v=0;a(),t();try{"undefined"!=typeof wpbackitup_plupload_config&&p(wpbackitup_plupload_config)}catch(m){console.log(m)}e(".logs_backup").click(function(){var a=e(this).attr("href");return e("#backup_file").val(a),e("#download_logs").val(),e("#download_backup").submit(),!1}),e("#scheduled-backups-accordian").click(function(){scheduled_backups=e("#scheduled-backups"),scheduled_backups_button=e("#scheduled-backups-accordian"),e(this).is(".fa-angle-double-down")?(scheduled_backups.fadeIn("slow"),scheduled_backups_button.toggleClass("fa-angle-double-down",!1),scheduled_backups_button.toggleClass("fa-angle-double-up",!0)):(scheduled_backups_button.toggleClass("fa-angle-double-down",!0),scheduled_backups_button.toggleClass("fa-angle-double-up",!1),scheduled_backups.fadeOut("slow"))}),e("#upload-backups-accordian").click(function(){upload_backups=e("#wpbackitup-plupload-modal"),upload_backups_button=e("#upload-backups-accordian"),e(this).is(".fa-angle-double-down")?(upload_backups.fadeIn("slow"),upload_backups_button.toggleClass("fa-angle-double-down",!1),upload_backups_button.toggleClass("fa-angle-double-up",!0)):(upload_backups_button.toggleClass("fa-angle-double-down",!0),upload_backups_button.toggleClass("fa-angle-double-up",!1),upload_backups.fadeOut("slow"))}),e("#wpbackitup-zip").bind("change",function(){var a=this.files[0].size,t=e("#maxfilesize").val();"undefined"!=a&&"undefined"!=t&&""!=a&&""!=t&&a>t&&(alert(wpbackitup_local.upload_file_size_exceed),e("#wpbackitup-zip").val(""))}),e("#import-uploads").click(function(){setTimeout(function(){window.location.reload()},100)}),e(document.body).on("click",".thickbox",function(){if(!e(this).parents(".wpbiu-restore-item").length){var a=e(this).data("jobid");console.log(a);var t=this.name;i(a,t)}}),e(document.body).on("click",".thickbox",function(){var a=e(this).data("jobid"),t=e(this).attr("name");if(e(this).parents(".wpbiu-restore-item").length){var i="<h2>"+wpbackitup_local.bl_backup_set+"&nbsp;<em>"+t+'</em></h2> <div class="wpbiu-notes"> <textarea class="backupnotes" id="wpbiu-restore-note-box" placeholder="'+wpbackitup_local.bl_note_placeholder+'"></textarea> <button id="wpbiu-restore-note-btn" class="button-primary">'+wpbackitup_local.bl_note_save+'</button> <span id="wpbiu-restore-note-response">'+wpbackitup_local.bl_note_saved_success+"</span> </div>";e("#wpbiu-restore-note").html(i),e("#wpbiu-restore-note-response").hide(),e.ajax({url:ajaxurl,type:"post",data:{action:f("backup_get_note"),job_id:a},success:function(a){e("#wpbiu-restore-note-box").val(a.data)}}),e("#wpbiu-restore-note-btn").click(function(){var t=e("#wpbiu-restore-note-box").val();e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup_add_note"),job_id:a,note:t},dataType:"json"}).success(function(a){e("#wpbiu-restore-note-response").fadeIn()})})}e("#wpbiu-restore-note-box").focus(function(){e("#wpbiu-restore-note-response").hide()})});var y=!1;e("#wp-backitup-notification-widget-close").click(function(){notification_bar=e("#wp-backitup-notification-widget"),notification_bar.fadeOut("slow");var a=e.ajax({url:ajaxurl,type:"POST",data:{action:f("delete_transient")},dataType:"json"});a.always(function(a,t,i){a!==!1&&(notification_bar.removeClass(),notification_bar.addClass("notice"),notification_bar.addClass("notice-"+a.message_type),e("#wp-backitup-notification-widget-message p").html(a.message),notification_bar.hide().fadeIn("slow"))})}),e("#wp-backitup-notification-close").click(function(){k()}),e("#wp-backitup-save_schedule_form").submit(function(){var a=new FormData;a.append("action",f("update-schedule")),a.append("_wpnonce",e("#wp-backitup_nonce-update-schedule").val()),a.append("_wp_http_referer",e("[name='_wp_http_referer']").val());var t=[];return e.each(e("input[name='dow']:checked"),function(){t.push(e(this).val())}),a.append("days_selected",t),jQuery.ajax({url:ajaxurl,type:"POST",cache:!1,contentType:!1,processData:!1,dataType:"json",data:a,success:function(e,a,t){switch(response=e.message,console.log("Success:"+response),response){case"success":h(wpbackitup_local.scheduled_saved);break;case"error":g(wpbackitup_local.scheduled_not_saved)}},error:function(e,a,t){console.log("Error."+a+":"+t)},complete:function(e,a){console.log("Complete")}}),!1});var j=null;e(".backup-button").click(function(a){a.preventDefault(),x=!1,e("#backup-button").attr("disabled","disabled"),e("#backup-button").addClass("button-hidden"),e("#cancel-button").removeClass("button-hidden"),e("#cancel-button").removeAttr("disabled"),e("#cancel-button").fadeIn(200),j=e.ajax({url:ajaxurl,type:"POST",data:{action:f("backup")},cache:!1,dataType:"json",beforeSend:function(e,a){console.log("BeforeSend:Nothing to report."),l()}}),j.always(function(e,a,t){console.log("Backup Button Click - Always"),console.log(e.message),"undefined"!=typeof e.job_id?(v=e.job_id,console.log("Job_Id:"+e.job_id)):console.log("No Job Id found:"+e)})}),e(".get-backup-schedule-button").click(function(a){a.preventDefault();var t="get_backup_schedule",i=wpbackitup_local[t];j=e.ajax({url:ajaxurl,type:"POST",data:{action:"wp-backitup_"+t,security:i},cache:!1,dataType:"json",beforeSend:function(e,a){console.log("BeforeSend:Nothing to report.")}})}),e(".set-backup-schedule-button").click(function(a){a.preventDefault();var t="set_backup_schedule",i=wpbackitup_local[t],s="daily",n=!0,o="16:30",c="M";j=e.ajax({url:ajaxurl,type:"POST",data:{action:"wp-backitup_"+t,security:i,frequency:s,start_time:o,days:c,enabled:n},cache:!1,dataType:"json",beforeSend:function(e,a){console.log("BeforeSend:Nothing to report.")}})});var x=!1;e(".cancel-button").click(function(a){a.preventDefault(),e("#cancel-button").attr("disabled","disabled"),null!=j&&(j.abort(),j=null),j=e.ajax({url:ajaxurl,type:"POST",data:{action:f("cancel_backup"),job_id:v},cache:!1,dataType:"json",beforeSend:function(e,a){console.log("BeforeSend:Nothing to report."),u()}}),j.always(function(e,a,t){console.log("Cancel Button Click - Always"),console.log(e),"undefined"!=typeof e.success&&1==e.success?console.log("Job Cancelled successfully"):console.log("Job was not cancelled successfully"),x=!0})}),e("#datatable").on("click","a.restoreRow",function(a){if(a.preventDefault(),confirm(wpbackitup_local.confirm_restore)){var t=this.title;this.id.replace("restoreRow","row");userid=e("input[name=user_id]").val();var i=e.ajax({url:ajaxurl,type:"post",data:{action:f("restore"),selected_file:t,user_id:userid},cache:!1,dataType:"json",beforeSend:function(){console.log("BeforeSend:Nothing to report."),r()}});i.always(function(e,a,t){"undefined"!=typeof e.job_id?(v=e.job_id,console.log("Job_Id:"+e.job_id)):console.log("No Job Id found:"+e)})}}),e("#datatable").on("click","a.deleteRow",function(a){if(a.preventDefault(),confirm(wpbackitup_local.sure)){var t=this.title,i=e(this).data("id"),s=this.id.replace("deleteRow","row");e.ajax({url:ajaxurl,type:"post",data:{action:f("delete_file"),filed:t,post_id:i},success:function(a){var t=a.search("deleted");0==t?e("#"+s).remove():alert(wpbackitup_local.file_not_del)}})}})}(jQuery),function(e){"use strict";var a="wp-backitup",t=function(e){return a+"_"+e},i=function(a){return e.ajax({url:ajaxurl,type:"GET",data:{action:t(a)},dataType:"json"})},s=function(a,i){var i=i||{};return i.action=t(a),i.security=e("#wpbackitup-core-ajax-nonce").val(),e.ajax({url:ajaxurl,type:"POST",data:i,dataType:"json"})};e(window).load(function(){if(document.querySelector("#wpbackitup-core-settings")){Vue.use(VueTabs);var e=new Vue({el:"#wpbackitup-core-settings",data:{loading:!1,updated:!1,emailsArray:[],errorMessages:{},backup_retained_number:3,logging:!1,single_file_db:!1,single_file_backupset:!1,rversion_compare:!1,remove_supporting_zip_files:!1,backup_plugins_filter:[],backup_themes_filter:[],backup_uploads_filter:[],backup_others_filter:[],dbFilterOptions:[],db_filters:[],allow_usage_tracking:!1,backup_dbtables_batch_size:1e4,backup_sql_merge_batch_size:1e4,backup_sql_batch_size:1e4,backup_plugins_batch_size:5e3,backup_themes_batch_size:5e3,backup_uploads_batch_size:500,backup_others_batch_size:500,backup_zip_max_size:524288e3,backup_max_timeout:120,delete_all:!1,safe_sync:!1,beta_updates:!1},computed:{dbFilterHasSearch:function(){return 0==this.dbFilterOptions.length},dbFilterPlaceholder:function(){return this.dbFilterOptions.length>0?wpbackitup_local.settings_select_database_table_to_filter:wpbackitup_local.settings_no_database_table_to_filter}},methods:{handleEmailInput:function(e){},handleTagsInput:function(e){},setSettings:function(){var a={data:{notification_email:this.emailsArray.join(","),backup_retained_number:this.backup_retained_number,logging:this.logging,single_file_db:this.single_file_db,single_file_backupset:this.single_file_backupset,rversion_compare:this.rversion_compare,remove_supporting_zip_files:this.remove_supporting_zip_files,backup_plugins_filter:this.backup_plugins_filter.join(","),backup_themes_filter:this.backup_themes_filter.join(","),backup_uploads_filter:this.backup_uploads_filter.join(","),backup_others_filter:this.backup_others_filter.join(","),backup_dbtables_filter_list:this.db_filters.map(function(e){return e.value}).join(","),backup_dbtables_batch_size:this.backup_dbtables_batch_size,backup_sql_merge_batch_size:this.backup_sql_merge_batch_size,backup_sql_batch_size:this.backup_sql_batch_size,backup_plugins_batch_size:this.backup_plugins_batch_size,backup_themes_batch_size:this.backup_themes_batch_size,backup_uploads_batch_size:this.backup_uploads_batch_size,backup_others_batch_size:this.backup_others_batch_size,backup_zip_max_size:this.backup_zip_max_size,backup_max_timeout:this.backup_max_timeout,delete_all:this.delete_all,safe_sync:this.safe_sync,beta_updates:this.beta_updates,allow_usage_tracking:this.allow_usage_tracking}};console.log(a),s("set_settings",a).then(function(a){a.success?(e.updated=!0,e.errorMessages={},swal(wpbackitup_local.settings_save_awesome,wpbackitup_local.settings_save_success_message,"success")):(e.errorMessages=a.data,swal(wpbackitup_local.settings_save_oops,wpbackitup_local.settings_save_error_message,"error"))})},getSettings:function(){this.loading=!0,i("get_settings").then(function(a){e.loading=!1,a.success&&(console.log(a),e.emailsArray=a.data.notification_email.split(",").filter(Boolean),e.backup_retained_number=a.data.backup_retained_number,e.logging="1"===a.data.logging,e.single_file_db="1"===a.data.single_file_db,e.rversion_compare="1"===a.data.rversion_compare,e.single_file_backupset="1"===a.data.single_file_backupset,e.remove_supporting_zip_files="1"===a.data.remove_supporting_zip_files,e.backup_plugins_filter=a.data.backup_plugins_filter.split(",").filter(Boolean),e.backup_themes_filter=a.data.backup_themes_filter.split(",").filter(Boolean),e.backup_uploads_filter=a.data.backup_uploads_filter.split(",").filter(Boolean),e.backup_others_filter=a.data.backup_others_filter.split(",").filter(Boolean),e.db_filters=a.data.backup_dbtables_filter_list.split(",").filter(Boolean).map(function(e){return{label:e,value:e}}),e.dbFilterOptions=Object.keys(a.data.backup_dbtables_filterable).map(function(e){var t=a.data.backup_dbtables_filterable[e];return{label:t,value:t}}),e.allow_usage_tracking=a.data.allow_usage_tracking,e.backup_dbtables_batch_size=a.data.backup_dbtables_batch_size,e.backup_sql_merge_batch_size=a.data.backup_sql_merge_batch_size,e.backup_sql_batch_size=a.data.backup_sql_batch_size,e.backup_plugins_batch_size=a.data.backup_plugins_batch_size,e.backup_themes_batch_size=a.data.backup_themes_batch_size,e.backup_uploads_batch_size=a.data.backup_uploads_batch_size,e.backup_others_batch_size=a.data.backup_others_batch_size,e.backup_zip_max_size=a.data.backup_zip_max_size,e.backup_max_timeout=a.data.backup_max_timeout,e.delete_all="1"===a.data.delete_all,e.safe_sync="1"===a.data.safe_sync,e.beta_updates="1"===a.data.beta_updates)})}},created:function(){this.getSettings()}})}})}(jQuery);
lib/includes/class-backup.php CHANGED
@@ -1166,7 +1166,7 @@ class WPBackItUp_Backup {
1166
 
1167
  try {
1168
 
1169
- do_action( 'wpbackitup-safe_queue_job_sync', $job_id,$sync_backup_set_only );
1170
  return true;
1171
 
1172
  } catch(Exception $e) {
1166
 
1167
  try {
1168
 
1169
+ do_action( 'wpbackitup-premium_queue_job_sync', $job_id,$sync_backup_set_only );
1170
  return true;
1171
 
1172
  } catch(Exception $e) {
lib/includes/class-license.php CHANGED
@@ -311,10 +311,11 @@ class WPBackItUp_License {
311
  $license_data = $this->edd_license_api_request(WPBACKITUP__API_URL_V2, 'activate_license', $request_data);
312
 
313
  //if false try using site directly
314
- if ( false === $license_data) {
315
- WPBackItUp_Logger::log_error($this->log_name,__METHOD__, 'Unable to activate using Gateway - attempting direct');
316
- $license_data= $this->edd_license_api_request(WPBACKITUP__SECURESITE_URL,'activate_license', $request_data);
317
- }
 
318
 
319
  return $license_data;
320
 
@@ -750,10 +751,11 @@ class WPBackItUp_License {
750
  return $response;
751
 
752
  } else { //Error
753
- WPBackItUp_Logger::log_info($this->log_name,__METHOD__, 'Requesting Server Name:'. $_SERVER['SERVER_NAME']);
754
- WPBackItUp_Logger::log_info($this->log_name,__METHOD__, 'Requesting IP:'. $_SERVER['SERVER_ADDR']);
 
755
 
756
- WPBackItUp_Logger::log_info($this->log_name,__METHOD__, 'Validation Response:');
757
  WPBackItUp_Logger::log($this->log_name,var_export($response,true));
758
 
759
  return false;
311
  $license_data = $this->edd_license_api_request(WPBACKITUP__API_URL_V2, 'activate_license', $request_data);
312
 
313
  //if false try using site directly
314
+ //Suspect this is causing site to identify request as malicious. Likely no longer needed but comment out for next release.
315
+ // if ( false === $license_data) {
316
+ // WPBackItUp_Logger::log_error($this->log_name,__METHOD__, 'Unable to activate using Gateway - attempting direct');
317
+ // $license_data= $this->edd_license_api_request(WPBACKITUP__SECURESITE_URL,'activate_license', $request_data);
318
+ // }
319
 
320
  return $license_data;
321
 
751
  return $response;
752
 
753
  } else { //Error
754
+ WPBackItUp_Logger::log_error($this->log_name,__METHOD__, 'Error received from activation request, see error code above. If response code was 401 then request was identified as malicious request. Will need to contact Liquid Web to whitelist customer domain.');
755
+ WPBackItUp_Logger::log_error($this->log_name,__METHOD__, 'Requesting Server Name:'. $_SERVER['SERVER_NAME']);
756
+ WPBackItUp_Logger::log_error($this->log_name,__METHOD__, 'Requesting IP:'. $_SERVER['SERVER_ADDR']);
757
 
758
+ WPBackItUp_Logger::log_error($this->log_name,__METHOD__, 'Validation Response:');
759
  WPBackItUp_Logger::log($this->log_name,var_export($response,true));
760
 
761
  return false;
lib/includes/class-settings.php CHANGED
@@ -23,4 +23,14 @@ class WPBackitup_Settings {
23
 
24
  return $site_id;
25
  }
 
 
 
 
 
 
 
 
 
 
26
  }
23
 
24
  return $site_id;
25
  }
26
+
27
+ /** Get Beta Flag **/
28
+ public static function get_beta_updates( $default=false) {
29
+ return (bool) WPBackItUp_Utility::get_option('beta_updates',$default);
30
+ }
31
+
32
+ /** Set Beta Flag **/
33
+ public static function set_beta_updates( $value ) {
34
+ return WPBackItUp_Utility::set_option( 'beta_updates', true===$value ? 1: 0);
35
+ }
36
  }
lib/includes/class-utility.php CHANGED
@@ -176,12 +176,14 @@ class WPBackItUp_Utility {
176
  /**
177
  * Compare major and minor versions
178
  *
179
- * @param $version1
180
- * @param $version2
181
  *
182
- * @return bool
 
 
183
  */
184
- public static function version_compare($version1, $version2) {
185
  //Check major and minor versions only
186
 
187
  $version1_array = explode('.', $version1);
@@ -192,10 +194,16 @@ class WPBackItUp_Utility {
192
  && isset ($version1_array[1]) && is_numeric($version1_array[1])
193
  && isset ($version2_array[1]) && is_numeric($version2_array[1]) ){
194
 
195
- //If major or minor version is different
196
- if ($version1_array[0] === $version2_array[0] &&
197
- $version1_array[1] === $version2_array[1] ) {
198
- return true;
 
 
 
 
 
 
199
  }
200
 
201
  }
176
  /**
177
  * Compare major and minor versions
178
  *
179
+ * @param $version1
180
+ * @param $version2
181
  *
182
+ * @param bool $major_only check only major version
183
+ *
184
+ * @return bool return true when versions are the same
185
  */
186
+ public static function is_same_version($version1, $version2,$major_only=false) {
187
  //Check major and minor versions only
188
 
189
  $version1_array = explode('.', $version1);
194
  && isset ($version1_array[1]) && is_numeric($version1_array[1])
195
  && isset ($version2_array[1]) && is_numeric($version2_array[1]) ){
196
 
197
+ if ($major_only){
198
+ //If major is different
199
+ if ($version1_array[0] === $version2_array[0]) {
200
+ return true;
201
+ }
202
+ } else {
203
+ //If major or minor version is different
204
+ if ( $version1_array[0] === $version2_array[0] && $version1_array[1] === $version2_array[1] ) {
205
+ return true;
206
+ }
207
  }
208
 
209
  }
lib/includes/class-wpbackitup-admin.php CHANGED
@@ -52,6 +52,7 @@ class WPBackitup_Admin {
52
  'cleanup_lastrun_date'=>"-2147483648",
53
  'delete_all' => 0,
54
  'safe_sync' => 0,
 
55
  'rversion_compare' => 0,
56
  'backup_dbtables_batch_size'=> WPBACKITUP__DATABASE_BATCH_SIZE,
57
  'backup_sql_merge_batch_size' => WPBACKITUP__SQL_MERGE_BATCH_SIZE,
@@ -323,7 +324,11 @@ class WPBackitup_Admin {
323
  wp_localize_script( "{$this->namespace}-admin", 'wpbackitup_local',$translation_array);
324
 
325
  //Admin fonts
326
- wp_register_style( 'google-fonts', '//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css' );
 
 
 
 
327
  wp_enqueue_style( 'google-fonts' );
328
 
329
  // Jquery UI
@@ -1213,7 +1218,7 @@ class WPBackitup_Admin {
1213
  $job = WPBackItUp_Job::get_job_by_id($job_id);
1214
  if (false!==$job){
1215
 
1216
- do_action( 'wpbackitup-safe_queue_job_sync', $job_id );
1217
  //job meta will be set in sync task
1218
 
1219
  exit('success');
@@ -1302,6 +1307,7 @@ class WPBackitup_Admin {
1302
  'backup_retained_number' => $this->get_option('backup_retained_number'),
1303
  'delete_all' => $this->get_option('delete_all'),
1304
  'safe_sync' => $this->get_option('safe_sync'),
 
1305
  'rversion_compare' => $this->get_option('rversion_compare'),
1306
  'backup_dbtables_batch_size'=> $this->get_option('backup_dbtables_batch_size', WPBACKITUP__DATABASE_BATCH_SIZE),
1307
  'backup_sql_merge_batch_size' => $this->get_option('backup_sql_merge_batch_size', WPBACKITUP__SQL_MERGE_BATCH_SIZE),
@@ -1500,6 +1506,9 @@ class WPBackitup_Admin {
1500
  //** Safe Sync ON/OFF **//
1501
  $data['safe_sync'] = $data['safe_sync'] === 'true' ? 1: 0;
1502
 
 
 
 
1503
  //** Usage Tracking ON/OFF **//
1504
  $ut = new WPBackItUp_Usage();
1505
  $ut->set_tracking_allowed($data['allow_usage_tracking'] === 'true' ? true: false);
@@ -1611,7 +1620,7 @@ class WPBackitup_Admin {
1611
 
1612
  $zip_file_path = $logs_path . '/logs_' . $support_request_id . '.zip';
1613
  $zip = new WPBackItUp_Zip($support_logname,$zip_file_path);
1614
- $zip->zip_files_in_folder($logs_path,$support_request_id,'*.log');
1615
  $zip->close();
1616
 
1617
  $logs_attachment = array( $zip_file_path );
@@ -1650,13 +1659,13 @@ class WPBackitup_Admin {
1650
  }
1651
 
1652
  //send safe logs
1653
- do_action('wpbackitup-safe_upload_logs_files');
1654
 
1655
  wp_safe_redirect($url . '&s=1');
1656
  } else{
1657
 
1658
  //send safe logs
1659
- do_action('wpbackitup-safe_upload_logs_files');
1660
 
1661
  wp_safe_redirect($url . '&s=2');
1662
  }
52
  'cleanup_lastrun_date'=>"-2147483648",
53
  'delete_all' => 0,
54
  'safe_sync' => 0,
55
+ 'beta_updates' => 0,
56
  'rversion_compare' => 0,
57
  'backup_dbtables_batch_size'=> WPBACKITUP__DATABASE_BATCH_SIZE,
58
  'backup_sql_merge_batch_size' => WPBACKITUP__SQL_MERGE_BATCH_SIZE,
324
  wp_localize_script( "{$this->namespace}-admin", 'wpbackitup_local',$translation_array);
325
 
326
  //Admin fonts
327
+ wp_register_style( 'fontawesome-fonts', 'https://use.fontawesome.com/releases/v5.4.2/css/all.css' );
328
+ wp_enqueue_style( 'fontawesome-fonts' );
329
+
330
+ //Leave these for premium <2.0 customers
331
+ wp_register_style( 'google-fonts', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css' );
332
  wp_enqueue_style( 'google-fonts' );
333
 
334
  // Jquery UI
1218
  $job = WPBackItUp_Job::get_job_by_id($job_id);
1219
  if (false!==$job){
1220
 
1221
+ do_action( 'wpbackitup-premium_queue_job_sync', $job_id );
1222
  //job meta will be set in sync task
1223
 
1224
  exit('success');
1307
  'backup_retained_number' => $this->get_option('backup_retained_number'),
1308
  'delete_all' => $this->get_option('delete_all'),
1309
  'safe_sync' => $this->get_option('safe_sync'),
1310
+ 'beta_updates' => $this->get_option('beta_updates'),
1311
  'rversion_compare' => $this->get_option('rversion_compare'),
1312
  'backup_dbtables_batch_size'=> $this->get_option('backup_dbtables_batch_size', WPBACKITUP__DATABASE_BATCH_SIZE),
1313
  'backup_sql_merge_batch_size' => $this->get_option('backup_sql_merge_batch_size', WPBACKITUP__SQL_MERGE_BATCH_SIZE),
1506
  //** Safe Sync ON/OFF **//
1507
  $data['safe_sync'] = $data['safe_sync'] === 'true' ? 1: 0;
1508
 
1509
+ //** Beta Updates ON/OFF **//
1510
+ $data['beta_updates'] = $data['beta_updates'] === 'true' ? 1: 0;
1511
+
1512
  //** Usage Tracking ON/OFF **//
1513
  $ut = new WPBackItUp_Usage();
1514
  $ut->set_tracking_allowed($data['allow_usage_tracking'] === 'true' ? true: false);
1620
 
1621
  $zip_file_path = $logs_path . '/logs_' . $support_request_id . '.zip';
1622
  $zip = new WPBackItUp_Zip($support_logname,$zip_file_path);
1623
+ $zip->zip_log_files_in_folder($logs_path,$support_request_id);
1624
  $zip->close();
1625
 
1626
  $logs_attachment = array( $zip_file_path );
1659
  }
1660
 
1661
  //send safe logs
1662
+ do_action('wpbackitup-premium_upload_logs_files');
1663
 
1664
  wp_safe_redirect($url . '&s=1');
1665
  } else{
1666
 
1667
  //send safe logs
1668
+ do_action('wpbackitup-premium_upload_logs_files');
1669
 
1670
  wp_safe_redirect($url . '&s=2');
1671
  }
lib/includes/class-zip.php CHANGED
@@ -1 +1 @@
1
- <?php if (!defined ('ABSPATH')) die('No direct access allowed');
2
  * WP BackItUp - Zip Class
3
  *
4
  * @package WP BackItUp
5
  * @author Chris Simmons <chris.simmons@wpbackitup.com>
6
  * @link http://www.wpbackitup.com
7
  *
8
  */
9
  private $zip_file_count;
10
  }
 
11
  * WP BackItUp - Zip Class
12
  *
13
  * @package WP BackItUp
14
  * @author Chris Simmons <chris.simmons@wpbackitup.com>
15
  * @link http://www.wpbackitup.com
16
  *
17
  */
18
  private $zip_file_count;
19
  }
 
1
  * WP BackItUp - Zip Class
2
  *
3
  * @package WP BackItUp
4
  * @author Chris Simmons <chris.simmons@wpbackitup.com>
5
  * @link http://www.wpbackitup.com
6
  *
7
  */
8
  private $zip_file_count;
9
  }
10
+ <?php if (!defined ('ABSPATH')) die('No direct access allowed');
11
  * WP BackItUp - Zip Class
12
  *
13
  * @package WP BackItUp
14
  * @author Chris Simmons <chris.simmons@wpbackitup.com>
15
  * @link http://www.wpbackitup.com
16
  *
17
  */
18
  private $zip_file_count;
19
  }
lib/includes/job_backup.php CHANGED
@@ -1289,7 +1289,7 @@ function end_backup($err=null, $success=null){
1289
  }
1290
 
1291
  $zip = new WPBackItUp_Zip($backup_logname,$zip_file_path);
1292
- $zip->zip_files_in_folder($logs_path,$current_job->getJobId(),'*.log');
1293
  $zip->close();
1294
 
1295
  WPBackItUp_Backup::end(); //Release the lock
1289
  }
1290
 
1291
  $zip = new WPBackItUp_Zip($backup_logname,$zip_file_path);
1292
+ $zip->zip_log_files_in_folder($logs_path,$current_job->getJobId());
1293
  $zip->close();
1294
 
1295
  WPBackItUp_Backup::end(); //Release the lock
lib/includes/job_restore.php CHANGED
@@ -568,34 +568,36 @@ if ('task_validate_backup'==$current_task->getTaskName()) {
568
  $backup_wordpress_version = $site_info['wp_version'];
569
  WPBackItUp_Logger::log_info($restore_logname,$log_function,'Site Wordpress Version:' . $site_wordpress_version);
570
  WPBackItUp_Logger::log_info($restore_logname,$log_function,'Backup Wordpress Version:' . $backup_wordpress_version);
571
- if ( ! WPBackItUp_Utility::version_compare($site_wordpress_version, $backup_wordpress_version )) {
 
 
572
  WPBackItUp_Logger::log($restore_logname,'*VALIDATE SITEDATA FILE*' );
573
  $current_task->setStatus(WPBackItUp_Job_Task::ERROR,226);
574
  fatal_error($task,'226','Backup was created using different version of wordpress');
575
  return false;
576
  }
577
 
578
-
579
  $restore_wpbackitup_version = $site_info['wpbackitup_version'];
580
  $current_wpbackitup_version = WPBACKITUP__VERSION;
581
  WPBackItUp_Logger::log_info($restore_logname,$log_function,'WPBackItUp current Version:' . $current_wpbackitup_version);
582
  WPBackItUp_Logger::log_info($restore_logname,$log_function,'WPBackItUp backup Version:' . $restore_wpbackitup_version);
583
- if (! WPBackItUp_Utility::version_compare($restore_wpbackitup_version, $current_wpbackitup_version )){
584
  $current_task->setStatus(WPBackItUp_Job_Task::ERROR,227);
585
- fatal_error($task,'227','Backup was created using different version of WPBackItUp');
586
  return false;
587
  }
588
  }
589
  WPBackItUp_Logger::log($restore_logname,'*END VALIDATE SITEDATA FILE*' );
590
 
591
-
592
  //all SQL files will be added to the jon_item table during validation
593
  WPBackItUp_Logger::log($restore_logname,'*VALIDATE SQL FILE EXISTS*' );
 
594
  if ( ! $wp_restore->validate_SQL_add_items( )){
595
  $current_task->setStatus(WPBackItUp_Job_Task::ERROR,216);
596
  fatal_error($task,'216','NO Database backups in backup.');
597
  return false;
598
  }
 
599
  WPBackItUp_Logger::log($restore_logname,'*END VALIDATE SQL FILE EXISTS*' );
600
  end_status($task);
601
 
568
  $backup_wordpress_version = $site_info['wp_version'];
569
  WPBackItUp_Logger::log_info($restore_logname,$log_function,'Site Wordpress Version:' . $site_wordpress_version);
570
  WPBackItUp_Logger::log_info($restore_logname,$log_function,'Backup Wordpress Version:' . $backup_wordpress_version);
571
+
572
+ //Check Major only - minor restores are allowed
573
+ if ( ! WPBackItUp_Utility::is_same_version($site_wordpress_version, $backup_wordpress_version,true )) {
574
  WPBackItUp_Logger::log($restore_logname,'*VALIDATE SITEDATA FILE*' );
575
  $current_task->setStatus(WPBackItUp_Job_Task::ERROR,226);
576
  fatal_error($task,'226','Backup was created using different version of wordpress');
577
  return false;
578
  }
579
 
 
580
  $restore_wpbackitup_version = $site_info['wpbackitup_version'];
581
  $current_wpbackitup_version = WPBACKITUP__VERSION;
582
  WPBackItUp_Logger::log_info($restore_logname,$log_function,'WPBackItUp current Version:' . $current_wpbackitup_version);
583
  WPBackItUp_Logger::log_info($restore_logname,$log_function,'WPBackItUp backup Version:' . $restore_wpbackitup_version);
584
+ if (! WPBackItUp_Utility::is_same_version($restore_wpbackitup_version, $current_wpbackitup_version,true )){
585
  $current_task->setStatus(WPBackItUp_Job_Task::ERROR,227);
586
+ fatal_error($task,'227','Backup was created using different version of WPBackItUp.');
587
  return false;
588
  }
589
  }
590
  WPBackItUp_Logger::log($restore_logname,'*END VALIDATE SITEDATA FILE*' );
591
 
 
592
  //all SQL files will be added to the jon_item table during validation
593
  WPBackItUp_Logger::log($restore_logname,'*VALIDATE SQL FILE EXISTS*' );
594
+
595
  if ( ! $wp_restore->validate_SQL_add_items( )){
596
  $current_task->setStatus(WPBackItUp_Job_Task::ERROR,216);
597
  fatal_error($task,'216','NO Database backups in backup.');
598
  return false;
599
  }
600
+
601
  WPBackItUp_Logger::log($restore_logname,'*END VALIDATE SQL FILE EXISTS*' );
602
  end_status($task);
603
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpbackitup, cssimmon, alaminopu, imranshuvo
3
  Tags: backup, backups, back up, backup plugin, database backup, multisite backup, full backup, database, restore, migrate, clone, malware
4
  Requires at least: 3.8.0
5
  Requires PHP: 5.2.4
6
- Tested up to: 4.9
7
- Stable tag: 1.29.0
8
  Author URI: https://www.wpbackitup.com
9
  Donate link: https://www.wpbackitup.com
10
  License: GPLv2 or later
@@ -217,6 +217,15 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
217
 
218
 
219
  == Changelog ==
 
 
 
 
 
 
 
 
 
220
  = 1.30 =
221
  *Release Date - October 18, 2018*
222
 
3
  Tags: backup, backups, back up, backup plugin, database backup, multisite backup, full backup, database, restore, migrate, clone, malware
4
  Requires at least: 3.8.0
5
  Requires PHP: 5.2.4
6
+ Tested up to: 5.0
7
+ Stable tag: 1.30.0
8
  Author URI: https://www.wpbackitup.com
9
  Donate link: https://www.wpbackitup.com
10
  License: GPLv2 or later
217
 
218
 
219
  == Changelog ==
220
+ = 1.31 =
221
+ *Release Date - November 6, 2018
222
+
223
+ * UPDATE : Update tested up to version 5.0
224
+ * UPDATE : Add option to install beta releases
225
+ * UPDATE : Update fonts to use latest font awesome(5.4.2)
226
+ * UPDATE : Update license activation logging to better identify response codes in error
227
+ * UPDATE : Update to include debug, info, error logs when sending to support
228
+
229
  = 1.30 =
230
  *Release Date - October 18, 2018*
231
 
views/about.php CHANGED
@@ -372,83 +372,83 @@ class WPBackItUp_Welcome {
372
  <tbody>
373
  <tr>
374
  <td><?php _e('Complete Backup (Database, Themes, Plugins &amp; Media Files)', 'wp-backitup' ); ?> </td>
375
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
376
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
377
  </tr>
378
  <tr>
379
  <td><?php _e('Compressed Backups (Zip Format)', 'wp-backitup' ); ?></td>
380
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
381
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
382
  </tr>
383
  <tr>
384
  <td><?php _e('Download Backups', 'wp-backitup' ); ?></td>
385
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
386
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
387
  </tr>
388
  <tr>
389
  <td><?php _e('Directory Filters', 'wp-backitup' ); ?></td>
390
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
391
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
392
  </tr>
393
  <tr>
394
  <td><?php _e('Database Table Filters', 'wp-backitup' ); ?></td>
395
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
396
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
397
  </tr>
398
  <tr>
399
  <td><?php _e('Single File Database Export', 'wp-backitup' ); ?></td>
400
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
401
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
402
  </tr>
403
  <tr>
404
  <td><?php _e('Purge Old Backups', 'wp-backitup' ); ?></td>
405
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
406
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
407
  </tr>
408
  <tr>
409
  <td><?php _e('Cleanup Work Files &amp; Logs', 'wp-backitup' ); ?></td>
410
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
411
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
412
  </tr>
413
  <tr>
414
  <td><?php _e('Backup Notifications via Email', 'wp-backitup' ); ?></td>
415
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
416
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
417
  </tr>
418
  <tr>
419
  <td><strong><?php _e('One Click Restore</strong>', 'wp-backitup' ); ?></td>
420
- <td class="times"><i class="fa fa-times" aria-hidden="true"></i></td>
421
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
422
  </tr>
423
  <tr>
424
  <td><?php _e('Single File Backup', 'wp-backitup' ); ?></td>
425
- <td class="times"><i class="fa fa-times" aria-hidden="true"></i></td>
426
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
427
  </tr>
428
  <tr>
429
  <td><?php _e('Scheduled Backups', 'wp-backitup' ); ?></td>
430
- <td class="times"><i class="fa fa-times" aria-hidden="true"></i></td>
431
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
432
  </tr>
433
  <tr>
434
  <td><?php _e('Import Backups', 'wp-backitup' ); ?></td>
435
- <td class="times"><i class="fa fa-times" aria-hidden="true"></i></td>
436
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
437
  </tr>
438
  <!-- <tr>-->
439
  <!-- <td>--><?php //_e('Encrypted Backups', 'wp-backitup' ); ?><!--</td>-->
440
- <!-- <td class="times"><i class="fa fa-times" aria-hidden="true"></i></td>-->
441
- <!-- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>-->
442
  <!-- </tr>-->
443
  <tr>
444
  <td><?php _e('Premium Support', 'wp-backitup' ); ?></td>
445
- <td class="times"><i class="fa fa-times" aria-hidden="true"></i></td>
446
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
447
  </tr>
448
  <tr>
449
  <td><?php _e('Product Updates', 'wp-backitup' ); ?></td>
450
- <td class="times"><i class="fa fa-times" aria-hidden="true"></i></td>
451
- <td class="check"><i class="fa fa-check" aria-hidden="true"></i></td>
452
  </tr>
453
  <tr>
454
  <td></td>
372
  <tbody>
373
  <tr>
374
  <td><?php _e('Complete Backup (Database, Themes, Plugins &amp; Media Files)', 'wp-backitup' ); ?> </td>
375
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
376
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
377
  </tr>
378
  <tr>
379
  <td><?php _e('Compressed Backups (Zip Format)', 'wp-backitup' ); ?></td>
380
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
381
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
382
  </tr>
383
  <tr>
384
  <td><?php _e('Download Backups', 'wp-backitup' ); ?></td>
385
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
386
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
387
  </tr>
388
  <tr>
389
  <td><?php _e('Directory Filters', 'wp-backitup' ); ?></td>
390
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
391
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
392
  </tr>
393
  <tr>
394
  <td><?php _e('Database Table Filters', 'wp-backitup' ); ?></td>
395
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
396
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
397
  </tr>
398
  <tr>
399
  <td><?php _e('Single File Database Export', 'wp-backitup' ); ?></td>
400
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
401
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
402
  </tr>
403
  <tr>
404
  <td><?php _e('Purge Old Backups', 'wp-backitup' ); ?></td>
405
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
406
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
407
  </tr>
408
  <tr>
409
  <td><?php _e('Cleanup Work Files &amp; Logs', 'wp-backitup' ); ?></td>
410
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
411
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
412
  </tr>
413
  <tr>
414
  <td><?php _e('Backup Notifications via Email', 'wp-backitup' ); ?></td>
415
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
416
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
417
  </tr>
418
  <tr>
419
  <td><strong><?php _e('One Click Restore</strong>', 'wp-backitup' ); ?></td>
420
+ <td class="times"><i class="fas fa-times" aria-hidden="true"></i></td>
421
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
422
  </tr>
423
  <tr>
424
  <td><?php _e('Single File Backup', 'wp-backitup' ); ?></td>
425
+ <td class="times"><i class="fas fa-times" aria-hidden="true"></i></td>
426
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
427
  </tr>
428
  <tr>
429
  <td><?php _e('Scheduled Backups', 'wp-backitup' ); ?></td>
430
+ <td class="times"><i class="fas fa-times" aria-hidden="true"></i></td>
431
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
432
  </tr>
433
  <tr>
434
  <td><?php _e('Import Backups', 'wp-backitup' ); ?></td>
435
+ <td class="times"><i class="fas fa-times" aria-hidden="true"></i></td>
436
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
437
  </tr>
438
  <!-- <tr>-->
439
  <!-- <td>--><?php //_e('Encrypted Backups', 'wp-backitup' ); ?><!--</td>-->
440
+ <!-- <td class="times"><i class="fas fa-times" aria-hidden="true"></i></td>-->
441
+ <!-- <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>-->
442
  <!-- </tr>-->
443
  <tr>
444
  <td><?php _e('Premium Support', 'wp-backitup' ); ?></td>
445
+ <td class="times"><i class="fas fa-times" aria-hidden="true"></i></td>
446
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
447
  </tr>
448
  <tr>
449
  <td><?php _e('Product Updates', 'wp-backitup' ); ?></td>
450
+ <td class="times"><i class="fas fa-times" aria-hidden="true"></i></td>
451
+ <td class="check"><i class="fas fa-check" aria-hidden="true"></i></td>
452
  </tr>
453
  <tr>
454
  <td></td>
views/backup.php CHANGED
@@ -229,7 +229,7 @@ function scan_import_backups($backup_dir){
229
  <p>'. __($admin_notices[0]['message'],'wp-backitup') .'</p>
230
  </div>');
231
 
232
- echo('<div style="float:right;"><p><a id="wp-backitup-notification-widget-close"><i style="float:right" class="fa fa-close"> ' . __('Dismiss', 'wp-backitup') . '</i></a></p></div>
233
  </div>');
234
  }
235
 
@@ -256,13 +256,13 @@ if (!$backup_folder_exists) {
256
  sprintf(__('Backup folder does not exist. Please contact %s for assistance.', 'wp-backitup'), WPBackItUp_Utility::get_anchor_with_utm(__('support','wp-backitup'),'support','backup+error','no+backup+folder')) );
257
  echo('</p></div>');
258
 
259
- echo('<div style="float:right;"><p><a id="wp-backitup-notification-close"><i style="float:right" class="fa fa-close"> ' . __('Close', 'wp-backitup') . '</i></a></p></div>
260
  </div>');
261
  } else{
262
  echo(
263
  '<div style="overflow: hidden; display:none" id="wp-backitup-notification-parent" class="updated">
264
  <div style="float:left;" id="wp-backitup-notification-message" ></div>
265
- <div style="float:right;"><p><a id="wp-backitup-notification-close"><i style="float:right" class="fa fa-close"> ' . __('Close', 'wp-backitup') . '</i></a></p></div>
266
  </div>'
267
  );
268
  }
@@ -276,7 +276,7 @@ if (!$backup_folder_exists) {
276
 
277
  <!--Manual Backups-->
278
  <div class="widget">
279
- <h3><i class="fa fa-cogs"></i> <?php _e('Backup', 'wp-backitup'); ?></h3>
280
  <p><b><?php _e('Click the backup button to create a zipped backup file of this site\'s database, plugins, themes and settings.','wp-backitup') ?></b></p>
281
  <p><?php _e('Once your backup file has been created it will appear in the available backups section below. This file may remain on your hosting providers server but we recommend that you download and save it somewhere safe.', 'wp-backitup') ?></p>
282
  <p> <?php _e('WPBackItUp premium customers can use these backup files to perform an automated restore of their site.', 'wp-backitup') ?></p>
@@ -307,7 +307,7 @@ if (!$backup_folder_exists) {
307
 
308
  <!--Available Backups section-->
309
  <div class="widget">
310
- <h3><i class="fa fa-cloud-download"></i> <?php _e('Available Backups', 'wp-backitup'); ?></h3>
311
 
312
  <!--View Log Form-->
313
  <form id = "viewlog" name = "viewlog" action="<?php echo get_admin_url(),"admin-post.php"; ?>" method="post">
@@ -414,7 +414,7 @@ if (!$backup_folder_exists) {
414
  </div>
415
 
416
  <div id="status" class="widget">
417
- <h3><i class="fa fa-check-square-o"></i> <?php _e('Status', 'wp-backitup'); ?></h3>
418
 
419
  <!--default status message-->
420
  <ul class="default-status">
@@ -706,7 +706,7 @@ if (!$backup_folder_exists) {
706
  <tr v-bind:class="klass" v-bind:id="'row' + row">
707
  <td data-th="<?php _e('Backup', 'wp-backitup') ?>" v-if="zipExist">
708
  <a v-bind:href="'#TB_inline?width=600&height=550&inlineId=' + backupParsedId" class="thickbox" title="Download Backup" v-bind:name="name" v-bind:data-jobid="jobId">
709
- <i class="fa fa-download"></i>
710
  {{ name }}
711
  </a>
712
  </td>
@@ -727,7 +727,7 @@ if (!$backup_folder_exists) {
727
  </send-cloud>
728
  <?php endif ?>
729
  <td>
730
- <a href="#" title="Delete Backup" v-bind:data-id="jobId" class="deleteRow" v-bind:id="'deleteRow'+row"><i class="fa fa-trash-o fa-2x"></i></a>
731
  </td>
732
  </tr>
733
  </script>
@@ -737,25 +737,25 @@ if (!$backup_folder_exists) {
737
  <td v-if="visible">
738
  <span v-if="kloudStatus == 'uploaded' " class="fa-stack" title="<?php _e('Backup safely stored in cloud', 'wp-backitup'); ?>" >
739
  <a href="#" @click="openModal('modal'+ jobId)">
740
- <i class="fa fa fa-cloud fa-stack-2x" style="color:dodgerblue;"></i>
741
- <i class="fa fa-check fa-stack-1x fa-inverse"></i>
742
  </a>
743
  </span>
744
 
745
  <span v-else-if="kloudStatus == 'uploading'" class="fa-stack" title="<?php _e('Sending backup to cloud', 'wp-backitup'); ?>" >
746
- <i class="fa fa-refresh fa-spin fa-2x fa-fw" style="color:dodgerblue;"></i>
747
  </span>
748
 
749
  <span v-else-if="kloudStatus == 'error'" class="fa-stack" title="<?php _e('Error sending backup to cloud', 'wp-backitup'); ?>" >
750
  <a href="#" @click="openModal('modal'+ jobId)">
751
- <i class="fa fa-exclamation-circle fa-2x" style="color:#d9534f;"></i>
752
  </a>
753
  </span>
754
 
755
  <span v-else class="fa-stack">
756
- <i class="fa fa-refresh fa-spin fa-2x fa-fw" style="color:dodgerblue;display: none"></i>
757
  <a href="#" @click="openModal('modal'+ jobId)" title="Send to Cloud" v-bind:data-id="jobId" class="safeUploadRow" id="'safeUploadRow'+ row">
758
- <i class="fa fa-cloud-upload fa-2x" style="color:grey;" aria-hidden="true"></i>
759
  </a>
760
  </span>
761
 
229
  <p>'. __($admin_notices[0]['message'],'wp-backitup') .'</p>
230
  </div>');
231
 
232
+ echo('<div style="float:right;"><p><a id="wp-backitup-notification-widget-close"><i style="float:right" class="fas fa-times-circle"> ' . __('Dismiss', 'wp-backitup') . '</i></a></p></div>
233
  </div>');
234
  }
235
 
256
  sprintf(__('Backup folder does not exist. Please contact %s for assistance.', 'wp-backitup'), WPBackItUp_Utility::get_anchor_with_utm(__('support','wp-backitup'),'support','backup+error','no+backup+folder')) );
257
  echo('</p></div>');
258
 
259
+ echo('<div style="float:right;"><p><a id="wp-backitup-notification-close"><i style="float:right" class="fas fa-times-circle"> ' . __('Close', 'wp-backitup') . '</i></a></p></div>
260
  </div>');
261
  } else{
262
  echo(
263
  '<div style="overflow: hidden; display:none" id="wp-backitup-notification-parent" class="updated">
264
  <div style="float:left;" id="wp-backitup-notification-message" ></div>
265
+ <div style="float:right;"><p><a id="wp-backitup-notification-close"><i style="float:right" class="fas fa-times-circle"> ' . __('Close', 'wp-backitup') . '</i></a></p></div>
266
  </div>'
267
  );
268
  }
276
 
277
  <!--Manual Backups-->
278
  <div class="widget">
279
+ <h3><i class="fas fa-cogs"></i> <?php _e('Backup', 'wp-backitup'); ?></h3>
280
  <p><b><?php _e('Click the backup button to create a zipped backup file of this site\'s database, plugins, themes and settings.','wp-backitup') ?></b></p>
281
  <p><?php _e('Once your backup file has been created it will appear in the available backups section below. This file may remain on your hosting providers server but we recommend that you download and save it somewhere safe.', 'wp-backitup') ?></p>
282
  <p> <?php _e('WPBackItUp premium customers can use these backup files to perform an automated restore of their site.', 'wp-backitup') ?></p>
307
 
308
  <!--Available Backups section-->
309
  <div class="widget">
310
+ <h3><i class="fas fa-cloud-download-alt"></i> <?php _e('Available Backups', 'wp-backitup'); ?></h3>
311
 
312
  <!--View Log Form-->
313
  <form id = "viewlog" name = "viewlog" action="<?php echo get_admin_url(),"admin-post.php"; ?>" method="post">
414
  </div>
415
 
416
  <div id="status" class="widget">
417
+ <h3><i class="far fa-check-square"></i> <?php _e('Status', 'wp-backitup'); ?></h3>
418
 
419
  <!--default status message-->
420
  <ul class="default-status">
706
  <tr v-bind:class="klass" v-bind:id="'row' + row">
707
  <td data-th="<?php _e('Backup', 'wp-backitup') ?>" v-if="zipExist">
708
  <a v-bind:href="'#TB_inline?width=600&height=550&inlineId=' + backupParsedId" class="thickbox" title="Download Backup" v-bind:name="name" v-bind:data-jobid="jobId">
709
+ <i class="fas fa-download"></i>
710
  {{ name }}
711
  </a>
712
  </td>
727
  </send-cloud>
728
  <?php endif ?>
729
  <td>
730
+ <a href="#" title="Delete Backup" v-bind:data-id="jobId" class="deleteRow" v-bind:id="'deleteRow'+row"><i class="far fa-trash-alt fa-2x"></i></a>
731
  </td>
732
  </tr>
733
  </script>
737
  <td v-if="visible">
738
  <span v-if="kloudStatus == 'uploaded' " class="fa-stack" title="<?php _e('Backup safely stored in cloud', 'wp-backitup'); ?>" >
739
  <a href="#" @click="openModal('modal'+ jobId)">
740
+ <i class="fas fa-cloud fa-stack-2x" style="color:dodgerblue;"></i>
741
+ <i class="fas fa-check fa-stack-1x fa-inverse"></i>
742
  </a>
743
  </span>
744
 
745
  <span v-else-if="kloudStatus == 'uploading'" class="fa-stack" title="<?php _e('Sending backup to cloud', 'wp-backitup'); ?>" >
746
+ <i class="fas fa-sync-alt fa-spin fa-2x fa-fw" style="color:dodgerblue;"></i>
747
  </span>
748
 
749
  <span v-else-if="kloudStatus == 'error'" class="fa-stack" title="<?php _e('Error sending backup to cloud', 'wp-backitup'); ?>" >
750
  <a href="#" @click="openModal('modal'+ jobId)">
751
+ <i class="fas fa-exclamation-circle fa-2x" style="color:#d9534f;"></i>
752
  </a>
753
  </span>
754
 
755
  <span v-else class="fa-stack">
756
+ <i class="fas fa-sync-alt fa-spin fa-2x fa-fw" style="color:dodgerblue;display: none"></i>
757
  <a href="#" @click="openModal('modal'+ jobId)" title="Send to Cloud" v-bind:data-id="jobId" class="safeUploadRow" id="'safeUploadRow'+ row">
758
+ <i class="fas fa-cloud-upload-alt fa-2x" style="color:grey;" aria-hidden="true"></i>
759
  </a>
760
  </span>
761
 
views/settings.php CHANGED
@@ -34,7 +34,7 @@
34
  <v-tab title="<?php _e( 'General', 'wp-backitup' ); ?>" icon="fa fa-cog">
35
 
36
  <div class="widget">
37
- <h3 class="promo"><i class="fa fa-envelope"></i> <?php _e('Email Notifications', 'wp-backitup') ?></h3>
38
  <p><b><?php _e('Please enter your email address if you would like to receive backup email notifications.', 'wp-backitup') ?></b></p>
39
  <p><?php _e('Backup email notifications will be sent for every backup and will contain status information related to the backup.', 'wp-backitup'); ?></p>
40
  <p><input-tags :on-change="handleEmailInput" :tags="emailsArray" validate="email"></input-tags></p>
@@ -47,7 +47,7 @@
47
 
48
 
49
  <div class="widget">
50
- <h3 class="promo"><i class="fa fa-trash-o"></i> <?php _e('Backup Retention', 'wp-backitup') ?></h3>
51
  <p><b><?php _e('Enter the number of backup archives that you would like to remain on the server.', 'wp-backitup') ?></b></p>
52
  <p><?php _e('Many hosts limit the amount of space that you can take up on their servers. This option tells WPBackItUp the maximum number of backup archives that should remain on your hosts server. Don\'t worry, we will always remove the oldest backup archives first.', 'wp-backitup') ?></p>
53
  <p><input type="text" v-model="backup_retained_number" size="4"></p>
@@ -59,7 +59,7 @@
59
  </div>
60
 
61
  <div class="widget">
62
- <h3 class="promo"><i class="fa fa-file-text-o"></i> <?php _e('Logging?', 'wp-backitup') ?></h3>
63
  <p><b><?php _e('Turn on WPBackItUp logging.', 'wp-backitup'); ?></b></p>
64
  <p><?php _e('This option should only be turned on by advanced users or when troubleshooting issues with WPBackItUp support.', 'wp-backitup'); ?></p>
65
  <p><input type="radio" v-model="logging" value="true" checked="logging === true"> <label><?php _e('Yes', 'wp-backitup'); ?></label></p>
@@ -75,7 +75,7 @@
75
 
76
 
77
  <div class="widget">
78
- <h3 class="promo"><i class="fa fa-database"></i> <?php _e('Single File Database Export (db)', 'wp-backitup') ?></h3>
79
  <p><input type="checkbox" v-model="single_file_db" checked="single_file_db === true">
80
  <label for="wpbackitup_single_file_db"><?php _e('Check this box if you would like WPBackItUp to export your database into a single db file.', 'wp-backitup') ?></label></p>
81
  <p><?php _e('When this setting is turned on WPBackItUp will attempt to create a single file that contains your entire database. This option may not be possible with some hosting providers. This setting will be turned off automatically if WPBackItUp is unable to complete this step for any reason.', 'wp-backitup') ?></p>
@@ -86,7 +86,7 @@
86
  </div>
87
 
88
  <div class="widget dbfilters">
89
- <h3 class="promo"><i class="fa fa-filter"></i> <?php _e('Filter Your Database Tables', 'wp-backitup') ?></h3>
90
  <p><b><?php _e('Exclude custom database tables from the backup.', 'wp-backitup') ?></b></p>
91
  <p><?php _e('If you would like to exclude a custom table from the backup then simply select it to the list on the right. WordPress core tables may not be excluded from the backup. ', 'wp-backitup') ?></p>
92
  <ui-select
@@ -108,7 +108,7 @@
108
  </div>
109
 
110
  <div class="widget filters">
111
- <h3 class="promo"><i class="fa fa-filter"></i> <?php _e('Filter Your Folders', 'wp-backitup') ?></h3>
112
  <p><b><?php _e('Enter a comma separated list of folders that should be excluded from your backups.', 'wp-backitup') ?></b></p>
113
  <p><?php _e('It is important to note that when a folder name is present in this list any occurrence of that folder, and all its contents, will be excluded from the backup.', 'wp-backitup') ?></p>
114
  <p>
@@ -136,7 +136,7 @@
136
  </div>
137
 
138
  <div class="widget">
139
- <h3 class="promo"><i class="fa fa-heartbeat"></i> <?php _e('Help us make WPBackItUp better!', 'wp-backitup') ?></h3>
140
  <p><input type="checkbox" v-model="allow_usage_tracking" checked="allow_usage_tracking === true">
141
  <label for="wpbackitup_allow_tracking"><?php _e('Allow WPBackItUp to anonymously track how this plugin is used so we can make it better.', 'wp-backitup') ?></label></p>
142
  <p><?php _e('Only data needed to help support and improve this plugin will ever be collected. No sensitive data is tracked and we\'ll never share this data with anyone.', 'wp-backitup') ?></p>
@@ -153,7 +153,7 @@
153
  <v-tab title="<?php _e( 'Advanced', 'wp-backitup' ); ?>" icon="fa fa-cogs">
154
 
155
  <div class="widget">
156
- <h3 class="promo"><i class="fa fa-wrench"></i> <?php _e('Batch Size', 'wp-backitup') ?></h3>
157
  <p><b><?php _e('Enter the batch size for each of your content items.', 'wp-backitup') ?></b></p>
158
  <p><?php _e('These settings tell WPBackItUp how many items that should be added to the backup at a time. If you experience timeouts while running a backup then these settings can be used to help reduce the amount of time it takes WPBackItUp to complete each backup task .', 'wp-backitup') ?></p>
159
  <p>
@@ -209,7 +209,7 @@
209
 
210
 
211
  <div class="widget">
212
- <h3 class="promo"><i class="fa fa-file-archive-o"></i> <?php _e('Maximum Zip File Size', 'wp-backitup') ?></h3>
213
  <div class="wpbiu-select-box">
214
  <p><b><label for="wpbackitup-max-zip-size"><?php _e('Select your maximum zip file size.', 'wp-backitup') ?></label></b></p>
215
  <p><?php _e('Some hosting providers do not allow large zip files so if you are encountering backup errors then reducing this setting may help. Please note that this setting will impact performance so we recommend it is set as high as possible.', 'wp-backitup') ?></p>
@@ -231,7 +231,7 @@
231
  </div>
232
 
233
  <div class="widget">
234
- <h3 class="promo"><i class="fa fa-hourglass-end"></i> <?php _e('Task Timeout', 'wp-backitup') ?></h3>
235
  <div class="wpbiu-select-box">
236
  <p><b><label for="wpbackitup-max-zip-size"><?php _e('Select how long WPBackItUp should wait for tasks to complete.', 'wp-backitup') ?></label></b></p>
237
  <p><?php _e('On some hosts background tasks are allowed to run for a very limited amount of time before they timeout. This setting will tell WPBackItUp how long to wait for each background task to complete. This setting should only be used when working with WPBackItUp support.', 'wp-backitup') ?></p>
@@ -254,7 +254,7 @@
254
  <h3 class="promo">
255
  <div class="fa-sm">
256
  <span class="fa-layers fa-fw">
257
- <i class="fa fa-cloud"></i>
258
  <?php _e(' WPBackItUp Safe Sync', 'wp-backitup') ?>
259
  </span>
260
  </div>
@@ -268,8 +268,22 @@
268
  </div>
269
  </div>
270
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
  <div class="widget">
272
- <h3 class="promo"><i class="fa fa-trash-o"></i> <?php _e('Remove Data on Uninstall?', 'wp-backitup') ?></h3>
273
  <p>
274
  <input type="checkbox" v-model="delete_all" checked="delete_all === true">
275
  <label for="wpbackitup_delete_all"><?php _e('Check this box if you would like WPBackItUp to completely remove all of its data when the plugin is deleted.', 'wp-backitup') ?></label>
34
  <v-tab title="<?php _e( 'General', 'wp-backitup' ); ?>" icon="fa fa-cog">
35
 
36
  <div class="widget">
37
+ <h3 class="promo"><i class="fas fa-envelope"></i> <?php _e('Email Notifications', 'wp-backitup') ?></h3>
38
  <p><b><?php _e('Please enter your email address if you would like to receive backup email notifications.', 'wp-backitup') ?></b></p>
39
  <p><?php _e('Backup email notifications will be sent for every backup and will contain status information related to the backup.', 'wp-backitup'); ?></p>
40
  <p><input-tags :on-change="handleEmailInput" :tags="emailsArray" validate="email"></input-tags></p>
47
 
48
 
49
  <div class="widget">
50
+ <h3 class="promo"><i class="far fa-trash-alt"></i> <?php _e('Backup Retention', 'wp-backitup') ?></h3>
51
  <p><b><?php _e('Enter the number of backup archives that you would like to remain on the server.', 'wp-backitup') ?></b></p>
52
  <p><?php _e('Many hosts limit the amount of space that you can take up on their servers. This option tells WPBackItUp the maximum number of backup archives that should remain on your hosts server. Don\'t worry, we will always remove the oldest backup archives first.', 'wp-backitup') ?></p>
53
  <p><input type="text" v-model="backup_retained_number" size="4"></p>
59
  </div>
60
 
61
  <div class="widget">
62
+ <h3 class="promo"><i class="far fa-file-alt"></i> <?php _e('Logging?', 'wp-backitup') ?></h3>
63
  <p><b><?php _e('Turn on WPBackItUp logging.', 'wp-backitup'); ?></b></p>
64
  <p><?php _e('This option should only be turned on by advanced users or when troubleshooting issues with WPBackItUp support.', 'wp-backitup'); ?></p>
65
  <p><input type="radio" v-model="logging" value="true" checked="logging === true"> <label><?php _e('Yes', 'wp-backitup'); ?></label></p>
75
 
76
 
77
  <div class="widget">
78
+ <h3 class="promo"><i class="fas fa-database"></i> <?php _e('Single File Database Export (db)', 'wp-backitup') ?></h3>
79
  <p><input type="checkbox" v-model="single_file_db" checked="single_file_db === true">
80
  <label for="wpbackitup_single_file_db"><?php _e('Check this box if you would like WPBackItUp to export your database into a single db file.', 'wp-backitup') ?></label></p>
81
  <p><?php _e('When this setting is turned on WPBackItUp will attempt to create a single file that contains your entire database. This option may not be possible with some hosting providers. This setting will be turned off automatically if WPBackItUp is unable to complete this step for any reason.', 'wp-backitup') ?></p>
86
  </div>
87
 
88
  <div class="widget dbfilters">
89
+ <h3 class="promo"><i class="fas fa-filter"></i> <?php _e('Filter Your Database Tables', 'wp-backitup') ?></h3>
90
  <p><b><?php _e('Exclude custom database tables from the backup.', 'wp-backitup') ?></b></p>
91
  <p><?php _e('If you would like to exclude a custom table from the backup then simply select it to the list on the right. WordPress core tables may not be excluded from the backup. ', 'wp-backitup') ?></p>
92
  <ui-select
108
  </div>
109
 
110
  <div class="widget filters">
111
+ <h3 class="promo"><i class="fas fa-filter"></i> <?php _e('Filter Your Folders', 'wp-backitup') ?></h3>
112
  <p><b><?php _e('Enter a comma separated list of folders that should be excluded from your backups.', 'wp-backitup') ?></b></p>
113
  <p><?php _e('It is important to note that when a folder name is present in this list any occurrence of that folder, and all its contents, will be excluded from the backup.', 'wp-backitup') ?></p>
114
  <p>
136
  </div>
137
 
138
  <div class="widget">
139
+ <h3 class="promo"><i class="fas fa-heartbeat"></i> <?php _e('Help us make WPBackItUp better!', 'wp-backitup') ?></h3>
140
  <p><input type="checkbox" v-model="allow_usage_tracking" checked="allow_usage_tracking === true">
141
  <label for="wpbackitup_allow_tracking"><?php _e('Allow WPBackItUp to anonymously track how this plugin is used so we can make it better.', 'wp-backitup') ?></label></p>
142
  <p><?php _e('Only data needed to help support and improve this plugin will ever be collected. No sensitive data is tracked and we\'ll never share this data with anyone.', 'wp-backitup') ?></p>
153
  <v-tab title="<?php _e( 'Advanced', 'wp-backitup' ); ?>" icon="fa fa-cogs">
154
 
155
  <div class="widget">
156
+ <h3 class="promo"><i class="fas fa-wrench"></i> <?php _e('Batch Size', 'wp-backitup') ?></h3>
157
  <p><b><?php _e('Enter the batch size for each of your content items.', 'wp-backitup') ?></b></p>
158
  <p><?php _e('These settings tell WPBackItUp how many items that should be added to the backup at a time. If you experience timeouts while running a backup then these settings can be used to help reduce the amount of time it takes WPBackItUp to complete each backup task .', 'wp-backitup') ?></p>
159
  <p>
209
 
210
 
211
  <div class="widget">
212
+ <h3 class="promo"><i class="fas fa-file-archive"></i> <?php _e('Maximum Zip File Size', 'wp-backitup') ?></h3>
213
  <div class="wpbiu-select-box">
214
  <p><b><label for="wpbackitup-max-zip-size"><?php _e('Select your maximum zip file size.', 'wp-backitup') ?></label></b></p>
215
  <p><?php _e('Some hosting providers do not allow large zip files so if you are encountering backup errors then reducing this setting may help. Please note that this setting will impact performance so we recommend it is set as high as possible.', 'wp-backitup') ?></p>
231
  </div>
232
 
233
  <div class="widget">
234
+ <h3 class="promo"><i class="fas fa-hourglass-end"></i> <?php _e('Task Timeout', 'wp-backitup') ?></h3>
235
  <div class="wpbiu-select-box">
236
  <p><b><label for="wpbackitup-max-zip-size"><?php _e('Select how long WPBackItUp should wait for tasks to complete.', 'wp-backitup') ?></label></b></p>
237
  <p><?php _e('On some hosts background tasks are allowed to run for a very limited amount of time before they timeout. This setting will tell WPBackItUp how long to wait for each background task to complete. This setting should only be used when working with WPBackItUp support.', 'wp-backitup') ?></p>
254
  <h3 class="promo">
255
  <div class="fa-sm">
256
  <span class="fa-layers fa-fw">
257
+ <i class="fas fa-cloud"></i>
258
  <?php _e(' WPBackItUp Safe Sync', 'wp-backitup') ?>
259
  </span>
260
  </div>
268
  </div>
269
  </div>
270
 
271
+ <div class="widget">
272
+ <h3 class="promo">
273
+ <i class="fas fa-exclamation-triangle"></i>
274
+ <?php _e(' WPBackItUp Beta Updates', 'wp-backitup') ?>
275
+ </h3>
276
+ <p>
277
+ <input type="checkbox" v-model="beta_updates" checked="beta_updates === true">
278
+ <label for="wpbackitup_beta_updates"><?php _e('Check this box if you would like to receive <strong>pre-release</strong> updates of WPBackItUp products.', 'wp-backitup') ?></label>
279
+ </p>
280
+ <div class="submit">
281
+ <button class="button-primary" v-on:click="setSettings()"><?php _e("Save", 'wp-backitup') ?></button>
282
+ </div>
283
+ </div>
284
+
285
  <div class="widget">
286
+ <h3 class="promo"><i class="far fa-trash-alt"></i> <?php _e('Remove Data on Uninstall?', 'wp-backitup') ?></h3>
287
  <p>
288
  <input type="checkbox" v-model="delete_all" checked="delete_all === true">
289
  <label for="wpbackitup_delete_all"><?php _e('Check this box if you would like WPBackItUp to completely remove all of its data when the plugin is deleted.', 'wp-backitup') ?></label>
views/support.php CHANGED
@@ -184,7 +184,7 @@ class WPBackItUp_Support {
184
  <form action="<?php echo get_admin_url(),"admin-post.php"; ?>" method="post" id="<?php echo $namespace; ?>-support-form">
185
  <?php wp_nonce_field($namespace . "-support-form"); ?>
186
 
187
- <h3 class="promo"><i class="fa fa-envelope"></i> <?php _e('Send Logs to Support', 'wp-backitup') ?></h3>
188
  <p><b><?php _e('This form should only be used when working with support.', 'wp-backitup') ?></b></p>
189
  <p><?php printf(__('Please make sure to open a support ticket via WPBackItUp <a href="%s" target="_blank"> support portal.</a> before using this form.', 'wp-backitup'), esc_url('http://support.wpbackitup.com/support/tickets/new')); ?></p>
190
  <p><em><?php _e('The ticket id you receive from your support request should be entered in the ticket id field below.', 'wp-backitup'); ?></em></p>
184
  <form action="<?php echo get_admin_url(),"admin-post.php"; ?>" method="post" id="<?php echo $namespace; ?>-support-form">
185
  <?php wp_nonce_field($namespace . "-support-form"); ?>
186
 
187
+ <h3 class="promo"><i class="fas fa-envelope"></i> <?php _e('Send Logs to Support', 'wp-backitup') ?></h3>
188
  <p><b><?php _e('This form should only be used when working with support.', 'wp-backitup') ?></b></p>
189
  <p><?php printf(__('Please make sure to open a support ticket via WPBackItUp <a href="%s" target="_blank"> support portal.</a> before using this form.', 'wp-backitup'), esc_url('http://support.wpbackitup.com/support/tickets/new')); ?></p>
190
  <p><em><?php _e('The ticket id you receive from your support request should be entered in the ticket id field below.', 'wp-backitup'); ?></em></p>
wp-backitup.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
7
  * Author: WPBackItUp
8
  * Author URI: https://www.wpbackitup.com
9
- * Version: 1.30.0
10
  * Text Domain: wp-backitup
11
  *
12
  * License: GPL3
@@ -32,7 +32,7 @@ define( 'WPBACKITUP__NAMESPACE', 'wp-backitup' );
32
  define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
33
 
34
  define( 'WPBACKITUP__MAJOR_VERSION', 1);
35
- define( 'WPBACKITUP__MINOR_VERSION', 30);
36
  define( 'WPBACKITUP__MAINTENANCE_VERSION', 0); //Dont forget to update version in header on WP release
37
  define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
38
 
6
  * Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
7
  * Author: WPBackItUp
8
  * Author URI: https://www.wpbackitup.com
9
+ * Version: 1.31.0
10
  * Text Domain: wp-backitup
11
  *
12
  * License: GPL3
32
  define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
33
 
34
  define( 'WPBACKITUP__MAJOR_VERSION', 1);
35
+ define( 'WPBACKITUP__MINOR_VERSION', 31);
36
  define( 'WPBACKITUP__MAINTENANCE_VERSION', 0); //Dont forget to update version in header on WP release
37
  define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
38