PATH:
home
/
bkunreyz
/
bcmuslimgolfers.com
/
wp-content
/
plugins
/
backup
/
public
/
ajax
<?php header('Content-Type: application/json'); require_once(dirname(__FILE__).'/../boot.php'); require_once(SG_LIB_PATH.'SGArchive.php'); require_once(SG_BACKUP_PATH.'SGBackupFiles.php'); $backupName = $_GET['backupName']; $path = isset($_GET["path"])? $_GET["path"] : "wp-content/"; $parent = $path; $data = array(); $disabled = !SGBoot::isFeatureAvailable('SLECTIVE_RESTORE'); if ($path == "#") { $parentNode = array(); $parentNode["id"] = "/"; $parentNode["parent"] = "#"; $parentNode["text"] = "/"; $parentNode["type"] = "none"; $parentNode["children"] = true; $parentNode["state"] = array ("selected"=>true); array_push($data,$parentNode); } else { if ($path == "/") { $path = ""; } else { $path .= '/'; } $backupPath = SG_BACKUP_DIRECTORY.$backupName; $backupPath= $backupPath.'/'.$backupName.'.sgbp'; $backupFiles = new SGBackupFiles(); $archive = new SGArchive($backupPath,'r'); $archive->setDelegate($backupFiles); $headers = $archive->getArchiveHeaders(); $filesList = $archive->getFilesList(); $tree = $archive->getTreefromList($filesList, $path); foreach ($tree as $node) { $el = array(); $el["id"] = $path.$node->name; $el["parent"] = $parent; $el["text"] = $node->name; $el["type"] = $node->type; if ($node->type == "folder") { $el["children"] = true; } array_push($data, $el); } } echo json_encode($data);
[-] cancelDownload.php
[edit]
[-] manualBackup.php
[edit]
[-] setUserInfoVerificationPopupState.php
[edit]
[-] chooseProfile.php
[edit]
[-] modalManualBackup.php
[edit]
[-] modalTerms.php
[edit]
[-] modalManualRestore.php
[edit]
[-] storeSurveyResult.php
[edit]
[-] checkRestoreCreation.php
[edit]
[-] checkBackupCreation.php
[edit]
[-] hideNotice.php
[edit]
[-] setReviewPopupState.php
[edit]
[-] bgLogin.php
[edit]
[-] importBackup.php
[edit]
[-] schedule.php
[edit]
[-] deleteBackup.php
[edit]
[-] storeSubscriberInfo.php
[edit]
[-] cancelBackup.php
[edit]
[-] sendUsageStatus.php
[edit]
[-] getBackupContent.php
[edit]
[-] getRunningActions.php
[edit]
[+]
..
[-] isBgUserExists.php
[edit]
[-] createCloudUser.php
[edit]
[-] resetStatus.php
[edit]
[-] curlChecker.php
[edit]
[-] cloudDropbox.php
[edit]
[-] downloadBackup.php
[edit]
[-] reviewBannerActions.php
[edit]
[-] restore.php
[edit]
[-] modalImport.php
[edit]
[-] settings.php
[edit]
[-] modalReview.php
[edit]
[-] modalBackupGuardDetails.php
[edit]
[-] isFeatureAvailable.php
[edit]
[-] modalPrivacy.php
[edit]
[-] checkFreeMigration.php
[edit]
[-] dismissDiscountNotice.php
[edit]
[-] getAction.php
[edit]
[-] awake.php
[edit]
[-] checkPHPVersionCompatibility.php
[edit]