Portions created by the Initial Developer are Copyright (C) 2008-2012 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_advanced_view')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); $switch_cmd = 'conference xml_list'; $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_str = trim(event_socket_request($fp, 'api '.$switch_cmd)); try { $xml = new SimpleXMLElement($xml_str); } 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 $tmp_domain = substr($name, -strlen($_SESSION['domain_name'])); if ($tmp_domain == $_SESSION['domain_name']) { $meeting_uuid = substr($name, 0, strlen($name) - strlen('-'.$_SESSION['domain_name'])); if (is_uuid($meeting_uuid)) { $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."' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(); foreach ($result as $row2) { $conference_room_name = $row2['conference_room_name']; $participant_pin = $row2['participant_pin']; } unset ($prep_statement); } 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']." 
".$conference_room_name."".$participant_pin."".$member_count."".$text['button-view']."
\n"; } ?>