diff --git a/app/conference_centers/conference_rooms.php b/app/conference_centers/conference_rooms.php index 7db3b33dde..75e112daea 100644 --- a/app/conference_centers/conference_rooms.php +++ b/app/conference_centers/conference_rooms.php @@ -36,6 +36,40 @@ else { require_once "includes/header.php"; require_once "includes/paging.php"; +//if the $_GET array exists then process it + if (count($_GET) > 0) { + //get http GET variables and set them as php variables + $conference_room_uuid = check_str($_GET["conference_room_uuid"]); + $record = check_str($_GET["record"]); + $wait_mod = check_str($_GET["wait_mod"]); + $announce = check_str($_GET["announce"]); + $mute = check_str($_GET["mute"]); + $enabled = check_str($_GET["enabled"]); + + //update the conference room + $sql = "update v_conference_rooms set "; + if (strlen($record) > 0) { + $sql .= "record = '$record' "; + } + if (strlen($wait_mod) > 0) { + $sql .= "wait_mod = '$wait_mod' "; + } + if (strlen($announce) > 0) { + $sql .= "announce = '$announce' "; + } + if (strlen($mute) > 0) { + $sql .= "mute = '$mute' "; + } + if (strlen($enabled) > 0) { + $sql .= "enabled = '$enabled' "; + } + $sql .= "where domain_uuid = '$domain_uuid' "; + $sql .= "and conference_room_uuid = '$conference_room_uuid' "; + //echo $sql; //exit; + $db->exec(check_sql($sql)); + unset($sql); + } + //get conference array $switch_cmd = "conference xml_list"; $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); @@ -143,7 +177,7 @@ require_once "includes/paging.php"; //echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order); echo th_order_by('profile', 'Profile', $order_by, $order); echo th_order_by('record', 'Record', $order_by, $order); - echo th_order_by('max_members', 'Max', $order_by, $order); + //echo th_order_by('max_members', 'Max', $order_by, $order); echo th_order_by('wait_mod', 'Wait Moderator', $order_by, $order); echo th_order_by('announce', 'Announce', $order_by, $order); //echo th_order_by('enter_sound', 'Enter Sound', $order_by, $order); @@ -171,15 +205,56 @@ require_once "includes/paging.php"; //echo " ".$row['conference_center_uuid']." \n"; //echo " ".$row['meeting_uuid']." \n"; echo " ".$row['profile']." \n"; - echo " ".$row['record']." \n"; - echo " ".$row['max_members']." \n"; - echo " ".$row['wait_mod']." \n"; - echo " ".$row['announce']." \n"; + echo " "; + if ($row['record'] == "true") { + echo " ".$row['record'].""; + } + else { + echo " ".$row['record'].""; + } + echo "  \n"; + echo " \n"; + //echo " ".$row['max_members']." \n"; + echo " "; + if ($row['wait_mod'] == "true") { + echo " ".$row['wait_mod'].""; + } + else { + echo " ".$row['wait_mod'].""; + } + echo "  \n"; + echo " \n"; + echo " "; + if ($row['announce'] == "true") { + echo " ".$row['announce'].""; + } + else { + echo " ".$row['announce'].""; + } + echo "  \n"; + echo " \n"; + //echo " ".$row['enter_sound']." \n"; - echo " ".$row['mute']." \n"; + echo " "; + if ($row['mute'] == "true") { + echo " ".$row['mute'].""; + } + else { + echo " ".$row['mute'].""; + } + echo "  \n"; + echo " \n"; //echo " ".$row['created']." \n"; //echo " ".$row['created_by']." \n"; - echo " ".$row['enabled']." \n"; + echo " "; + if ($row['enabled'] == "true") { + echo " ".$row['enabled'].""; + } + else { + echo " ".$row['enabled'].""; + } + echo "  \n"; + echo " \n"; if (strlen($conference[$meeting_uuid]["session_uuid"])) { echo " ".$conference[$meeting_uuid]["member_count"]." \n"; }