diff --git a/app/conferences_active/conference_interactive_inc.php b/app/conferences_active/conference_interactive_inc.php index c06282127a..c74faca9d8 100644 --- a/app/conferences_active/conference_interactive_inc.php +++ b/app/conferences_active/conference_interactive_inc.php @@ -17,23 +17,27 @@ 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_interactive_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_interactive_view')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; @@ -107,7 +111,7 @@ else { echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; @@ -165,11 +169,11 @@ else { $caller_id_name = $row->caller_id_name; $caller_id_name = urldecode($caller_id_name); $caller_id_number = $row->caller_id_number; - + //format seconds $join_time_formatted = sprintf('%02d:%02d:%02d', ($join_time/3600), ($join_time/60%60), $join_time%60); $last_talking_formatted = sprintf('%02d:%02d:%02d', ($last_talking/3600), ($last_talking/60%60), $last_talking%60); - + if (strlen($record_path) == 0) { if (permission_exists('conference_interactive_mute')) { $action_mute = ($flag_can_speak == "true") ? 'mute' : 'unmute'; @@ -179,8 +183,8 @@ else { echo "\n"; echo "\n"; $talking_icon = ($flag_talking == "true") ? "" : null; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -228,4 +232,5 @@ else { echo "
"; - echo " ".$text['label-members'].": ".$member_count."\n"; + echo " ".$text['label-members'].": ".escape($member_count)."\n"; echo " \n"; @@ -128,9 +132,9 @@ else { } if (permission_exists('conference_interactive_mute')) { $action_mute_all = ($mute_all == "true") ? 'unmute' : 'mute'; - echo " \n"; + echo " \n"; } - echo " \n"; + echo " \n"; echo "
".$caller_id_name.$talking_icon."".$caller_id_number."".escape($caller_id_name).$talking_icon."".escape($caller_id_number).""; echo ($flag_can_hear == "true") ? "" : null; echo ($flag_can_speak == "true") ? "" : null; @@ -188,36 +192,36 @@ else { echo ($flag_has_video == "true") ? "" : null; } echo "".$join_time_formatted."".$last_talking_formatted."".escape($join_time_formatted)."".escape($last_talking_formatted)."".$text['label-'.(($flag_has_floor == "true") ? 'yes' : 'no')]."\n"; //energy if (permission_exists('conference_interactive_energy')) { - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; } //volume if (permission_exists('conference_interactive_volume')) { - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; } if (permission_exists('conference_interactive_gain')) { - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; } //mute and unmute if (permission_exists('conference_interactive_mute')) { - echo " \n"; + echo " \n"; } //deaf and undeaf if (permission_exists('conference_interactive_deaf')) { $action_deaf = ($flag_can_hear == "true") ? 'deaf' : 'undeaf'; - echo " \n"; + echo " \n"; } //kick someone from the conference if (permission_exists('conference_interactive_kick')) { - echo " \n"; + echo " \n"; } echo "
\n"; echo "

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