Version Description
- Improvement of menu section, video tutorials are added in the admin panel
- Improvement of Settings section, info signs are added to make everything more understandable
- Bug fixed related to dashboard statistics
- Fixed PHP notices
Download this release
Release Info
Developer | BackupGuard |
Plugin | WordPress Backup and Migrate Plugin – Backup Guard |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- BackupGuard.php +1 -0
- README.txt +7 -1
- backup.php +2 -2
- com/lib/BackupGuard/Client.php +0 -1
- public/ajax/modalManualBackup.php +4 -2
- public/css/bgstyle.less.css +37 -0
- public/css/styles.css +23 -0
- public/dashboardWidget.php +4 -1
- public/fonts/MenuGlyphter.eot +0 -0
- public/fonts/MenuGlyphter.svg +1 -0
- public/fonts/MenuGlyphter.ttf +0 -0
- public/fonts/MenuGlyphter.woff +0 -0
- public/include/sidebar.php +26 -20
- public/pagesContent.php +1 -0
- public/settings.php +55 -30
- public/videoTutorials.php +10 -0
BackupGuard.php
CHANGED
@@ -99,6 +99,7 @@ function backup_guard_admin_menu()
|
|
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
|
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('Video Tutorials', true), _backupGuardT('Video Tutorials', true), $capability, 'backup_guard_videoTutorials', 'includeAllPages');
|
103 |
add_submenu_page('backup_guard_backups', _backupGuardT('Support', true), _backupGuardT('Support', true), $capability, 'backup_guard_support', 'includeAllPages');
|
104 |
|
105 |
//Check if should show upgrade page
|
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.3
|
9 |
-
Stable tag: 1.5.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -167,6 +167,12 @@ 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.5.0 =
|
171 |
* Fixed the database restore process failure which was caused by the backup tree file
|
172 |
|
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.3
|
9 |
+
Stable tag: 1.5.1
|
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 |
+
= 1.5.1 =
|
171 |
+
* Improvement of menu section, video tutorials are added in the admin panel
|
172 |
+
* Improvement of “Settings” section, info signs are added to make everything more understandable
|
173 |
+
* Bug fixed related to dashboard statistics
|
174 |
+
* Fixed PHP notices
|
175 |
+
|
176 |
= 1.5.0 =
|
177 |
* Fixed the database restore process failure which was caused by the backup tree file
|
178 |
|
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.5.
|
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.5.
|
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.5.1
|
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.5.1');
|
20 |
}
|
21 |
|
22 |
if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
|
com/lib/BackupGuard/Client.php
CHANGED
@@ -48,7 +48,6 @@ class Client
|
|
48 |
'password' => $password
|
49 |
)
|
50 |
);
|
51 |
-
|
52 |
Helper::validateResponse($response);
|
53 |
|
54 |
$accessToken = $response->getBodyParam('access_token');
|
48 |
'password' => $password
|
49 |
)
|
50 |
);
|
|
|
51 |
Helper::validateResponse($response);
|
52 |
|
53 |
$accessToken = $response->getBodyParam('access_token');
|
public/ajax/modalManualBackup.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
$backupGuard = SGConfig::get('SG_BACKUPGUARD_UPLOAD_ACCESS_TOKEN');
|
12 |
|
13 |
$backupType = (int)@$_GET['backupType'];
|
|
|
14 |
?>
|
15 |
<div class="modal-dialog">
|
16 |
<div class="modal-content">
|
@@ -74,7 +75,7 @@
|
|
74 |
<div class="checkbox">
|
75 |
<label for="cloud-backup-guard" <?php echo empty($backupGuard)?'data-toggle="tooltip" data-placement="right" title="'._backupGuardT('BackupGuard is not active.',true).'"':''?>>
|
76 |
<input type="checkbox" name="backupStorages[]" id="cloud-backup-guard" value="<?php echo SG_STORAGE_BACKUP_GUARD ?>" <?php echo empty($backupGuard)?'disabled="disabled"':''?>>
|
77 |
-
|
78 |
</label>
|
79 |
</div>
|
80 |
<?php endif; ?>
|
@@ -130,7 +131,8 @@
|
|
130 |
<div class="checkbox">
|
131 |
<label for="sg-background-chbx">
|
132 |
<input type="checkbox" name="backgroundMode" id="sg-background-chbx">
|
133 |
-
<span class="sg-checkbox-label-text"><?php _backupGuardT('Background mode'); ?></span
|
|
|
134 |
</label>
|
135 |
</div>
|
136 |
<?php endif; ?>
|
11 |
$backupGuard = SGConfig::get('SG_BACKUPGUARD_UPLOAD_ACCESS_TOKEN');
|
12 |
|
13 |
$backupType = (int)@$_GET['backupType'];
|
14 |
+
$infoIconHtml = '<span class="dashicons dashicons-editor-help sgbg-info-icon"></span>';
|
15 |
?>
|
16 |
<div class="modal-dialog">
|
17 |
<div class="modal-content">
|
75 |
<div class="checkbox">
|
76 |
<label for="cloud-backup-guard" <?php echo empty($backupGuard)?'data-toggle="tooltip" data-placement="right" title="'._backupGuardT('BackupGuard is not active.',true).'"':''?>>
|
77 |
<input type="checkbox" name="backupStorages[]" id="cloud-backup-guard" value="<?php echo SG_STORAGE_BACKUP_GUARD ?>" <?php echo empty($backupGuard)?'disabled="disabled"':''?>>
|
78 |
+
<span class="sg-checkbox-label-text"><?php echo 'BackupGuard' ?></span>
|
79 |
</label>
|
80 |
</div>
|
81 |
<?php endif; ?>
|
131 |
<div class="checkbox">
|
132 |
<label for="sg-background-chbx">
|
133 |
<input type="checkbox" name="backgroundMode" id="sg-background-chbx">
|
134 |
+
<span class="sg-checkbox-label-text"><?php _backupGuardT('Background mode'); ?></span><?php echo $infoIconHtml; ?>
|
135 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Enable background mode to avoid CPU overload')?></span>
|
136 |
</label>
|
137 |
</div>
|
138 |
<?php endif; ?>
|
public/css/bgstyle.less.css
CHANGED
@@ -8330,4 +8330,41 @@ a#sg-logo:focus {
|
|
8330 |
|
8331 |
.bg-email-confirmation {
|
8332 |
color: #000;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8333 |
}
|
8330 |
|
8331 |
.bg-email-confirmation {
|
8332 |
color: #000;
|
8333 |
+
}
|
8334 |
+
|
8335 |
+
.sgbg-info-icon {
|
8336 |
+
margin-left: 5px;
|
8337 |
+
margin-top: 1px;
|
8338 |
+
}
|
8339 |
+
|
8340 |
+
.sgbg-info-text {
|
8341 |
+
color: #3879D9;
|
8342 |
+
font: 14px Arial;
|
8343 |
+
width: 200px;
|
8344 |
+
border: 1px solid #ccc;
|
8345 |
+
position: absolute;
|
8346 |
+
min-width: 20px;
|
8347 |
+
min-height: 13px;
|
8348 |
+
display: none;
|
8349 |
+
margin-top: 3px;
|
8350 |
+
margin-left: 5px;
|
8351 |
+
box-shadow: 0px 0px 5px #ccc;
|
8352 |
+
padding: 5px;
|
8353 |
+
z-index: 9999;
|
8354 |
+
background-color: white;
|
8355 |
+
border-radius: 5px;
|
8356 |
+
display: none;
|
8357 |
+
}
|
8358 |
+
|
8359 |
+
.sgbg-info-icon:hover + .sgbg-info-text {
|
8360 |
+
display: inline-block !important;
|
8361 |
+
}
|
8362 |
+
|
8363 |
+
.modal-content .sgbg-info-icon {
|
8364 |
+
margin-top: 4px;
|
8365 |
+
}
|
8366 |
+
|
8367 |
+
.modal-content .sgbg-info-text {
|
8368 |
+
margin-top: 3px;
|
8369 |
+
margin-left: 5px;
|
8370 |
}
|
public/css/styles.css
CHANGED
@@ -535,6 +535,29 @@ label.sg-user-info {
|
|
535 |
-webkit-font-smoothing: antialiased;
|
536 |
-moz-osx-font-smoothing: grayscale
|
537 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
|
539 |
.sg-backup-cross:before{content:'\0041';}
|
540 |
.sg-backup-report:before{content:'\0042';}
|
535 |
-webkit-font-smoothing: antialiased;
|
536 |
-moz-osx-font-smoothing: grayscale
|
537 |
}
|
538 |
+
/*Video tutorials font*/
|
539 |
+
@font-face {
|
540 |
+
font-family: 'MenuGlyphter';
|
541 |
+
src: url('../fonts/MenuGlyphter.eot');
|
542 |
+
src: url('../fonts/MenuGlyphter.eot?#iefix') format('embedded-opentype'),
|
543 |
+
url('../fonts/MenuGlyphter.woff') format('woff'),
|
544 |
+
url('../fonts/MenuGlyphter.ttf') format('truetype'),
|
545 |
+
url('../fonts/MenuGlyphter.svg#MenuGlyphter') format('svg');
|
546 |
+
font-weight: normal;
|
547 |
+
font-style: normal;
|
548 |
+
}
|
549 |
+
[class*='sg-backup-menu-']:before{
|
550 |
+
display: inline-block;
|
551 |
+
font-family: 'MenuGlyphter';
|
552 |
+
font-style: normal;
|
553 |
+
font-weight: normal;
|
554 |
+
line-height: 1;
|
555 |
+
-webkit-font-smoothing: antialiased;
|
556 |
+
-moz-osx-font-smoothing: grayscale;
|
557 |
+
margin-right: 15px;
|
558 |
+
}
|
559 |
+
|
560 |
+
.sg-backup-menu-video:before{content:'\0041';}
|
561 |
|
562 |
.sg-backup-cross:before{content:'\0041';}
|
563 |
.sg-backup-report:before{content:'\0042';}
|
public/dashboardWidget.php
CHANGED
@@ -14,7 +14,10 @@ function backup_guard_dashboard_widget_function( $post, $callback_args ) {
|
|
14 |
$canceledBackups = 0;
|
15 |
|
16 |
for($i = 0; $i < $allBackupsCount; $i++){
|
17 |
-
|
|
|
|
|
|
|
18 |
case SG_ACTION_STATUS_IN_PROGRESS_DB:
|
19 |
case SG_ACTION_STATUS_IN_PROGRESS_FILES:
|
20 |
$inprogress++;
|
14 |
$canceledBackups = 0;
|
15 |
|
16 |
for($i = 0; $i < $allBackupsCount; $i++){
|
17 |
+
if (empty($backups[$i])) {
|
18 |
+
continue;
|
19 |
+
}
|
20 |
+
switch ($backups[$i]['status']){
|
21 |
case SG_ACTION_STATUS_IN_PROGRESS_DB:
|
22 |
case SG_ACTION_STATUS_IN_PROGRESS_FILES:
|
23 |
$inprogress++;
|
public/fonts/MenuGlyphter.eot
ADDED
Binary file
|
public/fonts/MenuGlyphter.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" ><svg xmlns="http://www.w3.org/2000/svg"><metadata>Generated by Glyphter</metadata><defs><font id="Glyphter" horiz-adv-x="0"><font-face units-per-em="1024" ascent="1024" descent="0" font-family="Glyphter" font-weight="normal" /><missing-glyph horiz-adv-x="0" /><glyph unicode="A" d="M512.47,1023.734C118.627,1023.804,-127.601,597.496,69.264,256.386C266.128,-84.725,758.434,-84.813,955.413,256.228C1000.345,334.028,1024,422.278,1024,512.116C1024,794.642,794.996,1023.681,512.47,1023.734C512.47,1023.734,512.47,1023.734,512.47,1023.734M699.797,477.282C699.797,477.282,442.277,297.764,442.277,297.764C415.472,279.058,378.463,296.378,375.664,328.948C375.55,330.255,375.497,331.553,375.506,332.861C375.506,332.861,375.506,691.634,375.506,691.634C375.296,724.326,410.55,744.98,438.969,728.818C440.101,728.178,441.207,727.476,442.277,726.73C442.277,726.73,699.797,547.3,699.797,547.3C724.373,530.427,724.373,494.155,699.797,477.282C699.797,477.282,699.797,477.282,699.797,477.282" class="icon-Artboard 1"/></font></defs></svg>
|
public/fonts/MenuGlyphter.ttf
ADDED
Binary file
|
public/fonts/MenuGlyphter.woff
ADDED
Binary file
|
public/include/sidebar.php
CHANGED
@@ -26,75 +26,81 @@
|
|
26 |
$buttonText = $buttonText.$upgradeTo;
|
27 |
}
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
?>
|
36 |
<div id="sg-sidebar-wrapper" class="metro">
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
<nav class="sidebar dark sg-backup-sidebar-nav">
|
43 |
<ul>
|
44 |
<li class="<?php echo strpos($page,'backups')?'active':''?>">
|
45 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_backups'); ?>" data-page-key="backups">
|
46 |
<span class="glyphicon glyphicon-hdd"></span><?php _backupGuardT('Backups')?>
|
47 |
</a>
|
48 |
-
|
49 |
</li>
|
50 |
<li class="<?php echo strpos($page,'cloud')?'active':''?>">
|
51 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_cloud'); ?>" data-page-key="cloud">
|
52 |
<span class="glyphicon glyphicon-cloud" aria-hidden="true"></span><?php _backupGuardT('Cloud')?>
|
53 |
</a>
|
54 |
-
|
55 |
</li>
|
56 |
<?php if (SGBoot::isFeatureAvailable('SCHEDULE')):?>
|
57 |
<li class="<?php echo strpos($page,'schedule')?'active':''?>">
|
58 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_schedule'); ?>" data-page-key="schedule">
|
59 |
<span class="glyphicon glyphicon-time" aria-hidden="true"></span><?php _backupGuardT('Schedule')?>
|
60 |
</a>
|
61 |
-
|
62 |
</li>
|
63 |
<?php endif;?>
|
64 |
<li class="<?php echo strpos($page,'settings')?'active':''?>">
|
65 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_settings'); ?>" data-page-key="settings">
|
66 |
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span><?php _backupGuardT('Settings')?>
|
67 |
</a>
|
68 |
-
|
69 |
</li>
|
70 |
<li class="<?php echo strpos($page,'system_info')?'active':''?>">
|
71 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_system_info'); ?>" data-page-key="system_info">
|
72 |
<span class="glyphicon glyphicon-equalizer" aria-hidden="true"></span><?php _backupGuardT('System Info.')?>
|
73 |
</a>
|
74 |
-
|
75 |
</li>
|
76 |
<li class="<?php echo strpos($page,'services')?'active':''?>">
|
77 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_services'); ?>" data-page-key="services">
|
78 |
<span class="glyphicon glyphicon-briefcase" aria-hidden="true"></span><?php _backupGuardT('Services')?>
|
79 |
</a>
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
</li>
|
82 |
<li class="<?php echo strpos($page,'support')?'active':''?>">
|
83 |
<a href="<?php echo $supportUrl; ?>" data-page-key="support" data-open-content="<?php echo $openContent; ?>">
|
84 |
<span class="glyphicon glyphicon-envelope" aria-hidden="true"></span><?php _backupGuardT('Support')?>
|
85 |
</a>
|
86 |
-
|
87 |
</li>
|
88 |
<?php if (SGBoot::isFeatureAvailable('SHOW_UPGRADE_PAGE')):?>
|
89 |
<li class="<?php echo strpos($page,'pro_features')?'active':''?>">
|
90 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_pro_features'); ?>" data-page-key="pro_features">
|
91 |
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span><?php _backupGuardT('Why upgrade?')?>
|
92 |
</a>
|
93 |
-
|
94 |
</li>
|
95 |
<?php endif; ?>
|
96 |
<!-- Will be added in the future release -->
|
97 |
-
<!--
|
98 |
<li class="<?php echo strpos($page,'security')?'active':''?>">
|
99 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_security'); ?>">
|
100 |
<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>Security
|
26 |
$buttonText = $buttonText.$upgradeTo;
|
27 |
}
|
28 |
|
29 |
+
$supportUrl = network_admin_url('admin.php?page=backup_guard_support');
|
30 |
+
$openContent = 1;
|
31 |
+
if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE) {
|
32 |
+
$openContent = 0;
|
33 |
+
$supportUrl = BACKUP_GUARD_WORDPRESS_SUPPORT_URL;
|
34 |
+
}
|
35 |
?>
|
36 |
<div id="sg-sidebar-wrapper" class="metro">
|
37 |
+
<a class="sg-site-url" href="<?php echo network_admin_url('admin.php?page=backup_guard_backups'); ?>">
|
38 |
+
<div class="title">
|
39 |
+
<span class="sg-action-menu-arrow"></span>
|
40 |
+
</div>
|
41 |
+
</a>
|
42 |
<nav class="sidebar dark sg-backup-sidebar-nav">
|
43 |
<ul>
|
44 |
<li class="<?php echo strpos($page,'backups')?'active':''?>">
|
45 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_backups'); ?>" data-page-key="backups">
|
46 |
<span class="glyphicon glyphicon-hdd"></span><?php _backupGuardT('Backups')?>
|
47 |
</a>
|
48 |
+
<span class="sg-action-menu-arrow"></span>
|
49 |
</li>
|
50 |
<li class="<?php echo strpos($page,'cloud')?'active':''?>">
|
51 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_cloud'); ?>" data-page-key="cloud">
|
52 |
<span class="glyphicon glyphicon-cloud" aria-hidden="true"></span><?php _backupGuardT('Cloud')?>
|
53 |
</a>
|
54 |
+
<span class="sg-action-menu-arrow"></span>
|
55 |
</li>
|
56 |
<?php if (SGBoot::isFeatureAvailable('SCHEDULE')):?>
|
57 |
<li class="<?php echo strpos($page,'schedule')?'active':''?>">
|
58 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_schedule'); ?>" data-page-key="schedule">
|
59 |
<span class="glyphicon glyphicon-time" aria-hidden="true"></span><?php _backupGuardT('Schedule')?>
|
60 |
</a>
|
61 |
+
<span class="sg-action-menu-arrow"></span>
|
62 |
</li>
|
63 |
<?php endif;?>
|
64 |
<li class="<?php echo strpos($page,'settings')?'active':''?>">
|
65 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_settings'); ?>" data-page-key="settings">
|
66 |
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span><?php _backupGuardT('Settings')?>
|
67 |
</a>
|
68 |
+
<span class="sg-action-menu-arrow"></span>
|
69 |
</li>
|
70 |
<li class="<?php echo strpos($page,'system_info')?'active':''?>">
|
71 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_system_info'); ?>" data-page-key="system_info">
|
72 |
<span class="glyphicon glyphicon-equalizer" aria-hidden="true"></span><?php _backupGuardT('System Info.')?>
|
73 |
</a>
|
74 |
+
<span class="sg-action-menu-arrow"></span>
|
75 |
</li>
|
76 |
<li class="<?php echo strpos($page,'services')?'active':''?>">
|
77 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_services'); ?>" data-page-key="services">
|
78 |
<span class="glyphicon glyphicon-briefcase" aria-hidden="true"></span><?php _backupGuardT('Services')?>
|
79 |
</a>
|
80 |
+
<span class="sg-action-menu-arrow"></span>
|
81 |
+
</li>
|
82 |
+
<li class="<?php echo strpos($page,'videoTutorials')?'active':''?>">
|
83 |
+
<a href="<?php echo $supportUrl; ?>" data-page-key="videoTutorials">
|
84 |
+
<span class="sg-backup-menu-video" aria-hidden="true"></span><?php _backupGuardT('Video Tutorials')?>
|
85 |
+
</a>
|
86 |
+
<span class="sg-action-menu-arrow"></span>
|
87 |
</li>
|
88 |
<li class="<?php echo strpos($page,'support')?'active':''?>">
|
89 |
<a href="<?php echo $supportUrl; ?>" data-page-key="support" data-open-content="<?php echo $openContent; ?>">
|
90 |
<span class="glyphicon glyphicon-envelope" aria-hidden="true"></span><?php _backupGuardT('Support')?>
|
91 |
</a>
|
92 |
+
<span class="sg-action-menu-arrow"></span>
|
93 |
</li>
|
94 |
<?php if (SGBoot::isFeatureAvailable('SHOW_UPGRADE_PAGE')):?>
|
95 |
<li class="<?php echo strpos($page,'pro_features')?'active':''?>">
|
96 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_pro_features'); ?>" data-page-key="pro_features">
|
97 |
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span><?php _backupGuardT('Why upgrade?')?>
|
98 |
</a>
|
99 |
+
<span class="sg-action-menu-arrow"></span>
|
100 |
</li>
|
101 |
<?php endif; ?>
|
102 |
<!-- Will be added in the future release -->
|
103 |
+
<!-- <?php if ($extensionAdapter->isExtensionActive(SG_BACKUP_GUARD_SECURITY_EXTENSION)):?>
|
104 |
<li class="<?php echo strpos($page,'security')?'active':''?>">
|
105 |
<a href="<?php echo network_admin_url('admin.php?page=backup_guard_security'); ?>">
|
106 |
<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>Security
|
public/pagesContent.php
CHANGED
@@ -15,6 +15,7 @@ $pluginCapabilities = backupGuardGetCapabilities();
|
|
15 |
<?php require_once(plugin_dir_path(__FILE__).'settings.php'); ?>
|
16 |
<?php require_once(plugin_dir_path(__FILE__).'systemInfo.php'); ?>
|
17 |
<?php require_once(plugin_dir_path(__FILE__).'services.php'); ?>
|
|
|
18 |
<?php require_once(plugin_dir_path(__FILE__).'support.php'); ?>
|
19 |
<?php
|
20 |
if (SGBoot::isFeatureAvailable('SHOW_UPGRADE_PAGE')) {
|
15 |
<?php require_once(plugin_dir_path(__FILE__).'settings.php'); ?>
|
16 |
<?php require_once(plugin_dir_path(__FILE__).'systemInfo.php'); ?>
|
17 |
<?php require_once(plugin_dir_path(__FILE__).'services.php'); ?>
|
18 |
+
<?php require_once(plugin_dir_path(__FILE__).'videoTutorials.php'); ?>
|
19 |
<?php require_once(plugin_dir_path(__FILE__).'support.php'); ?>
|
20 |
<?php
|
21 |
if (SGBoot::isFeatureAvailable('SHOW_UPGRADE_PAGE')) {
|
public/settings.php
CHANGED
@@ -22,6 +22,7 @@ $selectedInterval = (int)SGConfig::get('SG_AJAX_REQUEST_FREQUENCY')?(int)SGConfi
|
|
22 |
$backupFileNamePrefix = SGConfig::get('SG_BACKUP_FILE_NAME_PREFIX')?SGConfig::get('SG_BACKUP_FILE_NAME_PREFIX'):SG_BACKUP_FILE_NAME_DEFAULT_PREFIX;
|
23 |
$backupFileNamePrefix = esc_html($backupFileNamePrefix);
|
24 |
|
|
|
25 |
$sgBackgroundReloadMethod = SGConfig::get('SG_BACKGROUND_RELOAD_METHOD');
|
26 |
$ftpPassiveMode = SGConfig::get('SG_FTP_PASSIVE_MODE');
|
27 |
$contentClassName = getBackupPageContentClassName('settings');
|
@@ -34,8 +35,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
34 |
<div><h1 class="sg-backup-page-title"><?php _backupGuardT('General settings')?></h1></div>
|
35 |
<?php if (SGBoot::isFeatureAvailable('NOTIFICATIONS')): ?>
|
36 |
<div class="form-group">
|
37 |
-
<label class="col-md-
|
38 |
-
<?php _backupGuardT('Email notifications'); ?>
|
|
|
39 |
<?php if(!empty($userEmail)): ?>
|
40 |
<br/><span class="text-muted sg-user-email sg-helper-block"><?php echo esc_html($userEmail); ?></span>
|
41 |
<?php endif?>
|
@@ -48,7 +50,7 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
48 |
</div>
|
49 |
<div class="sg-general-settings">
|
50 |
<div class="form-group">
|
51 |
-
<label class="col-md-
|
52 |
<div class="col-md-5">
|
53 |
<input id="sg-email" name="sgUserEmail" type="text" placeholder="<?php _backupGuardT('You can enter multiple emails, just separate them with comma')?>" class="form-control input-md sg-backup-input" value="<?php echo @$userEmail?>">
|
54 |
</div>
|
@@ -56,8 +58,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
56 |
</div>
|
57 |
<?php endif; ?>
|
58 |
<div class="form-group">
|
59 |
-
<label class="col-md-
|
60 |
-
<?php _backupGuardT('Reloads enabled'); ?>
|
|
|
61 |
</label>
|
62 |
<div class="col-md-3 text-left">
|
63 |
<label class="sg-switch-container">
|
@@ -67,8 +70,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
67 |
</div>
|
68 |
<?php if (SGBoot::isFeatureAvailable('DELETE_LOCAL_BACKUP_AFTER_UPLOAD')): ?>
|
69 |
<div class="form-group">
|
70 |
-
<label class="col-md-
|
71 |
-
<?php _backupGuardT('Delete local backup after upload'); ?>
|
|
|
72 |
</label>
|
73 |
<div class="col-md-3 text-left">
|
74 |
<label class="sg-switch-container">
|
@@ -79,8 +83,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
79 |
<?php endif; ?>
|
80 |
<?php if (SGBoot::isFeatureAvailable('ALERT_BEFORE_UPDATE')): ?>
|
81 |
<div class="form-group">
|
82 |
-
<label class="col-md-
|
83 |
-
<?php _backupGuardT('Alert before update'); ?>
|
|
|
84 |
</label>
|
85 |
<div class="col-md-3 text-left">
|
86 |
<label class="sg-switch-container">
|
@@ -91,8 +96,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
91 |
<?php endif; ?>
|
92 |
<?php if (SGBoot::isFeatureAvailable('BACKUP_DELETION_WILL_ALSO_DELETE_FROM_CLOUD')): ?>
|
93 |
<div class="form-group">
|
94 |
-
<label class="col-md-
|
95 |
-
<?php _backupGuardT('Backup deletion will also delete from cloud'); ?>
|
|
|
96 |
</label>
|
97 |
<div class="col-md-3 text-left">
|
98 |
<label class="sg-switch-container">
|
@@ -102,8 +108,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
102 |
</div>
|
103 |
<?php endif; ?>
|
104 |
<div class="form-group">
|
105 |
-
<label class="col-md-
|
106 |
-
<?php _backupGuardT('Show statistics'); ?>
|
|
|
107 |
</label>
|
108 |
<div class="col-md-3 text-left">
|
109 |
<label class="sg-switch-container">
|
@@ -113,7 +120,7 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
113 |
</div>
|
114 |
<?php if (SGBoot::isFeatureAvailable('FTP')): ?>
|
115 |
<div class="form-group">
|
116 |
-
<label class="col-md-
|
117 |
<?php _backupGuardT('FTP passive mode'); ?>
|
118 |
</label>
|
119 |
<div class="col-md-3 text-left">
|
@@ -125,8 +132,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
125 |
<?php endif; ?>
|
126 |
<?php if (SGBoot::isFeatureAvailable('MULTI_SCHEDULE')): ?>
|
127 |
<div class="form-group">
|
128 |
-
<label class="col-md-
|
129 |
-
<?php _backupGuardT('Disable ads'); ?>
|
|
|
130 |
</label>
|
131 |
<div class="col-md-3 text-left">
|
132 |
<label class="sg-switch-container">
|
@@ -136,8 +144,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
136 |
</div>
|
137 |
<?php endif; ?>
|
138 |
<div class="form-group">
|
139 |
-
<label class="col-md-
|
140 |
-
<?php _backupGuardT('Download via PHP'); ?>
|
|
|
141 |
</label>
|
142 |
<div class="col-md-3 text-left">
|
143 |
<label class="sg-switch-container">
|
@@ -146,8 +155,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
146 |
</div>
|
147 |
</div>
|
148 |
<div class="form-group">
|
149 |
-
<label class="col-md-
|
150 |
-
<?php _backupGuardT('Send usage data'); ?>
|
|
|
151 |
</label>
|
152 |
<div class="col-md-3 text-left">
|
153 |
<label class="sg-switch-container">
|
@@ -157,14 +167,18 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
157 |
</div>
|
158 |
|
159 |
<div class="form-group">
|
160 |
-
<label class="col-md-
|
|
|
|
|
161 |
<div class="col-md-5 text-left">
|
162 |
<input class="form-control sg-backup-input" id='sg-paths-to-exclude' name='sg-paths-to-exclude' type="text" value="<?php echo SGConfig::get('SG_PATHS_TO_EXCLUDE')?SGConfig::get('SG_PATHS_TO_EXCLUDE'):''?>" placeholder="e.g. wp-content/cache, wp-content/w3tc-cache">
|
163 |
</div>
|
164 |
</div>
|
165 |
|
166 |
<div class="form-group">
|
167 |
-
<label class="col-md-
|
|
|
|
|
168 |
<div class="col-md-5 text-left">
|
169 |
<input class="form-control sg-backup-input" id='sg-tables-to-exclude' name='sg-tables-to-exclude' type="text" value="<?php echo SGConfig::get('SG_TABLES_TO_EXCLUDE')?SGConfig::get('SG_TABLES_TO_EXCLUDE'):''?>" placeholder="e.g. wp_comments, wp_commentmeta">
|
170 |
</div>
|
@@ -172,7 +186,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
172 |
|
173 |
<?php if (SGBoot::isFeatureAvailable('NUMBER_OF_BACKUPS_TO_KEEP')): ?>
|
174 |
<div class="form-group">
|
175 |
-
<label class="col-md-
|
|
|
|
|
176 |
</label>
|
177 |
<div class="col-md-5 text-left">
|
178 |
<input class="form-control sg-backup-input" id='amount-of-backups-to-keep' name='amount-of-backups-to-keep' type="text" value="<?php echo (int)SGConfig::get('SG_AMOUNT_OF_BACKUPS_TO_KEEP')?(int)SGConfig::get('SG_AMOUNT_OF_BACKUPS_TO_KEEP'):SG_NUMBER_OF_BACKUPS_TO_KEEP?>" <?php echo (!SGBoot::isFeatureAvailable('NUMBER_OF_BACKUPS_TO_KEEP'))? 'disabled' : '' ?>>
|
@@ -180,14 +196,20 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
180 |
</div>
|
181 |
<?php endif; ?>
|
182 |
<div class="form-group">
|
183 |
-
<label class="col-md-
|
|
|
|
|
|
|
184 |
<div class="col-md-5 text-left">
|
185 |
<input class="form-control sg-backup-input" id='sg-number-of-rows-to-backup' name='sg-number-of-rows-to-backup' type="text" value="<?php echo (int)SGConfig::get('SG_BACKUP_DATABASE_INSERT_LIMIT')?(int)SGConfig::get('SG_BACKUP_DATABASE_INSERT_LIMIT'):SG_BACKUP_DATABASE_INSERT_LIMIT?>">
|
186 |
</div>
|
187 |
</div>
|
188 |
|
189 |
<div class="form-group">
|
190 |
-
<label class="col-md-
|
|
|
|
|
|
|
191 |
<div class="col-md-5 text-left">
|
192 |
<select class="form-control" id='sg-background-reload-method' name='sg-background-reload-method'>
|
193 |
<option value="<?php echo SG_RELOAD_METHOD_CURL ?>" <?php echo $sgBackgroundReloadMethod == SG_RELOAD_METHOD_CURL ? "selected" : "" ?> >Curl</option>
|
@@ -198,8 +220,9 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
198 |
</div>
|
199 |
<?php if (SGBoot::isFeatureAvailable('CUSTOM_BACKUP_NAME')): ?>
|
200 |
<div class="form-group">
|
201 |
-
<label class="col-md-
|
202 |
-
<?php _backupGuardT('Backup file name')?>
|
|
|
203 |
</label>
|
204 |
<div class="col-md-5 text-left">
|
205 |
<input id="backup-file-name" name="backup-file-name" type="text" class="form-control input-md sg-backup-input" value="<?php echo $backupFileNamePrefix?>" <?php echo (!SGBoot::isFeatureAvailable('CUSTOM_BACKUP_NAME'))? 'disabled' : '' ?>>
|
@@ -208,19 +231,21 @@ $contentClassName = getBackupPageContentClassName('settings');
|
|
208 |
<?php endif; ?>
|
209 |
|
210 |
<div class="form-group">
|
211 |
-
<label class="col-md-
|
|
|
|
|
212 |
<div class="col-md-5">
|
213 |
<?php echo selectElement($intervalSelectElement, array('id'=>'sg-ajax-interval', 'name'=>'ajaxInterval', 'class'=>'form-control'), '', $selectedInterval);?>
|
214 |
</div>
|
215 |
</div>
|
216 |
<div class="form-group">
|
217 |
-
<label class="col-md-
|
218 |
<div class="col-md-6">
|
219 |
<span><?php echo str_replace(realpath(SG_APP_ROOT_DIRECTORY).'/', "" ,realpath(SG_BACKUP_DIRECTORY)); ?></span>
|
220 |
</div>
|
221 |
</div>
|
222 |
<div class="form-group">
|
223 |
-
<label class="col-md-
|
224 |
<div class="col-md-5 text-right">
|
225 |
<button type="button" id="sg-save-settings" class="btn btn-success" onclick="sgBackup.sgsettings();"><?php _backupGuardT('Save')?></button>
|
226 |
</div>
|
22 |
$backupFileNamePrefix = SGConfig::get('SG_BACKUP_FILE_NAME_PREFIX')?SGConfig::get('SG_BACKUP_FILE_NAME_PREFIX'):SG_BACKUP_FILE_NAME_DEFAULT_PREFIX;
|
23 |
$backupFileNamePrefix = esc_html($backupFileNamePrefix);
|
24 |
|
25 |
+
$infoIconHtml = '<span class="dashicons dashicons-editor-help sgbg-info-icon"></span>';
|
26 |
$sgBackgroundReloadMethod = SGConfig::get('SG_BACKGROUND_RELOAD_METHOD');
|
27 |
$ftpPassiveMode = SGConfig::get('SG_FTP_PASSIVE_MODE');
|
28 |
$contentClassName = getBackupPageContentClassName('settings');
|
35 |
<div><h1 class="sg-backup-page-title"><?php _backupGuardT('General settings')?></h1></div>
|
36 |
<?php if (SGBoot::isFeatureAvailable('NOTIFICATIONS')): ?>
|
37 |
<div class="form-group">
|
38 |
+
<label class="col-md-4 sg-control-label">
|
39 |
+
<?php _backupGuardT('Email notifications'); ?><?php echo $infoIconHtml; ?>
|
40 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Enable notifications to receive status updates about your backup/restore processes.');?></span>
|
41 |
<?php if(!empty($userEmail)): ?>
|
42 |
<br/><span class="text-muted sg-user-email sg-helper-block"><?php echo esc_html($userEmail); ?></span>
|
43 |
<?php endif?>
|
50 |
</div>
|
51 |
<div class="sg-general-settings">
|
52 |
<div class="form-group">
|
53 |
+
<label class="col-md-4 sg-control-label" for="sg-email"><?php _backupGuardT('Enter email')?></label>
|
54 |
<div class="col-md-5">
|
55 |
<input id="sg-email" name="sgUserEmail" type="text" placeholder="<?php _backupGuardT('You can enter multiple emails, just separate them with comma')?>" class="form-control input-md sg-backup-input" value="<?php echo @$userEmail?>">
|
56 |
</div>
|
58 |
</div>
|
59 |
<?php endif; ?>
|
60 |
<div class="form-group">
|
61 |
+
<label class="col-md-4 sg-control-label">
|
62 |
+
<?php _backupGuardT('Reloads enabled'); ?><?php echo $infoIconHtml; ?>
|
63 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Enable chunked backup/restore. Recommended to avoid execution timeout errors.')?></span>
|
64 |
</label>
|
65 |
<div class="col-md-3 text-left">
|
66 |
<label class="sg-switch-container">
|
70 |
</div>
|
71 |
<?php if (SGBoot::isFeatureAvailable('DELETE_LOCAL_BACKUP_AFTER_UPLOAD')): ?>
|
72 |
<div class="form-group">
|
73 |
+
<label class="col-md-4 sg-control-label">
|
74 |
+
<?php _backupGuardT('Delete local backup after upload'); ?><?php echo $infoIconHtml; ?>
|
75 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Delete your local copy of backup once it is successfully uploaded to the connected cloud.')?></span>
|
76 |
</label>
|
77 |
<div class="col-md-3 text-left">
|
78 |
<label class="sg-switch-container">
|
83 |
<?php endif; ?>
|
84 |
<?php if (SGBoot::isFeatureAvailable('ALERT_BEFORE_UPDATE')): ?>
|
85 |
<div class="form-group">
|
86 |
+
<label class="col-md-4 sg-control-label">
|
87 |
+
<?php _backupGuardT('Alert before update'); ?><?php echo $infoIconHtml; ?>
|
88 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Receive an alert to backup you website prior to updateing installed plugins.')?></span>
|
89 |
</label>
|
90 |
<div class="col-md-3 text-left">
|
91 |
<label class="sg-switch-container">
|
96 |
<?php endif; ?>
|
97 |
<?php if (SGBoot::isFeatureAvailable('BACKUP_DELETION_WILL_ALSO_DELETE_FROM_CLOUD')): ?>
|
98 |
<div class="form-group">
|
99 |
+
<label class="col-md-4 sg-control-label">
|
100 |
+
<?php _backupGuardT('Backup deletion will also delete from cloud'); ?><?php echo $infoIconHtml; ?>
|
101 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Deleting your local copy of backup will automatically remove it from the connected cloud as well.')?></span>
|
102 |
</label>
|
103 |
<div class="col-md-3 text-left">
|
104 |
<label class="sg-switch-container">
|
108 |
</div>
|
109 |
<?php endif; ?>
|
110 |
<div class="form-group">
|
111 |
+
<label class="col-md-4 sg-control-label">
|
112 |
+
<?php _backupGuardT('Show statistics'); ?><?php echo $infoIconHtml; ?>
|
113 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Backup statistics available in the dashboard.')?></span>
|
114 |
</label>
|
115 |
<div class="col-md-3 text-left">
|
116 |
<label class="sg-switch-container">
|
120 |
</div>
|
121 |
<?php if (SGBoot::isFeatureAvailable('FTP')): ?>
|
122 |
<div class="form-group">
|
123 |
+
<label class="col-md-4 sg-control-label">
|
124 |
<?php _backupGuardT('FTP passive mode'); ?>
|
125 |
</label>
|
126 |
<div class="col-md-3 text-left">
|
132 |
<?php endif; ?>
|
133 |
<?php if (SGBoot::isFeatureAvailable('MULTI_SCHEDULE')): ?>
|
134 |
<div class="form-group">
|
135 |
+
<label class="col-md-4 sg-control-label">
|
136 |
+
<?php _backupGuardT('Disable ads'); ?><?php echo $infoIconHtml; ?>
|
137 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Disable advertisements inside the plugin (e.g. banners)')?></span>
|
138 |
</label>
|
139 |
<div class="col-md-3 text-left">
|
140 |
<label class="sg-switch-container">
|
144 |
</div>
|
145 |
<?php endif; ?>
|
146 |
<div class="form-group">
|
147 |
+
<label class="col-md-4 sg-control-label">
|
148 |
+
<?php _backupGuardT('Download via PHP'); ?><?php echo $infoIconHtml; ?>
|
149 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Download backup archive or log via PHP')?></span>
|
150 |
</label>
|
151 |
<div class="col-md-3 text-left">
|
152 |
<label class="sg-switch-container">
|
155 |
</div>
|
156 |
</div>
|
157 |
<div class="form-group">
|
158 |
+
<label class="col-md-4 sg-control-label">
|
159 |
+
<?php _backupGuardT('Send usage data'); ?><?php echo $infoIconHtml; ?>
|
160 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Allow us to receive usage data in order to improve plugin functionality')?></span>
|
161 |
</label>
|
162 |
<div class="col-md-3 text-left">
|
163 |
<label class="sg-switch-container">
|
167 |
</div>
|
168 |
|
169 |
<div class="form-group">
|
170 |
+
<label class="col-md-4 sg-control-label" for='sg-paths-to-exclude'>
|
171 |
+
<?php _backupGuardT("Exclude paths (separated by commas)")?>
|
172 |
+
</label>
|
173 |
<div class="col-md-5 text-left">
|
174 |
<input class="form-control sg-backup-input" id='sg-paths-to-exclude' name='sg-paths-to-exclude' type="text" value="<?php echo SGConfig::get('SG_PATHS_TO_EXCLUDE')?SGConfig::get('SG_PATHS_TO_EXCLUDE'):''?>" placeholder="e.g. wp-content/cache, wp-content/w3tc-cache">
|
175 |
</div>
|
176 |
</div>
|
177 |
|
178 |
<div class="form-group">
|
179 |
+
<label class="col-md-4 sg-control-label" for='sg-tables-to-exclude'>
|
180 |
+
<?php _backupGuardT("Tables to exclude (separated by commas)")?>
|
181 |
+
</label>
|
182 |
<div class="col-md-5 text-left">
|
183 |
<input class="form-control sg-backup-input" id='sg-tables-to-exclude' name='sg-tables-to-exclude' type="text" value="<?php echo SGConfig::get('SG_TABLES_TO_EXCLUDE')?SGConfig::get('SG_TABLES_TO_EXCLUDE'):''?>" placeholder="e.g. wp_comments, wp_commentmeta">
|
184 |
</div>
|
186 |
|
187 |
<?php if (SGBoot::isFeatureAvailable('NUMBER_OF_BACKUPS_TO_KEEP')): ?>
|
188 |
<div class="form-group">
|
189 |
+
<label class="col-md-4 sg-control-label" for='amount-of-backups-to-keep'>
|
190 |
+
<?php _backupGuardT("Backup retention")?><?php echo $infoIconHtml; ?>
|
191 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Choose number of backups to keep on the website. Each additional backup will replace the oldest backup file')?></span>
|
192 |
</label>
|
193 |
<div class="col-md-5 text-left">
|
194 |
<input class="form-control sg-backup-input" id='amount-of-backups-to-keep' name='amount-of-backups-to-keep' type="text" value="<?php echo (int)SGConfig::get('SG_AMOUNT_OF_BACKUPS_TO_KEEP')?(int)SGConfig::get('SG_AMOUNT_OF_BACKUPS_TO_KEEP'):SG_NUMBER_OF_BACKUPS_TO_KEEP?>" <?php echo (!SGBoot::isFeatureAvailable('NUMBER_OF_BACKUPS_TO_KEEP'))? 'disabled' : '' ?>>
|
196 |
</div>
|
197 |
<?php endif; ?>
|
198 |
<div class="form-group">
|
199 |
+
<label class="col-md-4 sg-control-label" for='sg-number-of-rows-to-backup'>
|
200 |
+
<?php _backupGuardT("Number of rows to backup at once")?><?php echo $infoIconHtml; ?>
|
201 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Choose the number of row during the Databases backup in order not to overload your RAM.')?></span>
|
202 |
+
</label>
|
203 |
<div class="col-md-5 text-left">
|
204 |
<input class="form-control sg-backup-input" id='sg-number-of-rows-to-backup' name='sg-number-of-rows-to-backup' type="text" value="<?php echo (int)SGConfig::get('SG_BACKUP_DATABASE_INSERT_LIMIT')?(int)SGConfig::get('SG_BACKUP_DATABASE_INSERT_LIMIT'):SG_BACKUP_DATABASE_INSERT_LIMIT?>">
|
205 |
</div>
|
206 |
</div>
|
207 |
|
208 |
<div class="form-group">
|
209 |
+
<label class="col-md-4 sg-control-label" for='sg-background-reload-method'>
|
210 |
+
<?php _backupGuardT("Reload method")?><?php echo $infoIconHtml; ?>
|
211 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Choose the right PHP Library for reloads')?></span>
|
212 |
+
</label>
|
213 |
<div class="col-md-5 text-left">
|
214 |
<select class="form-control" id='sg-background-reload-method' name='sg-background-reload-method'>
|
215 |
<option value="<?php echo SG_RELOAD_METHOD_CURL ?>" <?php echo $sgBackgroundReloadMethod == SG_RELOAD_METHOD_CURL ? "selected" : "" ?> >Curl</option>
|
220 |
</div>
|
221 |
<?php if (SGBoot::isFeatureAvailable('CUSTOM_BACKUP_NAME')): ?>
|
222 |
<div class="form-group">
|
223 |
+
<label class="col-md-4 sg-control-label">
|
224 |
+
<?php _backupGuardT('Backup file name')?><?php echo $infoIconHtml; ?>
|
225 |
+
<span class="infoSelectRepeat samefontStyle sgbg-info-text"><?php _backupGuardT('Name your backups or leave to the default prefixes')?></span>
|
226 |
</label>
|
227 |
<div class="col-md-5 text-left">
|
228 |
<input id="backup-file-name" name="backup-file-name" type="text" class="form-control input-md sg-backup-input" value="<?php echo $backupFileNamePrefix?>" <?php echo (!SGBoot::isFeatureAvailable('CUSTOM_BACKUP_NAME'))? 'disabled' : '' ?>>
|
231 |
<?php endif; ?>
|
232 |
|
233 |
<div class="form-group">
|
234 |
+
<label class="col-md-4 sg-control-label" for="sg-email">
|
235 |
+
<?php _backupGuardT('Request frequency')?>
|
236 |
+
</label>
|
237 |
<div class="col-md-5">
|
238 |
<?php echo selectElement($intervalSelectElement, array('id'=>'sg-ajax-interval', 'name'=>'ajaxInterval', 'class'=>'form-control'), '', $selectedInterval);?>
|
239 |
</div>
|
240 |
</div>
|
241 |
<div class="form-group">
|
242 |
+
<label class="col-md-4"><?php _backupGuardT('Backup destination path'); ?></label>
|
243 |
<div class="col-md-6">
|
244 |
<span><?php echo str_replace(realpath(SG_APP_ROOT_DIRECTORY).'/', "" ,realpath(SG_BACKUP_DIRECTORY)); ?></span>
|
245 |
</div>
|
246 |
</div>
|
247 |
<div class="form-group">
|
248 |
+
<label class="col-md-4 control-label" for="button1id"></label>
|
249 |
<div class="col-md-5 text-right">
|
250 |
<button type="button" id="sg-save-settings" class="btn btn-success" onclick="sgBackup.sgsettings();"><?php _backupGuardT('Save')?></button>
|
251 |
</div>
|
public/videoTutorials.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
require_once(SG_SCHEDULE_PATH.'SGSchedule.php');
|
3 |
+
$contentClassName = getBackupPageContentClassName('videoTutorials');
|
4 |
+
?>
|
5 |
+
<div id="sg-backup-page-content-videoTutorials" class="sg-backup-page-content <?php echo $contentClassName; ?>">
|
6 |
+
<div><h1 class="sg-backup-page-title"><?php _backupGuardT('Video Tutorials')?></h1></div>
|
7 |
+
|
8 |
+
<h2><?php _backupGuardT('BackupGuard WordPress Plugin Walkthrough'); ?></h2>
|
9 |
+
<iframe width="859" height="483" src="https://www.youtube.com/embed/xn_-FtZNHEw" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
10 |
+
</div>
|