PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 1.5.4
JetBackup – Backup, Restore & Migrate v1.5.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 / checkFreeMigration.php
backup / public / ajax Last commit date
awake.php 5 years ago bgLogin.php 5 years ago cancelBackup.php 5 years ago cancelDownload.php 5 years ago checkBackupCreation.php 5 years ago checkFreeMigration.php 5 years ago checkPHPVersionCompatibility.php 5 years ago checkRestoreCreation.php 5 years ago chooseProfile.php 5 years ago cloudDropbox.php 5 years ago createCloudUser.php 5 years ago curlChecker.php 5 years ago deleteBackup.php 5 years ago dismissDiscountNotice.php 5 years ago downloadBackup.php 5 years ago getAction.php 5 years ago getBackupContent.php 5 years ago getRunningActions.php 5 years ago hideNotice.php 5 years ago importBackup.php 5 years ago isBgUserExists.php 5 years ago isFeatureAvailable.php 5 years ago manualBackup.php 5 years ago modalBackupGuardDetails.php 5 years ago modalImport.php 5 years ago modalManualBackup.php 5 years ago modalManualRestore.php 5 years ago modalPrivacy.php 5 years ago modalReview.php 5 years ago modalTerms.php 5 years ago resetStatus.php 5 years ago restore.php 5 years ago reviewBannerActions.php 5 years ago schedule.php 5 years ago sendUsageStatus.php 5 years ago setReviewPopupState.php 5 years ago setUserInfoVerificationPopupState.php 5 years ago settings.php 5 years ago storeSubscriberInfo.php 5 years ago storeSurveyResult.php 5 years ago
checkFreeMigration.php
25 lines
1 <?php
2 require_once(dirname(__FILE__).'/../boot.php');
3 require_once(SG_LIB_PATH.'SGArchive.php');
4 $pluginCapabilities = backupGuardGetCapabilities();
5
6 if ($pluginCapabilities != BACKUP_GUARD_CAPABILITIES_FREE) {
7 return '';
8 }
9 $backupName = $_POST['bname'];
10
11 $path = SG_BACKUP_DIRECTORY.$backupName.'/'.$backupName.'.sgbp';
12
13 $sgArchive = new SGArchive($path, 'r');
14 $headers = $sgArchive->getArchiveHeaders();
15
16 $siteUrl = $headers['siteUrl'];
17 $dbPrefix = $headers['dbPrefix'];
18
19 if ($siteUrl != SG_SITE_URL) {
20 printf("The source url (%s) doesn’t match the current url (%s). This is considered as migration and it is not available in the free plugin. <a href='%s' target='_blank'>Upgrade now</a>", $siteUrl, SG_SITE_URL, BG_UPGRADE_URL);
21 }
22 else if ($dbPrefix != SG_ENV_DB_PREFIX) {
23 printf("The source db prefix (%s) doesn’t match the current db prefix (%s). This is considered as migration and it is not available in the free plugin.
24 You can change the current db prefix manually or upgrade to one of our PRO versions. <a href='%s' target='_blank'>Upgrade now</a>", $dbPrefix, SG_ENV_DB_PREFIX, BG_UPGRADE_URL);
25 }