Пример #1
1
<?php

// TODO: Uncomment
include "access.php";
include_once "../includes/SystemConfiguration.class.php";
global $systemConfiguration;
global $logger;
// If we have id, then we are trying to delete
if (isset($_GET['id']) && is_numeric($_GET['id'])) {
    $id = $_GET['id'];
    PromoCode::delete($id);
}
header("Location: promo_codes_list.php");