|
@@ -13,52 +13,52 @@ discard block |
|
|
block discarded – undo |
|
13
|
13
|
|
|
14
|
14
|
global $BIGBLUEBUTTONBN_CFG; |
|
15
|
15
|
|
|
16
|
|
-require_once(dirname(__FILE__).'/locallib.php'); |
|
|
16
|
+require_once(dirname(__FILE__) . '/locallib.php'); |
|
17
|
17
|
|
|
18
|
18
|
if ($ADMIN->fulltree) { |
|
19
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_server_url) || |
|
20
|
|
- !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_shared_secret) ) { |
|
21
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_config_general', |
|
|
19
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_server_url) || |
|
|
20
|
+ !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_shared_secret)) { |
|
|
21
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_config_general', |
|
22
|
22
|
get_string('config_general', 'bigbluebuttonbn'), |
|
23
|
23
|
get_string('config_general_description', 'bigbluebuttonbn'))); |
|
24
|
24
|
|
|
25
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_server_url) ) { |
|
26
|
|
- $settings->add( new admin_setting_configtext( 'bigbluebuttonbn_server_url', |
|
27
|
|
- get_string( 'config_server_url', 'bigbluebuttonbn' ), |
|
28
|
|
- get_string( 'config_server_url_description', 'bigbluebuttonbn' ), |
|
|
25
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_server_url)) { |
|
|
26
|
+ $settings->add(new admin_setting_configtext('bigbluebuttonbn_server_url', |
|
|
27
|
+ get_string('config_server_url', 'bigbluebuttonbn'), |
|
|
28
|
+ get_string('config_server_url_description', 'bigbluebuttonbn'), |
|
29
|
29
|
bigbluebuttonbn_get_cfg_server_url_default())); |
|
30
|
30
|
} |
|
31
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_shared_secret) ) { |
|
32
|
|
- $settings->add( new admin_setting_configtext( 'bigbluebuttonbn_shared_secret', |
|
33
|
|
- get_string( 'config_shared_secret', 'bigbluebuttonbn' ), |
|
34
|
|
- get_string( 'config_shared_secret_description', 'bigbluebuttonbn' ), |
|
|
31
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_shared_secret)) { |
|
|
32
|
+ $settings->add(new admin_setting_configtext('bigbluebuttonbn_shared_secret', |
|
|
33
|
+ get_string('config_shared_secret', 'bigbluebuttonbn'), |
|
|
34
|
+ get_string('config_shared_secret_description', 'bigbluebuttonbn'), |
|
35
|
35
|
bigbluebuttonbn_get_cfg_shared_secret_default())); |
|
36
|
36
|
} |
|
37
|
37
|
} |
|
38
|
38
|
|
|
39
|
39
|
//// Configuration for 'recording' feature |
|
40
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_default) || |
|
|
40
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_default) || |
|
41
|
41
|
!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_editable) || |
|
42
|
|
- !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_icons_enabled) ) { |
|
43
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_recording', |
|
|
42
|
+ !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_icons_enabled)) { |
|
|
43
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_recording', |
|
44
|
44
|
get_string('config_feature_recording', 'bigbluebuttonbn'), |
|
45
|
45
|
get_string('config_feature_recording_description', 'bigbluebuttonbn'))); |
|
46
|
46
|
|
|
47
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_default) ) { |
|
|
47
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_default)) { |
|
48
|
48
|
// default value for 'recording' feature |
|
49
|
49
|
$settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recording_default', |
|
50
|
50
|
get_string('config_feature_recording_default', 'bigbluebuttonbn'), |
|
51
|
51
|
get_string('config_feature_recording_default_description', 'bigbluebuttonbn'), |
|
52
|
52
|
1)); |
|
53
|
53
|
} |
|
54
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_editable) ) { |
|
|
54
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_editable)) { |
|
55
|
55
|
// UI for 'recording' feature |
|
56
|
56
|
$settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recording_editable', |
|
57
|
57
|
get_string('config_feature_recording_editable', 'bigbluebuttonbn'), |
|
58
|
58
|
get_string('config_feature_recording_editable_description', 'bigbluebuttonbn'), |
|
59
|
59
|
1)); |
|
60
|
60
|
} |
|
61
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_icons_enabled) ) { |
|
|
61
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_icons_enabled)) { |
|
62
|
62
|
// Front panel for 'recording' managment feature |
|
63
|
63
|
$settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recording_icons_enabled', |
|
64
|
64
|
get_string('config_feature_recording_icons_enabled', 'bigbluebuttonbn'), |
|
@@ -68,13 +68,13 @@ discard block |
|
|
block discarded – undo |
|
68
|
68
|
} |
|
69
|
69
|
|
|
70
|
70
|
//// Configuration for 'recording tagging' feature |
|
71
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_default) || |
|
72
|
|
- !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_editable) ) { |
|
73
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_recordingtagging', |
|
|
71
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_default) || |
|
|
72
|
+ !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_editable)) { |
|
|
73
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_recordingtagging', |
|
74
|
74
|
get_string('config_feature_recordingtagging', 'bigbluebuttonbn'), |
|
75
|
75
|
get_string('config_feature_recordingtagging_description', 'bigbluebuttonbn'))); |
|
76
|
76
|
|
|
77
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_default) ) { |
|
|
77
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_default)) { |
|
78
|
78
|
// default value for 'recording tagging' feature |
|
79
|
79
|
$settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recordingtagging_default', |
|
80
|
80
|
get_string('config_feature_recordingtagging_default', 'bigbluebuttonbn'), |
|
@@ -82,7 +82,7 @@ discard block |
|
|
block discarded – undo |
|
82
|
82
|
0)); |
|
83
|
83
|
} |
|
84
|
84
|
// UI for 'recording tagging' feature |
|
85
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_editable) ) { |
|
|
85
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_editable)) { |
|
86
|
86
|
$settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recordingtagging_editable', |
|
87
|
87
|
get_string('config_feature_recordingtagging_editable', 'bigbluebuttonbn'), |
|
88
|
88
|
get_string('config_feature_recordingtagging_editable_description', 'bigbluebuttonbn'), |
|
@@ -91,8 +91,8 @@ discard block |
|
|
block discarded – undo |
|
91
|
91
|
} |
|
92
|
92
|
|
|
93
|
93
|
//// Configuration for 'import recordings' feature |
|
94
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_enabled) ) { |
|
95
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_importrecordings', |
|
|
94
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_enabled)) { |
|
|
95
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_importrecordings', |
|
96
|
96
|
get_string('config_feature_importrecordings', 'bigbluebuttonbn'), |
|
97
|
97
|
get_string('config_feature_importrecordings_description', 'bigbluebuttonbn'))); |
|
98
|
98
|
|
|
@@ -104,36 +104,36 @@ discard block |
|
|
block discarded – undo |
|
104
|
104
|
} |
|
105
|
105
|
|
|
106
|
106
|
//// Configuration for wait for moderator feature |
|
107
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_default) || |
|
|
107
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_default) || |
|
108
|
108
|
!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_editable) || |
|
109
|
109
|
!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_ping_interval) || |
|
110
|
|
- !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_cache_ttl) ) { |
|
111
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_waitformoderator', |
|
|
110
|
+ !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_cache_ttl)) { |
|
|
111
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_waitformoderator', |
|
112
|
112
|
get_string('config_feature_waitformoderator', 'bigbluebuttonbn'), |
|
113
|
113
|
get_string('config_feature_waitformoderator_description', 'bigbluebuttonbn'))); |
|
114
|
114
|
|
|
115
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_default) ) { |
|
|
115
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_default)) { |
|
116
|
116
|
//default value for 'wait for moderator' feature |
|
117
|
117
|
$settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_waitformoderator_default', |
|
118
|
118
|
get_string('config_feature_waitformoderator_default', 'bigbluebuttonbn'), |
|
119
|
119
|
get_string('config_feature_waitformoderator_default_description', 'bigbluebuttonbn'), |
|
120
|
120
|
0)); |
|
121
|
121
|
} |
|
122
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_editable) ) { |
|
|
122
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_editable)) { |
|
123
|
123
|
// UI for 'wait for moderator' feature |
|
124
|
124
|
$settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_waitformoderator_editable', |
|
125
|
125
|
get_string('config_feature_waitformoderator_editable', 'bigbluebuttonbn'), |
|
126
|
126
|
get_string('config_feature_waitformoderator_editable_description', 'bigbluebuttonbn'), |
|
127
|
127
|
1)); |
|
128
|
128
|
} |
|
129
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_ping_interval) ) { |
|
|
129
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_ping_interval)) { |
|
130
|
130
|
//ping interval value for 'wait for moderator' feature |
|
131
|
131
|
$settings->add(new admin_setting_configtext('bigbluebuttonbn_waitformoderator_ping_interval', |
|
132
|
132
|
get_string('config_feature_waitformoderator_ping_interval', 'bigbluebuttonbn'), |
|
133
|
133
|
get_string('config_feature_waitformoderator_ping_interval_description', 'bigbluebuttonbn'), |
|
134
|
134
|
10, PARAM_INT)); |
|
135
|
135
|
} |
|
136
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_cache_ttl) ) { |
|
|
136
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_cache_ttl)) { |
|
137
|
137
|
//cache TTL value for 'wait for moderator' feature |
|
138
|
138
|
$settings->add(new admin_setting_configtext('bigbluebuttonbn_waitformoderator_cache_ttl', |
|
139
|
139
|
get_string('config_feature_waitformoderator_cache_ttl', 'bigbluebuttonbn'), |
|
@@ -143,8 +143,8 @@ discard block |
|
|
block discarded – undo |
|
143
|
143
|
} |
|
144
|
144
|
|
|
145
|
145
|
//// Configuration for "static voice bridge" feature |
|
146
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_voicebridge_editable) ) { |
|
147
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_voicebridge', |
|
|
146
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_voicebridge_editable)) { |
|
|
147
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_voicebridge', |
|
148
|
148
|
get_string('config_feature_voicebridge', 'bigbluebuttonbn'), |
|
149
|
149
|
get_string('config_feature_voicebridge_description', 'bigbluebuttonbn'))); |
|
150
|
150
|
|
|
@@ -156,10 +156,10 @@ discard block |
|
|
block discarded – undo |
|
156
|
156
|
} |
|
157
|
157
|
|
|
158
|
158
|
//// Configuration for "preupload presentation" feature |
|
159
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_preuploadpresentation_enabled) ) { |
|
|
159
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_preuploadpresentation_enabled)) { |
|
160
|
160
|
// This feature only works if curl is installed |
|
161
|
161
|
if (extension_loaded('curl')) { |
|
162
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation', |
|
|
162
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation', |
|
163
|
163
|
get_string('config_feature_preuploadpresentation', 'bigbluebuttonbn'), |
|
164
|
164
|
get_string('config_feature_preuploadpresentation_description', 'bigbluebuttonbn') |
|
165
|
165
|
)); |
|
@@ -170,29 +170,29 @@ discard block |
|
|
block discarded – undo |
|
170
|
170
|
get_string('config_feature_preuploadpresentation_enabled_description', 'bigbluebuttonbn'), |
|
171
|
171
|
0)); |
|
172
|
172
|
} else { |
|
173
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation', |
|
|
173
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation', |
|
174
|
174
|
get_string('config_feature_preuploadpresentation', 'bigbluebuttonbn'), |
|
175
|
|
- get_string('config_feature_preuploadpresentation_description', 'bigbluebuttonbn').'<br><br>'. |
|
176
|
|
- '<div class="form-defaultinfo">'.get_string('config_warning_curl_not_installed', 'bigbluebuttonbn').'</div><br>' |
|
|
175
|
+ get_string('config_feature_preuploadpresentation_description', 'bigbluebuttonbn') . '<br><br>' . |
|
|
176
|
+ '<div class="form-defaultinfo">' . get_string('config_warning_curl_not_installed', 'bigbluebuttonbn') . '</div><br>' |
|
177
|
177
|
)); |
|
178
|
178
|
} |
|
179
|
179
|
} |
|
180
|
180
|
|
|
181
|
181
|
//// Configuration for "user limit" feature |
|
182
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_default) || |
|
183
|
|
- !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_editable) ) { |
|
184
|
|
- $settings->add( new admin_setting_heading('config_userlimit', |
|
|
182
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_default) || |
|
|
183
|
+ !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_editable)) { |
|
|
184
|
+ $settings->add(new admin_setting_heading('config_userlimit', |
|
185
|
185
|
get_string('config_feature_userlimit', 'bigbluebuttonbn'), |
|
186
|
186
|
get_string('config_feature_userlimit_description', 'bigbluebuttonbn'))); |
|
187
|
187
|
|
|
188
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_default) ) { |
|
|
188
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_default)) { |
|
189
|
189
|
//default value for 'user limit' feature |
|
190
|
190
|
$settings->add(new admin_setting_configtext('bigbluebuttonbn_userlimit_default', |
|
191
|
191
|
get_string('config_feature_userlimit_default', 'bigbluebuttonbn'), |
|
192
|
192
|
get_string('config_feature_userlimit_default_description', 'bigbluebuttonbn'), |
|
193
|
193
|
0, PARAM_INT)); |
|
194
|
194
|
} |
|
195
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_editable) ) { |
|
|
195
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_editable)) { |
|
196
|
196
|
// UI for 'user limit' feature |
|
197
|
197
|
$settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_userlimit_editable', |
|
198
|
198
|
get_string('config_feature_userlimit_editable', 'bigbluebuttonbn'), |
|
@@ -202,8 +202,8 @@ discard block |
|
|
block discarded – undo |
|
202
|
202
|
} |
|
203
|
203
|
|
|
204
|
204
|
//// Configuration for "scheduled duration" feature |
|
205
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_scheduled_duration_enabled) ) { |
|
206
|
|
- $settings->add( new admin_setting_heading('config_scheduled', |
|
|
205
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_scheduled_duration_enabled)) { |
|
|
206
|
+ $settings->add(new admin_setting_heading('config_scheduled', |
|
207
|
207
|
get_string('config_scheduled', 'bigbluebuttonbn'), |
|
208
|
208
|
get_string('config_scheduled_description', 'bigbluebuttonbn'))); |
|
209
|
209
|
|
|
@@ -227,8 +227,8 @@ discard block |
|
|
block discarded – undo |
|
227
|
227
|
} |
|
228
|
228
|
|
|
229
|
229
|
//// Configuration for defining the default role/user that will be moderator on new activities |
|
230
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_moderator_default) ) { |
|
231
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_permission', |
|
|
230
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_moderator_default)) { |
|
|
231
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_permission', |
|
232
|
232
|
get_string('config_permission', 'bigbluebuttonbn'), |
|
233
|
233
|
get_string('config_permission_description', 'bigbluebuttonbn'))); |
|
234
|
234
|
|
|
@@ -242,8 +242,8 @@ discard block |
|
|
block discarded – undo |
|
242
|
242
|
} |
|
243
|
243
|
|
|
244
|
244
|
//// Configuration for "send notifications" feature |
|
245
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_sendnotifications_enabled) ) { |
|
246
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_sendnotifications', |
|
|
245
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_sendnotifications_enabled)) { |
|
|
246
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_sendnotifications', |
|
247
|
247
|
get_string('config_feature_sendnotifications', 'bigbluebuttonbn'), |
|
248
|
248
|
get_string('config_feature_sendnotifications_description', 'bigbluebuttonbn'))); |
|
249
|
249
|
|
|
@@ -255,10 +255,10 @@ discard block |
|
|
block discarded – undo |
|
255
|
255
|
} |
|
256
|
256
|
|
|
257
|
257
|
//// Configuration for extended BN capabilities |
|
258
|
|
- if( bigbluebuttonbn_server_offers_bn_capabilities() ) { |
|
|
258
|
+ if (bigbluebuttonbn_server_offers_bn_capabilities()) { |
|
259
|
259
|
//// Configuration for 'notify users when recording ready' feature |
|
260
|
|
- if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingready_enabled) ) { |
|
261
|
|
- $settings->add( new admin_setting_heading('bigbluebuttonbn_extended_capabilities', |
|
|
260
|
+ if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingready_enabled)) { |
|
|
261
|
+ $settings->add(new admin_setting_heading('bigbluebuttonbn_extended_capabilities', |
|
262
|
262
|
get_string('config_extended_capabilities', 'bigbluebuttonbn'), |
|
263
|
263
|
get_string('config_extended_capabilities_description', 'bigbluebuttonbn'))); |
|
264
|
264
|
|