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

@ -22,7 +22,7 @@
*
*/
function exec_ogp_module()
function exec_gsp_module()
{
global $db ,$view;
$settings = $db->getSettings();

View file

@ -1,5 +1,5 @@
<?php
function exec_ogp_module()
function exec_gsp_module()
{
//Include database connection details
require('includes/config.inc.php');

View file

@ -1,5 +1,5 @@
<?php
function exec_ogp_module()
function exec_gsp_module()
{
global $db;

View file

@ -1,5 +1,5 @@
<?php
function exec_ogp_module()
function exec_gsp_module()
{
global $db;

View file

@ -2,7 +2,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,$view,$settings;
$user_id = $_SESSION['user_id'];
@ -62,7 +62,7 @@ function exec_ogp_module()
$home_info = $db->getGameHomeWithoutMods($home_id);
//Create the remote connection
$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']);
//Reassign the server
$db->assignHomeTo( "user", $user_id, $home_id, $access_rights );
@ -147,7 +147,7 @@ function exec_ogp_module()
$home_info = $db->getGameHomeWithoutMods($home_id);
//Create the remote connection
$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']);
//Get Full home info in 1 array
$home_info = $db->getGameHome($home_id);

View file

@ -114,7 +114,7 @@ else
$home_id = $user_home['home_id'];
$home_info = $db->getGameHomeWithoutMods($home_id);
$server_info = $db->getRemoteServerById($home_info['remote_server_id']);
$remote = new OGPRemoteLibrary($server_info['agent_ip'], $server_info['agent_port'], $server_info['encryption_key'],$server_info['timeout']);
$remote = new GSPRemoteLibrary($server_info['agent_ip'], $server_info['agent_port'], $server_info['encryption_key'],$server_info['timeout']);
$ftp_login = isset($home_info['ftp_login']) ? $home_info['ftp_login'] : $home_id;
$remote->ftp_mgr("userdel", $ftp_login);
$db->changeFtpStatus('disabled',$home_id);
@ -168,7 +168,7 @@ else
$home_id = $user_home['home_id'];
$home_info = $db->getGameHomeWithoutMods($home_id);
$server_info = $db->getRemoteServerById($home_info['remote_server_id']);
$remote = new OGPRemoteLibrary($server_info['agent_ip'], $server_info['agent_port'], $server_info['encryption_key'],$server_info['timeout']);
$remote = new GSPRemoteLibrary($server_info['agent_ip'], $server_info['agent_port'], $server_info['encryption_key'],$server_info['timeout']);
// Remove the game home from db
$db->deleteGameHome($home_id);

View file

@ -1,5 +1,5 @@
<?php
function exec_ogp_module()
function exec_gsp_module()
{
error_reporting(E_ALL);

View file

@ -1,5 +1,5 @@
<?php
function exec_ogp_module()
function exec_gsp_module()
{
global $db,$view,$settings;
$loadpage = "?m=billing&p=paid";

View file

@ -1,5 +1,5 @@
<?php
function exec_ogp_module()
function exec_gsp_module()
{
global $db,$view;
$settings = $db->getSettings();

View file

@ -4,7 +4,7 @@ function curPageName()
return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
}
function exec_ogp_module()
function exec_gsp_module()
{
require('includes/config.inc.php');
require_once('modules/settings/functions.php');

View file

@ -22,7 +22,7 @@
*
*/
function exec_ogp_module()
function exec_gsp_module()
{
global $db, $view;