<?php
session_start();
require_once '../includes/config.php';

if (isset($_GET['id'])) {
    $id = intval($_GET['id']);

    $stmt = $pdo->prepare("DELETE FROM sites WHERE id = ?");
    $stmt->execute([$id]);
}

header("Location: manage_sites.php");
exit;
