weekly release 4.0dev
[moodle.git] / admin / settings / server.php
1 <?php
3 // This file defines settingpages and externalpages under the "server" category
5 if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
7 // "systempaths" settingpage
8 $temp = new admin_settingpage('systempaths', new lang_string('systempaths','admin'));
9 $temp->add(new admin_setting_configexecutable('pathtophp', new lang_string('pathtophp', 'admin'),
10     new lang_string('configpathtophp', 'admin'), ''));
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'), ''));
14 $temp->add(new admin_setting_configexecutable('pathtogs', new lang_string('pathtogs', 'admin'), new lang_string('pathtogs_help', 'admin'), '/usr/bin/gs'));
15 $temp->add(new admin_setting_configexecutable('pathtopython', new lang_string('pathtopython', 'admin'),
16     new lang_string('pathtopythondesc', 'admin'), ''));
17 $ADMIN->add('server', $temp);
21 // "supportcontact" settingpage
22 $temp = new admin_settingpage('supportcontact', new lang_string('supportcontact','admin'));
23 $primaryadmin = get_admin();
24 if ($primaryadmin) {
25     $primaryadminemail = $primaryadmin->email;
26     $primaryadminname  = fullname($primaryadmin, true);
27 } else {
28     // no defaults during installation - admin user must be created first
29     $primaryadminemail = NULL;
30     $primaryadminname  = NULL;
31 }
32 $temp->add(new admin_setting_configtext('supportname', new lang_string('supportname', 'admin'),
33     new lang_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS));
34 $setting = new admin_setting_configtext('supportemail', new lang_string('supportemail', 'admin'),
35     new lang_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_EMAIL);
36 $setting->set_force_ltr(true);
37 $temp->add($setting);
38 $temp->add(new admin_setting_configtext('supportpage', new lang_string('supportpage', 'admin'), new lang_string('configsupportpage', 'admin'), '', PARAM_URL));
39 $ADMIN->add('server', $temp);
42 // "sessionhandling" settingpage
43 $temp = new admin_settingpage('sessionhandling', new lang_string('sessionhandling', 'admin'));
44 if (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 }
48 $temp->add(new admin_setting_configduration('sessiontimeout', new lang_string('sessiontimeout', 'admin'),
49     new lang_string('configsessiontimeout', 'admin'), 8 * 60 * 60));
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));
54 $ADMIN->add('server', $temp);
57 // "stats" settingpage
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));
82 $temp->add(new admin_setting_configtext('statsuserthreshold', new lang_string('statsuserthreshold', 'admin'), new lang_string('configstatsuserthreshold', 'admin'), 0, PARAM_INT));
83 $ADMIN->add('server', $temp);
86 // "http" settingpage
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'), '', ''));
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');
95 $temp->add(new admin_setting_configselect('getremoteaddrconf', new lang_string('getremoteaddrconf', 'admin'),
96     new lang_string('configgetremoteaddrconf', 'admin'),
97     GETREMOTEADDR_SKIP_DEFAULT, $options));
98 $temp->add(new admin_setting_configtext('reverseproxyignore', new lang_string('reverseproxyignore', 'admin'), new lang_string('configreverseproxyignore', 'admin'), ''));
100 $temp->add(new admin_setting_heading('webproxy', new lang_string('webproxy', 'admin'), new lang_string('webproxyinfo', 'admin')));
101 $temp->add(new admin_setting_configtext('proxyhost', new lang_string('proxyhost', 'admin'), new lang_string('configproxyhost', 'admin'), '', PARAM_HOST));
102 $temp->add(new admin_setting_configtext('proxyport', new lang_string('proxyport', 'admin'), new lang_string('configproxyport', 'admin'), 0, PARAM_INT));
103 $options = array('HTTP'=>'HTTP');
104 if (defined('CURLPROXY_SOCKS5')) {
105     $options['SOCKS5'] = 'SOCKS5';
107 $temp->add(new admin_setting_configselect('proxytype', new lang_string('proxytype', 'admin'), new lang_string('configproxytype','admin'), 'HTTP', $options));
108 $temp->add(new admin_setting_configtext('proxyuser', new lang_string('proxyuser', 'admin'), new lang_string('configproxyuser', 'admin'), ''));
109 $temp->add(new admin_setting_configpasswordunmask('proxypassword', new lang_string('proxypassword', 'admin'), new lang_string('configproxypassword', 'admin'), ''));
110 $temp->add(new admin_setting_configtext('proxybypass', new lang_string('proxybypass', 'admin'), new lang_string('configproxybypass', 'admin'), 'localhost, 127.0.0.1'));
111 $ADMIN->add('server', $temp);
113 $temp = new admin_settingpage('maintenancemode', new lang_string('sitemaintenancemode', 'admin'));
114 $options = array(0=>new lang_string('disable'), 1=>new lang_string('enable'));
115 $temp->add(new admin_setting_configselect('maintenance_enabled', new lang_string('sitemaintenancemode', 'admin'),
116                                           new lang_string('helpsitemaintenance', 'admin'), 0, $options));
117 $temp->add(new admin_setting_confightmleditor('maintenance_message', new lang_string('optionalmaintenancemessage', 'admin'),
118                                               '', ''));
119 $ADMIN->add('server', $temp);
121 $temp = new admin_settingpage('cleanup', new lang_string('cleanup', 'admin'));
122 $temp->add(new admin_setting_configselect('deleteunconfirmed', new lang_string('deleteunconfirmed', 'admin'), new lang_string('configdeleteunconfirmed', 'admin'), 168, array(0 => new lang_string('never'),
123                                                                                                                                                                     168 => new lang_string('numdays', '', 7),
124                                                                                                                                                                     144 => new lang_string('numdays', '', 6),
125                                                                                                                                                                     120 => new lang_string('numdays', '', 5),
126                                                                                                                                                                     96 => new lang_string('numdays', '', 4),
127                                                                                                                                                                     72 => new lang_string('numdays', '', 3),
128                                                                                                                                                                     48 => new lang_string('numdays', '', 2),
129                                                                                                                                                                     24 => new lang_string('numdays', '', 1),
130                                                                                                                                                                     12 => new lang_string('numhours', '', 12),
131                                                                                                                                                                     6 => new lang_string('numhours', '', 6),
132                                                                                                                                                                     1 => new lang_string('numhours', '', 1))));
134 $temp->add(new admin_setting_configselect('deleteincompleteusers', new lang_string('deleteincompleteusers', 'admin'), new lang_string('configdeleteincompleteusers', 'admin'), 0, array(0 => new lang_string('never'),
135                                                                                                                                                                     168 => new lang_string('numdays', '', 7),
136                                                                                                                                                                     144 => new lang_string('numdays', '', 6),
137                                                                                                                                                                     120 => new lang_string('numdays', '', 5),
138                                                                                                                                                                     96 => new lang_string('numdays', '', 4),
139                                                                                                                                                                     72 => new lang_string('numdays', '', 3),
140                                                                                                                                                                     48 => new lang_string('numdays', '', 2),
141                                                                                                                                                                     24 => new lang_string('numdays', '', 1))));
144 $temp->add(new admin_setting_configcheckbox('disablegradehistory', new lang_string('disablegradehistory', 'grades'),
145                                             new lang_string('disablegradehistory_help', 'grades'), 0));
147 $temp->add(new admin_setting_configselect('gradehistorylifetime', new lang_string('gradehistorylifetime', 'grades'),
148                                           new lang_string('gradehistorylifetime_help', 'grades'), 0, array(0 => new lang_string('neverdeletehistory', 'grades'),
149                                                                                                    1000 => new lang_string('numdays', '', 1000),
150                                                                                                     365 => new lang_string('numdays', '', 365),
151                                                                                                     180 => new lang_string('numdays', '', 180),
152                                                                                                     150 => new lang_string('numdays', '', 150),
153                                                                                                     120 => new lang_string('numdays', '', 120),
154                                                                                                      90 => new lang_string('numdays', '', 90),
155                                                                                                      60 => new lang_string('numdays', '', 60),
156                                                                                                      30 => new lang_string('numdays', '', 30))));
158 $temp->add(new admin_setting_configselect('tempdatafoldercleanup', new lang_string('tempdatafoldercleanup', 'admin'),
159         new lang_string('configtempdatafoldercleanup', 'admin'), 168, array(
160             1 => new lang_string('numhours', '', 1),
161             3 => new lang_string('numhours', '', 3),
162             6 => new lang_string('numhours', '', 6),
163             9 => new lang_string('numhours', '', 9),
164             12 => new lang_string('numhours', '', 12),
165             18 => new lang_string('numhours', '', 18),
166             24 => new lang_string('numhours', '', 24),
167             48 => new lang_string('numdays', '', 2),
168             168 => new lang_string('numdays', '', 7),
169 )));
171 $ADMIN->add('server', $temp);
173     $temp->add(new admin_setting_configduration('filescleanupperiod',
174         new lang_string('filescleanupperiod', 'admin'),
175         new lang_string('filescleanupperiod_help', 'admin'),
176         86400));
178 $ADMIN->add('server', new admin_externalpage('environment', new lang_string('environment','admin'), "$CFG->wwwroot/$CFG->admin/environment.php"));
179 $ADMIN->add('server', new admin_externalpage('phpinfo', new lang_string('phpinfo'), "$CFG->wwwroot/$CFG->admin/phpinfo.php"));
180 $ADMIN->add('server', new admin_externalpage('testoutgoingmailconf', new lang_string('testoutgoingmailconf', 'admin'),
181             new moodle_url("$CFG->wwwroot/$CFG->admin/testoutgoingmailconf.php"), 'moodle/site:config', true));
184 // "performance" settingpage
185 $temp = new admin_settingpage('performance', new lang_string('performance', 'admin'));
187 // Memory limit options for large administration tasks.
188 $memoryoptions = array(
189     '64M' => '64M',
190     '128M' => '128M',
191     '256M' => '256M',
192     '512M' => '512M',
193     '1024M' => '1024M',
194     '2048M' => '2048M');
196 // Allow larger memory usage for 64-bit sites only.
197 if (PHP_INT_SIZE === 8) {
198     $memoryoptions['3072M'] = '3072M';
199     $memoryoptions['4096M'] = '4096M';
202 $temp->add(new admin_setting_configselect('extramemorylimit', new lang_string('extramemorylimit', 'admin'),
203                                           new lang_string('configextramemorylimit', 'admin'), '512M',
204                                           $memoryoptions));
205 $temp->add(new admin_setting_configtext('maxtimelimit', new lang_string('maxtimelimit', 'admin'),
206         new lang_string('maxtimelimit_desc', 'admin'), 0, PARAM_INT));
208 $temp->add(new admin_setting_configtext('curlcache', new lang_string('curlcache', 'admin'),
209                                         new lang_string('configcurlcache', 'admin'), 120, PARAM_INT));
211 $temp->add(new admin_setting_configtext('curltimeoutkbitrate', new lang_string('curltimeoutkbitrate', 'admin'),
212                                         new lang_string('curltimeoutkbitrate_help', 'admin'), 56, PARAM_INT));
214 $ADMIN->add('server', $temp);
217 $ADMIN->add('server', new admin_category('taskconfig', new lang_string('taskadmintitle', 'admin')));
218 $temp = new admin_settingpage('taskprocessing', new lang_string('taskprocessing','admin'));
220 $setting = new admin_setting_configcheckbox(
221     'cron_enabled',
222     new lang_string('cron_enabled', 'admin'),
223     new lang_string('cron_enabled_desc', 'admin'),
224     1
225 );
226 $setting->set_updatedcallback('theme_reset_static_caches');
227 $temp->add($setting);
229 $temp->add(
230     new admin_setting_configtext(
231         'task_scheduled_concurrency_limit',
232         new lang_string('task_scheduled_concurrency_limit', 'admin'),
233         new lang_string('task_scheduled_concurrency_limit_desc', 'admin'),
234         3,
235         PARAM_INT
236     )
237 );
239 $temp->add(
240     new admin_setting_configduration(
241         'task_scheduled_max_runtime',
242         new lang_string('task_scheduled_max_runtime', 'admin'),
243         new lang_string('task_scheduled_max_runtime_desc', 'admin'),
244         30 * MINSECS
245     )
246 );
248 $temp->add(
249     new admin_setting_configtext(
250         'task_adhoc_concurrency_limit',
251         new lang_string('task_adhoc_concurrency_limit', 'admin'),
252         new lang_string('task_adhoc_concurrency_limit_desc', 'admin'),
253         3,
254         PARAM_INT
255     )
256 );
258 $temp->add(
259     new admin_setting_configduration(
260         'task_adhoc_max_runtime',
261         new lang_string('task_adhoc_max_runtime', 'admin'),
262         new lang_string('task_adhoc_max_runtime_desc', 'admin'),
263         30 * MINSECS
264     )
265 );
266 $ADMIN->add('taskconfig', $temp);
268 $temp = new admin_settingpage('tasklogging', new lang_string('tasklogging','admin'));
269 $temp->add(
270     new admin_setting_configselect(
271         'task_logmode',
272         new lang_string('task_logmode', 'admin'),
273         new lang_string('task_logmode_desc', 'admin'),
274         \core\task\logmanager::MODE_ALL,
275         [
276             \core\task\logmanager::MODE_ALL => new lang_string('task_logmode_all', 'admin'),
277             \core\task\logmanager::MODE_FAILONLY => new lang_string('task_logmode_failonly', 'admin'),
278             \core\task\logmanager::MODE_NONE => new lang_string('task_logmode_none', 'admin'),
279         ]
280     )
281 );
282 $temp->add(
283     new admin_setting_configcheckbox(
284         'task_logtostdout',
285         new lang_string('task_logtostdout', 'admin'),
286         new lang_string('task_logtostdout_desc', 'admin'),
287         1
288     )
289 );
291 if (\core\task\logmanager::uses_standard_settings()) {
292     $temp->add(
293         new admin_setting_configduration(
294             'task_logretention',
295             new \lang_string('task_logretention', 'admin'),
296             new \lang_string('task_logretention_desc', 'admin'),
297             28 * DAYSECS
298         )
299     );
301     $temp->add(
302         new admin_setting_configtext(
303             'task_logretainruns',
304             new \lang_string('task_logretainruns', 'admin'),
305             new \lang_string('task_logretainruns_desc', 'admin'),
306             20,
307             PARAM_INT
308         )
309     );
311 $ADMIN->add('taskconfig', $temp);
313 if (\core\task\logmanager::uses_standard_settings()) {
314     $ADMIN->add('taskconfig', new admin_externalpage(
315         'tasklogs',
316         new lang_string('tasklogs','admin'),
317         "{$CFG->wwwroot}/{$CFG->admin}/tasklogs.php"
318     ));
321 // E-mail settings.
322 $ADMIN->add('server', new admin_category('email', new lang_string('categoryemail', 'admin')));
324 $temp = new admin_settingpage('outgoingmailconfig', new lang_string('outgoingmailconfig', 'admin'));
326 $temp->add(new admin_setting_heading('smtpheading', new lang_string('smtp', 'admin'),
327             new lang_string('smtpdetail', 'admin')));
328 $temp->add(new admin_setting_configtext('smtphosts', new lang_string('smtphosts', 'admin'),
329             new lang_string('configsmtphosts', 'admin'), '', PARAM_RAW));
330 $options = array('' => new lang_string('none', 'admin'), 'ssl' => 'SSL', 'tls' => 'TLS');
331 $temp->add(new admin_setting_configselect('smtpsecure', new lang_string('smtpsecure', 'admin'),
332             new lang_string('configsmtpsecure', 'admin'), '', $options));
333 $authtypeoptions = array('LOGIN' => 'LOGIN', 'PLAIN' => 'PLAIN', 'NTLM' => 'NTLM', 'CRAM-MD5' => 'CRAM-MD5');
334 $temp->add(new admin_setting_configselect('smtpauthtype', new lang_string('smtpauthtype', 'admin'),
335             new lang_string('configsmtpauthtype', 'admin'), 'LOGIN', $authtypeoptions));
336 $temp->add(new admin_setting_configtext('smtpuser', new lang_string('smtpuser', 'admin'),
337             new lang_string('configsmtpuser', 'admin'), '', PARAM_NOTAGS));
338 $temp->add(new admin_setting_configpasswordunmask('smtppass', new lang_string('smtppass', 'admin'),
339             new lang_string('configsmtpuser', 'admin'), ''));
340 $temp->add(new admin_setting_configtext('smtpmaxbulk', new lang_string('smtpmaxbulk', 'admin'),
341            new lang_string('configsmtpmaxbulk', 'admin'), 1, PARAM_INT));
342 $temp->add(new admin_setting_heading('noreplydomainheading', new lang_string('noreplydomain', 'admin'),
343         new lang_string('noreplydomaindetail', 'admin')));
344 $temp->add(new admin_setting_configtext('noreplyaddress', new lang_string('noreplyaddress', 'admin'),
345           new lang_string('confignoreplyaddress', 'admin'), 'noreply@' . get_host_from_url($CFG->wwwroot), PARAM_EMAIL));
346 $temp->add(new admin_setting_configtextarea('allowedemaildomains',
347         new lang_string('allowedemaildomains', 'admin'),
348         new lang_string('configallowedemaildomains', 'admin'),
349         ''));
350 $url = new moodle_url('/admin/testoutgoingmailconf.php');
351 $link = html_writer::link($url, get_string('testoutgoingmailconf', 'admin'));
352 $temp->add(new admin_setting_heading('testoutgoinmailc', new lang_string('testoutgoingmailconf', 'admin'),
353         new lang_string('testoutgoingmaildetail', 'admin', $link)));
354 $temp->add(new admin_setting_heading('emaildoesnotfit', new lang_string('doesnotfit', 'admin'),
355         new lang_string('doesnotfitdetail', 'admin')));
356 $charsets = get_list_of_charsets();
357 unset($charsets['UTF-8']); // Not needed here.
358 $options = array();
359 $options['0'] = 'UTF-8';
360 $options = array_merge($options, $charsets);
361 $temp->add(new admin_setting_configselect('sitemailcharset', new lang_string('sitemailcharset', 'admin'),
362           new lang_string('configsitemailcharset','admin'), '0', $options));
363 $temp->add(new admin_setting_configcheckbox('allowusermailcharset', new lang_string('allowusermailcharset', 'admin'),
364           new lang_string('configallowusermailcharset', 'admin'), 0));
365 $temp->add(new admin_setting_configcheckbox('allowattachments', new lang_string('allowattachments', 'admin'),
366           new lang_string('configallowattachments', 'admin'), 1));
367 $options = array('LF' => 'LF', 'CRLF' => 'CRLF');
368 $temp->add(new admin_setting_configselect('mailnewline', new lang_string('mailnewline', 'admin'),
369           new lang_string('configmailnewline', 'admin'), 'LF', $options));
371 $choices = array(new lang_string('never', 'admin'),
372                  new lang_string('always', 'admin'),
373                  new lang_string('onlynoreply', 'admin'));
374 $temp->add(new admin_setting_configselect('emailfromvia', new lang_string('emailfromvia', 'admin'),
375           new lang_string('configemailfromvia', 'admin'), 1, $choices));
377 $temp->add(new admin_setting_configtext('emailsubjectprefix', new lang_string('emailsubjectprefix', 'admin'),
378         new lang_string('configemailsubjectprefix', 'admin'), '', PARAM_RAW));
379 $temp->add(new admin_setting_configtextarea('emailheaders', new lang_string('emailheaders', 'admin'),
380         new lang_string('configemailheaders', 'admin'), '', PARAM_RAW, '50', '3'));
382 $ADMIN->add('email', $temp);
384 // "update notifications" settingpage
385 if (empty($CFG->disableupdatenotifications)) {
386     $temp = new admin_settingpage('updatenotifications', new lang_string('updatenotifications', 'core_admin'));
387     $temp->add(new admin_setting_configcheckbox('updateautocheck', new lang_string('updateautocheck', 'core_admin'),
388                                                 new lang_string('updateautocheck_desc', 'core_admin'), 1));
389     $temp->add(new admin_setting_configselect('updateminmaturity', new lang_string('updateminmaturity', 'core_admin'),
390                                               new lang_string('updateminmaturity_desc', 'core_admin'), MATURITY_STABLE,
391                                               array(
392                                                   MATURITY_ALPHA  => new lang_string('maturity'.MATURITY_ALPHA, 'core_admin'),
393                                                   MATURITY_BETA   => new lang_string('maturity'.MATURITY_BETA, 'core_admin'),
394                                                   MATURITY_RC     => new lang_string('maturity'.MATURITY_RC, 'core_admin'),
395                                                   MATURITY_STABLE => new lang_string('maturity'.MATURITY_STABLE, 'core_admin'),
396                                               )));
397     $temp->add(new admin_setting_configcheckbox('updatenotifybuilds', new lang_string('updatenotifybuilds', 'core_admin'),
398                                                 new lang_string('updatenotifybuilds_desc', 'core_admin'), 0));
399     $ADMIN->add('server', $temp);
402 } // end of speedup