From 1a2e661391bb1bdb09eeffacc8b35da73c31b910 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 25 Jan 2013 15:42:52 +0000 Subject: [PATCH] Update active conference add a column to identifier the moderator. --- app/conferences_active/app_config.php | 18 +++++++++--------- app/conferences_active/app_languages.php | 1 + .../conference_interactive_inc.php | 8 ++++++++ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/app/conferences_active/app_config.php b/app/conferences_active/app_config.php index 2fe66293f0..c354ee6797 100644 --- a/app/conferences_active/app_config.php +++ b/app/conferences_active/app_config.php @@ -53,19 +53,19 @@ $apps[$x]['permissions'][3]['groups'][] = 'superadmin'; $apps[$x]['permissions'][4]['name'] = 'conferences_active_energy'; - $apps[$x]['permissions'][4]['groups'][] = 'user'; - $apps[$x]['permissions'][4]['groups'][] = 'admin'; - $apps[$x]['permissions'][4]['groups'][] = 'superadmin'; + //$apps[$x]['permissions'][4]['groups'][] = 'user'; + //$apps[$x]['permissions'][4]['groups'][] = 'admin'; + //$apps[$x]['permissions'][4]['groups'][] = 'superadmin'; $apps[$x]['permissions'][5]['name'] = 'conferences_active_volume'; - $apps[$x]['permissions'][5]['groups'][] = 'user'; - $apps[$x]['permissions'][5]['groups'][] = 'admin'; - $apps[$x]['permissions'][5]['groups'][] = 'superadmin'; + //$apps[$x]['permissions'][5]['groups'][] = 'user'; + //$apps[$x]['permissions'][5]['groups'][] = 'admin'; + //$apps[$x]['permissions'][5]['groups'][] = 'superadmin'; $apps[$x]['permissions'][6]['name'] = 'conferences_active_gain'; - $apps[$x]['permissions'][6]['groups'][] = 'user'; - $apps[$x]['permissions'][6]['groups'][] = 'admin'; - $apps[$x]['permissions'][6]['groups'][] = 'superadmin'; + //$apps[$x]['permissions'][6]['groups'][] = 'user'; + //$apps[$x]['permissions'][6]['groups'][] = 'admin'; + //$apps[$x]['permissions'][6]['groups'][] = 'superadmin'; $apps[$x]['permissions'][7]['name'] = 'conferences_active_mute'; $apps[$x]['permissions'][7]['groups'][] = 'user'; diff --git a/app/conferences_active/app_languages.php b/app/conferences_active/app_languages.php index 74ef4b6853..02527f5036 100644 --- a/app/conferences_active/app_languages.php +++ b/app/conferences_active/app_languages.php @@ -39,6 +39,7 @@ $text['label-id']['en-us'] = 'ID'; $text['label-cid-name']['en-us'] = 'Caller ID Name'; $text['label-cid-num']['en-us'] = 'Caller ID Number'; + $text['label-moderator']['en-us'] = 'Moderator'; $text['label-joined']['en-us'] = 'Joined'; $text['label-hear']['en-us'] = 'Hear'; $text['label-speak']['en-us'] = 'Speak'; diff --git a/app/conferences_active/conference_interactive_inc.php b/app/conferences_active/conference_interactive_inc.php index d39a9b1c45..e14537f816 100644 --- a/app/conferences_active/conference_interactive_inc.php +++ b/app/conferences_active/conference_interactive_inc.php @@ -165,6 +165,7 @@ else { //echo "UUID\n"; echo "".$text['label-cid-name']."\n"; echo "".$text['label-cid-num']."\n"; + echo "".$text['label-moderator']."\n"; echo "".$text['label-joined']."\n"; echo "".$text['label-hear']."\n"; echo "".$text['label-speak']."\n"; @@ -185,6 +186,7 @@ else { $join_time = $row->join_time; $flag_has_video = $row->flags->has_video; $flag_has_floor = $row->flags->has_floor; + $is_moderator = $row->flags->is_moderator; $uuid = $row->uuid; $caller_id_name = $row->caller_id_name; $caller_id_name = str_replace("%20", " ", $caller_id_name); @@ -200,6 +202,12 @@ else { //echo "$uuid\n"; echo "$caller_id_name\n"; echo "$caller_id_number\n"; + if ($is_moderator == "true") { + echo "".$text['label-yes']."\n"; + } + else { + echo "".$text['label-no']."\n"; + } echo "".$join_time_formatted."\n"; if ($flag_can_hear == "true") { echo "".$text['label-yes']."\n";