Revert "Complete rebrand from Open Game Panel (OGP) to GameServer Panel (GSP)"

This commit is contained in:
Frank Harris 2025-09-08 12:42:34 -05:00 committed by GitHub
parent 02c94766c6
commit deee7d6ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
308 changed files with 1412 additions and 1412 deletions

View file

@ -6,7 +6,7 @@ error_reporting(E_ALL);
require_once('includes/lib_remote.php');
require_once('modules/cron/shared_cron_functions.php');
function exec_gsp_module()
function exec_ogp_module()
{
global $db, $view;
$isAdmin = $db->isAdmin($_SESSION['user_id']);
@ -38,14 +38,14 @@ function exec_gsp_module()
{
if(!checkCronInput($_POST['minute'], $_POST['hour'], $_POST['dayOfTheMonth'], $_POST['month'], $_POST['dayOfTheWeek']))
{
print_failure(get_lang('GSP_LANG_bad_inputs'));
print_failure(get_lang('OGP_LANG_bad_inputs'));
$view->refresh('?m=cron&p=user_cron',2);
return;
}
if ( isset( $_POST['homeid_ip_port'] ) and isset($server_homes[$_POST['homeid_ip_port']]) )
{
$panelURL = getGSPSiteURL();
$panelURL = getOGPSiteURL();
if($panelURL === false)
{
print_failure('Failed to retrieve panel URL.');
@ -61,16 +61,16 @@ function exec_gsp_module()
switch ($_POST['action']) {
case "stop":
$command = "wget -qO- \"${panelURL}/gsp_api.php?gamemanager/stop&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
$command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/stop&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
break;
case "start":
$command = "wget -qO- \"${panelURL}/gsp_api.php?gamemanager/start&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
$command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/start&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
break;
case "restart":
$command = "wget -qO- \"${panelURL}/gsp_api.php?gamemanager/restart&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
$command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/restart&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
break;
case "steam_auto_update":
$command = "wget -qO- \"${panelURL}/gsp_api.php?gamemanager/update&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}&type=steam\" --no-check-certificate > /dev/null 2>&1";
$command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/update&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}&type=steam\" --no-check-certificate > /dev/null 2>&1";
break;
}
@ -81,7 +81,7 @@ function exec_gsp_module()
$_POST['dayOfTheWeek']." ".
$command;
$remote = new GSPRemoteLibrary( $game_home['agent_ip'],
$remote = new OGPRemoteLibrary( $game_home['agent_ip'],
$game_home['agent_port'],
$game_home['encryption_key'],
$game_home['timeout']);
@ -95,7 +95,7 @@ function exec_gsp_module()
}
elseif( isset($_POST['removeJob']) and isset($remote_servers[$_POST['r_server_id']]) and isset($jobsArray[$_POST['r_server_id']][$_POST['job_id']]) )
{
$remote = new GSPRemoteLibrary( $remote_servers[$_POST['r_server_id']]['agent_ip'],
$remote = new OGPRemoteLibrary( $remote_servers[$_POST['r_server_id']]['agent_ip'],
$remote_servers[$_POST['r_server_id']]['agent_port'],
$remote_servers[$_POST['r_server_id']]['encryption_key'],
$remote_servers[$_POST['r_server_id']]['timeout'] );