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
checkRestoreCreation.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | require_once(dirname(__FILE__).'/../boot.php'); |
| 4 | require_once(SG_BACKUP_PATH.'SGBackup.php'); |
| 5 | |
| 6 | if (backupGuardIsAjax()) { |
| 7 | $timeout = 10; //in sec |
| 8 | while ($timeout != 0) { |
| 9 | sleep(1); |
| 10 | $timeout--; |
| 11 | $created = SGConfig::get('SG_RUNNING_ACTION', true); |
| 12 | |
| 13 | if ($created) { |
| 14 | $runningActions = SGBackup::getRunningActions(); |
| 15 | if ($runningActions) { |
| 16 | $actionId = $runningActions[0]['id']; |
| 17 | die(json_encode(array( |
| 18 | 'status' => 0, |
| 19 | 'external_enabled' => SGExternalRestore::isEnabled()?1:0, |
| 20 | 'external_url' => SGExternalRestore::getInstance()->getDestinationFileUrl() |
| 21 | ))); |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | die('{"status":1}'); |
| 27 | } |
| 28 |