CMXX - Admin cleanup

This commit is contained in:
“VeLiTi”
2025-02-22 15:50:27 +01:00
parent 8bb78d2a08
commit 0b2ee8c3ce
27 changed files with 67 additions and 2698 deletions

View File

@@ -1,6 +1,9 @@
<?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