MDL-14589 minor database driver loading refactoring
[moodle.git] / admin / settings / misc.php
CommitLineData
a7c72afc 1<?php // $Id$
2
721d74b0 3// * Miscellaneous settings
50999a0b 4
a559f630 5if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
6
220a90c5 7 // Experimental settings page
8 $temp = new admin_settingpage('experimental', get_string('experimental', 'admin'));
9 $temp->add(new admin_setting_configcheckbox('enableglobalsearch', get_string('enableglobalsearch', 'admin'), get_string('configenableglobalsearch', 'admin'), 0));
10 $temp->add(new admin_setting_configcheckbox('smartpix', get_string('smartpix', 'admin'), get_string('configsmartpix', 'admin'), 0));
109e3cb2 11 $item = new admin_setting_configcheckbox('enablehtmlpurifier', get_string('enablehtmlpurifier', 'admin'), get_string('configenablehtmlpurifier', 'admin'), 0);
12 $item->set_updatedcallback('reset_text_filters_cache');
13 $temp->add($item);
a559f630 14
4e781c7b 15 // Completion system
16 require_once($CFG->libdir.'/completionlib.php');
775f811a 17 $temp->add(new admin_setting_configcheckbox('enablecompletion', get_string('enablecompletion','completion'), get_string('configenablecompletion','completion'), COMPLETION_DISABLED));
18 $temp->add(new admin_setting_pickroles('progresstrackedroles', get_string('progresstrackedroles','completion'), get_string('configprogresstrackedroles', 'completion'), array('moodle/legacy:student')));
4e781c7b 19
220a90c5 20 $ADMIN->add('misc', $temp);
778918fd 21
220a90c5 22 // XMLDB editor
23 $ADMIN->add('misc', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
721d74b0 24
a7c72afc 25
220a90c5 26 // hidden scripts linked from elsewhere
27 $ADMIN->add('misc', new admin_externalpage('oacleanup', 'Online Assignment Cleanup', $CFG->wwwroot.'/'.$CFG->admin.'/oacleanup.php', 'moodle/site:config', true));
220a90c5 28 $ADMIN->add('misc', new admin_externalpage('multilangupgrade', get_string('multilangupgrade', 'admin'), $CFG->wwwroot.'/'.$CFG->admin.'/multilangupgrade.php', 'moodle/site:config', !empty($CFG->filter_multilang_converted)));
c9a49cea 29
a559f630 30} // end of speedup
31
bee4702d 32?>