From 5e8b1ed34dec77afec45da7ec0a4ac0c34b04d3e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 16 Jun 2019 10:00:34 -0600 Subject: [PATCH] Update conferences_active_inc.php --- .../conferences_active_inc.php | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/app/conferences_active/conferences_active_inc.php b/app/conferences_active/conferences_active_inc.php index b2e0f5ff28..e6939634fb 100644 --- a/app/conferences_active/conferences_active_inc.php +++ b/app/conferences_active/conferences_active_inc.php @@ -17,29 +17,33 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane James Rose */ -include "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('conference_active_view')) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + include "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//check permissions + if (permission_exists('conference_active_view')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; $text = $language->get(); - +//show content $switch_cmd = 'conference xml_list'; $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if (!$fp) { @@ -123,16 +127,16 @@ else { } if (permission_exists('conference_interactive_view')) { - $td_onclick = "onclick=\"document.location.href='conference_interactive.php?c=".$meeting_uuid."'\""; + $td_onclick = "onclick=\"document.location.href='conference_interactive.php?c=".escape($meeting_uuid)."'\""; } echo "\n"; echo ""; - echo (permission_exists('conference_interactive_view')) ? "".$conference_name."" : $conference_name; + echo (permission_exists('conference_interactive_view')) ? "".escape($conference_name)."" : escape($conference_name); echo "\n"; - echo "".$participant_pin."\n"; - echo "".$member_count."\n"; + echo "".escape($participant_pin)."\n"; + echo "".escape($member_count)."\n"; echo ""; - echo (permission_exists('conference_interactive_view')) ? "".$text['button-view']."" : " "; + echo (permission_exists('conference_interactive_view')) ? "".$text['button-view']."" : " "; echo "\n"; echo "\n"; @@ -142,4 +146,4 @@ else { echo "\n"; echo "

"; } -?> \ No newline at end of file +?>