PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 2.0.3
JetBackup – Backup, Restore & Migrate v2.0.3
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
cancelBackup.php 3 years ago cancelDownload.php 3 years ago checkBackupCreation.php 3 years ago checkFreeMigration.php 3 years ago checkPHPVersionCompatibility.php 3 years ago checkRestoreCreation.php 3 years ago chooseProfile.php 3 years ago cloudDropbox.php 3 years ago curlChecker.php 3 years ago deleteBackup.php 3 years ago downloadBackup.php 3 years ago getAction.php 3 years ago getBackupContent.php 3 years ago getRunningActions.php 3 years ago hideNotice.php 3 years ago importBackup.php 3 years ago isBgUserExists.php 3 years ago isFeatureAvailable.php 3 years ago manualBackup.php 3 years ago modalImport.php 3 years ago modalManualBackup.php 3 years ago modalManualRestore.php 3 years ago modalPrivacy.php 3 years ago modalReview.php 3 years ago modalTerms.php 3 years ago resetStatus.php 3 years ago restore.php 3 years ago reviewBannerActions.php 3 years ago schedule.php 3 years ago setReviewPopupState.php 3 years ago settings.php 3 years ago
modalImport.php
136 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 <tr>
34 <td class="file-select-radio"><input name="storage-radio" type="radio"
35 value="<?php echo SG_STORAGE_FTP ?>" <?php echo empty($ftp) ? 'disabled="disabled"' : '' ?>>
36 </td>
37 <td><span class="btn-xs sg-status-icon sg-status-31 active">&nbsp;</span></td>
38 <td><?php echo 'FTP' ?></td>
39 </tr>
40 <tr>
41 <td class="file-select-radio"><input name="storage-radio" type="radio"
42 value="<?php echo SG_STORAGE_DROPBOX ?>" <?php echo empty($dropbox) ? 'disabled="disabled"' : '' ?>>
43 </td>
44 <td><span class="btn-xs sg-status-icon sg-status-32 active">&nbsp;</span></td>
45 <td><?php echo 'Dropbox' ?></td>
46 </tr>
47 <tr>
48 <td class="file-select-radio"><input name="storage-radio" type="radio"
49 value="<?php echo SG_STORAGE_GOOGLE_DRIVE ?>" <?php echo empty($gdrive) ? 'disabled="disabled"' : '' ?>>
50 </td>
51 <td><span class="btn-xs sg-status-icon sg-status-33 active">&nbsp;</span></td>
52 <td><?php echo 'Google Drive' ?></td>
53 </tr>
54 <tr>
55 <td class="file-select-radio"><input name="storage-radio" type="radio"
56 value="<?php echo SG_STORAGE_AMAZON ?>" <?php echo empty($amazon) ? 'disabled="disabled"' : '' ?>>
57 </td>
58 <td><span class="btn-xs sg-status-icon sg-status-34 active">&nbsp;</span></td>
59 <td><?php echo (backupGuardIsAccountGold() ? 'Amazon ' : '') . 'S3' ?></td>
60 </tr>
61 <tr>
62 <td class="file-select-radio"><input name="storage-radio" type="radio"
63 value="<?php echo SG_STORAGE_ONE_DRIVE ?>" <?php echo empty($oneDrive) ? 'disabled="disabled"' : '' ?>>
64 </td>
65 <td><span class="btn-xs sg-status-icon sg-status-35 active">&nbsp;</span></td>
66 <td><?php echo 'One Drive' ?></td>
67 </tr>
68 <tr>
69 <td class="file-select-radio"><input name="storage-radio" type="radio"
70 value="<?php echo SG_STORAGE_P_CLOUD ?>" <?php echo empty($pCloud) ? 'disabled="disabled"' : '' ?>>
71 </td>
72 <td><span class="btn-xs sg-status-icon sg-status-37 active">&nbsp;</span></td>
73 <td><?php echo 'pCloud' ?></td>
74 </tr>
75 <tr>
76 <td class="file-select-radio"><input name="storage-radio" type="radio"
77 value="<?php echo SG_STORAGE_BOX ?>" <?php echo empty($box) ? 'disabled="disabled"' : '' ?>>
78 </td>
79 <td><span class="btn-xs sg-status-icon sg-status-38 active">&nbsp;</span></td>
80 <td><?php echo 'box.com' ?></td>
81 </tr>
82 <?php endif; ?>
83 </tbody>
84 </table>
85 </div>
86 </div>
87 <div class="col-md-12" id="modal-import-2">
88 <div class="form-group import-modal-popup-content">
89 <div class="col-md-9">
90 <input type="text" id="sg-import-file-name" class="form-control sg-backup-input"
91 placeholder="<?php _backupGuardT('SGBP file') ?>" readonly>
92 </div>
93 <div class="col-lg-3">
94 <span class="input-group-btn">
95 <span class="btn btn-primary btn-file backup-browse-btn">
96 <?php _backupGuardT('Browse') ?>&hellip; <input class="sg-backup-upload-input"
97 type="file" name="files[]"
98 data-url="<?php echo admin_url('admin-ajax.php') . "?action=backup_guard_importBackup&token=" . wp_create_nonce('backupGuardAjaxNonce') ?>"
99 data-max-file-size="<?php echo backupGuardConvertToBytes($maxUploadSize . 'B'); ?>"
100 accept=".sgbp">
101 </span>
102 </span>
103 </div>
104 </div>
105 </div>
106 <?php if (SGBoot::isFeatureAvailable('DOWNLOAD_FROM_CLOUD')) : ?>
107 <div class="col-md-12" id="modal-import-3">
108 <table class="table table-striped paginated sg-backup-table" id="sg-archive-list-table">
109 <thead>
110 <tr>
111 <th></th>
112 <th><?php _backupGuardT('Filename') ?></th>
113 <th><?php _backupGuardT('Size') ?></th>
114 <th><?php _backupGuardT('Date') ?></th>
115 </tr>
116 </thead>
117 <tbody>
118 </tbody>
119 </table>
120 </div>
121 <?php endif; ?>
122 <div class="clearfix"></div>
123 </div>
124 <div class="modal-footer">
125 <button type="button" class="pull-left btn btn-primary" id="switch-modal-import-pages-back"
126 onclick="sgBackup.previousPage()"><?php _backupGuardT('Back') ?></button>
127 <span class="modal-close-button" id="sg-close-modal-import"
128 data-dismiss="modal"><?php _backupGuardT("Close") ?></span>
129 <button type="button" class="btn btn-success" id="switch-modal-import-pages-next" data-remote="importBackup"
130 onclick="sgBackup.nextPage()"><?php _backupGuardT('Next') ?></button>
131 <button type="button" data-remote="importBackup" id="uploadSgbpFile"
132 class="btn btn-success"><?php _backupGuardT('Import') ?></button>
133 </div>
134 </div>
135 </div>
136