Revert "Complete rebrand from Open Game Panel (OGP) to GameServer Panel (GSP)"
This commit is contained in:
parent
02c94766c6
commit
deee7d6ac5
308 changed files with 1412 additions and 1412 deletions
|
|
@ -7,7 +7,7 @@ require_once("modules/config_games/server_config_parser.php");
|
|||
require_once('includes/lib_remote.php');
|
||||
require_once('modules/fast_download/functions.php');
|
||||
require('includes/form_table_class.php');
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
global $db,$view;
|
||||
echo "<h2>".get_lang("fast_dl")."</h2>\n";
|
||||
|
|
@ -122,7 +122,7 @@ function exec_gsp_module()
|
|||
$remote_server_id = $_GET['remote_server_id'];
|
||||
$remote_server = $db->getRemoteServer($remote_server_id);
|
||||
$rserver = $db->getRemoteServerById($remote_server_id);
|
||||
$remote = new GSPRemoteLibrary( $rserver['agent_ip'],
|
||||
$remote = new OGPRemoteLibrary( $rserver['agent_ip'],
|
||||
$rserver['agent_port'],
|
||||
$rserver['encryption_key'],
|
||||
$rserver['timeout']);
|
||||
|
|
@ -206,7 +206,7 @@ function exec_gsp_module()
|
|||
{
|
||||
$remote_server_id = $_GET['remote_server_id'];
|
||||
$rserver = $db->getRemoteServerById($remote_server_id);
|
||||
$remote = new GSPRemoteLibrary( $rserver['agent_ip'],
|
||||
$remote = new OGPRemoteLibrary( $rserver['agent_ip'],
|
||||
$rserver['agent_port'],
|
||||
$rserver['encryption_key'],
|
||||
$rserver['timeout']);
|
||||
|
|
@ -317,7 +317,7 @@ function exec_gsp_module()
|
|||
$server_home = $db->getGameHomeByIP($ip, $port);
|
||||
if ( !$server_home )
|
||||
return;
|
||||
$remote = new GSPRemoteLibrary($server_home['agent_ip'],
|
||||
$remote = new OGPRemoteLibrary($server_home['agent_ip'],
|
||||
$server_home['agent_port'],
|
||||
$server_home['encryption_key'],
|
||||
$server_home['timeout']);
|
||||
|
|
|
|||
|
|
@ -52,15 +52,15 @@ function get_access_rules($home_cfg_id = "")
|
|||
global $db;
|
||||
if($home_cfg_id == "")
|
||||
{
|
||||
return $db->resultQuery("SELECT * FROM `".GSP_DB_PREFIX."fastdl_access_rules`;");
|
||||
return $db->resultQuery("SELECT * FROM `".OGP_DB_PREFIX."fastdl_access_rules`;");
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $db->resultQuery("SELECT * FROM `".GSP_DB_PREFIX."fastdl_access_rules`
|
||||
$result = $db->resultQuery("SELECT * FROM `".OGP_DB_PREFIX."fastdl_access_rules`
|
||||
WHERE `home_cfg_id`='".$db->realEscapeSingle($home_cfg_id)."'");
|
||||
if($result === FALSE)
|
||||
{
|
||||
$result = $db->resultQuery("SELECT * FROM `".GSP_DB_PREFIX."fastdl_access_rules`
|
||||
$result = $db->resultQuery("SELECT * FROM `".OGP_DB_PREFIX."fastdl_access_rules`
|
||||
WHERE `home_cfg_id`='0'");
|
||||
if($result === FALSE)
|
||||
return array('match_file_extension' => NULL,'match_client_ip', NULL);
|
||||
|
|
@ -72,12 +72,12 @@ function get_access_rules($home_cfg_id = "")
|
|||
function set_access_rule($home_cfg_id, $match_file_extension, $match_client_ip)
|
||||
{
|
||||
global $db;
|
||||
if (!$db->resultQuery("SELECT * FROM `".GSP_DB_PREFIX."fastdl_access_rules`
|
||||
if (!$db->resultQuery("SELECT * FROM `".OGP_DB_PREFIX."fastdl_access_rules`
|
||||
WHERE `home_cfg_id`='".$db->realEscapeSingle($home_cfg_id)."'"))
|
||||
{
|
||||
if($match_file_extension == "" and $match_client_ip == "")
|
||||
return TRUE;
|
||||
return $db->query("INSERT INTO `".GSP_DB_PREFIX."fastdl_access_rules`
|
||||
return $db->query("INSERT INTO `".OGP_DB_PREFIX."fastdl_access_rules`
|
||||
(`home_cfg_id`,`match_file_extension`,`match_client_ip`)
|
||||
VALUES('" . $db->realEscapeSingle($home_cfg_id) . "','" . $db->realEscapeSingle($match_file_extension) . "','" . $db->realEscapeSingle($match_client_ip) . "');");
|
||||
}
|
||||
|
|
@ -85,11 +85,11 @@ function set_access_rule($home_cfg_id, $match_file_extension, $match_client_ip)
|
|||
{
|
||||
if($match_file_extension == "" and $match_client_ip == "")
|
||||
{
|
||||
return $db->query("DELETE FROM `".GSP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';");
|
||||
return $db->query("DELETE FROM `".OGP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';");
|
||||
}
|
||||
else
|
||||
{
|
||||
return $db->query("UPDATE `".GSP_DB_PREFIX."fastdl_access_rules`
|
||||
return $db->query("UPDATE `".OGP_DB_PREFIX."fastdl_access_rules`
|
||||
SET `match_file_extension`='" . $db->realEscapeSingle($match_file_extension) . "',
|
||||
`match_client_ip`='" . $db->realEscapeSingle($match_client_ip) . "'
|
||||
WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';");
|
||||
|
|
@ -100,7 +100,7 @@ function set_access_rule($home_cfg_id, $match_file_extension, $match_client_ip)
|
|||
function del_access_rule($home_cfg_id)
|
||||
{
|
||||
global $db;
|
||||
return $db->query("DELETE FROM `".GSP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';");
|
||||
return $db->query("DELETE FROM `".OGP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';");
|
||||
}
|
||||
|
||||
function check_access_rules_entries()
|
||||
|
|
@ -165,7 +165,7 @@ function get_fastdl_settings($remote_server_id)
|
|||
{
|
||||
global $db;
|
||||
if( !is_numeric($remote_server_id) ) return FALSE;
|
||||
$result = $db->resultQuery("SELECT `setting`,`value` FROM `".GSP_DB_PREFIX."fastdl_settings`
|
||||
$result = $db->resultQuery("SELECT `setting`,`value` FROM `".OGP_DB_PREFIX."fastdl_settings`
|
||||
WHERE `remote_server_id`='".$db->realEscapeSingle($remote_server_id)."'");
|
||||
if(!$result) return FALSE;
|
||||
$results = array();
|
||||
|
|
@ -184,7 +184,7 @@ function set_fastdl_settings($remote_server_id, $settings)
|
|||
if( !is_array($settings) ) return FALSE;
|
||||
foreach ( $settings as $s_key => $s_value )
|
||||
{
|
||||
$query = 'INSERT INTO `'.GSP_DB_PREFIX.'fastdl_settings` (`remote_server_id`,`setting`,`value`)
|
||||
$query = 'INSERT INTO `'.OGP_DB_PREFIX.'fastdl_settings` (`remote_server_id`,`setting`,`value`)
|
||||
VALUES(\''.$db->realEscapeSingle($remote_server_id).'\', \''.$db->realEscapeSingle($s_key).'\', \''.$db->realEscapeSingle($s_value).'\') ON DUPLICATE KEY
|
||||
UPDATE value=\''.$db->realEscapeSingle($s_value).'\'';
|
||||
$db->query($query);
|
||||
|
|
|
|||
|
|
@ -12,22 +12,22 @@ $module_menus = array( array( 'subpage' => '', 'name'=>'Fast Download', 'group'=
|
|||
$module_access_rights = array('d' => 'allow_fast_download');
|
||||
|
||||
$install_queries[0] = array("SELECT NOW();");
|
||||
$install_queries[1] = array("DROP TABLE IF EXISTS `".GSP_DB_PREFIX."fastdl`;");
|
||||
$install_queries[1] = array("DROP TABLE IF EXISTS `".OGP_DB_PREFIX."fastdl`;");
|
||||
$install_queries[2] = array("SELECT NOW();");
|
||||
$install_queries[3] = array(
|
||||
"CREATE TABLE ".GSP_DB_PREFIX."fastdl_access_rules (
|
||||
"CREATE TABLE ".OGP_DB_PREFIX."fastdl_access_rules (
|
||||
`home_cfg_id` varchar(32) NOT NULL,
|
||||
`match_file_extension` TEXT,
|
||||
`match_client_ip` TEXT,
|
||||
UNIQUE KEY (`home_cfg_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;");
|
||||
$install_queries[4] = array(
|
||||
"CREATE TABLE ".GSP_DB_PREFIX."fastdl_settings (
|
||||
"CREATE TABLE ".OGP_DB_PREFIX."fastdl_settings (
|
||||
`remote_server_id` int(11) NOT NULL,
|
||||
`setting` varchar(63) NOT NULL,
|
||||
`value` varchar(255) NOT NULL,
|
||||
UNIQUE KEY remote_server_id (remote_server_id,setting)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;");
|
||||
$uninstall_queries = array("DROP TABLE IF EXISTS `".GSP_DB_PREFIX."fastdl_access_rules`;",
|
||||
"DROP TABLE IF EXISTS `".GSP_DB_PREFIX."fastdl_settings`;");
|
||||
$uninstall_queries = array("DROP TABLE IF EXISTS `".OGP_DB_PREFIX."fastdl_access_rules`;",
|
||||
"DROP TABLE IF EXISTS `".OGP_DB_PREFIX."fastdl_settings`;");
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
require_once("modules/config_games/server_config_parser.php");
|
||||
require_once('includes/lib_remote.php');
|
||||
require_once('modules/fast_download/functions.php');
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
global $db,$view;
|
||||
echo "<h2>".get_lang("fast_dl")."</h2>\n";
|
||||
|
|
@ -52,7 +52,7 @@ function exec_gsp_module()
|
|||
return;
|
||||
}
|
||||
|
||||
$remote = new GSPRemoteLibrary($server_home['agent_ip'],
|
||||
$remote = new OGPRemoteLibrary($server_home['agent_ip'],
|
||||
$server_home['agent_port'],
|
||||
$server_home['encryption_key'],
|
||||
$server_home['timeout']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue