[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: modalImport.php
<?php require_once(dirname(__FILE__).'/../boot.php'); $backupDirectory = SGConfig::get('SG_BACKUP_DIRECTORY'); $maxUploadSize = ini_get('upload_max_filesize'); $dropbox = SGConfig::get('SG_DROPBOX_ACCESS_TOKEN'); $gdrive = SGConfig::get('SG_GOOGLE_DRIVE_REFRESH_TOKEN'); $ftp = SGConfig::get('SG_STORAGE_FTP_CONNECTED'); $amazon = SGConfig::get('SG_AMAZON_KEY'); $oneDrive = SGConfig::get('SG_ONE_DRIVE_REFRESH_TOKEN'); $pCloud = SGConfig::get('SG_STORAGE_P_CLOUD'); $box = SGConfig::get('SG_STORAGE_BOX'); $backupGuard = SGConfig::get('SG_BACKUPGUARD_UPLOAD_ACCESS_TOKEN'); ?> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"><?php _backupGuardT('Import from')?></h4> </div> <div class="modal-body sg-modal-body" id="sg-modal-inport-from"> <div class="col-md-12" id="modal-import-1"> <div class="form-group"> <table class="table table-striped paginated sg-backup-table"> <tbody> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="local-pc" checked></td> <td></td> <td><?php _backupGuardT('Local PC')?></td> </tr> <?php if (SGBoot::isFeatureAvailable('DOWNLOAD_FROM_CLOUD')): ?> <?php if (SGBoot::isFeatureAvailable('BACKUP_GUARD') && SG_SHOW_BACKUPGUARD_CLOUD): ?> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_BACKUP_GUARD?>" <?php echo empty($backupGuard)?'disabled="disabled"':''?>></td> <td><span class="btn-xs sg-status-icon sg-status-36 active"> </span></td> <td><?php echo 'BackupGuard' ?></td> </tr> <?php endif; ?> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_FTP?>" <?php echo empty($ftp)?'disabled="disabled"':''?>></td> <td><span class="btn-xs sg-status-icon sg-status-31 active"> </span></td> <td><?php echo 'FTP' ?></td> </tr> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_DROPBOX?>" <?php echo empty($dropbox)?'disabled="disabled"':''?>></td> <td><span class="btn-xs sg-status-icon sg-status-32 active"> </span></td> <td><?php echo 'Dropbox' ?></td> </tr> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_GOOGLE_DRIVE?>" <?php echo empty($gdrive)?'disabled="disabled"':''?>></td> <td><span class="btn-xs sg-status-icon sg-status-33 active"> </span></td> <td><?php echo 'Google Drive' ?></td> </tr> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_AMAZON?>" <?php echo empty($amazon)?'disabled="disabled"':''?>></td> <td><span class="btn-xs sg-status-icon sg-status-34 active"> </span></td> <td><?php echo (backupGuardIsAccountGold()? 'Amazon ':'').'S3' ?></td> </tr> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_ONE_DRIVE?>" <?php echo empty($oneDrive)?'disabled="disabled"':''?>></td> <td><span class="btn-xs sg-status-icon sg-status-35 active"> </span></td> <td><?php echo 'One Drive' ?></td> </tr> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_P_CLOUD?>" <?php echo empty($pCloud)?'disabled="disabled"':''?>></td> <td><span class="btn-xs sg-status-icon sg-status-37 active"> </span></td> <td><?php echo 'pCloud' ?></td> </tr> <tr> <td class="file-select-radio"><input name="storage-radio" type="radio" value="<?php echo SG_STORAGE_BOX?>" <?php echo empty($box)?'disabled="disabled"':''?>></td> <td><span class="btn-xs sg-status-icon sg-status-38 active"> </span></td> <td><?php echo 'box.com' ?></td> </tr> <?php endif; ?> </tbody> </table> </div> </div> <div class="col-md-12" id="modal-import-2"> <div class="form-group import-modal-popup-content"> <div class="col-md-9"> <input type="text" id="sg-import-file-name" class="form-control sg-backup-input" placeholder="<?php _backupGuardT('SGBP file')?>" readonly> </div> <div class="col-lg-3"> <span class="input-group-btn"> <span class="btn btn-primary btn-file backup-browse-btn"> <?php _backupGuardT('Browse')?>… <input class="sg-backup-upload-input" type="file" name="files[]" data-url="<?php echo admin_url('admin-ajax.php')."?action=backup_guard_importBackup&token=".wp_create_nonce('backupGuardAjaxNonce') ?>" data-max-file-size="<?php echo backupGuardConvertToBytes($maxUploadSize.'B'); ?>" accept=".sgbp"> </span> </span> </div> </div> </div> <?php if (SGBoot::isFeatureAvailable('DOWNLOAD_FROM_CLOUD')): ?> <div class="col-md-12" id="modal-import-3"> <table class="table table-striped paginated sg-backup-table" id="sg-archive-list-table"> <thead> <tr> <th></th> <th><?php _backupGuardT('Filename')?></th> <th><?php _backupGuardT('Size')?></th> <th><?php _backupGuardT('Date')?></th> </tr> </thead> <tbody> </tbody> </table> </div> <?php endif; ?> <div class="clearfix"></div> </div> <div class="modal-footer"> <button type="button" class="pull-left btn btn-primary" id="switch-modal-import-pages-back" onclick="sgBackup.previousPage()"><?php _backupGuardT('Back')?></button> <span class="modal-close-button" id="sg-close-modal-import" data-dismiss="modal"><?php _backupGuardT("Close")?></span> <button type="button" class="btn btn-success" id="switch-modal-import-pages-next" data-remote="importBackup" onclick="sgBackup.nextPage()"><?php _backupGuardT('Next')?></button> <button type="button" data-remote="importBackup" id="uploadSgbpFile" class="btn btn-success"><?php _backupGuardT('Import')?></button> </div> </div> </div>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium56.web-hosting.com
Server IP: 198.54.119.70
PHP Version: 8.2.30
Server Software: LiteSpeed
System: Linux premium56.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 70.79 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: bkunreyz
User ID (UID): 830
Group ID (GID): 826
Script Owner UID: 830
Current Dir Owner: 830