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 require_once "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(); } 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 .= "conference_room_name, "; $sql .= "participant_pin "; $sql .= "from v_conference_rooms "; $sql .= "where 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']; $participant_pin = $conference['participant_pin']; unset ($parameters, $conference, $sql); $conference_uuid = $name_array[0]; //check the conference table if (strlen($conference_name) == 0) { $sql = "select "; $sql .= "conference_name, "; $sql .= "conference_pin_number "; $sql .= "from "; $sql .= "v_conferences "; $sql .= "where "; $sql .= "domain_uuid = :domain_uuid "; $sql .= "and conference_uuid = :conference_uuid "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $parameters['conference_uuid'] = $conference_uuid; $database = new database; $conference = $database->select($sql, $parameters, 'row'); $conference_name = $conference['conference_name']; $participant_pin = $conference['conference_pin_number']; unset ($parameters, $sql); } } //if numeric use the conference extension as the name if (isset($name_array[0]) && is_numeric($name_array[0])) { $conference_name = $name_array[0]; } if (permission_exists('conference_interactive_view')) { $list_row_url = 'conference_interactive.php?c='.urlencode($conference_uuid); } echo "\n"; echo " \n"; echo " \n"; echo " \n"; if (permission_exists('conference_interactive_view') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') { echo " \n"; } echo "\n"; $x++; } } echo "
".$text['label-name']."".$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($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 "

"; } ?>