Updated the HEAD build version to 20080816
[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);
220a90c5 14 $temp->add(new admin_setting_configcheckbox('enablegroupings', get_string('enablegroupings', 'admin'), get_string('configenablegroupings', 'admin'), 0));
a559f630 15
4e781c7b 16 // Completion system
17 require_once($CFG->libdir.'/completionlib.php');
1e908abe 18 $temp->add(new admin_setting_configcheckbox('enablecompletion',get_string('enablecompletion','completion'),get_string('configenablecompletion','completion'),COMPLETION_DISABLED));
4e781c7b 19 $temp->add(new admin_setting_pickroles('progresstrackedroles',get_string('progresstrackedroles','completion'),get_string('configprogresstrackedroles','completion')));
20
220a90c5 21 $ADMIN->add('misc', $temp);
778918fd 22
220a90c5 23 // XMLDB editor
24 $ADMIN->add('misc', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
721d74b0 25
a7c72afc 26
220a90c5 27 // hidden scripts linked from elsewhere
28 $ADMIN->add('misc', new admin_externalpage('oacleanup', 'Online Assignment Cleanup', $CFG->wwwroot.'/'.$CFG->admin.'/oacleanup.php', 'moodle/site:config', true));
220a90c5 29 $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 30
a559f630 31} // end of speedup
32
bee4702d 33?>