Portions created by the Initial Developer are Copyright (C) 2008-2023 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ //includes files require_once dirname(__DIR__, 2) . "/resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('bdr_delete')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); //check for the id if (count($_GET) > 0) { $id = check_str($_GET["id"]); } if (strlen($id) > 0) { //get the user_context $sql = "SELECT bdr.bdr_part_by_node_names('$id')"; // print_r($sql); // die(); $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); unset ($prep_statement); } //redirect the browser $_SESSION["message"] = $text['label-delete-complete']; header("Location: bdr.php"); return; ?>