Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; //check permissions if (permission_exists('hunt_group_delete')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support require_once "app_languages.php"; foreach($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } if (count($_GET)>0) { $id = $_GET["id"]; $hunt_group_uuid = check_str($_REQUEST["id2"]); } if (strlen($id)>0) { //delete the data $sql = "delete from v_hunt_group_destinations "; $sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "and hunt_group_destination_uuid = '$id' "; $sql .= "and hunt_group_uuid = '$hunt_group_uuid' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); unset($sql); //synchronize the xml config save_hunt_group_xml(); } //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; ?>