PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 1.3.0
JetBackup – Backup, Restore & Migrate v1.3.0
3.1.22.3 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 1.6.11 1.6.12 1.6.13 1.6.15 1.6.5.1 1.6.8.8 1.6.9 1.6.9.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7.5 2.0.8.7 2.0.9.11 2.0.9.14 2.0.9.15 2.0.9.6 2.0.9.7 2.0.9.9 3.1.10.7 3.1.11.1 3.1.12.3 3.1.13.4 3.1.14.17 3.1.15.4 3.1.16.1 3.1.17.5 3.1.18.10 3.1.18.8 3.1.18.9 3.1.19.8 3.1.20.3 3.1.21.3 3.1.7.9 3.1.9.2 trunk 1.1.90 1.1.91 1.2.0 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2
backup / public / cloud.php
backup / public Last commit date
ajax 6 years ago config 6 years ago cron 6 years ago css 6 years ago fonts 6 years ago img 6 years ago include 6 years ago js 6 years ago templates 6 years ago backups.php 6 years ago boot.php 6 years ago cloud.php 6 years ago dashboardWidget.php 6 years ago proFeatures.php 6 years ago restore_wordpress.php 6 years ago schedule.php 6 years ago security.php 6 years ago services.php 6 years ago settings.php 6 years ago support.php 6 years ago systemInfo.php 6 years ago
cloud.php
132 lines
1 <?php
2 require_once(dirname(__FILE__).'/boot.php');
3 require_once(SG_PUBLIC_INCLUDE_PATH.'/header.php');
4 $dropbox = SGConfig::get('SG_DROPBOX_ACCESS_TOKEN');
5 $gdrive = SGConfig::get('SG_GOOGLE_DRIVE_REFRESH_TOKEN');
6 $ftp = SGConfig::get('SG_STORAGE_FTP_CONNECTED');
7 $amazon = SGConfig::get('SG_STORAGE_AMAZON_CONNECTED');
8 $oneDrive = SGConfig::get('SG_ONE_DRIVE_REFRESH_TOKEN');
9
10 $ftpUsername = SGConfig::get('SG_FTP_CONNECTION_STRING');
11 $gdriveUsername = SGConfig::get('SG_GOOGLE_DRIVE_CONNECTION_STRING');
12 $dropboxUsername = SGConfig::get('SG_DROPBOX_CONNECTION_STRING');
13 $amazonInfo = SGConfig::get('SG_AMAZON_BUCKET');
14
15 $oneDriveInfo = SGConfig::get('SG_ONE_DRIVE_CONNECTION_STRING');
16 ?>
17 <?php require_once(SG_PUBLIC_INCLUDE_PATH.'sidebar.php'); ?>
18 <div id="sg-content-wrapper">
19 <div class="container-fluid">
20 <div class="row sg-cloud-container">
21 <div class="col-md-12">
22 <form class="form-horizontal">
23 <fieldset>
24 <legend><?php _backupGuardT('Cloud settings')?><?php echo backupGuardLoggedMessage(); ?></legend>
25 <?php if (SGBoot::isFeatureAvailable('SUBDIRECTORIES')): ?>
26 <div class="form-group form-inline">
27 <label class="col-md-5 sg-control-label">
28 <?php _backupGuardT('Destination folder')?>
29 </label>
30
31 <div class="col-md-7 pull-right text-right">
32 <input id="cloudFolder" name="cloudFolder" type="text" class="form-control input-md sg-backup-input" value="<?php echo esc_html(SGConfig::get('SG_STORAGE_BACKUPS_FOLDER_NAME'))?>">
33 <button type="button" id="sg-save-cloud-folder" class="btn btn-success pull-right"><?php _backupGuardT('Save');?></button>
34 </div>
35 </div>
36 <hr/>
37 <?php endif; ?>
38 <!-- Dropbox -->
39 <?php if (SGBoot::isFeatureAvailable('DROPBOX')): ?>
40 <div class="form-group">
41 <label class="col-md-8 sg-control-label">
42 <?php echo 'Dropbox' ?>
43 <?php if(!empty($dropboxUsername)): ?>
44 <br/>
45 <span class="text-muted sg-dropbox-user sg-helper-block"><?php echo $dropboxUsername;?></span>
46 <?php endif;?>
47 </label>
48 <div class="col-md-3 pull-right text-right">
49 <label class="sg-switch-container">
50 <input data-on-text="<?php _backupGuardT('ON')?>" data-off-text="<?php _backupGuardT('OFF')?>" data-storage="DROPBOX" data-remote="cloudDropbox" type="checkbox" class="sg-switch" <?php echo !empty($dropbox)?'checked="checked"':''?>>
51 </label>
52 </div>
53 </div>
54 <?php endif; ?>
55 <!-- Google Drive -->
56 <?php if (SGBoot::isFeatureAvailable('GOOGLE_DRIVE')): ?>
57 <div class="form-group">
58 <label class="col-md-8 sg-control-label">
59 <?php echo 'Google Drive' ?>
60 <?php if(!empty($gdriveUsername)): ?>
61 <br/>
62 <span class="text-muted sg-gdrive-user sg-helper-block"><?php echo $gdriveUsername;?></span>
63 <?php endif;?>
64 </label>
65 <div class="col-md-3 pull-right text-right">
66 <label class="sg-switch-container">
67 <input data-on-text="<?php _backupGuardT('ON')?>" data-off-text="<?php _backupGuardT('OFF')?>" data-storage="GOOGLE_DRIVE" data-remote="cloudGdrive" type="checkbox" class="sg-switch" <?php echo !empty($gdrive)?'checked="checked"':''?>>
68 </label>
69 </div>
70 </div>
71 <?php endif; ?>
72 <!-- FTP -->
73 <?php if (SGBoot::isFeatureAvailable('FTP')): ?>
74 <div class="form-group">
75 <label class="col-md-8 sg-control-label sg-user-info">
76 <?php echo 'FTP / SFTP' ?>
77 <?php if(!empty($ftpUsername)): ?>
78 <br/>
79 <span class="text-muted sg-ftp-user sg-helper-block"><?php echo $ftpUsername;?></span>
80 <?php endif;?>
81 </label>
82 <div class="col-md-3 pull-right text-right">
83 <label class="sg-switch-container">
84 <input type="checkbox" data-on-text="<?php _backupGuardT('ON')?>" data-off-text="<?php _backupGuardT('OFF')?>" data-storage="FTP" data-remote="cloudFtp" class="sg-switch" <?php echo !empty($ftp)?'checked="checked"':''?>>
85 <a id="ftp-settings" href="javascript:void(0)" class="hide" data-toggle="modal" data-modal-name="ftp-settings" data-remote="modalFtpSettings"><?php echo 'FTP '._backupGuardT('Settings', true) ?></a>
86 </label>
87 </div>
88 </div>
89 <?php endif; ?>
90 <!-- Amazon S3 -->
91 <?php if (SGBoot::isFeatureAvailable('AMAZON')): ?>
92 <div class="form-group">
93 <label class="col-md-8 sg-control-label">
94 <?php echo (backupGuardIsAccountGold()? 'Amazon ':'').'S3'?>
95 <?php if (!empty($amazonInfo)):?>
96 <br/>
97 <span class="text-muted sg-amazonr-user sg-helper-block"><?php echo $amazonInfo;?></span>
98 <?php endif;?>
99 </label>
100 <div class="col-md-3 pull-right text-right">
101 <label class="sg-switch-container">
102 <input type="checkbox" data-on-text="<?php _backupGuardT('ON')?>" data-off-text="<?php _backupGuardT('OFF')?>" data-storage="AMAZON" data-remote="cloudAmazon" class="sg-switch" <?php echo !empty($amazon)?'checked="checked"':''?>>
103 <a id="amazon-settings" href="javascript:void(0)" class="hide" data-toggle="modal" data-modal-name="amazon-settings" data-remote="modalAmazonSettings"><?php echo 'Amazon'._backupGuardT('Settings', true)?></a>
104 </label>
105 </div>
106 </div>
107 <?php endif; ?>
108 <!-- One Drive -->
109 <?php if (SGBoot::isFeatureAvailable('ONE_DRIVE')): ?>
110 <div class="form-group">
111 <label class="col-md-8 sg-control-label">
112 <?php echo 'One Drive' ?>
113 <?php if(!empty($oneDriveInfo)): ?>
114 <br/>
115 <span class="text-muted sg-gdrive-user sg-helper-block"><?php echo $oneDriveInfo;?></span>
116 <?php endif;?>
117 </label>
118 <div class="col-md-3 pull-right text-right">
119 <label class="sg-switch-container">
120 <input data-on-text="<?php _backupGuardT('ON')?>" data-off-text="<?php _backupGuardT('OFF')?>" data-storage="ONE_DRIVE" data-remote="cloudOneDrive" type="checkbox" class="sg-switch" <?php echo !empty($oneDrive)?'checked="checked"':''?>>
121 </label>
122 </div>
123 </div>
124 <?php endif; ?>
125 </fieldset>
126 </form>
127 </div>
128 </div>
129 </div>
130 <?php require_once(SG_PUBLIC_INCLUDE_PATH.'/footer.php'); ?>
131 </div>
132