Changeset 3182762
- Timestamp:
- 11/06/2024 12:44:24 AM (16 months ago)
- Location:
- wpvivid-backup-mainwp/trunk
- Files:
-
- 6 edited
-
admin/wpvivid-backup-mainwp-backuprestorepage.php (modified) (4 diffs)
-
admin/wpvivid-backup-mainwp-incremental-backup.php (modified) (1 diff)
-
admin/wpvivid-backup-mainwp-settingpage.php (modified) (11 diffs)
-
readme.txt (modified) (2 diffs)
-
wpvivid-backup-mainwp-subpage.php (modified) (2 diffs)
-
wpvivid-backup-mainwp.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpvivid-backup-mainwp/trunk/admin/wpvivid-backup-mainwp-backuprestorepage.php
r3100853 r3182762 3252 3252 } 3253 3253 else{ 3254 $slug = $white_label_setting['white_label_slug'];3254 $slug = strtolower($white_label_setting['white_label_slug']); 3255 3255 $slug_page = strtolower($white_label_setting['white_label_slug']); 3256 3256 if($is_mu) … … 3691 3691 } 3692 3692 else{ 3693 $slug = $white_label_setting['white_label_slug'];3693 $slug = strtolower($white_label_setting['white_label_slug']); 3694 3694 $slug_page = strtolower($white_label_setting['white_label_slug']); 3695 3695 if($is_mu) … … 4051 4051 } 4052 4052 else{ 4053 $slug = $white_label_setting['white_label_slug'];4053 $slug = strtolower($white_label_setting['white_label_slug']); 4054 4054 $slug_page = strtolower($white_label_setting['white_label_slug']); 4055 4055 if($is_mu) … … 4591 4591 } 4592 4592 else{ 4593 $slug = $white_label_setting['white_label_slug'];4593 $slug = strtolower($white_label_setting['white_label_slug']); 4594 4594 $slug_page = strtolower($white_label_setting['white_label_slug']); 4595 4595 if($is_mu) -
wpvivid-backup-mainwp/trunk/admin/wpvivid-backup-mainwp-incremental-backup.php
r3051197 r3182762 936 936 $ret['backup_to']='local'; 937 937 } 938 if(isset($schedule_data['backup']['remote_options'])) 938 939 if(isset($schedule_data['backup']['remote_id'])) 940 { 941 $remote_id = $schedule_data['backup']['remote_id']; 942 $ret['remote_options'][$remote_id] = array(); 943 } 944 else if(isset($schedule_data['backup']['remote_options'])) 939 945 { 940 946 $ret['remote_options'] = $schedule_data['backup']['remote_options']; -
wpvivid-backup-mainwp/trunk/admin/wpvivid-backup-mainwp-settingpage.php
r3141352 r3182762 33 33 add_action('wp_ajax_mwp_wpvivid_set_global_general_setting', array($this, 'set_global_general_setting')); 34 34 add_action('wp_ajax_mwp_wpvivid_sync_setting', array($this, 'sync_setting')); 35 add_action('wp_ajax_mwp_wpvivid_achieve_rollback_remote_addon', array($this, 'achieve_rollback_remote_addon')); 36 add_action('wp_ajax_mwp_wpvivid_export_setting_addon', array($this, 'export_setting_addon')); 37 add_action('wp_ajax_mwp_wpvivid_import_setting_addon', array($this, 'import_setting_addon')); 38 } 39 40 public function export_setting_addon() 41 { 42 global $mainwp_wpvivid_extension_activator; 43 $mainwp_wpvivid_extension_activator->mwp_ajax_check_security(); 44 try{ 45 $json['plugin']='WPvivid-Mainwp-Extension'; 46 $json['data']['settings_addon']=Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_get_global_option('settings_addon', array()); 47 $json['data']['schedule_mould_addon']=Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_get_global_option('schedule_mould_addon', array()); 48 $json['data']['incremental_backup_setting']=Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_get_global_option('incremental_backup_setting', array()); 49 $json['data']['remote_addon']=Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_get_global_option('remote_addon', array()); 50 $json['data']['menu_capability']=Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_get_global_option('menu_capability', array()); 51 $json['data']['white_label_setting']=Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_get_global_option('white_label_setting', array()); 52 53 $parse = wp_parse_url(home_url()); 54 $path = ''; 55 if(isset($parse['path'])) { 56 $parse['path'] = str_replace('/', '_', $parse['path']); 57 $parse['path'] = str_replace('.', '_', $parse['path']); 58 $path = $parse['path']; 59 } 60 $parse['host'] = str_replace('/', '_', $parse['host']); 61 $parse['host'] = str_replace('.', '_', $parse['host']); 62 $domain_tran = $parse['host'].$path; 63 $offset=get_option('gmt_offset'); 64 $date_format = gmdate("Ymd",time()+$offset*60*60); 65 $time_format = gmdate("His",time()+$offset*60*60); 66 $export_file_name = 'wpvivid_mainwp_setting-'.$domain_tran.'-'.$date_format.'-'.$time_format.'.json'; 67 if (!headers_sent()) { 68 header('Content-Disposition: attachment; filename='.$export_file_name); 69 header('Content-Type: application/force-download'); 70 header('Content-Description: File Transfer'); 71 header('Cache-Control: must-revalidate'); 72 header('Content-Transfer-Encoding: binary'); 73 } 74 75 echo wp_json_encode($json); 76 } 77 catch (Exception $error) { 78 $message = 'An exception has occurred. class: '.get_class($error).';msg: '.$error->getMessage().';code: '.$error->getCode().';line: '.$error->getLine().';in_file: '.$error->getFile().';'; 79 error_log($message); 80 echo wp_json_encode(array('result'=>'failed','error'=>$message)); 81 die(); 82 } 83 exit; 84 } 85 86 public function import_setting_addon() 87 { 88 global $mainwp_wpvivid_extension_activator; 89 $mainwp_wpvivid_extension_activator->mwp_ajax_check_security(); 90 try{ 91 if (isset($_POST['data']) && !empty($_POST['data']) && is_string($_POST['data'])) { 92 $data = sanitize_text_field($_POST['data']); 93 $data = stripslashes($data); 94 $json = json_decode($data, true); 95 if (is_null($json)) { 96 die(); 97 } 98 if (json_last_error() === JSON_ERROR_NONE && is_array($json) && array_key_exists('plugin', $json) && $json['plugin'] == 'WPvivid-Mainwp-Extension') { 99 foreach ($json['data'] as $option_name=>$option) 100 { 101 Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_update_global_option($option_name, $option); 102 } 103 $ret['result'] = 'success'; 104 echo wp_json_encode($ret); 105 } else { 106 $ret['result'] = 'failed'; 107 $ret['error'] = __('The selected file is not the setting file for WPvivid. Please upload the right file.', 'wpvivid-backuprestore'); 108 echo wp_json_encode($ret); 109 } 110 } 111 die(); 112 } 113 catch (Exception $error) { 114 $message = 'An exception has occurred. class: '.get_class($error).';msg: '.$error->getMessage().';code: '.$error->getCode().';line: '.$error->getLine().';in_file: '.$error->getFile().';'; 115 error_log($message); 116 echo wp_json_encode(array('result'=>'failed','error'=>$message)); 117 die(); 118 } 119 } 120 121 public function achieve_rollback_remote_addon() 122 { 123 global $mainwp_wpvivid_extension_activator; 124 $mainwp_wpvivid_extension_activator->mwp_ajax_check_security(); 125 try{ 126 if (isset($_POST['site_id']) && !empty($_POST['site_id']) && is_string($_POST['site_id'])){ 127 $site_id = sanitize_key($_POST['site_id']); 128 $post_data['mwp_action'] = 'wpvivid_achieve_rollback_remote_addon_mainwp'; 129 $information = apply_filters('mainwp_fetchurlauthed', $mainwp_wpvivid_extension_activator->childFile, $mainwp_wpvivid_extension_activator->childKey, $site_id, 'wpvivid_backuprestore', $post_data); 130 if (isset($information['error'])) { 131 $ret['result'] = 'failed'; 132 $ret['error'] = $information['error']; 133 } else { 134 $ret['result'] = 'success'; 135 if(isset($information['wpvivid_remote_list']) && !empty($information['wpvivid_remote_list'])) 136 { 137 $remote_list = $information['wpvivid_remote_list']; 138 } 139 else 140 { 141 $remote_list = array(); 142 } 143 $ret['remote_list_html'] = Mainwp_WPvivid_Extension_Subpage::output_rollback_remote_list_addon($site_id, $remote_list); 144 } 145 echo wp_json_encode($ret); 146 } 147 die(); 148 } 149 catch (Exception $error) { 150 $message = 'An exception has occurred. class: '.get_class($error).';msg: '.$error->getMessage().';code: '.$error->getCode().';line: '.$error->getLine().';in_file: '.$error->getFile().';'; 151 error_log($message); 152 echo wp_json_encode(array('result'=>'failed','error'=>$message)); 153 die(); 154 } 35 155 } 36 156 … … 213 333 $setting_data['wpvivid_auto_backup_db_before_update']=$rollback_setting['mwp_wpvivid_auto_backup_db_before_update_addon']; 214 334 $setting_data['wpvivid_common_setting']['rollback_max_backup_count'] = $rollback_setting['mwp_wpvivid_rollback_max_backup_count_addon']; 335 336 337 $setting_data['wpvivid_common_setting']['rollback_max_remote_backup_count'] = $rollback_setting['mwp_wpvivid_rollback_max_remote_backup_count_addon']; 338 $setting_data['wpvivid_rollback_retain_local'] = $rollback_setting['mwp_wpvivid_rollback_retain_local_addon']; 339 if($rollback_setting['mwp_wpvivid_manual_backup_remote_selector'] == '-1') 340 { 341 $setting_data['wpvivid_rollback_remote'] = 0; 342 } 343 else 344 { 345 $setting_data['wpvivid_rollback_remote'] = 1; 346 $setting_data['wpvivid_rollback_remote_id'] = $rollback_setting['mwp_wpvivid_manual_backup_remote_selector']; 347 } 348 215 349 } 216 350 … … 436 570 $setting_data['wpvivid_auto_backup_db_before_update']=$rollback_setting['mwp_wpvivid_auto_backup_db_before_update_addon']; 437 571 $setting_data['wpvivid_common_setting']['rollback_max_backup_count'] = $rollback_setting['mwp_wpvivid_rollback_max_backup_count_addon']; 572 $setting_data['wpvivid_common_setting']['rollback_max_remote_backup_count'] = $rollback_setting['mwp_wpvivid_rollback_max_remote_backup_count_addon']; 573 $setting_data['wpvivid_rollback_retain_local'] = $rollback_setting['mwp_wpvivid_rollback_retain_local_addon']; 574 if($rollback_setting['mwp_wpvivid_manual_backup_remote_selector'] == '-1') 575 { 576 $setting_data['wpvivid_rollback_remote'] = 0; 577 } 578 else 579 { 580 $setting_data['wpvivid_rollback_remote'] = 1; 581 } 438 582 } 439 583 … … 801 945 'site_id': '<?php echo esc_html($this->site_id); ?>' 802 946 }; 803 804 947 jQuery('#mwp_wpvivid_setting_general_save_addon').css({'pointer-events': 'none', 'opacity': '0.4'}); 805 948 mwp_wpvivid_post_request(ajax_data, function (data) { … … 926 1069 jQuery(obj).parents("tr:first").remove(); 927 1070 } 1071 1072 function mwp_wpvivid_export_settings() { 1073 location.href =ajaxurl+'?_wpnonce='+ajax_object.ajax_nonce+'&action=mwp_wpvivid_export_setting_addon'; 1074 } 1075 1076 jQuery('#mwp_wpvivid_setting_export').click(function(){ 1077 mwp_wpvivid_export_settings(); 1078 }); 1079 1080 function mwp_wpvivid_import_settings(){ 1081 var files = jQuery('input[name="fileTrans"]').prop('files'); 1082 1083 if(files.length == 0){ 1084 alert('Choose a settings file and import it by clicking Import button.'); 1085 return; 1086 } 1087 else{ 1088 var reader = new FileReader(); 1089 reader.readAsText(files[0], "UTF-8"); 1090 reader.onload = function(evt){ 1091 var fileString = evt.target.result; 1092 var ajax_data = { 1093 'action': 'mwp_wpvivid_import_setting_addon', 1094 'data': fileString 1095 }; 1096 mwp_wpvivid_post_request(ajax_data, function(data){ 1097 try { 1098 var jsonarray = jQuery.parseJSON(data); 1099 if (jsonarray.result === 'success') { 1100 alert('The plugin settings were imported successfully.'); 1101 location.reload(); 1102 } 1103 else { 1104 alert('Error: ' + jsonarray.error); 1105 } 1106 } 1107 catch(err){ 1108 alert(err); 1109 } 1110 }, function(XMLHttpRequest, textStatus, errorThrown) { 1111 var error_message = mwp_wpvivid_output_ajaxerror('importing the previously-exported settings', textStatus, errorThrown); 1112 alert(error_message); 1113 }); 1114 } 1115 } 1116 } 1117 1118 jQuery('#mwp_wpvivid_setting_import').click(function(){ 1119 mwp_wpvivid_import_settings(); 1120 }); 928 1121 </script> 929 1122 <?php … … 1296 1489 </p> 1297 1490 </div> 1491 </td> 1492 </tr> 1493 1494 <tr> 1495 <td class="row-title" style="min-width:200px;"><label for="tablecell">Export/Import Extension Settings</label></td> 1496 <td> 1497 <table class="widefat" style="border:none;box-shadow:none;"> 1498 <tr> 1499 <td> 1500 <p><input id="mwp_wpvivid_setting_export" type="button" name="" value="Export">Export settings of WPvivid Backup for MainWP extension to your local computer.</p> 1501 </td> 1502 <td> 1503 <p><input type="file" name="fileTrans" id="mwp_wpvivid_select_import_file"></p> 1504 <p><input id="mwp_wpvivid_setting_import" type="button" name="" value="Import">Import exported settings of WPvivid Backup for MainWP extension to the current site.</p> 1505 </td> 1506 </tr> 1507 </table> 1298 1508 </td> 1299 1509 </tr> … … 2389 2599 <div id="mwp_wpvivid_image_custom_backup_path" style="display: none"> 2390 2600 <span><code><?php echo esc_html($backup_path_prefix); ?></code></span> 2391 <input type="text" option="mwp-setting-addon" name="mwp_image_backup_path_addon" class="all-options" value="<?php echo esc_attr($backup_path); ?>" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9 ]/g,'')" onpaste="value=value.replace(/[^\a-\z\A-\Z0-9]/g,'')" />2601 <input type="text" option="mwp-setting-addon" name="mwp_image_backup_path_addon" class="all-options" value="<?php echo esc_attr($backup_path); ?>" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9_]/g,'')" onpaste="value=value.replace(/[^\a-\z\A-\Z0-9]/g,'')" /> 2392 2602 </div> 2393 2603 </td> … … 2967 3177 $rollback_max_backup_count=isset($this->setting_addon['wpvivid_common_setting']['rollback_max_backup_count']) ? $this->setting_addon['wpvivid_common_setting']['rollback_max_backup_count'] : 30; 2968 3178 $rollback_max_backup_count=intval($rollback_max_backup_count); 3179 $rollback_max_remote_backup_count=isset($this->setting_addon['wpvivid_common_setting']['rollback_max_remote_backup_count']) ? $this->setting_addon['wpvivid_common_setting']['rollback_max_remote_backup_count'] : 30; 3180 $rollback_max_remote_backup_count=intval($rollback_max_remote_backup_count); 3181 3182 $rollback_remote = isset($this->setting_addon['wpvivid_rollback_remote']) ? $this->setting_addon['wpvivid_rollback_remote'] : 0; 3183 $rollback_retain_local = isset($this->setting_addon['wpvivid_rollback_retain_local']) ? $this->setting_addon['wpvivid_rollback_retain_local'] : 0; 3184 if($rollback_retain_local) 3185 { 3186 $rollback_retain_local = 'checked'; 3187 } 3188 else 3189 { 3190 $rollback_retain_local = ''; 3191 } 2969 3192 2970 3193 ?> … … 2983 3206 </div> 2984 3207 <div style="margin-bottom: 10px;"> 3208 3209 <p> 3210 <select option="mwp-rollback-addon" name="mwp_wpvivid_manual_backup_remote_selector"> 3211 <?php 3212 if($global) 3213 { 3214 if($rollback_remote) 3215 { 3216 ?> 3217 <option value="-1">Backup to Localhost</option> 3218 <option value="1" selected="selected">Backup to Remote</option> 3219 <?php 3220 } 3221 else 3222 { 3223 ?> 3224 <option value="-1" selected="selected">Backup to Localhost</option> 3225 <option value="1">Backup to Remote</option> 3226 <?php 3227 } 3228 } 3229 else 3230 { 3231 ?> 3232 <option value="-1">Backup to Localhost</option> 3233 <?php 3234 } 3235 ?> 3236 </select> 3237 <span>Choose cloud storage for versioning backups (files + database).</span> 3238 </p> 3239 <p> 3240 <label> 3241 <input type="checkbox" option="mwp-rollback-addon" name="mwp_wpvivid_rollback_retain_local_addon" <?php echo $rollback_retain_local; ?>> Keep storing the backups in localhost after uploading to remote storage. 3242 </label> 3243 </p> 3244 2985 3245 <p> 2986 3246 <label> … … 2996 3256 </label> 2997 3257 </p> 3258 <p> 3259 <label> 3260 <input type="text" class="mwp-wpvivid-rollback-count-retention" placeholder="30" option="mwp-rollback-addon" name="mwp_wpvivid_rollback_max_remote_backup_count_addon" value="<?php esc_attr_e($rollback_max_remote_backup_count); ?>"> 3261 <span> database backups retained in remote storage.</span> 3262 </label> 3263 </p> 2998 3264 </div> 2999 3265 </div> … … 3018 3284 jQuery('#mwp_wpvivid_auto_backup_db_count_display').hide(); 3019 3285 } 3286 }); 3287 3288 var mwp_wpvivid_get_rollback_remote_retry_times = 0; 3289 function mwp_wpvivid_get_rollback_remote_retry(error_msg){ 3290 var need_retry_get_rollback_remote = false; 3291 mwp_wpvivid_get_rollback_remote_retry_times++; 3292 if(mwp_wpvivid_get_rollback_remote_retry_times < 3){ 3293 need_retry_get_rollback_remote = true; 3294 } 3295 if(need_retry_get_rollback_remote){ 3296 setTimeout(function(){ 3297 mwp_wpvivid_init_get_rollback_remote(); 3298 }, 3000); 3299 } 3300 else{ 3301 } 3302 } 3303 3304 function mwp_wpvivid_init_get_rollback_remote() 3305 { 3306 var ajax_data = { 3307 'action': 'mwp_wpvivid_achieve_rollback_remote_addon', 3308 'site_id': '<?php echo esc_html($this->site_id); ?>' 3309 }; 3310 mwp_wpvivid_post_request(ajax_data, function (data) { 3311 try { 3312 var jsonarray = jQuery.parseJSON(data); 3313 if (jsonarray.result === 'success') { 3314 jQuery('select[option=mwp-rollback-addon][name=mwp_wpvivid_manual_backup_remote_selector]').html(jsonarray.remote_list_html); 3315 } 3316 else { 3317 mwp_wpvivid_get_rollback_remote_retry(jsonarray.error); 3318 } 3319 } 3320 catch (err) { 3321 mwp_wpvivid_get_rollback_remote_retry(err); 3322 } 3323 }, function (XMLHttpRequest, textStatus, errorThrown) { 3324 var error_message = mwp_wpvivid_output_ajaxerror('achieving backup', textStatus, errorThrown); 3325 mwp_wpvivid_get_rollback_remote_retry(error_message); 3326 }); 3327 } 3328 3329 jQuery(document).ready(function($) 3330 { 3331 mwp_wpvivid_init_get_rollback_remote(); 3020 3332 }); 3021 3333 </script> -
wpvivid-backup-mainwp/trunk/readme.txt
r3141352 r3182762 3 3 Tags: WPvivid backup, MainWP extension, backup, auto backup, cloud backup 4 4 Requires at least: 4.5 5 Tested up to: 6.6. 15 Tested up to: 6.6.2 6 6 Requires PHP: 5.3 7 Stable tag: 0.9.3 77 Stable tag: 0.9.38 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 48 48 49 49 == Changelog == 50 = 0.9.38 = 51 - Added an option to globally configure backup location for rollback backups. 52 - Added an option to export/import settings of the extension. 53 - Fixed: Redirection to a child site would fail when white label slug of the site contained capital letters. 54 - Fixed: Activating WPvivid license would fail in some cases. 50 55 = 0.9.37 = 51 56 - Added an option to install staging addon for child sites. -
wpvivid-backup-mainwp/trunk/wpvivid-backup-mainwp-subpage.php
r3100853 r3182762 87 87 } 88 88 else{ 89 $slug = $white_label_setting['white_label_slug'];89 $slug = strtolower($white_label_setting['white_label_slug']); 90 90 $slug_page = strtolower($white_label_setting['white_label_slug']); 91 91 if($is_mu) … … 1422 1422 return $remote_list_html; 1423 1423 } 1424 1425 static public function output_rollback_remote_list_addon($site_id, $remote_list) 1426 { 1427 $remote_list_html = ''; 1428 $setting_addon=Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_get_option($site_id, 'settings_addon', array()); 1429 $rollback_remote = isset($setting_addon['wpvivid_rollback_remote']) ? $setting_addon['wpvivid_rollback_remote'] : 0; 1430 $remote_id = isset($setting_addon['wpvivid_rollback_remote_id']) ? $setting_addon['wpvivid_rollback_remote_id'] : 0; 1431 if($rollback_remote) 1432 { 1433 $remote_list_html .= '<option value="-1">Choose cloud storage</option>'; 1434 } 1435 else 1436 { 1437 $remote_list_html .= '<option value="-1" selected="selected" >Choose cloud storage</option>'; 1438 } 1439 1440 foreach ($remote_list as $key => $value) 1441 { 1442 if($key === 'remote_selected') 1443 { 1444 continue; 1445 } 1446 1447 if(!isset($remote_option['id'])) 1448 { 1449 $remote_option['id'] = $key; 1450 } 1451 1452 if($remote_id==$key&&$rollback_remote) 1453 { 1454 $remote_list_html .= '<option value="'.$value['id'].'" selected="selected">'.$value['name'].'</option>'; 1455 } 1456 else 1457 { 1458 $remote_list_html .= '<option value="'.$value['id'].'">'.$value['name'].'</option>'; 1459 } 1460 } 1461 return $remote_list_html; 1462 } 1424 1463 } -
wpvivid-backup-mainwp/trunk/wpvivid-backup-mainwp.php
r3141352 r3182762 5 5 * Plugin URI: https://mainwp.com/ 6 6 * Description: WPvivid Backup for MainWP enables you to create and download backups of a specific child site, set backup schedules, connect with your remote storage and set settings for all of your child sites directly from your MainWP dashboard. 7 * Version: 0.9.3 77 * Version: 0.9.38 8 8 * Author: WPvivid Team 9 9 * Author URI: https://wpvivid.com … … 24 24 protected $plugin_handle = 'wpvivid-backup-mainwp'; 25 25 protected $product_id = 'WPvivid Backup MainWP'; 26 protected $version = '0.9.3 7';26 protected $version = '0.9.38'; 27 27 protected $childEnabled; 28 28 public $childKey; … … 806 806 { 807 807 $login_addon=Mainwp_WPvivid_Extension_DB_Option::get_instance()->wpvivid_get_global_option('login_addon', array()); 808 if ( !is_array($login_addon) || empty($login_addon) ) { 809 $login_addon = array(); 810 } 808 811 return $login_addon; 809 812 } … … 1923 1926 $wpvivid_need_update = false; 1924 1927 1925 $wpvivid_status = false;1928 /*$wpvivid_status = false; 1926 1929 foreach ($plugins as $plugin){ 1927 1930 $reg_string = 'wpvivid-backuprestore/wpvivid-backuprestore.php'; … … 1951 1954 break; 1952 1955 } 1953 } 1954 1955 if($wpvivid_status){ 1956 }*/ 1957 1958 //if($wpvivid_status) 1959 //{ 1956 1960 $site['status'] = 'WPvivid Backup Pro not claimed'; 1957 1961 $site['class'] = 'need-install-wpvivid-pro'; … … 2037 2041 } 2038 2042 } 2039 }2043 //} 2040 2044 if (isset($_GET['search']) && !empty($_GET['search'])) { 2041 2045 $find = trim(sanitize_text_field($_GET['search']));
Note: See TracChangeset
for help on using the changeset viewer.