Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane James Rose */ //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 $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if (!$fp) { $msg = "
".$text['message-connection']."
"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
".$text['label-message']."
$msg
\n"; echo "
\n"; } else { $xml_string = trim(event_socket_request($fp, 'api conference xml_list')); try { $xml = new SimpleXMLElement($xml_string); } catch(Exception $e) { //echo $e->getMessage(); } $c = 0; $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; foreach ($xml->conference as $row) { //set the variables $name = $row['name']; $member_count = $row['member-count']; //show the conferences that have a matching domain $name_array = explode('@', $name); if ($name_array[1] == $_SESSION['domain_name']) { $conference_name = $name_array[0]; if (is_uuid($conference_name)) { $sql = "select "; $sql .= "cr.conference_room_name, "; $sql .= "v.participant_pin "; $sql .= "from "; $sql .= "v_meetings as v, "; $sql .= "v_conference_rooms as cr "; $sql .= "where "; $sql .= "v.meeting_uuid = cr.meeting_uuid "; $sql .= "and v.meeting_uuid = :meeting_uuid "; $parameters['meeting_uuid'] = $conference_name; $database = new database; $conference = $database->select($sql, $parameters, 'row'); $conference_name = $conference['conference_room_name']; $participant_pin = $conference['participant_pin']; unset ($parameters, $conference, $sql); $conference_id = $name_array[0]; } else { $sql = "select "; $sql .= "conference_pin_number "; $sql .= "from "; $sql .= "v_conferences "; $sql .= "where "; $sql .= "domain_uuid = :domain_uuid "; $sql .= "and conference_name = :conference_name "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $parameters['conference_name'] = $conference_name; $database = new database; $participant_pin = $database->select($sql, $parameters, 'column'); unset ($parameters, $sql); $conference_id = $conference_name; } if (permission_exists('conference_interactive_view')) { $td_onclick = "onclick=\"document.location.href='conference_interactive.php?c=".escape($conference_name)."'\""; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if ($c==0) { $c=1; } else { $c=0; } } } echo "
".$text['label-name']."".$text['label-participant-pin']."".$text['label-member-count']." 
"; echo (permission_exists('conference_interactive_view')) ? "".escape($conference_name)."" : escape($conference_name); echo "".escape($participant_pin)."".escape($member_count).""; echo (permission_exists('conference_interactive_view')) ? "".$text['button-view']."" : " "; echo "
\n"; echo "

"; } ?>