⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
softaculous
/
lib
/
aefer
/
View File Name :
check_backup_exists.php
<?php error_reporting(E_ALL); function softdie($txt){ global $dbexist, $datadir, $wwwdir, $ins; global $result; $array = array(); $array['settings'] = $GLOBALS['settings']; $array['result'] = $txt; // Was there an error ? if(!empty($GLOBALS['error'])){ $array['error'] = $GLOBALS['error']; } echo '<aefer>'.base64_encode(serialize($array)).'</aefer>';die(); } //@unlink(__FILE__); // More has to be done here ! global $user, $globals, $theme, $softpanel, $settings, $iscripts, $catwise, $error; // The data $data = unserialize(base64_decode('[[[data]]]')); $user = $data['user']; $basename= $data['basename']; $user= $data['user']; $globals = $data['globals']; $_insid = $data['_insid']; $backupinfo = $data['backupinfo']; $ins = $data['ins']; $settings = $data['settings']; // Is the backup file there ? if(!file_exists($backupinfo['path'].'/'.$backupinfo['name'].'.tar.gz')){ $error[] = 'Cannot find the Backup'; softdie('nobackup'); } if(empty($ins)){ //r_print($tmp); $ins = $user['ins'][$backupinfo['insid']] = $backupinfo; $soft = $ins['sid']; //r_print($ins); if(!empty($ins['backup_db'])){ $create_db = true; } } // If the installation is DELETED and I have to restore then the backup INFO should be there AND the backup file as well if(!is_array($user['ins'][$_insid[1]])){ $error[] = 'Installation could not be found in Remote Softaculous'; softdie('noinstinfo'); } $dbexist = (!empty($backupinfo['backup_db']) ? 'softsql.sql' : ''); $datadir = (!empty($backupinfo['backup_datadir']) ? true : ''); $wwwdir = (!empty($backupinfo['backup_wwwdir']) ? true : ''); softdie('DONE');