<?php require_once("../../config.php");

if (isset($_GET['id'])) {

    $query = query("DELETE FROM admins WHERE admin_id = " . escape_string($_GET['id']) . " ");
    confirm($query);

    set_message("Admin Deleted");
    redirect("../../../public/admin/index.php?admins");
} else {

    redirect("../../../public/admin/index.php?admins");
}