diff --git a/app/music_on_hold/music_on_hold_delete.php b/app/music_on_hold/music_on_hold_delete.php deleted file mode 100644 index 80d4d7fe48..0000000000 --- a/app/music_on_hold/music_on_hold_delete.php +++ /dev/null @@ -1,76 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2016 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ - -//includes - require_once "root.php"; - require_once "resources/require.php"; - -//check permissions - require_once "resources/check_auth.php"; - if (permission_exists('music_on_hold_delete')) { - //access granted - } - else { - echo "access denied"; - exit; - } - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//get the id - $music_on_hold_uuid = $_GET["id"]; - - -if (is_uuid($music_on_hold_uuid)) { - - //delete the data - $array['music_on_hold'][0]['music_on_hold_uuid'] = $music_on_hold_uuid; - - $database = new database; - $database->app_name = 'music_on_hold'; - $database->app_uuid = '1dafe0f8-c08a-289b-0312-15baf4f20f81'; - $database->delete($array); - unset($array); - - //clear the cache - $cache = new cache; - $cache->delete("configuration:local_stream.conf"); - - //reload mod local stream - $music = new switch_music_on_hold; - $music->reload(); - - //set messsage - message::add($text['message-delete']); -} - -//redirect the user - header('Location: music_on_hold.php'); - exit; - -?>