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
|
|
@ -8,7 +8,7 @@
|
|||
| |
|
||||
\-----------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
//------------------------------------------------------------------------------------------------------------+
|
||||
require "modules/lgsl_with_img_mod/lgsl_files/lgsl_class.php";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/*
|
||||
*
|
||||
* GSP - GameServer Panel
|
||||
* Copyright (C) 2008 - 2017 The GSP Development Team
|
||||
* OGP - Open Game Panel
|
||||
* Copyright (C) 2008 - 2017 The OGP Development Team
|
||||
*
|
||||
* http://www.gameserver-panel.org/
|
||||
* http://www.opengamepanel.org/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
|
@ -82,7 +82,7 @@ function lgsl_lookup_ip($ip, $port)
|
|||
$ip = $db->realEscapeSingle($ip);
|
||||
$port = $db->realEscapeSingle($port);
|
||||
|
||||
$result = $db->resultQuery("SELECT `id` FROM `GSP_DB_PREFIXlgsl` WHERE `ip`='{$ip}' AND c_port='{$port}' LIMIT 1");
|
||||
$result = $db->resultQuery("SELECT `id` FROM `OGP_DB_PREFIXlgsl` WHERE `ip`='{$ip}' AND c_port='{$port}' LIMIT 1");
|
||||
return $result[0];
|
||||
}
|
||||
|
||||
|
|
@ -149,7 +149,7 @@ function lgsl_cache_info($id)
|
|||
{
|
||||
global $db;
|
||||
$id = $db->realEscapeSingle($id);
|
||||
$result = $db->resultQuery("SELECT `cache_time` FROM `GSP_DB_PREFIXlgsl` WHERE `id`='{$id}' LIMIT 1");
|
||||
$result = $db->resultQuery("SELECT `cache_time` FROM `OGP_DB_PREFIXlgsl` WHERE `id`='{$id}' LIMIT 1");
|
||||
return empty($result[0]['cache_time']) ? array(0,0,0) : explode("_", $result[0]['cache_time']);
|
||||
}
|
||||
|
||||
|
|
@ -176,7 +176,7 @@ $name_type_vertical = false; // false/true // Global default/fallback for printi
|
|||
|
||||
require_once "modules/lgsl_with_img_mod/lgsl_files/lgsl_class.php";
|
||||
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
error_reporting(0);
|
||||
//------------------------------------------------------------------------------------------------------------+
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/*
|
||||
*
|
||||
* GSP - GameServer Panel
|
||||
* Copyright (C) 2008 - 2017 The GSP Development Team
|
||||
* OGP - Open Game Panel
|
||||
* Copyright (C) 2008 - 2017 The OGP Development Team
|
||||
*
|
||||
* http://www.gameserver-panel.org/
|
||||
* http://www.opengamepanel.org/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
echo "<h2>LGSL</h2>";
|
||||
global $output, $lgsl_server_id;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/*
|
||||
*
|
||||
* GSP - GameServer Panel
|
||||
* Copyright (C) 2008 - 2017 The GSP Development Team
|
||||
* OGP - Open Game Panel
|
||||
* Copyright (C) 2008 - 2017 The OGP Development Team
|
||||
*
|
||||
* http://www.gameserver-panel.org/
|
||||
* http://www.opengamepanel.org/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
echo "<h2>LGSL Admin</h2>";
|
||||
require "modules/lgsl_with_img_mod/lgsl_files/lgsl_config.php";
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
if (!empty($_POST['lgsl_save_1']))
|
||||
{
|
||||
// LOAD SERVER CACHE INTO MEMORY
|
||||
$results = $db->resultQuery("SELECT * FROM `GSP_DB_PREFIXlgsl`");
|
||||
$results = $db->resultQuery("SELECT * FROM `OGP_DB_PREFIXlgsl`");
|
||||
foreach($results as $row)
|
||||
{
|
||||
$servers["{$row['type']}:{$row['ip']}:{$row['q_port']}"] = array($row['status'], $row['cache'], $row['cache_time']);
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
}
|
||||
|
||||
// EMPTY SQL TABLE
|
||||
$db->query("TRUNCATE `GSP_DB_PREFIXlgsl`");
|
||||
$db->query("TRUNCATE `OGP_DB_PREFIXlgsl`");
|
||||
|
||||
// CONVERT ADVANCED TO NORMAL DATA FORMAT
|
||||
if (!empty($_POST['lgsl_management']))
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
elseif ($q_port < 1 || $q_port > 99999) { $disabled = 1; $q_port = 0; }
|
||||
elseif (!isset($lgsl_protocol_list[$type])) { $disabled = 1; }
|
||||
|
||||
$db->query("INSERT INTO `GSP_DB_PREFIXlgsl` (`type`,`ip`,`c_port`,`q_port`,`s_port`,`zone`,`disabled`,`comment`,`status`,`cache`,`cache_time`) VALUES ('{$type}','{$ip}','{$c_port}','{$q_port}','{$s_port}','{$zone}','{$disabled}','{$comment}','{$status}','{$cache}','{$cache_time}')");
|
||||
$db->query("INSERT INTO `OGP_DB_PREFIXlgsl` (`type`,`ip`,`c_port`,`q_port`,`s_port`,`zone`,`disabled`,`comment`,`status`,`cache`,`cache_time`) VALUES ('{$type}','{$ip}','{$c_port}','{$q_port}','{$s_port}','{$zone}','{$disabled}','{$comment}','{$status}','{$cache}','{$cache_time}')");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -161,7 +161,7 @@
|
|||
<textarea name='form_list' cols='90' rows='30' wrap='off' spellcheck='false' style='width:95%; height:500px; font-size:1.2em; font-family:courier new, monospace'>\r\n";
|
||||
|
||||
//---------------------------------------------------------+
|
||||
$result = $db->resultQuery("SELECT * FROM `GSP_DB_PREFIXlgsl` ORDER BY `id` ASC");
|
||||
$result = $db->resultQuery("SELECT * FROM `OGP_DB_PREFIXlgsl` ORDER BY `id` ASC");
|
||||
|
||||
foreach($result as $row)
|
||||
{
|
||||
|
|
@ -217,7 +217,7 @@
|
|||
|
||||
//---------------------------------------------------------+
|
||||
|
||||
$result = $db->resultQuery("SELECT * FROM `GSP_DB_PREFIXlgsl` ORDER BY `id` ASC");
|
||||
$result = $db->resultQuery("SELECT * FROM `OGP_DB_PREFIXlgsl` ORDER BY `id` ASC");
|
||||
|
||||
foreach($result as $row)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
if ($id != NULL)
|
||||
{
|
||||
$id = intval($id);
|
||||
$result = $db->resultQuery("SELECT * FROM `GSP_DB_PREFIXlgsl` WHERE `id`='{$id}' LIMIT 1");
|
||||
$result = $db->resultQuery("SELECT * FROM `OGP_DB_PREFIXlgsl` WHERE `id`='{$id}' LIMIT 1");
|
||||
if (!is_array($result)) { return FALSE; }
|
||||
$row = $result[0];
|
||||
list($type, $ip, $c_port, $q_port, $s_port) = array($row['type'], $row['ip'], $row['c_port'], $row['q_port'], $row['s_port']);
|
||||
|
|
@ -94,14 +94,14 @@
|
|||
list($type, $ip, $c_port, $q_port, $s_port) = array($db->real_escape_string($type), $db->real_escape_string($ip), intval($c_port), intval($q_port), intval($s_port));
|
||||
|
||||
if (!$type || !$ip || !$c_port || !$q_port) { exit("LGSL PROBLEM: INVALID SERVER '{$type} : {$ip} : {$c_port} : {$q_port} : {$s_port}'"); }
|
||||
$result = $db->resultQuery("SELECT * FROM `GSP_DB_PREFIXlgsl` WHERE `type`='{$type}' AND `ip`='{$ip}' AND `q_port`='{$q_port}' LIMIT 1");
|
||||
$result = $db->resultQuery("SELECT * FROM `OGP_DB_PREFIXlgsl` WHERE `type`='{$type}' AND `ip`='{$ip}' AND `q_port`='{$q_port}' LIMIT 1");
|
||||
$row = $result[0];
|
||||
|
||||
if (!is_array($result))
|
||||
{
|
||||
if (strpos($request, "a") === FALSE) { exit("LGSL PROBLEM: SERVER NOT IN DATABASE '{$type} : {$ip} : {$c_port} : {$q_port} : {$s_port}'"); }
|
||||
$db->query("INSERT INTO `GSP_DB_PREFIXlgsl` (`type`,`ip`,`c_port`,`q_port`,`s_port`,`cache`,`cache_time`) VALUES ('{$type}','{$ip}','{$c_port}','{$q_port}','{$s_port}','','')");
|
||||
$result = $db->resultQuery("SELECT * FROM `GSP_DB_PREFIXlgsl` WHERE `type`='{$type}' AND `ip`='{$ip}' AND `q_port`='{$q_port}' LIMIT 1");
|
||||
$db->query("INSERT INTO `OGP_DB_PREFIXlgsl` (`type`,`ip`,`c_port`,`q_port`,`s_port`,`cache`,`cache_time`) VALUES ('{$type}','{$ip}','{$c_port}','{$q_port}','{$s_port}','','')");
|
||||
$result = $db->resultQuery("SELECT * FROM `OGP_DB_PREFIXlgsl` WHERE `type`='{$type}' AND `ip`='{$ip}' AND `q_port`='{$q_port}' LIMIT 1");
|
||||
$row = $result[0];
|
||||
}
|
||||
}
|
||||
|
|
@ -180,7 +180,7 @@
|
|||
|
||||
$packed_times = time() + $lgsl_config['cache_time'] + 10;
|
||||
$packed_times = "{$packed_times}_{$packed_times}_{$packed_times}";
|
||||
$reuslt = $db->query("UPDATE `GSP_DB_PREFIXlgsl` SET `cache_time`='{$packed_times}' WHERE `id`='{$row['id']}' LIMIT 1");
|
||||
$reuslt = $db->query("UPDATE `OGP_DB_PREFIXlgsl` SET `cache_time`='{$packed_times}' WHERE `id`='{$row['id']}' LIMIT 1");
|
||||
if(!$result) return;
|
||||
|
||||
// GET WHAT IS NEEDED
|
||||
|
|
@ -221,7 +221,7 @@
|
|||
|
||||
$packed_cache = $db->real_escape_string(base64_encode(serialize($cache)));
|
||||
$packed_times = $db->real_escape_string(implode("_", $cache_time));
|
||||
$result = $db->query("UPDATE `GSP_DB_PREFIXlgsl` SET `status`='{$cache['b']['status']}',`cache`='{$packed_cache}',`cache_time`='{$packed_times}' WHERE `id`='{$row['id']}' LIMIT 1");
|
||||
$result = $db->query("UPDATE `OGP_DB_PREFIXlgsl` SET `status`='{$cache['b']['status']}',`cache`='{$packed_cache}',`cache_time`='{$packed_times}' WHERE `id`='{$row['id']}' LIMIT 1");
|
||||
if(!$result) return;
|
||||
}
|
||||
|
||||
|
|
@ -256,7 +256,7 @@
|
|||
if ($zone != 0) { $where[] = "FIND_IN_SET('{$zone}',`zone`)"; }
|
||||
if ($type != "") { $where[] = "`type`='{$type}'"; }
|
||||
|
||||
$result = $db->resultQuery("SELECT `id` FROM `GSP_DB_PREFIXlgsl` WHERE ".implode(" AND ", $where)." ORDER BY {$order}");
|
||||
$result = $db->resultQuery("SELECT `id` FROM `OGP_DB_PREFIXlgsl` WHERE ".implode(" AND ", $where)." ORDER BY {$order}");
|
||||
$server_list = array();
|
||||
|
||||
foreach($result as $row)
|
||||
|
|
@ -324,7 +324,7 @@
|
|||
{
|
||||
global $db;
|
||||
$id = intval($id);
|
||||
$query = $db->resultQuery("SELECT `type`,`ip`,`c_port`,`q_port`,`s_port` FROM `GSP_DB_PREFIXlgsl` WHERE `id`='{$id}' LIMIT 1");
|
||||
$query = $db->resultQuery("SELECT `type`,`ip`,`c_port`,`q_port`,`s_port` FROM `OGP_DB_PREFIXlgsl` WHERE `id`='{$id}' LIMIT 1");
|
||||
if (!$query) { return FALSE; }
|
||||
return $query[0];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/*
|
||||
*
|
||||
* GSP - GameServer Panel
|
||||
* Copyright (C) 2008 - 2017 The GSP Development Team
|
||||
* OGP - Open Game Panel
|
||||
* Copyright (C) 2008 - 2017 The OGP Development Team
|
||||
*
|
||||
* http://www.gameserver-panel.org/
|
||||
* http://www.opengamepanel.org/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
|
@ -33,7 +33,7 @@ $module_menus = array( array( 'subpage' => 'lgsl', 'name'=>'LGSL', 'group'=>'use
|
|||
|
||||
$install_queries = array();
|
||||
$install_queries[0] = array(
|
||||
"CREATE TABLE IF NOT EXISTS ".GSP_DB_PREFIX."lgsl
|
||||
"CREATE TABLE IF NOT EXISTS ".OGP_DB_PREFIX."lgsl
|
||||
(
|
||||
|
||||
`id` INT (11) NOT NULL auto_increment,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue