Phase 5: Final validation and remaining reference updates
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
0ea24764e3
commit
815f2b0b0c
64 changed files with 144 additions and 144 deletions
|
|
@ -134,7 +134,7 @@ abstract class GSPDatabase {
|
|||
|
||||
abstract public function getCurrentHomeConfigMods($clear_all);
|
||||
|
||||
abstract public function updateOGPGameModsWithNewIDs($oldModStructure);
|
||||
abstract public function updateGSPGameModsWithNewIDs($oldModStructure);
|
||||
|
||||
abstract public function clearGameCfgs($clear_all);
|
||||
|
||||
|
|
|
|||
|
|
@ -938,7 +938,7 @@ class GSPDatabaseMySQL extends GSPDatabase
|
|||
return false;
|
||||
}
|
||||
|
||||
public function updateOGPGameModsWithNewIDs($oldModStructure){
|
||||
public function updateGSPGameModsWithNewIDs($oldModStructure){
|
||||
$currentStructure = $this->getCurrentHomeConfigMods(false);
|
||||
|
||||
if(isset($oldModStructure) && is_array($oldModStructure) && isset($currentStructure) && is_array($currentStructure)){
|
||||
|
|
@ -1217,7 +1217,7 @@ class GSPDatabaseMySQL extends GSPDatabase
|
|||
return false;
|
||||
|
||||
$rhost_name = trim($rhost_name);
|
||||
$query = sprintf("INSERT INTO `%sremote_servers` (`agent_ip`,remote_server_name,ogp_user,agent_port,ftp_ip,ftp_port,`encryption_key`,timeout,use_nat,display_public_ip)
|
||||
$query = sprintf("INSERT INTO `%sremote_servers` (`agent_ip`,remote_server_name,gsp_user,agent_port,ftp_ip,ftp_port,`encryption_key`,timeout,use_nat,display_public_ip)
|
||||
VALUES('%s','%s','%s','%d','%s','%s','%s','%s','%s','%s');",
|
||||
$this->table_prefix,
|
||||
$this->realEscapeSingle($rhost_ip),
|
||||
|
|
@ -1379,7 +1379,7 @@ class GSPDatabaseMySQL extends GSPDatabase
|
|||
$query = sprintf("UPDATE %sremote_servers SET agent_ip='%s',
|
||||
agent_port='%s', encryption_key='%s',
|
||||
remote_server_name='%s',
|
||||
ogp_user='%s',
|
||||
gsp_user='%s',
|
||||
ftp_ip='%s',
|
||||
ftp_port='%s',
|
||||
timeout='%s',
|
||||
|
|
|
|||
|
|
@ -626,7 +626,7 @@ function getClientIPAddress(){
|
|||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
function getOGPSiteURL(){
|
||||
function getGSPSiteURL(){
|
||||
$url = '';
|
||||
$scheme = ( isset($_SERVER['HTTPS']) and get_true_boolean($_SERVER['HTTPS']) ) ? "https://" : "http://";
|
||||
$url .= $scheme;
|
||||
|
|
|
|||
|
|
@ -411,8 +411,8 @@ function runPostUpdateOperations(){
|
|||
}
|
||||
|
||||
function getGSPGitHubURL($gitHubUsername, $repo){
|
||||
$OGPGitHub = "https://github.com/OpenGamePanel/";
|
||||
$gitHubURL = $OGPGitHub;
|
||||
$GSPGitHub = "https://github.com/Gameservers-World/";
|
||||
$gitHubURL = $GSPGitHub;
|
||||
if(isset($gitHubUsername) && !empty($gitHubUsername)){
|
||||
$gitHubURL = "https://github.com/" . $gitHubUsername . "/";
|
||||
}
|
||||
|
|
@ -423,12 +423,12 @@ function getGSPGitHubURL($gitHubUsername, $repo){
|
|||
return $gitHubURL;
|
||||
}
|
||||
|
||||
return $OGPGitHub;
|
||||
return $GSPGitHub;
|
||||
}
|
||||
|
||||
function getGSPGitHubURLUnstrict($gitHubUsername){
|
||||
$OGPGitHub = "https://github.com/OpenGamePanel/";
|
||||
$gitHubURL = $OGPGitHub;
|
||||
$GSPGitHub = "https://github.com/Gameservers-World/";
|
||||
$gitHubURL = $GSPGitHub;
|
||||
if(isset($gitHubUsername) && !empty($gitHubUsername)){
|
||||
$gitHubURL = "https://github.com/" . $gitHubUsername . "/";
|
||||
}
|
||||
|
|
@ -440,7 +440,7 @@ function getGSPGitHubURLUnstrict($gitHubUsername){
|
|||
return $gitHubURL;
|
||||
}
|
||||
|
||||
return $OGPGitHub;
|
||||
return $GSPGitHub;
|
||||
}
|
||||
|
||||
function getGitHubOrganization($gitHubURL){
|
||||
|
|
@ -456,7 +456,7 @@ function getGitHubOrganization($gitHubURL){
|
|||
return $gitHubOrg;
|
||||
}
|
||||
|
||||
function getOGPLangConstantsJSON(){
|
||||
function getGSPLangConstantsJSON(){
|
||||
global $GSPLangPre;
|
||||
$finalConsts = array();
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
define("DEFAULT_REFRESH_TIME","2");
|
||||
|
||||
class OGPView {
|
||||
class GSPView {
|
||||
|
||||
private $meta;
|
||||
private $title;
|
||||
|
|
@ -80,7 +80,7 @@ class OGPView {
|
|||
$this->title = $title == "" ? $this->title : $this->title . " [$title]";
|
||||
|
||||
// Dump defined constants to json (for language javascript)
|
||||
$jsonStrConsts = getOGPLangConstantsJSON();
|
||||
$jsonStrConsts = getGSPLangConstantsJSON();
|
||||
if($jsonStrConsts !== false){
|
||||
$this->header_code .= '<script type="text/javascript">var langConsts = ' . $jsonStrConsts . ';' . "\n" . 'var langConstPrefix = "' . $GSPLangPre . '";</script>' . "\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue