awake.php
6 years ago
cancelBackup.php
6 years ago
cancelDownload.php
6 years ago
checkBackupCreation.php
6 years ago
checkPHPVersionCompatibility.php
6 years ago
checkRestoreCreation.php
6 years ago
cloudDropbox.php
6 years ago
curlChecker.php
6 years ago
deleteBackup.php
6 years ago
dismissDiscountNotice.php
6 years ago
downloadBackup.php
6 years ago
getAction.php
6 years ago
getBackupContent.php
6 years ago
getRunningActions.php
6 years ago
hideNotice.php
6 years ago
importBackup.php
6 years ago
isFeatureAvailable.php
6 years ago
manualBackup.php
6 years ago
modalImport.php
6 years ago
modalManualBackup.php
6 years ago
modalManualRestore.php
6 years ago
modalPrivacy.php
6 years ago
modalReview.php
6 years ago
modalTerms.php
6 years ago
resetStatus.php
6 years ago
restore.php
6 years ago
reviewBannerActions.php
6 years ago
schedule.php
6 years ago
setReviewPopupState.php
6 years ago
setUserInfoVerificationPopupState.php
6 years ago
settings.php
6 years ago
storeSubscriberInfo.php
6 years ago
storeSurveyResult.php
6 years ago
importBackup.php
18 lines
| 1 | <?php |
| 2 | require_once(dirname(__FILE__).'/../boot.php'); |
| 3 | require_once(SG_BACKUP_PATH.'SGBackup.php'); |
| 4 | require_once(SG_LIB_PATH.'SGUploadHandler.php'); |
| 5 | |
| 6 | $error = array(); |
| 7 | $success = array('success'=>1); |
| 8 | |
| 9 | try { |
| 10 | $sgUploadHandler = new BackupGuard\Upload\Handler($_FILES); |
| 11 | } |
| 12 | catch (SGException $exception) { |
| 13 | array_push($error, $exception->getMessage()); |
| 14 | die(json_encode($error)); |
| 15 | } |
| 16 | |
| 17 | die(); |
| 18 |