Production version

This commit is contained in:
“VeLiTi”
2025-10-20 18:26:38 +02:00
parent eb66b48096
commit f48508ded8
9 changed files with 123 additions and 14 deletions

View File

@@ -1,9 +1,7 @@
<?php
// Prevent direct access to file
defined(security_key) or exit;
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
// Remove product from cart, check for the URL param "remove", this is the product id, make sure it's a number and check if it's in the cart
if (isset($_GET['remove']) && is_numeric($_GET['remove']) && isset($_SESSION['cart']) && isset($_SESSION['cart'][$_GET['remove']])) {
// Remove the product from the shopping cart