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

@ -16,9 +16,9 @@ function rmdir_recurse($path) {
rmdir($path);
}
function exec_gsp_module()
function exec_ogp_module()
{
define('REPONAME', 'GSP-Website');
define('REPONAME', 'OGP-Website');
if($_SESSION['users_group'] != "admin")
{
print_failure( get_lang("no_access") );
@ -29,9 +29,9 @@ function exec_gsp_module()
global $view;
// GitHub URL
if(function_exists("getGSPGitHubURL") && function_exists("getGSPGitHubURLUnstrict")){
if(function_exists("getOGPGitHubURL") && function_exists("getOGPGitHubURLUnstrict")){
$gitHubUsername = $settings["custom_github_update_username"];
$gitHubURL = getGSPGitHubURL($gitHubUsername, REPONAME);
$gitHubURL = getOGPGitHubURL($gitHubUsername, REPONAME);
}else{
$gitHubURL = "https://github.com/OpenGamePanel/";
}
@ -107,14 +107,14 @@ function exec_gsp_module()
$new_files = "";
$unwanted_path = REPONAME . "-" . $_GET['version'];
$extract_path = $temp . DIRECTORY_SEPARATOR . "GSP_update";
$extract_path = $temp . DIRECTORY_SEPARATOR . "OGP_update";
if( !file_exists($extract_path) )
mkdir($extract_path, 0775);
$blacklist = array ('/install.php',
'/modules/gamemanager/rsync_sites_local.list');
$blacklisted_files = $db->resultQuery('SELECT file_path FROM `GSP_DB_PREFIXupdate_blacklist`;');
$blacklisted_files = $db->resultQuery('SELECT file_path FROM `OGP_DB_PREFIXupdate_blacklist`;');
if($blacklisted_files !== FALSE)
{
$current_blacklist = array();
@ -227,8 +227,8 @@ function exec_gsp_module()
// update version info in db
$version = $db->real_escape_string($_GET['version']);
$db->query("UPDATE GSP_DB_PREFIXsettings SET value = '$version' WHERE setting = 'gsp_version'");
$db->query("UPDATE GSP_DB_PREFIXsettings SET value = '$vtype' WHERE setting = 'version_type'");
$db->query("UPDATE OGP_DB_PREFIXsettings SET value = '$version' WHERE setting = 'ogp_version'");
$db->query("UPDATE OGP_DB_PREFIXsettings SET value = '$vtype' WHERE setting = 'version_type'");
// Remove the downloaded package
if( file_exists( $temp_dwl ) )