Portions created by the Initial Developer are Copyright (C) 2008-2023 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane James Rose */ //includes files require_once dirname(__DIR__, 2) . "/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(); } echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; if (permission_exists('conference_interactive_view')) { echo " \n"; } echo "\n"; $x = 0; 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_uuid = $name_array[0]; //if uuid then lookup the conference name if (isset($name_array[0]) && is_uuid($name_array[0])) { //check for the conference center room $sql = "select "; $sql .= "cr.conference_room_name, "; $sql .= "cc.conference_center_extension, "; $sql .= "cr.participant_pin "; $sql .= "from v_conference_rooms as cr "; $sql .= "left join v_conference_centers as cc on cr.conference_center_uuid = cc.conference_center_uuid "; $sql .= "where cr.conference_room_uuid = :conference_room_uuid "; $parameters['conference_room_uuid'] = $conference_uuid; $database = new database; $conference = $database->select($sql, $parameters, 'row'); $conference_name = $conference['conference_room_name']; $conference_extension = $conference['conference_center_extension']; $participant_pin = $conference['participant_pin']; unset ($parameters, $conference, $sql); } else if (isset($name_array[0]) && is_numeric($name_array[0])) { //check the conference table $sql = "select "; $sql .= "conference_name, "; $sql .= "conference_extension, "; $sql .= "conference_pin_number "; $sql .= "from "; $sql .= "v_conferences "; $sql .= "where "; $sql .= "domain_uuid = :domain_uuid "; $sql .= "and conference_extension = :conference_extension "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $parameters['conference_extension'] = $name_array[0]; $database = new database; $conference = $database->select($sql, $parameters, 'row'); $conference_name = $conference['conference_name']; $conference_extension = $conference['conference_extension']; $participant_pin = $conference['conference_pin_number']; unset ($parameters, $sql); } if (permission_exists('conference_interactive_view')) { $list_row_url = 'conference_interactive.php?c='.urlencode($conference_uuid); } echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; if (permission_exists('conference_interactive_view') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') { echo " \n"; } echo "\n"; $x++; } } echo "
".$text['label-name']."".$text['label-extension']."".$text['label-participant-pin']."".$text['label-member-count']." 
"; if (permission_exists('conference_interactive_view')) { echo " ".escape($conference_name).""; } else { echo escape($conference_name); } echo " ".escape($conference_extension)."".escape($participant_pin)."".escape($member_count).""; echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]); echo "
\n"; echo "

"; } ?>