Fix tableprefix and cart mysql

This commit is contained in:
Frank Harris 2025-11-10 07:23:01 -05:00
parent 723dd58e71
commit ba6b8d9e6b
19 changed files with 161 additions and 39 deletions

View file

@ -40,7 +40,7 @@ if (session_status() === PHP_SESSION_NONE) {
}
// Load configuration
require_once(__DIR__ . '/includes/config.inc.php');
require_once(__DIR__ . '/bootstrap.php');
// Check if user is logged in
$user_id = 0;
@ -231,8 +231,7 @@ $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https:
$host = $_SERVER['HTTP_HOST'] ?? 'localhost';
$siteBase = $protocol . $host;
// Close database connection
mysqli_close($db);
// (Do not close the shared DB connection here; menu and other includes may use it.)
?>
<!DOCTYPE html>
<html lang="en">