Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ require_once "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; if (permission_exists('services_delete')) { //access granted } else { echo "access denied"; exit; } if (count($_GET)>0) { $id = check_str($_GET["id"]); } //delete the data if (strlen($id)>0) { $sql = "delete from v_services "; $sql .= "where service_uuid = '$id' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); unset($sql); } //redirect the user require_once "includes/header.php"; echo "\n"; echo "
\n"; echo $text['message-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; ?>