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

@ -118,7 +118,7 @@ function exec_ogp_module()
if($success){
$home_info = $db->getGameHomeWithoutMods($new_home_id);
require_once('includes/lib_remote.php');
$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']);
// Create new home directory if it doesn't already exist
$remote->exec("mkdir -p " . clean_path($game_path) . (!$skipId ? $new_home_id : ""));
@ -166,7 +166,7 @@ function exec_ogp_module()
$rhost_id = $_POST['rserver_id'];
$remote_server = $db->getRemoteServer($rhost_id);
require_once('includes/lib_remote.php');
$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)
$os = $remote->what_os();

View file

@ -14,7 +14,7 @@ function create_selection($selection,$flag,$access_rights)
return $right;
}
function exec_ogp_module()
function exec_gsp_module()
{
global $db;

View file

@ -27,7 +27,7 @@ function litefm_check($home_id)
return TRUE;
}
function exec_ogp_module()
function exec_gsp_module()
{
$home_id = $_REQUEST['home_id'];
@ -54,7 +54,7 @@ function exec_ogp_module()
litefm_check($home_id);
$remote = new OGPRemoteLibrary($home_cfg['agent_ip'], $home_cfg['agent_port'], $home_cfg['encryption_key'], $home_cfg['timeout']);
$remote = new GSPRemoteLibrary($home_cfg['agent_ip'], $home_cfg['agent_port'], $home_cfg['encryption_key'], $home_cfg['timeout']);
if($isAdmin and isset($_GET['all_fs']))
$path = clean_path("/".@$_SESSION['browser_cwd_'.$home_id]);

View file

@ -3,7 +3,7 @@
* Component of the user_games module
*/
function exec_ogp_module()
function exec_gsp_module()
{
global $db;
$expired_servers = $db->resultQuery("SELECT home_name, home_id, server_expiration_date FROM GSP_DB_PREFIXserver_homes WHERE server_expiration_date NOT LIKE 'X' AND server_expiration_date <= ".time().";");

View file

@ -3,7 +3,7 @@
* Component of the user_games module
*/
function exec_ogp_module()
function exec_gsp_module()
{
global $db, $settings;
@ -25,7 +25,7 @@ function exec_ogp_module()
echo create_back_button('user_games');
include_once('includes/lib_remote.php');
$remote = new OGPRemoteLibrary($server_row['agent_ip'],$server_row['agent_port'],$server_row['encryption_key'],$server_row['timeout']);
$remote = new GSPRemoteLibrary($server_row['agent_ip'],$server_row['agent_port'],$server_row['encryption_key'],$server_row['timeout']);
if(isset($_REQUEST['clone_home']))
{

View file

@ -64,7 +64,7 @@ function renderCustomFields($field, $home_id)
echo "</label></td></tr>\n";
}
function exec_ogp_module()
function exec_gsp_module()
{
global $db,$view,$custom_fields,$isAdmin;
@ -91,7 +91,7 @@ function exec_ogp_module()
$server_xml = read_server_config(SERVER_CONFIG_LOCATION.$home_info['home_cfg_file']);
include_once('includes/lib_remote.php');
$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']);
echo "<h2>".get_lang('editing_home_called')." \"".htmlentities($home_info['home_name'])."\"</h2>";

View file

@ -29,7 +29,7 @@ function logHandling($home_id, $action = 'delete', &$remote){
}
}
function exec_ogp_module() {
function exec_gsp_module() {
global $db, $view;
require_once('includes/lib_remote.php');
$home_id = $_GET['home_id'];
@ -47,7 +47,7 @@ function exec_ogp_module() {
return;
}
$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($y != 'y')

View file

@ -53,7 +53,7 @@ function exec_ogp_module()
$server_xml = read_server_config(SERVER_CONFIG_LOCATION.$home_info['home_cfg_file']);
include_once('includes/lib_remote.php');
$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']);
$ftp_installed = $db->isModuleInstalled('ftp');
if( isset($_REQUEST['change_name']) )
@ -781,7 +781,7 @@ function exec_ogp_module()
if ( is_array($avail_ips) && !empty($avail_ips) )
{
echo "<h3>". get_lang("ips_and_ports") ."</h3>";
$screen_running = $remote->is_screen_running(OGP_SCREEN_TYPE_HOME,$home_info['home_id']) === 1;
$screen_running = $remote->is_screen_running(GSP_SCREEN_TYPE_HOME,$home_info['home_id']) === 1;
if( ! $screen_running )
{
if( isset($_REQUEST['set_ip']) )

View file

@ -6,7 +6,7 @@ function numbersFormatting($bytes){
return sprintf('%1.2f' , $bytes / pow($base,$class)) . ' ' . $si_prefix[$class];
}
function exec_ogp_module()
function exec_gsp_module()
{
global $db;
$isAdmin = $db->isAdmin( $_SESSION['user_id'] );
@ -20,7 +20,7 @@ function exec_ogp_module()
if ( ! $game_home and ! $isAdmin )
return;
$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']);
$r = $remote->rfile_exists($game_home['home_path']);
if($r == 1)
{
@ -42,7 +42,7 @@ function exec_ogp_module()
$total_size = 0;
foreach($game_homes as $game_home)
{
$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']);
$r = $remote->rfile_exists($game_home['home_path']);
if($r == 1)
{

View file

@ -5,7 +5,7 @@
require_once("includes/lib_remote.php");
require_once("modules/config_games/server_config_parser.php");
function exec_ogp_module()
function exec_gsp_module()
{
global $db, $settings;
$home_id = $_GET['home_id'];
@ -14,7 +14,7 @@ function exec_ogp_module()
$enabled_mods = $db->getHomeMods($home_id);
$home_info = $db->getGameHomeWithoutMods($home_id);
$server_xml = read_server_config(SERVER_CONFIG_LOCATION.$home_info['home_cfg_file']);
$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']);
if( empty($enabled_mods) )
{
$cpu_count = $remote->cpu_count();

View file

@ -5,7 +5,7 @@
require_once("modules/config_games/server_config_parser.php");
function exec_ogp_module()
function exec_gsp_module()
{
$home_id = $_GET['home_id'];
$mod_id = $_GET['mod_id'];

View file

@ -3,7 +3,7 @@
* Component of the user_games module
*/
function exec_ogp_module()
function exec_gsp_module()
{
global $db, $view, $loggedInUserInfo;