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 "