Portions created by the Initial Developer are Copyright (C) 2008-2015 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('contact_group_delete')) { //access granted } else { echo "access denied"; exit; } // check if included in another file if (!$included) { //add multi-lingual support $language = new text; $text = $language->get(); if (count($_REQUEST) > 0) { $contact_user_uuid = check_str($_REQUEST["id"]); $contact_uuid = check_str($_REQUEST["contact_uuid"]); } } //delete the user if (is_uuid($contact_uuid) && is_uuid($contact_user_uuid)) { $sql = "delete from v_contact_users "; $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; $sql .= "and contact_user_uuid = '$contact_user_uuid' "; $db->exec(check_sql($sql)); unset($sql); } //redirect the browser if (!$included) { $_SESSION["message"] = $text['message-delete']; header("Location: contact_edit.php?id=".$contact_uuid); return; } ?>