Phase 3: Update remaining code references (classes, constants, functions)

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-08 15:53:33 +00:00
parent 4b771d498f
commit d692485a08
188 changed files with 338 additions and 338 deletions

View file

@ -28,7 +28,7 @@ $db = createDatabaseConnection($db_type, $db_host, $db_user, $db_pass, $db_name,
include_once("includes/lang.php");
if (!$db instanceof GSPDatabase) {
ogpLang();
gspLang();
die(get_lang('no_db_connection'));
}
@ -44,7 +44,7 @@ $loggedInUserInfo = $db->getUserById($_SESSION['user_id']);
// Get settings
$settings = $db->getSettings();
@$GLOBALS['panel_language'] = $settings['panel_language'];
ogpLang();
gspLang();
function ping_host($host, $timeout = 5) {
if (function_exists('exec')) {
@ -85,7 +85,7 @@ $servers = $db->getRemoteServers();
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Server Status - OGP</title>
<title>Server Status - GSP</title>
<style>
body {
font-family: Arial, sans-serif;
@ -210,7 +210,7 @@ $servers = $db->getRemoteServers();
$hostname = get_hostname($server_ip);
// Check server status
$remote = new OGPRemoteLibrary($server['agent_ip'], $server['agent_port'],
$remote = new GSPRemoteLibrary($server['agent_ip'], $server['agent_port'],
$server['encryption_key'], $server['timeout']);
$status = $remote->status_chk();
$is_online = ($status === 1);