WordPress Backup and Migrate Plugin – Backup Guard - Version 1.4.8

Version Description

  • Bug fixed related to Dropbox connection issue
  • Improvement for Import section
Download this release

Release Info

Developer BackupGuard
Plugin Icon 128x128 WordPress Backup and Migrate Plugin – Backup Guard
Version 1.4.8
Comparing to
See all releases

Code changes from version 1.4.7 to 1.4.8

BackupGuard.php CHANGED
@@ -83,22 +83,27 @@ else {
83
 
84
  function backup_guard_admin_menu()
85
  {
86
- add_menu_page('Backups', 'BackupGuard', 'manage_options', 'backup_guard_backups', 'includeAllPages', 'data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MzAuMzQgNjYzLjAzIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkFydGJvYXJkIDI8L3RpdGxlPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTUzMC4xMSwxODUuNzljLTcxLjktOC44Mi0xMzcuNzMtNDAtMTkwLTg2LjU3djkyLjY1YTI4MC41OSwyODAuNTksMCwwLDAsMTE2LjUyLDUyYy05LjE0LDg5LjQzLTUyLDE2OS41NS0xMTYuNTIsMjI4Ljg3djkwLjRDNDU5Ljg0LDQ3Ny4xMyw1MzAuNiwzMzMuNDIsNTMwLjExLDE4NS43OVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xNzQuMjksMjQ0YTI4MC40NiwyODAuNDYsMCwwLDAsMTE1Ljc3LTUxLjExVjEwMGMtNTIuNDQsNDYuMjgtMTE3LjYyLDc3LTE4OS44Myw4NS4xNUM5OS41NCwzMzMsMTcwLjIyLDQ3Ni44MiwyOTAuMDYsNTYzVjQ3Mi4wOUMyMjYsNDEyLjg2LDE4My40MiwzMzMuMDYsMTc0LjI5LDI0NFoiLz48L3N2Zz4=', 74);
 
 
 
 
 
87
 
88
- add_submenu_page('backup_guard_backups', _backupGuardT('Backups', true), _backupGuardT('Backups', true), 'manage_options', 'backup_guard_backups', 'includeAllPages');
89
- add_submenu_page('backup_guard_backups', _backupGuardT('Cloud', true), _backupGuardT('Cloud', true), 'manage_options', 'backup_guard_cloud', 'includeAllPages');
90
- add_submenu_page('backup_guard_backups', _backupGuardT('Schedule', true), _backupGuardT('Schedule', true), 'manage_options', 'backup_guard_schedule', 'includeAllPages');
91
 
92
- add_submenu_page('backup_guard_backups', _backupGuardT('Settings', true), _backupGuardT('Settings', true), 'manage_options', 'backup_guard_settings', 'includeAllPages');
93
 
94
- add_submenu_page('backup_guard_backups', _backupGuardT('System Info.', true), _backupGuardT('System Info.', true), 'manage_options', 'backup_guard_system_info', 'includeAllPages');
95
 
96
- add_submenu_page('backup_guard_backups', _backupGuardT('Services', true), _backupGuardT('Services', true), 'manage_options', 'backup_guard_services', 'includeAllPages');
97
- add_submenu_page('backup_guard_backups', _backupGuardT('Support', true), _backupGuardT('Support', true), 'manage_options', 'backup_guard_support', 'includeAllPages');
98
 
99
  //Check if should show upgrade page
100
  if (SGBoot::isFeatureAvailable('SHOW_UPGRADE_PAGE')) {
101
- add_submenu_page('backup_guard_backups', _backupGuardT('Why upgrade?', true), _backupGuardT('Why upgrade?', true), 'manage_options', 'backup_guard_pro_features', 'includeAllPages');
102
  }
103
  }
104
 
@@ -368,7 +373,7 @@ function backup_guard_create_schedule()
368
  function backup_guard_get_manual_modal()
369
  {
370
  check_ajax_referer('backupGuardAjaxNonce', 'token');
371
- if (current_user_can( 'activate_plugins' )) {
372
  require_once(SG_PUBLIC_AJAX_PATH.'modalManualBackup.php');
373
  }
374
  exit();
@@ -429,7 +434,7 @@ function backup_guard_get_review_modal()
429
 
430
  function backup_guard_register_ajax_callbacks()
431
  {
432
- if (is_super_admin()) {
433
  // adding actions to handle ajax and post requests
434
  add_action('wp_ajax_backup_guard_cancelBackup', 'backup_guard_cancel_backup');
435
  add_action('wp_ajax_backup_guard_checkBackupCreation', 'backup_guard_check_backup_creation');
@@ -602,7 +607,7 @@ function backup_guard_check_restore_creation()
602
 
603
  function backup_guard_cloud_dropbox()
604
  {
605
- if (current_user_can('activate_plugins')) {
606
  check_ajax_referer('backupGuardAjaxNonce', 'token');
607
  require_once(SG_PUBLIC_AJAX_PATH . 'cloudDropbox.php');
608
  }
@@ -611,7 +616,7 @@ function backup_guard_cloud_dropbox()
611
  function backup_guard_send_usage_status()
612
  {
613
 
614
- if (current_user_can('activate_plugins')) {
615
  check_ajax_referer('backupGuardAjaxNonce', 'token');
616
  require_once(SG_PUBLIC_AJAX_PATH . 'sendUsageStatus.php');
617
  }
83
 
84
  function backup_guard_admin_menu()
85
  {
86
+ $capability = 'manage_options';
87
+ if (defined('SG_USER_MODE') && SG_USER_MODE) {
88
+ $capability = 'read';
89
+ }
90
+
91
+ add_menu_page('Backups', 'BackupGuard', $capability, 'backup_guard_backups', 'includeAllPages', 'data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MzAuMzQgNjYzLjAzIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkFydGJvYXJkIDI8L3RpdGxlPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTUzMC4xMSwxODUuNzljLTcxLjktOC44Mi0xMzcuNzMtNDAtMTkwLTg2LjU3djkyLjY1YTI4MC41OSwyODAuNTksMCwwLDAsMTE2LjUyLDUyYy05LjE0LDg5LjQzLTUyLDE2OS41NS0xMTYuNTIsMjI4Ljg3djkwLjRDNDU5Ljg0LDQ3Ny4xMyw1MzAuNiwzMzMuNDIsNTMwLjExLDE4NS43OVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xNzQuMjksMjQ0YTI4MC40NiwyODAuNDYsMCwwLDAsMTE1Ljc3LTUxLjExVjEwMGMtNTIuNDQsNDYuMjgtMTE3LjYyLDc3LTE4OS44Myw4NS4xNUM5OS41NCwzMzMsMTcwLjIyLDQ3Ni44MiwyOTAuMDYsNTYzVjQ3Mi4wOUMyMjYsNDEyLjg2LDE4My40MiwzMzMuMDYsMTc0LjI5LDI0NFoiLz48L3N2Zz4=', 74);
92
 
93
+ add_submenu_page('backup_guard_backups', _backupGuardT('Backups', true), _backupGuardT('Backups', true), $capability, 'backup_guard_backups', 'includeAllPages');
94
+ add_submenu_page('backup_guard_backups', _backupGuardT('Cloud', true), _backupGuardT('Cloud', true), $capability, 'backup_guard_cloud', 'includeAllPages');
95
+ add_submenu_page('backup_guard_backups', _backupGuardT('Schedule', true), _backupGuardT('Schedule', true), $capability, 'backup_guard_schedule', 'includeAllPages');
96
 
97
+ add_submenu_page('backup_guard_backups', _backupGuardT('Settings', true), _backupGuardT('Settings', true), $capability, 'backup_guard_settings', 'includeAllPages');
98
 
99
+ add_submenu_page('backup_guard_backups', _backupGuardT('System Info.', true), _backupGuardT('System Info.', true), $capability, 'backup_guard_system_info', 'includeAllPages');
100
 
101
+ add_submenu_page('backup_guard_backups', _backupGuardT('Services', true), _backupGuardT('Services', true), $capability, 'backup_guard_services', 'includeAllPages');
102
+ add_submenu_page('backup_guard_backups', _backupGuardT('Support', true), _backupGuardT('Support', true), $capability, 'backup_guard_support', 'includeAllPages');
103
 
104
  //Check if should show upgrade page
105
  if (SGBoot::isFeatureAvailable('SHOW_UPGRADE_PAGE')) {
106
+ add_submenu_page('backup_guard_backups', _backupGuardT('Why upgrade?', true), _backupGuardT('Why upgrade?', true), $capability, 'backup_guard_pro_features', 'includeAllPages');
107
  }
108
  }
109
 
373
  function backup_guard_get_manual_modal()
374
  {
375
  check_ajax_referer('backupGuardAjaxNonce', 'token');
376
+ if (current_user_can( 'activate_plugins' ) || (defined('SG_USER_MODE') && SG_USER_MODE)) {
377
  require_once(SG_PUBLIC_AJAX_PATH.'modalManualBackup.php');
378
  }
379
  exit();
434
 
435
  function backup_guard_register_ajax_callbacks()
436
  {
437
+ if (is_super_admin() || (defined('SG_USER_MODE') && SG_USER_MODE)) {
438
  // adding actions to handle ajax and post requests
439
  add_action('wp_ajax_backup_guard_cancelBackup', 'backup_guard_cancel_backup');
440
  add_action('wp_ajax_backup_guard_checkBackupCreation', 'backup_guard_check_backup_creation');
607
 
608
  function backup_guard_cloud_dropbox()
609
  {
610
+ if (current_user_can('activate_plugins') || (defined('SG_USER_MODE') && SG_USER_MODE)) {
611
  check_ajax_referer('backupGuardAjaxNonce', 'token');
612
  require_once(SG_PUBLIC_AJAX_PATH . 'cloudDropbox.php');
613
  }
616
  function backup_guard_send_usage_status()
617
  {
618
 
619
+ if (current_user_can('activate_plugins') || (defined('SG_USER_MODE') && SG_USER_MODE)) {
620
  check_ajax_referer('backupGuardAjaxNonce', 'token');
621
  require_once(SG_PUBLIC_AJAX_PATH . 'sendUsageStatus.php');
622
  }
README.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://backup-guard.com/products/backup-wordpress
6
  Tags: backup, wordpress backup plugin, backup plugin, database backup, migrate, back up
7
  Requires at least: 3.8
8
  Tested up to: 5.5.1
9
- Stable tag: 1.4.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -167,6 +167,11 @@ When you are facing an issue of any kind with any of our products, the first thi
167
  6. Site backup customization
168
 
169
  == Changelog ==
 
 
 
 
 
170
  = 1.4.7 =
171
  * Bug fixed related to the jQuery depreciation functionality
172
  * Improvement of BackupGuard sidebar menu
6
  Tags: backup, wordpress backup plugin, backup plugin, database backup, migrate, back up
7
  Requires at least: 3.8
8
  Tested up to: 5.5.1
9
+ Stable tag: 1.4.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
167
  6. Site backup customization
168
 
169
  == Changelog ==
170
+
171
+ = 1.4.8 =
172
+ * Bug fixed related to Dropbox connection issue
173
+ * Improvement for Import section
174
+
175
  = 1.4.7 =
176
  * Bug fixed related to the jQuery depreciation functionality
177
  * Improvement of BackupGuard sidebar menu
backup.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Backup
5
  * Plugin URI: https://backup-guard.com/products/backup-wordpress
6
  * Description: Backup Guard is the most complete site backup and restore plugin. We offer the easiest way to backup, restore or migrate your site. You can backup your files, database or both.
7
- * Version: 1.4.7
8
  * Author: BackupGuard
9
  * Author URI: https://backup-guard.com/products/backup-wordpress
10
  * License: GPL-2.0+
@@ -16,7 +16,7 @@ if (function_exists('activate_backup_guard')) {
16
  }
17
 
18
  if (!defined('SG_BACKUP_GUARD_VERSION')) {
19
- define('SG_BACKUP_GUARD_VERSION', '1.4.7');
20
  }
21
 
22
  if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
4
  * Plugin Name: Backup
5
  * Plugin URI: https://backup-guard.com/products/backup-wordpress
6
  * Description: Backup Guard is the most complete site backup and restore plugin. We offer the easiest way to backup, restore or migrate your site. You can backup your files, database or both.
7
+ * Version: 1.4.8
8
  * Author: BackupGuard
9
  * Author URI: https://backup-guard.com/products/backup-wordpress
10
  * License: GPL-2.0+
16
  }
17
 
18
  if (!defined('SG_BACKUP_GUARD_VERSION')) {
19
+ define('SG_BACKUP_GUARD_VERSION', '1.4.8');
20
  }
21
 
22
  if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
com/config/config.wordpress.demo.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ define('SG_USER_MODE', 1);
4
+
5
+ define('SG_FEATURE_DOWNLOAD_FROM_CLOUD', 1);
6
+ define('SG_FEATURE_STORAGE', 1);
7
+ define('SG_FEATURE_FTP', 1);
8
+ define('SG_FEATURE_AMAZON', 1);
9
+ define('SG_FEATURE_DROPBOX', 1);
10
+ define('SG_FEATURE_GOOGLE_DRIVE', 1);
11
+ define('SG_FEATURE_ONE_DRIVE', 1);
12
+ define('SG_FEATURE_SCHEDULE', 1);
13
+ define('SG_FEATURE_DELETE_LOCAL_BACKUP_AFTER_UPLOAD', 1);
14
+ define('SG_FEATURE_ALERT_BEFORE_UPDATE', 1);
15
+ define('SG_FEATURE_NUMBER_OF_BACKUPS_TO_KEEP', 1);
16
+ define('SG_FEATURE_CUSTOM_BACKUP_NAME', 1);
17
+ define('SG_FEATURE_SUBDIRECTORIES', 1);
18
+ define('SG_FEATURE_BACKGROUND_MODE', 1);
19
+ define('SG_FEATURE_NOTIFICATIONS', 1);
20
+ define('SG_FEATURE_MULTI_SCHEDULE', 1);
21
+ define('SG_FEATURE_SHOW_UPGRADE_PAGE', 0);
22
+ define('SG_FEATURE_BACKUP_WITH_MIGRATION', 1);
23
+ define('SG_FEATURE_NUMBER_OF_ROWS_TO_BACKUP', 1);
24
+ define('SG_FEATURE_BACKUP_DELETION_WILL_ALSO_DELETE_FROM_CLOUD', 1);
25
+ define('SG_FEATURE_SLECTIVE_RESTORE', 1);
26
+ define('SG_FEATURE_HIDE_ADS', 1);
27
+
28
+ //Storage
29
+ define('SG_STORAGE_FTP', 1);
30
+ define('SG_STORAGE_DROPBOX', 2);
31
+ define('SG_STORAGE_GOOGLE_DRIVE', 3);
32
+ define('SG_STORAGE_AMAZON', 4);
33
+ define('SG_STORAGE_ONE_DRIVE', 5);
34
+
35
+ define('SG_STORAGE_GOOGLE_DRIVE_CLIENT_ID', '1030123017859-vfdlqkjhiuuu5n36pbov93v9ruo6jpj5.apps.googleusercontent.com');
36
+ define('SG_STORAGE_GOOGLE_DRIVE_SECRET', 'oUcZwC17q5ZSbYahnQkGYpyH');
37
+ define('SG_STORAGE_GOOGLE_DRIVE_REDIRECT_URI', 'https://backup-guard.com/gdrive/');
38
+ define('SG_STORAGE_DROPBOX_KEY', 'n3yhajm64h88m9t');
39
+ define('SG_STORAGE_DROPBOX_SECRET', 's8crjkls7f9wqtd');
40
+ define('SG_STORAGE_DROPBOX_CLIENT_ID', 'backup-guard');
41
+ define('SG_STORAGE_DROPBOX_REDIRECT_URI', 'https://backup-guard.com/dropbox/');
42
+
43
+ define('SG_STORAGE_ONE_DRIVE_SECRET', 'tdajnuNEibaaEdCB3OfaXQk');
44
+ define('SG_STORAGE_ONE_DRIVE_REDIRECT_URI', "https://backup-guard.com/onedrive/");
45
+ define('SG_STORAGE_ONE_DRIVE_CLIENT_ID', "48c83729-fb5b-43d5-a66d-9532f4dfefdb");
46
+
47
+ $SG_BACKUP_AMAZON_REGIONS = array(
48
+ array("name"=>"US East (N. Virginia)", "region"=>"us-east-1"),
49
+ array("name"=>"US East (Ohio)", "region"=>"us-east-2"),
50
+ array("name"=>"US West (Oregon)", "region"=>"us-west-2"),
51
+ array("name"=>"US West (N. California)", "region"=>"us-west-1"),
52
+ array("name"=>"EU (Ireland)", "region"=>"eu-west-1"),
53
+ array("name"=>"EU (London)", "region"=>"eu-west-2"),
54
+ array("name"=>"EU (Frankfurt)", "region"=>"eu-central-1"),
55
+ array("name"=>"Asia Pacific (Singapore)", "region"=>"ap-southeast-1"),
56
+ array("name"=>"Asia Pacific (Tokyo)", "region"=>"ap-northeast-1"),
57
+ array("name"=>"Asia Pacific (Sydney)", "region"=>"ap-southeast-2"),
58
+ array("name"=>"Asia Pacific (Seoul)", "region"=>"ap-northeast-2"),
59
+ array("name"=>"Asia Pacific (Mumbai)", "region"=>"ap-south-1"),
60
+ array("name"=>"South America (São Paulo)", "region"=>"sa-east-1"),
61
+ array("name"=>"Canada (Central)", "region"=>"ca-central-1")
62
+ );
63
+
64
+ $SG_BACKUP_GOOGLE_REGIONS = array(
65
+ array("name" => "Google Storage: EU", "region" => "google-storage"),
66
+ array("name" => "Google Storage: USA", "region" => "google-storage-us"),
67
+ array("name" => "Google Storage: Asia", "region" => "google-storage-asia")
68
+ );
69
+
70
+ define('SG_PRODUCT_IDENTIFIER', 'backup-guard-wp-platinum');
71
+
72
+ //BackupGuard Support URL
73
+ define('SG_BACKUP_SUPPORT_URL', 'https://help.backup-guard.com/en/');
74
+ define('BG_UPGRADE_URL', 'https://backup-guard.com/products/security#pricing');
com/core/storage/SGDropboxStorage.php CHANGED
@@ -148,7 +148,7 @@ class SGDropboxStorage extends SGStorage
148
 
149
  $curl = $client->mkCurl($url);
150
  $curl->set(CURLOPT_CUSTOMREQUEST, "POST");
151
- $curl->addHeader("Dropbox-API-Arg: ".json_encode($params));
152
  $curl->set(CURLOPT_WRITEFUNCTION, array($this, 'callback'));
153
 
154
  $response = $curl->exec();
@@ -324,6 +324,12 @@ class SGDropboxStorage extends SGStorage
324
  {
325
  $appInfo = $this->getAppInfo();
326
  $redirectUri = SG_STORAGE_DROPBOX_REDIRECT_URI;
 
 
 
 
 
 
327
  $csrfTokenStore = new dbx\ArrayEntryStore($_SESSION, 'dropbox-auth-csrf-token');
328
  return new dbx\WebAuth($appInfo, SG_STORAGE_DROPBOX_CLIENT_ID, $redirectUri, $csrfTokenStore, null);
329
  }
148
 
149
  $curl = $client->mkCurl($url);
150
  $curl->set(CURLOPT_CUSTOMREQUEST, "POST");
151
+ $curl->addHeader("Dropbox-API-Arg: ".json_encode($params));
152
  $curl->set(CURLOPT_WRITEFUNCTION, array($this, 'callback'));
153
 
154
  $response = $curl->exec();
324
  {
325
  $appInfo = $this->getAppInfo();
326
  $redirectUri = SG_STORAGE_DROPBOX_REDIRECT_URI;
327
+ $savedCSRFToken = SGConfig::get('SG_DROPBOX_CONNECTION_CSRF_TOKEN');
328
+ if (!empty($savedCSRFToken)) {
329
+ $_SESSION['dropbox-auth-csrf-token'] = $savedCSRFToken;
330
+ SGConfig::set('SG_DROPBOX_CONNECTION_CSRF_TOKEN', false);
331
+ }
332
+
333
  $csrfTokenStore = new dbx\ArrayEntryStore($_SESSION, 'dropbox-auth-csrf-token');
334
  return new dbx\WebAuth($appInfo, SG_STORAGE_DROPBOX_CLIENT_ID, $redirectUri, $csrfTokenStore, null);
335
  }
com/lib/Dropbox/WebAuth.php CHANGED
@@ -146,6 +146,7 @@ class WebAuth extends WebAuthBase
146
  Checker::argStringOrNull("urlState", $urlState);
147
 
148
  $csrfToken = self::encodeCsrfToken(Security::getRandomBytes(16));
 
149
  $state = $csrfToken;
150
  if ($urlState !== null) {
151
  $state .= "|";
146
  Checker::argStringOrNull("urlState", $urlState);
147
 
148
  $csrfToken = self::encodeCsrfToken(Security::getRandomBytes(16));
149
+ \SGConfig::set('SG_DROPBOX_CONNECTION_CSRF_TOKEN', $csrfToken);
150
  $state = $csrfToken;
151
  if ($urlState !== null) {
152
  $state .= "|";
public/ajax/modalImport.php CHANGED
@@ -20,7 +20,7 @@
20
  <table class="table table-striped paginated sg-backup-table">
21
  <tbody>
22
  <tr>
23
- <td class="file-select-radio"><input name="storage-radio" type="radio" value="local-pc"></td>
24
  <td></td>
25
  <td><?php _backupGuardT('Local PC')?></td>
26
  </tr>
20
  <table class="table table-striped paginated sg-backup-table">
21
  <tbody>
22
  <tr>
23
+ <td class="file-select-radio"><input name="storage-radio" type="radio" value="local-pc" checked></td>
24
  <td></td>
25
  <td><?php _backupGuardT('Local PC')?></td>
26
  </tr>
public/backups.php CHANGED
@@ -105,10 +105,12 @@ This will provide us with an opportunity to make the experience so much better f
105
  <span class="sg-backup-migrate sg-backup-buttons-content"></span>
106
  <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Migrate')?></span>
107
  </a>
 
108
  <a href="javascript:void(0)" id="sg-import" class="btn btn-primary sg-margin-left-12 pull-left sg-backup-action-buttons" data-toggle="modal" data-modal-name="import" data-remote="modalImport">
109
  <span class="sg-backup-import sg-backup-buttons-content"></span>
110
  <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Import')?><span>
111
  </a>
 
112
  <?php if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE): ?>
113
  <a href="<?php echo BACKUP_GUARD_WORDPRESS_SUPPORT_URL; ?>" target="_blank">
114
  <button type="button" id="sg-report-problem-button" class="btn btn btn-primary sg-margin-left-12 pull-right sg-backup-action-buttons sg-button-red pull-right">
105
  <span class="sg-backup-migrate sg-backup-buttons-content"></span>
106
  <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Migrate')?></span>
107
  </a>
108
+ <?php if (!(defined('SG_USER_MODE') && SG_USER_MODE)): ?>
109
  <a href="javascript:void(0)" id="sg-import" class="btn btn-primary sg-margin-left-12 pull-left sg-backup-action-buttons" data-toggle="modal" data-modal-name="import" data-remote="modalImport">
110
  <span class="sg-backup-import sg-backup-buttons-content"></span>
111
  <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Import')?><span>
112
  </a>
113
+ <?php endif; ?>
114
  <?php if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE): ?>
115
  <a href="<?php echo BACKUP_GUARD_WORDPRESS_SUPPORT_URL; ?>" target="_blank">
116
  <button type="button" id="sg-report-problem-button" class="btn btn btn-primary sg-margin-left-12 pull-right sg-backup-action-buttons sg-button-red pull-right">
public/img/128.png DELETED
Binary file
public/img/2CO.png DELETED
Binary file
public/img/G+.png DELETED
Binary file
public/img/discount.png DELETED
Binary file
public/img/karmir-button.png DELETED
Binary file
public/img/logo5.png DELETED
Binary file
public/img/notice-section-bg.png DELETED
Binary file
public/img/reviewBannerLogo.png DELETED
Binary file
public/img/section-1-bg.png DELETED
Binary file
public/js/sgdiscount.js DELETED
@@ -1,13 +0,0 @@
1
-
2
- jQuery(document).ready( function() {
3
- url = getAjaxUrl();
4
- url += 'hideDisconutNotice';
5
-
6
- jQuery('.notice-dismiss').on('click', function(){
7
- if (jQuery(this).parent().attr('which-notice') == 'backup-guard-discount-div') {
8
- jQuery.ajax({
9
- url: url
10
- });
11
- }
12
- })
13
- });