Merge branch 'MDL-65812-editable-timeout' of https://github.com/brendanheywood/moodle
[moodle.git] / admin / settings / server.php
CommitLineData
11b749ca 1<?php
1ea1bcb3 2
3// This file defines settingpages and externalpages under the "server" category
4
a559f630 5if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
6
1ea1bcb3 7// "systempaths" settingpage
e106013f 8$temp = new admin_settingpage('systempaths', new lang_string('systempaths','admin'));
c759ae5d
TBM
9$temp->add(new admin_setting_configexecutable('pathtophp', new lang_string('pathtophp', 'admin'),
10 new lang_string('configpathtophp', 'admin'), ''));
e106013f
SH
11$temp->add(new admin_setting_configexecutable('pathtodu', new lang_string('pathtodu', 'admin'), new lang_string('configpathtodu', 'admin'), ''));
12$temp->add(new admin_setting_configexecutable('aspellpath', new lang_string('aspellpath', 'admin'), new lang_string('edhelpaspellpath'), ''));
13$temp->add(new admin_setting_configexecutable('pathtodot', new lang_string('pathtodot', 'admin'), new lang_string('pathtodot_help', 'admin'), ''));
1bce3a70 14$temp->add(new admin_setting_configexecutable('pathtogs', new lang_string('pathtogs', 'admin'), new lang_string('pathtogs_help', 'admin'), '/usr/bin/gs'));
391663ce
MN
15$temp->add(new admin_setting_configexecutable('pathtopython', new lang_string('pathtopython', 'admin'),
16 new lang_string('pathtopythondesc', 'admin'), ''));
1caea91e 17$ADMIN->add('server', $temp);
1ea1bcb3 18
19
20
2f2137fc 21// "supportcontact" settingpage
e106013f 22$temp = new admin_settingpage('supportcontact', new lang_string('supportcontact','admin'));
16267407
BH
23$primaryadmin = get_admin();
24if ($primaryadmin) {
25 $primaryadminemail = $primaryadmin->email;
26 $primaryadminname = fullname($primaryadmin, true);
8e5da17a 27} else {
28 // no defaults during installation - admin user must be created first
29 $primaryadminemail = NULL;
30 $primaryadminname = NULL;
72ce416c 31}
113efed5 32$temp->add(new admin_setting_configtext('supportname', new lang_string('supportname', 'admin'),
066ec135 33 new lang_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS));
113efed5 34$setting = new admin_setting_configtext('supportemail', new lang_string('supportemail', 'admin'),
066ec135 35 new lang_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_EMAIL);
113efed5
FM
36$setting->set_force_ltr(true);
37$temp->add($setting);
e106013f 38$temp->add(new admin_setting_configtext('supportpage', new lang_string('supportpage', 'admin'), new lang_string('configsupportpage', 'admin'), '', PARAM_URL));
1caea91e 39$ADMIN->add('server', $temp);
1ea1bcb3 40
41
1ea1bcb3 42// "sessionhandling" settingpage
e106013f 43$temp = new admin_settingpage('sessionhandling', new lang_string('sessionhandling', 'admin'));
d79d5ac2
PS
44if (empty($CFG->session_handler_class) and $DB->session_lock_supported()) {
45 $temp->add(new admin_setting_configcheckbox('dbsessions', new lang_string('dbsessions', 'admin'), new lang_string('configdbsessions', 'admin'), 0));
46}
859ed92f
BH
47
48$temp->add(new admin_setting_configduration('sessiontimeout', new lang_string('sessiontimeout', 'admin'),
49 new lang_string('configsessiontimeout', 'admin'), 8 * 60 * 60));
50
e106013f
SH
51$temp->add(new admin_setting_configtext('sessioncookie', new lang_string('sessioncookie', 'admin'), new lang_string('configsessioncookie', 'admin'), '', PARAM_ALPHANUM));
52$temp->add(new admin_setting_configtext('sessioncookiepath', new lang_string('sessioncookiepath', 'admin'), new lang_string('configsessioncookiepath', 'admin'), '', PARAM_RAW));
53$temp->add(new admin_setting_configtext('sessioncookiedomain', new lang_string('sessioncookiedomain', 'admin'), new lang_string('configsessioncookiedomain', 'admin'), '', PARAM_RAW, 50));
1caea91e 54$ADMIN->add('server', $temp);
1ea1bcb3 55
56
1ea1bcb3 57// "stats" settingpage
e106013f
SH
58$temp = new admin_settingpage('stats', new lang_string('stats'), 'moodle/site:config', empty($CFG->enablestats));
59$temp->add(new admin_setting_configselect('statsfirstrun', new lang_string('statsfirstrun', 'admin'), new lang_string('configstatsfirstrun', 'admin'), 'none', array('none' => new lang_string('none'),
60 60*60*24*7 => new lang_string('numweeks','moodle',1),
61 60*60*24*14 => new lang_string('numweeks','moodle',2),
62 60*60*24*21 => new lang_string('numweeks','moodle',3),
63 60*60*24*28 => new lang_string('nummonths','moodle',1),
64 60*60*24*56 => new lang_string('nummonths','moodle',2),
65 60*60*24*84 => new lang_string('nummonths','moodle',3),
66 60*60*24*112 => new lang_string('nummonths','moodle',4),
67 60*60*24*140 => new lang_string('nummonths','moodle',5),
68 60*60*24*168 => new lang_string('nummonths','moodle',6),
69 'all' => new lang_string('all') )));
70$temp->add(new admin_setting_configselect('statsmaxruntime', new lang_string('statsmaxruntime', 'admin'), new lang_string('configstatsmaxruntime3', 'admin'), 0, array(0 => new lang_string('untilcomplete'),
71 60*30 => '10 '.new lang_string('minutes'),
72 60*30 => '30 '.new lang_string('minutes'),
73 60*60 => '1 '.new lang_string('hour'),
74 60*60*2 => '2 '.new lang_string('hours'),
75 60*60*3 => '3 '.new lang_string('hours'),
76 60*60*4 => '4 '.new lang_string('hours'),
77 60*60*5 => '5 '.new lang_string('hours'),
78 60*60*6 => '6 '.new lang_string('hours'),
79 60*60*7 => '7 '.new lang_string('hours'),
80 60*60*8 => '8 '.new lang_string('hours') )));
81$temp->add(new admin_setting_configtext('statsruntimedays', new lang_string('statsruntimedays', 'admin'), new lang_string('configstatsruntimedays', 'admin'), 31, PARAM_INT));
e106013f 82$temp->add(new admin_setting_configtext('statsuserthreshold', new lang_string('statsuserthreshold', 'admin'), new lang_string('configstatsuserthreshold', 'admin'), 0, PARAM_INT));
eef868d1 83$ADMIN->add('server', $temp);
1ea1bcb3 84
85
86// "http" settingpage
e106013f
SH
87$temp = new admin_settingpage('http', new lang_string('http', 'admin'));
88$temp->add(new admin_setting_configcheckbox('slasharguments', new lang_string('slasharguments', 'admin'), new lang_string('configslasharguments', 'admin'), 1));
89$temp->add(new admin_setting_heading('reverseproxy', new lang_string('reverseproxy', 'admin'), '', ''));
3a4f0a34 90$options = array(
91 0 => 'HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR, REMOTE_ADDR',
92 GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'HTTP_X_FORWARDED_FOR, REMOTE_ADDR',
93 GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR => 'HTTP_CLIENT, REMOTE_ADDR',
94 GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR|GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'REMOTE_ADDR');
e106013f 95$temp->add(new admin_setting_configselect('getremoteaddrconf', new lang_string('getremoteaddrconf', 'admin'), new lang_string('configgetremoteaddrconf', 'admin'), 0, $options));
366b19a9 96
e106013f
SH
97$temp->add(new admin_setting_heading('webproxy', new lang_string('webproxy', 'admin'), new lang_string('webproxyinfo', 'admin')));
98$temp->add(new admin_setting_configtext('proxyhost', new lang_string('proxyhost', 'admin'), new lang_string('configproxyhost', 'admin'), '', PARAM_HOST));
99$temp->add(new admin_setting_configtext('proxyport', new lang_string('proxyport', 'admin'), new lang_string('configproxyport', 'admin'), 0, PARAM_INT));
5f8bdc17 100$options = array('HTTP'=>'HTTP');
101if (defined('CURLPROXY_SOCKS5')) {
102 $options['SOCKS5'] = 'SOCKS5';
103}
e106013f
SH
104$temp->add(new admin_setting_configselect('proxytype', new lang_string('proxytype', 'admin'), new lang_string('configproxytype','admin'), 'HTTP', $options));
105$temp->add(new admin_setting_configtext('proxyuser', new lang_string('proxyuser', 'admin'), new lang_string('configproxyuser', 'admin'), ''));
106$temp->add(new admin_setting_configpasswordunmask('proxypassword', new lang_string('proxypassword', 'admin'), new lang_string('configproxypassword', 'admin'), ''));
107$temp->add(new admin_setting_configtext('proxybypass', new lang_string('proxybypass', 'admin'), new lang_string('configproxybypass', 'admin'), 'localhost, 127.0.0.1'));
eef868d1 108$ADMIN->add('server', $temp);
1ea1bcb3 109
e106013f
SH
110$temp = new admin_settingpage('maintenancemode', new lang_string('sitemaintenancemode', 'admin'));
111$options = array(0=>new lang_string('disable'), 1=>new lang_string('enable'));
112$temp->add(new admin_setting_configselect('maintenance_enabled', new lang_string('sitemaintenancemode', 'admin'),
113 new lang_string('helpsitemaintenance', 'admin'), 0, $options));
114$temp->add(new admin_setting_confightmleditor('maintenance_message', new lang_string('optionalmaintenancemessage', 'admin'),
4fe2250a 115 '', ''));
116$ADMIN->add('server', $temp);
1ea1bcb3 117
e106013f
SH
118$temp = new admin_settingpage('cleanup', new lang_string('cleanup', 'admin'));
119$temp->add(new admin_setting_configselect('deleteunconfirmed', new lang_string('deleteunconfirmed', 'admin'), new lang_string('configdeleteunconfirmed', 'admin'), 168, array(0 => new lang_string('never'),
120 168 => new lang_string('numdays', '', 7),
121 144 => new lang_string('numdays', '', 6),
122 120 => new lang_string('numdays', '', 5),
123 96 => new lang_string('numdays', '', 4),
124 72 => new lang_string('numdays', '', 3),
125 48 => new lang_string('numdays', '', 2),
126 24 => new lang_string('numdays', '', 1),
127 12 => new lang_string('numhours', '', 12),
128 6 => new lang_string('numhours', '', 6),
129 1 => new lang_string('numhours', '', 1))));
130
131$temp->add(new admin_setting_configselect('deleteincompleteusers', new lang_string('deleteincompleteusers', 'admin'), new lang_string('configdeleteincompleteusers', 'admin'), 0, array(0 => new lang_string('never'),
132 168 => new lang_string('numdays', '', 7),
133 144 => new lang_string('numdays', '', 6),
134 120 => new lang_string('numdays', '', 5),
135 96 => new lang_string('numdays', '', 4),
136 72 => new lang_string('numdays', '', 3),
137 48 => new lang_string('numdays', '', 2),
138 24 => new lang_string('numdays', '', 1))));
139
e106013f
SH
140
141$temp->add(new admin_setting_configcheckbox('disablegradehistory', new lang_string('disablegradehistory', 'grades'),
142 new lang_string('disablegradehistory_help', 'grades'), 0));
143
144$temp->add(new admin_setting_configselect('gradehistorylifetime', new lang_string('gradehistorylifetime', 'grades'),
145 new lang_string('gradehistorylifetime_help', 'grades'), 0, array(0 => new lang_string('neverdeletehistory', 'grades'),
146 1000 => new lang_string('numdays', '', 1000),
147 365 => new lang_string('numdays', '', 365),
148 180 => new lang_string('numdays', '', 180),
149 150 => new lang_string('numdays', '', 150),
150 120 => new lang_string('numdays', '', 120),
151 90 => new lang_string('numdays', '', 90),
152 60 => new lang_string('numdays', '', 60),
153 30 => new lang_string('numdays', '', 30))));
1ee0df06 154
c35d736a
AG
155$temp->add(new admin_setting_configselect('tempdatafoldercleanup', new lang_string('tempdatafoldercleanup', 'admin'),
156 new lang_string('configtempdatafoldercleanup', 'admin'), 168, array(
157 1 => new lang_string('numhours', '', 1),
158 3 => new lang_string('numhours', '', 3),
159 6 => new lang_string('numhours', '', 6),
160 9 => new lang_string('numhours', '', 9),
161 12 => new lang_string('numhours', '', 12),
162 18 => new lang_string('numhours', '', 18),
163 24 => new lang_string('numhours', '', 24),
164 48 => new lang_string('numdays', '', 2),
165 168 => new lang_string('numdays', '', 7),
166)));
167
1ea1bcb3 168$ADMIN->add('server', $temp);
169
d7e4481e
MP
170 $temp->add(new admin_setting_configduration('filescleanupperiod',
171 new lang_string('filescleanupperiod', 'admin'),
172 new lang_string('filescleanupperiod_help', 'admin'),
173 86400));
1ea1bcb3 174
e106013f
SH
175$ADMIN->add('server', new admin_externalpage('environment', new lang_string('environment','admin'), "$CFG->wwwroot/$CFG->admin/environment.php"));
176$ADMIN->add('server', new admin_externalpage('phpinfo', new lang_string('phpinfo'), "$CFG->wwwroot/$CFG->admin/phpinfo.php"));
2bf67a74
VDF
177$ADMIN->add('server', new admin_externalpage('testoutgoingmailconf', new lang_string('testoutgoingmailconf', 'admin'),
178 new moodle_url("$CFG->wwwroot/$CFG->admin/testoutgoingmailconf.php"), 'moodle/site:config', true));
1ea1bcb3 179
180
4a575a65 181// "performance" settingpage
e106013f 182$temp = new admin_settingpage('performance', new lang_string('performance', 'admin'));
7022dd39 183
975f8442 184// Memory limit options for large administration tasks.
185$memoryoptions = array(
186 '64M' => '64M',
187 '128M' => '128M',
188 '256M' => '256M',
189 '512M' => '512M',
190 '1024M' => '1024M',
191 '2048M' => '2048M');
192
193// Allow larger memory usage for 64-bit sites only.
194if (PHP_INT_SIZE === 8) {
195 $memoryoptions['3072M'] = '3072M';
196 $memoryoptions['4096M'] = '4096M';
197}
198
e106013f
SH
199$temp->add(new admin_setting_configselect('extramemorylimit', new lang_string('extramemorylimit', 'admin'),
200 new lang_string('configextramemorylimit', 'admin'), '512M',
975f8442 201 $memoryoptions));
366b19a9 202$temp->add(new admin_setting_configtext('maxtimelimit', new lang_string('maxtimelimit', 'admin'),
203 new lang_string('maxtimelimit_desc', 'admin'), 0, PARAM_INT));
975f8442 204
e106013f
SH
205$temp->add(new admin_setting_configtext('curlcache', new lang_string('curlcache', 'admin'),
206 new lang_string('configcurlcache', 'admin'), 120, PARAM_INT));
1c980a57 207
e106013f
SH
208$temp->add(new admin_setting_configtext('curltimeoutkbitrate', new lang_string('curltimeoutkbitrate', 'admin'),
209 new lang_string('curltimeoutkbitrate_help', 'admin'), 56, PARAM_INT));
d6a1f63b 210
4a575a65 211$ADMIN->add('server', $temp);
212
1c980a57 213
4b71596f 214$ADMIN->add('server', new admin_category('taskconfig', new lang_string('taskadmintitle', 'admin')));
24bfd53c 215$temp = new admin_settingpage('taskprocessing', new lang_string('taskprocessing','admin'));
23d67562
AN
216$temp->add(
217 new admin_setting_configtext(
218 'task_scheduled_concurrency_limit',
219 new lang_string('task_scheduled_concurrency_limit', 'admin'),
220 new lang_string('task_scheduled_concurrency_limit_desc', 'admin'),
221 3,
222 PARAM_INT
223 )
224);
225
226$temp->add(
227 new admin_setting_configduration(
228 'task_scheduled_max_runtime',
229 new lang_string('task_scheduled_max_runtime', 'admin'),
230 new lang_string('task_scheduled_max_runtime_desc', 'admin'),
231 30 * MINSECS
232 )
233);
234
24bfd53c
AN
235$temp->add(
236 new admin_setting_configtext(
237 'task_adhoc_concurrency_limit',
238 new lang_string('task_adhoc_concurrency_limit', 'admin'),
239 new lang_string('task_adhoc_concurrency_limit_desc', 'admin'),
240 3,
241 PARAM_INT
242 )
243);
244
245$temp->add(
246 new admin_setting_configduration(
247 'task_adhoc_max_runtime',
248 new lang_string('task_adhoc_max_runtime', 'admin'),
249 new lang_string('task_adhoc_max_runtime_desc', 'admin'),
250 30 * MINSECS
251 )
252);
253$ADMIN->add('taskconfig', $temp);
254
4b71596f
AN
255$temp = new admin_settingpage('tasklogging', new lang_string('tasklogging','admin'));
256$temp->add(
257 new admin_setting_configselect(
258 'task_logmode',
259 new lang_string('task_logmode', 'admin'),
260 new lang_string('task_logmode_desc', 'admin'),
261 \core\task\logmanager::MODE_ALL,
262 [
263 \core\task\logmanager::MODE_ALL => new lang_string('task_logmode_all', 'admin'),
264 \core\task\logmanager::MODE_FAILONLY => new lang_string('task_logmode_failonly', 'admin'),
265 \core\task\logmanager::MODE_NONE => new lang_string('task_logmode_none', 'admin'),
266 ]
267 )
268);
e044c3de
AN
269$temp->add(
270 new admin_setting_configcheckbox(
271 'task_logtostdout',
272 new lang_string('task_logtostdout', 'admin'),
273 new lang_string('task_logtostdout_desc', 'admin'),
274 1
275 )
276);
4b71596f
AN
277
278if (\core\task\logmanager::uses_standard_settings()) {
279 $temp->add(
280 new admin_setting_configduration(
281 'task_logretention',
282 new \lang_string('task_logretention', 'admin'),
283 new \lang_string('task_logretention_desc', 'admin'),
284 28 * DAYSECS
285 )
286 );
287
288 $temp->add(
289 new admin_setting_configtext(
290 'task_logretainruns',
291 new \lang_string('task_logretainruns', 'admin'),
292 new \lang_string('task_logretainruns_desc', 'admin'),
293 20,
294 PARAM_INT
295 )
296 );
4b71596f
AN
297}
298$ADMIN->add('taskconfig', $temp);
299
251ee97c 300if (\core\task\logmanager::uses_standard_settings()) {
8c69e86c
AN
301 $ADMIN->add('taskconfig', new admin_externalpage(
302 'tasklogs',
303 new lang_string('tasklogs','admin'),
304 "{$CFG->wwwroot}/{$CFG->admin}/tasklogs.php"
305 ));
306}
307
ff2abc4b 308// E-mail settings.
9715f61a
AG
309$ADMIN->add('server', new admin_category('email', new lang_string('categoryemail', 'admin')));
310
311$temp = new admin_settingpage('outgoingmailconfig', new lang_string('outgoingmailconfig', 'admin'));
312
313$temp->add(new admin_setting_heading('smtpheading', new lang_string('smtp', 'admin'),
314 new lang_string('smtpdetail', 'admin')));
315$temp->add(new admin_setting_configtext('smtphosts', new lang_string('smtphosts', 'admin'),
316 new lang_string('configsmtphosts', 'admin'), '', PARAM_RAW));
317$options = array('' => new lang_string('none', 'admin'), 'ssl' => 'SSL', 'tls' => 'TLS');
318$temp->add(new admin_setting_configselect('smtpsecure', new lang_string('smtpsecure', 'admin'),
319 new lang_string('configsmtpsecure', 'admin'), '', $options));
320$authtypeoptions = array('LOGIN' => 'LOGIN', 'PLAIN' => 'PLAIN', 'NTLM' => 'NTLM', 'CRAM-MD5' => 'CRAM-MD5');
321$temp->add(new admin_setting_configselect('smtpauthtype', new lang_string('smtpauthtype', 'admin'),
322 new lang_string('configsmtpauthtype', 'admin'), 'LOGIN', $authtypeoptions));
323$temp->add(new admin_setting_configtext('smtpuser', new lang_string('smtpuser', 'admin'),
324 new lang_string('configsmtpuser', 'admin'), '', PARAM_NOTAGS));
325$temp->add(new admin_setting_configpasswordunmask('smtppass', new lang_string('smtppass', 'admin'),
326 new lang_string('configsmtpuser', 'admin'), ''));
327$temp->add(new admin_setting_configtext('smtpmaxbulk', new lang_string('smtpmaxbulk', 'admin'),
328 new lang_string('configsmtpmaxbulk', 'admin'), 1, PARAM_INT));
329$temp->add(new admin_setting_heading('noreplydomainheading', new lang_string('noreplydomain', 'admin'),
330 new lang_string('noreplydomaindetail', 'admin')));
331$temp->add(new admin_setting_configtext('noreplyaddress', new lang_string('noreplyaddress', 'admin'),
066ec135 332 new lang_string('confignoreplyaddress', 'admin'), 'noreply@' . get_host_from_url($CFG->wwwroot), PARAM_EMAIL));
9715f61a
AG
333$temp->add(new admin_setting_configtextarea('allowedemaildomains',
334 new lang_string('allowedemaildomains', 'admin'),
335 new lang_string('configallowedemaildomains', 'admin'),
336 ''));
2bf67a74
VDF
337$url = new moodle_url('/admin/testoutgoingmailconf.php');
338$link = html_writer::link($url, get_string('testoutgoingmailconf', 'admin'));
339$temp->add(new admin_setting_heading('testoutgoinmailc', new lang_string('testoutgoingmailconf', 'admin'),
340 new lang_string('testoutgoingmaildetail', 'admin', $link)));
9715f61a
AG
341$temp->add(new admin_setting_heading('emaildoesnotfit', new lang_string('doesnotfit', 'admin'),
342 new lang_string('doesnotfitdetail', 'admin')));
343$charsets = get_list_of_charsets();
344unset($charsets['UTF-8']); // Not needed here.
345$options = array();
346$options['0'] = 'UTF-8';
347$options = array_merge($options, $charsets);
348$temp->add(new admin_setting_configselect('sitemailcharset', new lang_string('sitemailcharset', 'admin'),
349 new lang_string('configsitemailcharset','admin'), '0', $options));
350$temp->add(new admin_setting_configcheckbox('allowusermailcharset', new lang_string('allowusermailcharset', 'admin'),
351 new lang_string('configallowusermailcharset', 'admin'), 0));
352$temp->add(new admin_setting_configcheckbox('allowattachments', new lang_string('allowattachments', 'admin'),
353 new lang_string('configallowattachments', 'admin'), 1));
354$options = array('LF' => 'LF', 'CRLF' => 'CRLF');
355$temp->add(new admin_setting_configselect('mailnewline', new lang_string('mailnewline', 'admin'),
356 new lang_string('configmailnewline', 'admin'), 'LF', $options));
357
358$choices = array(new lang_string('never', 'admin'),
359 new lang_string('always', 'admin'),
360 new lang_string('onlynoreply', 'admin'));
361$temp->add(new admin_setting_configselect('emailfromvia', new lang_string('emailfromvia', 'admin'),
362 new lang_string('configemailfromvia', 'admin'), 1, $choices));
9ffbb786
PD
363 $temp->add(new admin_setting_configtext('emailsubjectprefix', new lang_string('emailsubjectprefix', 'admin'),
364 new lang_string('configemailsubjectprefix', 'admin'), '', PARAM_RAW));
9715f61a
AG
365
366$ADMIN->add('email', $temp);
367
2f5904d9 368// "update notifications" settingpage
4fb3a068
DM
369if (empty($CFG->disableupdatenotifications)) {
370 $temp = new admin_settingpage('updatenotifications', new lang_string('updatenotifications', 'core_admin'));
371 $temp->add(new admin_setting_configcheckbox('updateautocheck', new lang_string('updateautocheck', 'core_admin'),
372 new lang_string('updateautocheck_desc', 'core_admin'), 1));
373 $temp->add(new admin_setting_configselect('updateminmaturity', new lang_string('updateminmaturity', 'core_admin'),
374 new lang_string('updateminmaturity_desc', 'core_admin'), MATURITY_STABLE,
375 array(
376 MATURITY_ALPHA => new lang_string('maturity'.MATURITY_ALPHA, 'core_admin'),
377 MATURITY_BETA => new lang_string('maturity'.MATURITY_BETA, 'core_admin'),
378 MATURITY_RC => new lang_string('maturity'.MATURITY_RC, 'core_admin'),
379 MATURITY_STABLE => new lang_string('maturity'.MATURITY_STABLE, 'core_admin'),
380 )));
381 $temp->add(new admin_setting_configcheckbox('updatenotifybuilds', new lang_string('updatenotifybuilds', 'core_admin'),
382 new lang_string('updatenotifybuilds_desc', 'core_admin'), 0));
383 $ADMIN->add('server', $temp);
384}
2f5904d9 385
a559f630 386} // end of speedup