forked from WWBN/AVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backup.php
47 lines (46 loc) · 2.93 KB
/
backup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div class="row">
<div class="col-lg-9">
<div class="panel panel-default">
<div class="panel-heading"><i class="fas fa-undo"></i> <?php echo __('Backup Files and Database'); ?> <div class="pull-right"><?php echo getPluginSwitch('Backup'); ?></div></div>
<div class="panel-body" style="overflow: hidden;">
<?php
if (AVideoPlugin::exists('Backup')) {
include $global['systemRootPath'] . 'plugin/Backup/backupEditor_head.php';
include $global['systemRootPath'] . 'plugin/Backup/backupEditor_body.php'; ?>
<hr>
<div class="alert alert-info">
<i class="fas fa-info-circle"></i> <?php echo __('As a database increases in size full database backups take more time to complete, and require more storage space. Please be patient'); ?>
</div>
<?php
} else {
?>
<div class="alert alert-info">
<h2><i class="fas fa-undo"></i> <?php echo __('Prevent Data Loss'); ?></h2>
<?php echo __('Backing up your video files and databases, running test restores procedures on your backups, and storing copies of backups in a safe, off-site location protects you from potentially catastrophic data loss. Backing up is the only way to protect your data.'); ?>
<br> <?php echo __('We can help you with this task,'); ?>
<a class="btn btn-info btn-sm btn-xs" href="https://youphp.tube/marketplace/"><?php echo __('Buy our Backup Plugin Now'); ?></a>
</div>
<?php
}
?>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-clone"></i> Clone Site <div class="pull-right"><?php echo getPluginSwitch('CloneSite'); ?></div></div>
<div class="panel-body" style="overflow: hidden;">
<div class="alert alert-info">
<i class="fas fa-info-circle"></i> <?php echo __('This Plugin helps you to clone your video site, it is really helpful for backup routines, load balance, etc.'); ?><br>
<?php echo __('You May find some help how to use Clone Plugin'); ?> <a target="_blank" href="https://github.com/WWBN/AVideo/wiki/Clone-Site-Plugin" rel="noopener noreferrer"><?php echo __('here'); ?></a>
</div>
<?php
$filter = [
'cloneSiteURL' => __('Place here the URL of the site you want to clone'), ];
echo createTable("CloneSite", $filter);
include $global['systemRootPath'] . 'plugin/CloneSite/pluginMenu.html';
?>
</div>
</div>
</div>
</div>