diff --git a/app/conference_centers/conference_center_edit.php b/app/conference_centers/conference_center_edit.php index ac436ee256..46fcdaf38a 100644 --- a/app/conference_centers/conference_center_edit.php +++ b/app/conference_centers/conference_center_edit.php @@ -234,32 +234,11 @@ if (empty($conference_center_enabled)) { $conference_center_enabled = "true"; } if (empty($conference_center_pin_length)) { $conference_center_pin_length = 9; } -//get the recordings - $sql = "select recording_name, recording_filename from v_recordings "; - $sql .= "where domain_uuid = :domain_uuid "; - $sql .= "order by recording_name asc "; - $parameters['domain_uuid'] = $_SESSION['domain_uuid']; - $database = new database; - $recordings = $database->select($sql, $parameters ?? null, 'all'); - unset($sql, $parameters); - -//get the phrases - $sql = "select * from v_phrases "; - $sql .= "where (domain_uuid = :domain_uuid or domain_uuid is null) "; - $parameters['domain_uuid'] = $_SESSION['domain_uuid']; - $database = new database; - $phrases = $database->select($sql, $parameters ?? null, 'all'); - unset($sql, $parameters); - -//get the streams - $sql = "select * from v_streams "; - $sql .= "where (domain_uuid = :domain_uuid or domain_uuid is null) "; - $sql .= "and stream_enabled = 'true' "; - $sql .= "order by stream_name asc "; - $parameters['domain_uuid'] = $_SESSION['domain_uuid']; - $database = new database; - $streams = $database->select($sql, $parameters ?? null, 'all'); - unset($sql, $parameters); +//get the sounds + $sounds = new sounds; + $sounds->sound_types = ['recordings','phrases','sounds']; + $sounds->full_path = ['recordings']; + $audio_files = $sounds->get(); //create token $object = new token; @@ -272,25 +251,25 @@ //show the content if (permission_exists('recording_play') || permission_exists('recording_download')) { echo "\n"; } + if (if_group("superadmin")) { + echo "\n"; + } echo "