3 // * Miscellaneous settings
5 if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
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));
11 $item = new admin_setting_configcheckbox('enablehtmlpurifier', get_string('enablehtmlpurifier', 'admin'), get_string('configenablehtmlpurifier', 'admin'), 0);
12 $item->set_updatedcallback('reset_text_filters_cache');
14 $temp->add(new admin_setting_configcheckbox('enablegroupings', get_string('enablegroupings', 'admin'), get_string('configenablegroupings', 'admin'), 0));
16 $ADMIN->add('misc', $temp);
19 $ADMIN->add('misc', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
22 // hidden scripts linked from elsewhere
23 $ADMIN->add('misc', new admin_externalpage('oacleanup', 'Online Assignment Cleanup', $CFG->wwwroot
.'/'.$CFG->admin
.'/oacleanup.php', 'moodle/site:config', true));
24 $ADMIN->add('misc', new admin_externalpage('upgradeforumread', 'Upgrade forum', $CFG->wwwroot
.'/'.$CFG->admin
.'/upgradeforumread.php', 'moodle/site:config', true));
25 $ADMIN->add('misc', new admin_externalpage('upgradelogs', 'Upgrade logs', $CFG->wwwroot
.'/'.$CFG->admin
.'/upgradelogs.php', 'moodle/site:config', true));
26 $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
)));