<?php
require_once "../config/db.php";
require_once "../includes/auth.php";

$id = intval($_GET['id'] ?? 0);
if ($id > 0) {
    $stmt = db()->prepare("DELETE FROM about_sections WHERE id=?");
    $stmt->execute([$id]);
}

header("Location: about.php?msg=deleted");
exit;
