hasGlobalAdmin()) { require 'includes/html/error-no-perm.inc.php'; exit; } $pagetitle[] = "Delete device"; if (LegacyAuth::user()->isDemoUser()) { demo_account(); } else { if (is_numeric($_REQUEST['id'])) { echo('
'); if ($_REQUEST['confirm']) { print_message(nl2br(delete_device(mres($_REQUEST['id'])))."\n"); } else { $device = device_by_id_cache($_REQUEST['id']); print_error("Are you sure you want to delete device " . $device['hostname'] . "?"); ?>

'); } else { ?>

Delete Device