PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 1.5.4
JetBackup – Backup, Restore & Migrate v1.5.4
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 / ajax / modalImport.php
backup / public / ajax Last commit date
awake.php 5 years ago bgLogin.php 5 years ago cancelBackup.php 5 years ago cancelDownload.php 5 years ago checkBackupCreation.php 5 years ago checkFreeMigration.php 5 years ago checkPHPVersionCompatibility.php 5 years ago checkRestoreCreation.php 5 years ago chooseProfile.php 5 years ago cloudDropbox.php 5 years ago createCloudUser.php 5 years ago curlChecker.php 5 years ago deleteBackup.php 5 years ago dismissDiscountNotice.php 5 years ago downloadBackup.php 5 years ago getAction.php 5 years ago getBackupContent.php 5 years ago getRunningActions.php 5 years ago hideNotice.php 5 years ago importBackup.php 5 years ago isBgUserExists.php 5 years ago isFeatureAvailable.php 5 years ago manualBackup.php 5 years ago modalBackupGuardDetails.php 5 years ago modalImport.php 5 years ago modalManualBackup.php 5 years ago modalManualRestore.php 5 years ago modalPrivacy.php 5 years ago modalReview.php 5 years ago modalTerms.php 5 years ago resetStatus.php 5 years ago restore.php 5 years ago reviewBannerActions.php 5 years ago schedule.php 5 years ago sendUsageStatus.php 5 years ago setReviewPopupState.php 5 years ago setUserInfoVerificationPopupState.php 5 years ago settings.php 5 years ago storeSubscriberInfo.php 5 years ago storeSurveyResult.php 5 years ago
modalImport.php
106 lines
1 <?php
2 require_once(dirname(__FILE__).'/../boot.php');
3 $backupDirectory = SGConfig::get('SG_BACKUP_DIRECTORY');
4 $maxUploadSize = ini_get('upload_max_filesize');
5 $dropbox = SGConfig::get('SG_DROPBOX_ACCESS_TOKEN');
6 $gdrive = SGConfig::get('SG_GOOGLE_DRIVE_REFRESH_TOKEN');
7 $ftp = SGConfig::get('SG_STORAGE_FTP_CONNECTED');
8 $amazon = SGConfig::get('SG_AMAZON_KEY');
9 $oneDrive = SGConfig::get('SG_ONE_DRIVE_REFRESH_TOKEN');
10 $backupGuard = SGConfig::get('SG_BACKUPGUARD_UPLOAD_ACCESS_TOKEN');
11 ?>
12 <div class="modal-dialog">
13 <div class="modal-content">
14 <div class="modal-header">
15 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
16 <h4 class="modal-title"><?php _backupGuardT('Import from')?></h4>
17 </div>
18 <div class="modal-body sg-modal-body" id="sg-modal-inport-from">
19 <div class="col-md-12" id="modal-import-1">
20 <div class="form-group">
21 <table class="table table-striped paginated sg-backup-table">
22 <tbody>
23 <tr>
24 <td class="file-select-radio"><input name="storage-radio" type="radio" value="local-pc" checked></td>
25 <td></td>
26 <td><?php _backupGuardT('Local PC')?></td>
27 </tr>
28 <?php if (SGBoot::isFeatureAvailable('DOWNLOAD_FROM_CLOUD')): ?>
29 <?php if (SGBoot::isFeatureAvailable('BACKUP_GUARD') && SG_SHOW_BACKUPGUARD_CLOUD): ?>
30 <tr>
31 <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_BACKUP_GUARD?>" <?php echo empty($backupGuard)?'disabled="disabled"':''?>></td>
32 <td><span class="btn-xs sg-status-icon sg-status-36 active">&nbsp;</span></td>
33 <td><?php echo 'BackupGuard' ?></td>
34 </tr>
35 <?php endif; ?>
36 <tr>
37 <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_FTP?>" <?php echo empty($ftp)?'disabled="disabled"':''?>></td>
38 <td><span class="btn-xs sg-status-icon sg-status-31 active">&nbsp;</span></td>
39 <td><?php echo 'FTP' ?></td>
40 </tr>
41 <tr>
42 <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_DROPBOX?>" <?php echo empty($dropbox)?'disabled="disabled"':''?>></td>
43 <td><span class="btn-xs sg-status-icon sg-status-32 active">&nbsp;</span></td>
44 <td><?php echo 'Dropbox' ?></td>
45 </tr>
46 <tr>
47 <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_GOOGLE_DRIVE?>" <?php echo empty($gdrive)?'disabled="disabled"':''?>></td>
48 <td><span class="btn-xs sg-status-icon sg-status-33 active">&nbsp;</span></td>
49 <td><?php echo 'Google Drive' ?></td>
50 </tr>
51 <tr>
52 <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_AMAZON?>" <?php echo empty($amazon)?'disabled="disabled"':''?>></td>
53 <td><span class="btn-xs sg-status-icon sg-status-34 active">&nbsp;</span></td>
54 <td><?php echo (backupGuardIsAccountGold()? 'Amazon ':'').'S3' ?></td>
55 </tr>
56 <tr>
57 <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_ONE_DRIVE?>" <?php echo empty($oneDrive)?'disabled="disabled"':''?>></td>
58 <td><span class="btn-xs sg-status-icon sg-status-35 active">&nbsp;</span></td>
59 <td><?php echo 'One Drive' ?></td>
60 </tr>
61 <?php endif; ?>
62 </tbody>
63 </table>
64 </div>
65 </div>
66 <div class="col-md-12" id="modal-import-2">
67 <div class="form-group import-modal-popup-content">
68 <div class="col-md-9">
69 <input type="text" id="sg-import-file-name" class="form-control sg-backup-input" placeholder="<?php _backupGuardT('SGBP file')?>" readonly>
70 </div>
71 <div class="col-lg-3">
72 <span class="input-group-btn">
73 <span class="btn btn-primary btn-file backup-browse-btn">
74 <?php _backupGuardT('Browse')?>&hellip; <input class="sg-backup-upload-input" type="file" name="files[]" data-url="<?php echo admin_url('admin-ajax.php')."?action=backup_guard_importBackup&token=".wp_create_nonce('backupGuardAjaxNonce') ?>" data-max-file-size="<?php echo backupGuardConvertToBytes($maxUploadSize.'B'); ?>">
75 </span>
76 </span>
77 </div>
78 </div>
79 </div>
80 <?php if (SGBoot::isFeatureAvailable('DOWNLOAD_FROM_CLOUD')): ?>
81 <div class="col-md-12" id="modal-import-3">
82 <table class="table table-striped paginated sg-backup-table" id="sg-archive-list-table">
83 <thead>
84 <tr>
85 <th></th>
86 <th><?php _backupGuardT('Filename')?></th>
87 <th><?php _backupGuardT('Size')?></th>
88 <th><?php _backupGuardT('Date')?></th>
89 </tr>
90 </thead>
91 <tbody>
92 </tbody>
93 </table>
94 </div>
95 <?php endif; ?>
96 <div class="clearfix"></div>
97 </div>
98 <div class="modal-footer">
99 <button type="button" class="pull-left btn btn-primary" id="switch-modal-import-pages-back" onclick="sgBackup.previousPage()"><?php _backupGuardT('Back')?></button>
100 <span class="modal-close-button" id="sg-close-modal-import" data-dismiss="modal"><?php _backupGuardT("Close")?></span>
101 <button type="button" class="btn btn-success" id="switch-modal-import-pages-next" data-remote="importBackup" onclick="sgBackup.nextPage()"><?php _backupGuardT('Next')?></button>
102 <button type="button" data-remote="importBackup" id="uploadSgbpFile" class="btn btn-success"><?php _backupGuardT('Import')?></button>
103 </div>
104 </div>
105 </div>
106