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
cloudDropbox.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | require_once(dirname(__FILE__) . '/../boot.php'); |
| 4 | require_once(SG_STORAGE_PATH . 'SGDropboxStorage.php'); |
| 5 | |
| 6 | if (backupGuardIsAjax()) { |
| 7 | SGConfig::set('SG_DROPBOX_ACCESS_TOKEN', ''); |
| 8 | SGConfig::set('SG_DROPBOX_CONNECTION_STRING', ''); |
| 9 | SGConfig::set('SG_DROPBOX_REFRESH_TOKEN', ''); |
| 10 | |
| 11 | if (isset($_POST['cancel'])) { |
| 12 | die('{"success":1}'); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | $dp = new SGDropboxStorage(); |
| 17 | try { |
| 18 | $dp->connect(); |
| 19 | } catch (Exception $e) { |
| 20 | header("Location: " . SG_PUBLIC_CLOUD_URL); |
| 21 | } |
| 22 | |
| 23 | if ($dp->isConnected()) { |
| 24 | header("Location: " . SG_PUBLIC_CLOUD_URL); |
| 25 | exit(); |
| 26 | } |
| 27 |