Fix cart.php and order.php to use centralized db.php

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-10-22 01:17:07 +00:00
parent 490b35c556
commit 92e410a030
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
global $db, $view, $settings;
include "panel/_db.php";
include "db.php";
$user_id=$_SESSION['user_id'] ?? 0;

View file

@ -11,7 +11,7 @@ In our website, we are setting "post" pages with a "Tag". The first tag in our p
There are other methods that might be better to get the info. But all we need is the "service_ID" in the "ogp_billing_services" table
This method means we can use one code block in every game page and fill in the data dynamically.
*/
include "panel/_db.php";
include "db.php";
if (isset($_POST['save']) AND !empty($_POST['description']))