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