Phase 5: Final validation and remaining reference updates

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-08 16:08:38 +00:00
parent 0ea24764e3
commit 815f2b0b0c
64 changed files with 144 additions and 144 deletions

View file

@ -1,8 +1,8 @@
<?php
/*
*
* OGP - Open Game Panel
* Copyright (C) 2008 - 2017 The OGP Development Team
* GSP - GameServer Panel
* Copyright (C) 2008 - 2017 The GSP Development Team
*
* http://www.gameserver-panel.org/
*
@ -52,7 +52,7 @@ function exec_gsp_module()
// request ogp user to create a home path.
$r_server = $db->getRemoteServer($remote_server_id);
$ogp_user = $r_server['ogp_user'];
$gsp_user = $r_server['gsp_user'];
// request the user name and the game name to generate a game home name.
$home_name = $_POST['home_name'];

View file

@ -41,7 +41,7 @@ function assignOrdersToCart($user_id,$tax_amount,$currency,$coupon_id){
return $db->resultInsertId( 'billing_carts', $fields );
}
function exec_ogp_module()
function exec_gsp_module()
{
error_reporting(E_ALL);
@ -84,7 +84,7 @@ function exec_ogp_module()
if ($coupon_count > 0) {
$coupon_count--;
$db->resultquery("UPDATE ogp_billing_coupons SET count = $coupon_count WHERE code = '$_POST[coupon_code]'");
$db->resultquery("UPDATE gsp_billing_coupons SET count = $coupon_count WHERE code = '$_POST[coupon_code]'");
}
}
}
@ -369,7 +369,7 @@ function exec_ogp_module()
//see if user is a new customer,
//check number of orders they have had or if user is an admin (to be able to create server)
$isAdmin = $db->isAdmin( $_SESSION['user_id'] );
$result = $db->resultQuery("SELECT * FROM ogp_billing_orders WHERE user_id=".$user_id);
$result = $db->resultQuery("SELECT * FROM gsp_billing_orders WHERE user_id=".$user_id);
$server_price = number_format( $order['price'], 2 );
if(isset($settings['display_free'])) {
$display_free = $settings['display_free'];

View file

@ -81,8 +81,8 @@ function exec_gsp_module()
$settings = $db->getSettings();
$subject = "Gameserver Renewel at " . $settings['panel_name'];
$email = $db->resultQuery(" SELECT DISTINCT users_email
FROM ogp_users, ogp_billing_orders
WHERE ogp_users.user_id = $user_id")[0]["users_email"];
FROM gsp_users, gsp_billing_orders
WHERE gsp_users.user_id = $user_id")[0]["users_email"];
$message = "Your server, " . $home_name ." ID #". $home_id . " at " . $settings['panel_name'] . " has just been renewed.<br>
Thank You for your continued support.<br>
@ -246,8 +246,8 @@ function exec_gsp_module()
$settings = $db->getSettings();
$subject = "New Gameserver installed at " . $settings['panel_name'];
$email = $db->resultQuery(" SELECT DISTINCT users_email
FROM ogp_users, ogp_billing_orders
WHERE ogp_users.user_id = $user_id")[0]["users_email"];
FROM gsp_users, gsp_billing_orders
WHERE gsp_users.user_id = $user_id")[0]["users_email"];
$message = "Your server, " . $home_name ." ID #". $home_id . " at " . $settings['panel_name'] . " has just been created.<br>
Thank You for your continued support.<br>
@ -286,7 +286,7 @@ function exec_gsp_module()
}
// Set expiration date in ogp database
// Set expiration date in gsp database
//status is -3 -2 -1 0 and 1
// deleted, suspended, invoiced, inactive, active
//finish_date the server will be suspended

View file

@ -1,8 +1,8 @@
<?php
/*
*
* OGP - Open Game Panel
* Copyright (C) 2008 - 2017 The OGP Development Team
* GSP - GameServer Panel
* Copyright (C) 2008 - 2017 The GSP Development Team
*
* http://www.gameserver-panel.org/
*
@ -23,7 +23,7 @@
*/
chdir(realpath(dirname(__FILE__))); /* Change to the current file path */
chdir("../.."); /* Base path to ogp web files */
chdir("../.."); /* Base path to gsp web files */
// Report all PHP errors
error_reporting(E_ALL);
// Path definitions

View file

@ -1,8 +1,8 @@
<?php
/*
*
* OGP - Open Game Panel
* Copyright (C) 2008 - 2017 The OGP Development Team
* GSP - GameServer Panel
* Copyright (C) 2008 - 2017 The GSP Development Team
*
* http://www.gameserver-panel.org/
*

View file

@ -36,7 +36,7 @@ if(!empty($cart_id))
}
$coupon_discount = 0;
$result = $db->resultQuery( "SELECT discount FROM ogp_billing_coupons WHERE id=".$db->realEscapeSingle($cartDB['coupon_id']));
$result = $db->resultQuery( "SELECT discount FROM gsp_billing_coupons WHERE id=".$db->realEscapeSingle($cartDB['coupon_id']));
foreach ($result as $couponDB){
$coupon_discount=$couponDB['discount'];
}

View file

@ -1,5 +1,5 @@
<?php
function exec_ogp_module()
function exec_gsp_module()
{
global $db;
@ -128,7 +128,7 @@ function exec_ogp_module()
</tr>
<tr>
<?php
$result3 = $db->resultQuery("SELECT DISTINCT remote_server_id, remote_server_name, agent_ip, ogp_user FROM GSP_DB_PREFIXremote_servers");
$result3 = $db->resultQuery("SELECT DISTINCT remote_server_id, remote_server_name, agent_ip, gsp_user FROM GSP_DB_PREFIXremote_servers");
?>
<td><?php print_lang('remote_server');?></td>
<td>

View file

@ -1,8 +1,8 @@
<?php
/*
*
* OGP - Open Game Panel
* Copyright (C) 2008 - 2017 The OGP Development Team
* GSP - GameServer Panel
* Copyright (C) 2008 - 2017 The GSP Development Team
*
* http://www.gameserver-panel.org/
*

View file

@ -1,8 +1,8 @@
<?php
/*
*
* OGP - Open Game Panel
* Copyright (C) 2008 - 2017 The OGP Development Team
* GSP - GameServer Panel
* Copyright (C) 2008 - 2017 The GSP Development Team
*
* http://www.gameserver-panel.org/
*
@ -23,7 +23,7 @@
*/
chdir(realpath(dirname(__FILE__))); /* Change to the current file path */
chdir("../.."); /* Base path to ogp web files */
chdir("../.."); /* Base path to gsp web files */
// Report all PHP errors
error_reporting(E_ALL);
// Path definitions