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 @@
|
|||
require_once('includes/lib_remote.php');
|
||||
|
||||
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
global $db, $settings, $loggedInUserInfo;
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ function exec_gsp_module()
|
|||
|
||||
|
||||
//show if new server created
|
||||
$cartresult = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_carts WHERE user_id='".$_SESSION['user_id']."' AND paid='1' ");
|
||||
$cartresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_carts WHERE user_id='".$_SESSION['user_id']."' AND paid='1' ");
|
||||
$newServices=0;
|
||||
foreach($cartresult as $res){
|
||||
$newServices=$newServices + 1;
|
||||
|
|
@ -50,7 +50,7 @@ function exec_gsp_module()
|
|||
</div>';
|
||||
}
|
||||
//Invoice is due.
|
||||
$orderresult = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = -1");
|
||||
$orderresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = -1");
|
||||
$invoicesDue=0;
|
||||
foreach($orderresult as $res){
|
||||
$invoicesDue=$invoicesDue + 1;
|
||||
|
|
@ -69,7 +69,7 @@ function exec_gsp_module()
|
|||
</div>';
|
||||
}
|
||||
//Server is suspended DANGER
|
||||
$orderresult = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = -2");
|
||||
$orderresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = -2");
|
||||
$invoicesDue=0;
|
||||
foreach($orderresult as $res){
|
||||
$invoicesDue=$invoicesDue + 1;
|
||||
|
|
@ -138,12 +138,12 @@ function exec_gsp_module()
|
|||
|
||||
|
||||
|
||||
$widgets = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no");
|
||||
$widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no");
|
||||
|
||||
if(!$widgets)
|
||||
{
|
||||
if($db->createUserWidgets($_SESSION['user_id']))
|
||||
$widgets = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no");
|
||||
$widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no");
|
||||
}
|
||||
|
||||
if($widgets)
|
||||
|
|
@ -225,7 +225,7 @@ function exec_gsp_module()
|
|||
|
||||
if( isset($_GET['remote_server_id']) AND $_GET['remote_server_id'] == $server_row['remote_server_id'] )
|
||||
{
|
||||
$remote = new GSPRemoteLibrary( $server_row['agent_ip'], $server_row['agent_port'],
|
||||
$remote = new OGPRemoteLibrary( $server_row['agent_ip'], $server_row['agent_port'],
|
||||
$server_row['encryption_key'], $server_row['timeout'] );
|
||||
$host_stat = $remote->status_chk();
|
||||
if( $host_stat === 1 )
|
||||
|
|
@ -253,7 +253,7 @@ function exec_gsp_module()
|
|||
if($remote_server_id)
|
||||
{
|
||||
$remote_server = $db->getRemoteServer($remote_server_id);
|
||||
$remote = new GSPRemoteLibrary( $remote_server['agent_ip'], $remote_server['agent_port'],
|
||||
$remote = new OGPRemoteLibrary( $remote_server['agent_ip'], $remote_server['agent_port'],
|
||||
$remote_server['encryption_key'], $remote_server['timeout'] );
|
||||
$host_stat = $remote->status_chk();
|
||||
if( $host_stat === 1 )
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ $module_required = TRUE;
|
|||
$module_menus = array( array( 'subpage' => 'dashboard', 'name'=>'Dashboard', 'group'=>'user' ) );
|
||||
$install_queries = array();
|
||||
$install_queries[0] = array(
|
||||
"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."widgets;",
|
||||
"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."widgets` (
|
||||
"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."widgets;",
|
||||
"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."widgets` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`column_id` int(11) NOT NULL,
|
||||
`sort_no` int(11) NOT NULL,
|
||||
|
|
@ -21,8 +21,8 @@ $install_queries[0] = array(
|
|||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;",
|
||||
|
||||
"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."widgets_users",
|
||||
"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."widgets_users` (
|
||||
"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."widgets_users",
|
||||
"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."widgets_users` (
|
||||
`user_id` int(11) NOT NULL,
|
||||
`widget_id` int(11) NOT NULL,
|
||||
`column_id` int(11) NOT NULL,
|
||||
|
|
@ -31,7 +31,7 @@ $install_queries[0] = array(
|
|||
`title` varchar(100) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;",
|
||||
|
||||
"INSERT INTO `".GSP_DB_PREFIX."widgets` (`id`, `column_id`, `sort_no`, `collapsed`, `title`) VALUES
|
||||
"INSERT INTO `".OGP_DB_PREFIX."widgets` (`id`, `column_id`, `sort_no`, `collapsed`, `title`) VALUES
|
||||
(1, 1, 1, 0, 'Game Monitor'),
|
||||
(2, 2, 0, 0, 'Online Server'),
|
||||
(3, 2, 1, 0, 'Currently Online'),
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ function print_player_list_ogp_dashboard($player_list,$players,$playersmax,$game
|
|||
return $data;
|
||||
}
|
||||
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
$server_key = 'server_'.$_GET['ip'].'_'.$_GET['port'];
|
||||
if(isset($_GET['show']) and $_GET['show'] == "players")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* Component of the dashboard module
|
||||
*/
|
||||
|
||||
function exec_gsp_module()
|
||||
function exec_ogp_module()
|
||||
{
|
||||
global $db;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ function exec_gsp_module()
|
|||
$widget_id = preg_replace('/[^\d\s]/', '', $item->id);
|
||||
|
||||
if (is_numeric($col_id) && is_numeric($widget_id)) {
|
||||
$db->query("UPDATE ".GSP_DB_PREFIX."widgets_users SET column_id='$col_id', sort_no='".(int)$item->order."', collapsed='".(int)$item->collapsed."' WHERE widget_id='".$widget_id."' AND user_id='".$_SESSION['user_id']."'");
|
||||
$db->query("UPDATE ".OGP_DB_PREFIX."widgets_users SET column_id='$col_id', sort_no='".(int)$item->order."', collapsed='".(int)$item->collapsed."' WHERE widget_id='".$widget_id."' AND user_id='".$_SESSION['user_id']."'");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue