From d692485a081c9e56d6444bdf1ee626221e1896e3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:53:33 +0000 Subject: [PATCH] Phase 3: Update remaining code references (classes, constants, functions) Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- css/global.css | 2 +- gsp_api.php | 16 +++++++-------- home.php | 4 ++-- includes/api_functions.php | 2 +- includes/database_mysqli.php | 2 +- includes/form_table_class.php | 4 ++-- includes/functions.php | 2 +- includes/helpers.php | 6 +++--- includes/lang.php | 18 ++++++++--------- includes/lib_remote.php | 6 +++--- includes/navig.php | 8 ++++---- includes/view.php | 6 +++--- index.php | 4 ++-- modules/TS3Admin/TS3Admin.php | 2 +- .../%%F7^F7F^F7F34188%%header.tpl.php | 20 +++++++++---------- modules/addonsmanager/addons_installer.php | 4 ++-- modules/addonsmanager/addons_manager.php | 2 +- modules/addonsmanager/user_addons.php | 2 +- modules/administration/administration.php | 2 +- modules/administration/backupdwl.php | 2 +- modules/administration/banlist.php | 2 +- modules/administration/iframe.php | 2 +- modules/administration/watch_logger.php | 2 +- modules/backup-restore/backup-restore.php | 2 +- modules/billing/add_to_cart.php | 2 +- modules/billing/bak/add_to_cart.php | 2 +- modules/billing/bak/bill.php | 2 +- modules/billing/bak/coupon.php | 2 +- modules/billing/bak/coupons.php | 2 +- modules/billing/bak/create_servers.php | 6 +++--- modules/billing/bak/cron-shop.php | 4 ++-- modules/billing/bak/orders.php | 2 +- modules/billing/bak/paid.php | 2 +- modules/billing/bak/paypal.php | 2 +- modules/billing/bak/settings.php | 2 +- modules/billing/bak/shop.php | 2 +- modules/billing/bill.php | 2 +- modules/billing/cart.php | 2 +- modules/billing/coupon.php | 2 +- modules/billing/coupons.php | 2 +- modules/billing/create_servers.php | 4 ++-- modules/billing/cron-shop.php | 4 ++-- modules/billing/paid.php | 2 +- modules/billing/paypal.php | 2 +- modules/billing/services.php | 2 +- modules/billing/settings.php | 2 +- modules/circular/circular.php | 2 +- modules/circular/show_circular.php | 2 +- modules/config_games/cli-params.php | 2 +- modules/config_games/config_servers.php | 2 +- modules/config_games/create.php | 2 +- modules/config_games/set_mods.php | 2 +- modules/config_games/set_params.php | 2 +- modules/config_games/xml_config_creator.php | 2 +- modules/cron/cron.php | 10 +++++----- modules/cron/events.php | 4 ++-- modules/cron/shared_cron_functions.php | 8 ++++---- modules/cron/thetime.php | 4 ++-- modules/cron/user_cron.php | 8 ++++---- modules/dashboard/dashboard.php | 6 +++--- modules/dashboard/query_ref.php | 2 +- modules/dashboard/updateWidgets.php | 2 +- modules/dsi/dsi_admin.php | 2 +- modules/dsi/dsi_list.php | 6 +++--- modules/dsi/dsi_user.php | 2 +- modules/dsi/image.php | 2 +- modules/editconfigfiles/configFileList.php | 2 +- modules/editconfigfiles/modify.php | 4 ++-- modules/faq/faq.php | 2 +- modules/fast_download/admin_fastdl.php | 8 ++++---- modules/fast_download/user_fastd.php | 4 ++-- modules/ftp/ftp.php | 2 +- modules/ftp/ftp_admin.php | 10 +++++----- modules/gamemanager/cfg_text_replace.php | 2 +- modules/gamemanager/get_server_log.php | 4 ++-- .../gamemanager/home_handling_functions.php | 6 +++--- modules/gamemanager/log.php | 6 +++--- modules/gamemanager/mini_start.php | 4 ++-- modules/gamemanager/rcon_presets.php | 2 +- modules/gamemanager/ref_servermonitor.php | 4 ++-- modules/gamemanager/restart_server.php | 8 ++++---- modules/gamemanager/rsync_install.php | 8 ++++---- modules/gamemanager/server_monitor.php | 6 +++--- modules/gamemanager/start_server.php | 8 ++++---- modules/gamemanager/stop_server.php | 4 ++-- modules/gamemanager/update_server.php | 8 ++++---- modules/gamemanager/update_server_manual.php | 4 ++-- modules/gamemanager/upload_map_image.php | 2 +- modules/gamemanager/view_server_log.php | 8 ++++---- modules/lgsl_with_img_mod/feed.php | 2 +- modules/lgsl_with_img_mod/image.php | 2 +- modules/lgsl_with_img_mod/lgsl.php | 2 +- modules/lgsl_with_img_mod/lgsl_admin.php | 2 +- modules/litefm/fm_dir.php | 2 +- modules/litefm/fm_read.php | 4 ++-- modules/litefm/fm_write.php | 4 ++-- modules/litefm/get_file.php | 4 ++-- modules/litefm/settings.php | 2 +- modules/lostpwd/lostpwd.php | 2 +- modules/modulemanager/add_module.php | 2 +- modules/modulemanager/delete_module.php | 2 +- modules/modulemanager/modulemanager.php | 2 +- modules/modulemanager/update_modules.php | 2 +- modules/mysql/edit_server.php | 12 +++++------ modules/mysql/get_dump.php | 4 ++-- modules/mysql/servers.php | 4 ++-- modules/mysql/user_db.php | 6 +++--- modules/news/admin.php | 2 +- modules/news/index.php | 2 +- modules/rcon/rcon.php | 8 ++++---- modules/register/register-exec.php | 2 +- modules/register/register.php | 2 +- modules/server/add_server.php | 4 ++-- modules/server/arrange_ports.php | 4 ++-- modules/server/edit_server.php | 6 +++--- modules/server/firewall.php | 4 ++-- modules/server/mon_stats.php | 4 ++-- modules/server/reboot.php | 4 ++-- modules/server/restart.php | 4 ++-- modules/server/servers.php | 4 ++-- modules/server/view_log.php | 4 ++-- modules/settings/api_hosts.php | 2 +- modules/settings/settings.php | 2 +- modules/settings/themes.php | 2 +- modules/status/include/cpu.php | 2 +- modules/status/include/hdd.php | 2 +- modules/status/include/os.php | 2 +- modules/status/include/ram.php | 2 +- modules/status/include/task.php | 2 +- modules/status/include/uptime.php | 2 +- modules/status/status.php | 2 +- modules/steam_workshop/main.php | 4 ++-- modules/steam_workshop/uninstall.php | 4 ++-- modules/steam_workshop/workshop_admin.php | 2 +- modules/subusers/add_subuser-exec.php | 2 +- modules/subusers/add_subuser.php | 2 +- modules/subusers/del_subuser.php | 2 +- modules/subusers/submanage.php | 2 +- modules/support/support.php | 2 +- modules/tickets/downloadAttachment.php | 2 +- modules/tickets/notificationCount.php | 2 +- modules/tickets/rating.php | 2 +- modules/tickets/submitTicket.php | 2 +- modules/tickets/supportTickets.php | 2 +- modules/tickets/ticketSettings.php | 2 +- modules/tickets/viewTicket.php | 2 +- modules/tshock/bans.php | 2 +- modules/tshock/create_token.php | 2 +- modules/tshock/server.php | 2 +- modules/tshock/users.php | 2 +- modules/update/blacklist.php | 2 +- modules/update/post_update.php | 2 +- modules/update/update.php | 2 +- modules/update/updating.php | 4 ++-- modules/user_admin/add_group.php | 2 +- modules/user_admin/add_to_group.php | 2 +- modules/user_admin/add_user.php | 2 +- modules/user_admin/del_from_group.php | 2 +- modules/user_admin/del_group.php | 2 +- modules/user_admin/del_user.php | 2 +- modules/user_admin/edit_user.php | 2 +- modules/user_admin/show_groups.php | 2 +- modules/user_admin/show_users.php | 2 +- modules/user_games/add_home.php | 4 ++-- modules/user_games/assign_home.php | 2 +- modules/user_games/browser.php | 4 ++-- modules/user_games/check_expire.php | 2 +- modules/user_games/clone_home.php | 4 ++-- modules/user_games/custom_fields.php | 4 ++-- modules/user_games/del_home.php | 4 ++-- modules/user_games/edit_home.php | 4 ++-- modules/user_games/get_size.php | 6 +++--- modules/user_games/home_mods.php | 4 ++-- modules/user_games/install_cmds.php | 2 +- modules/user_games/show_homes.php | 2 +- modules/util/addadmin_helper.php | 4 ++-- modules/util/agents.php | 4 ++-- modules/util/amx_addadmin_helper.php | 4 ++-- modules/util/network_tools.php | 4 ++-- modules/util/steamid_converter.php | 2 +- modules/util/util.php | 2 +- protocol/TeamSpeak3/TS3Monitor.php | 2 +- protocol/lgsl/lgsl_protocol.php | 10 +++++----- server_status.php | 8 ++++---- themes/AdminLTE/dist/js/main.js | 16 +++++++-------- themes/AdminLTE/dist/php/theme.class.php | 6 +++--- themes/MasterControlProgram/css/main.css | 2 +- themes/SimpleBootstrap/css/main.css | 2 +- 188 files changed, 338 insertions(+), 338 deletions(-) diff --git a/css/global.css b/css/global.css index 023c8f35..469f6a23 100644 --- a/css/global.css +++ b/css/global.css @@ -23,7 +23,7 @@ span.versionInfo{ display: inline-block; } -div.OGPVersionArea{ +div.GSPVersionArea{ width: 100%; position: relative; } diff --git a/gsp_api.php b/gsp_api.php index c398cbc5..2c63e9f2 100644 --- a/gsp_api.php +++ b/gsp_api.php @@ -281,7 +281,7 @@ function api_server() { $remote_server_id = $_POST['remote_server_id']; $remote_server = $db->getRemoteServer($remote_server_id); - $remote = new OGPRemoteLibrary($remote_server['agent_ip'],$remote_server['agent_port'],$remote_server['encryption_key'],$remote_server['timeout']); + $remote = new GSPRemoteLibrary($remote_server['agent_ip'],$remote_server['agent_port'],$remote_server['encryption_key'],$remote_server['timeout']); $status = "200"; $message = $remote->status_chk() == 1?'online':'offline'; } @@ -290,7 +290,7 @@ function api_server() { $remote_server_id = $_POST['remote_server_id']; $remote_server = $db->getRemoteServer($remote_server_id); - $remote = new OGPRemoteLibrary($remote_server['agent_ip'],$remote_server['agent_port'],$remote_server['encryption_key'],$remote_server['timeout']); + $remote = new GSPRemoteLibrary($remote_server['agent_ip'],$remote_server['agent_port'],$remote_server['encryption_key'],$remote_server['timeout']); $remote->agent_restart(); $status = "200"; $message = "success"; @@ -488,7 +488,7 @@ function api_user_games() if(!isPortValid($port)) return array("status" => '309', "message" => "The given port is not a valid port."); - $remote = new OGPRemoteLibrary($remote_server['agent_ip'],$remote_server['agent_port'],$remote_server['encryption_key'],$remote_server['timeout']); + $remote = new GSPRemoteLibrary($remote_server['agent_ip'],$remote_server['agent_port'],$remote_server['encryption_key'],$remote_server['timeout']); $host_stat = $remote->status_chk(); if($host_stat !== 1) return array("status" => '310', "message" => "The remote server is offline."); @@ -581,7 +581,7 @@ function api_user_games() } } - $remote = new OGPRemoteLibrary($game_home['agent_ip'],$game_home['agent_port'],$game_home['encryption_key'],$game_home['timeout']); + $remote = new GSPRemoteLibrary($game_home['agent_ip'],$game_home['agent_port'],$game_home['encryption_key'],$game_home['timeout']); $host_stat = $remote->status_chk(); if($host_stat !== 1) return array("status" => '310', "message" => "The remote server is offline."); @@ -957,7 +957,7 @@ function api_gamemanager() if($server_xml === FALSE) return array("status" => '305', "message" => "No game configuration found for home_cfg_id #" . $home_cfg_id . "."); - $remote = new OGPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'],$home_info['timeout']); + $remote = new GSPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'],$home_info['timeout']); $host_stat = $remote->status_chk(); if($host_stat !== 1) return array("status" => '310', "message" => "The remote server is offline."); @@ -1421,7 +1421,7 @@ function api_litefm() if($server_xml === FALSE) return array("status" => '305', "message" => "No game configuration found for home_cfg_id #" . $home_cfg_id . "."); - $remote = new OGPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'],$home_info['timeout']); + $remote = new GSPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'],$home_info['timeout']); $host_stat = $remote->status_chk(); if($host_stat !== 1) return array("status" => '310', "message" => "The remote server is offline."); @@ -1514,7 +1514,7 @@ function api_addonsmanager() if($server_xml === FALSE) return array("status" => '305', "message" => "No game configuration found for home_cfg_id #" . $home_cfg_id . "."); - $remote = new OGPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'],$home_info['timeout']); + $remote = new GSPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'],$home_info['timeout']); $host_stat = $remote->status_chk(); if($host_stat !== 1) return array("status" => '310', "message" => "The remote server is offline."); @@ -1632,7 +1632,7 @@ function api_steam_workshop() if($server_xml === FALSE) return array("status" => '305', "message" => "No game configuration found for home_cfg_id #" . $home_cfg_id . "."); - $remote = new OGPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'],$home_info['timeout']); + $remote = new GSPRemoteLibrary($home_info['agent_ip'],$home_info['agent_port'],$home_info['encryption_key'],$home_info['timeout']); $host_stat = $remote->status_chk(); if($host_stat !== 1) return array("status" => '310', "message" => "The remote server is offline."); diff --git a/home.php b/home.php index 1fade329..f841a1e0 100644 --- a/home.php +++ b/home.php @@ -26,7 +26,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')); } @@ -37,7 +37,7 @@ if(hasValue($_SESSION['user_id'])){ $settings = $db->getSettings(); @$GLOBALS['panel_language'] = $settings['panel_language']; -ogpLang(); +gspLang(); require_once("includes/view.php"); $view = new OGPView(); diff --git a/includes/api_functions.php b/includes/api_functions.php index 496e5b41..3437fb8a 100644 --- a/includes/api_functions.php +++ b/includes/api_functions.php @@ -91,7 +91,7 @@ function get_start_cmd($user_info,$remote,$server_xml,$home_info,$mod_id,$ip,$po $cli_param_data['IP'] = $ip; $cli_param_data['PORT'] = $port; $cli_param_data['HOSTNAME'] = $home_info['home_name']; - $cli_param_data['PID_FILE'] = "ogp_game_startup.pid"; + $cli_param_data['PID_FILE'] = "gsp_game_startup.pid"; // Linux if( preg_match("/Linux/", $os) ) diff --git a/includes/database_mysqli.php b/includes/database_mysqli.php index 0631a244..97921cef 100644 --- a/includes/database_mysqli.php +++ b/includes/database_mysqli.php @@ -3762,7 +3762,7 @@ class GSPDatabaseMySQL extends GSPDatabase case 'server': require_once('includes/lib_remote.php'); $home_info = $this->getGameHomeWithoutMods($home_id); - $remote = new OGPRemoteLibrary($home_info['agent_ip'], $home_info['agent_port'], $home_info['encryption_key'], $home_info['timeout']); + $remote = new GSPRemoteLibrary($home_info['agent_ip'], $home_info['agent_port'], $home_info['encryption_key'], $home_info['timeout']); $agent_online = $remote->status_chk() === 1; if( $agent_online ) { diff --git a/includes/form_table_class.php b/includes/form_table_class.php index f9ef27a4..dc0c59b7 100644 --- a/includes/form_table_class.php +++ b/includes/form_table_class.php @@ -112,7 +112,7 @@ class FormTable { print_failure(get_lang_f('invalid_setting_type',$type)); } - if ( defined("OGP_LANG_".$name."_info") ) + if ( defined("GSP_LANG_".$name."_info") ) { echo "