2006-08-18 07:23:02 +00:00
|
|
|
<?php // $Id$
|
|
|
|
|
2006-10-30 21:01:47 +00:00
|
|
|
// * Miscellaneous settings
|
2006-09-03 13:10:56 +00:00
|
|
|
|
2007-10-28 22:35:00 +00:00
|
|
|
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
|
|
|
|
|
2007-12-19 17:35:20 +00:00
|
|
|
// Experimental settings page
|
|
|
|
$temp = new admin_settingpage('experimental', get_string('experimental', 'admin'));
|
|
|
|
$temp->add(new admin_setting_configcheckbox('enableglobalsearch', get_string('enableglobalsearch', 'admin'), get_string('configenableglobalsearch', 'admin'), 0));
|
|
|
|
$temp->add(new admin_setting_configcheckbox('smartpix', get_string('smartpix', 'admin'), get_string('configsmartpix', 'admin'), 0));
|
2007-12-25 10:03:59 +00:00
|
|
|
$item = new admin_setting_configcheckbox('enablehtmlpurifier', get_string('enablehtmlpurifier', 'admin'), get_string('configenablehtmlpurifier', 'admin'), 0);
|
|
|
|
$item->set_updatedcallback('reset_text_filters_cache');
|
|
|
|
$temp->add($item);
|
2007-12-19 17:35:20 +00:00
|
|
|
$temp->add(new admin_setting_configcheckbox('enablegroupings', get_string('enablegroupings', 'admin'), get_string('configenablegroupings', 'admin'), 0));
|
2007-10-28 22:35:00 +00:00
|
|
|
|
2007-12-19 17:35:20 +00:00
|
|
|
$ADMIN->add('misc', $temp);
|
2007-08-16 21:14:03 +00:00
|
|
|
|
2007-12-19 17:35:20 +00:00
|
|
|
// XMLDB editor
|
|
|
|
$ADMIN->add('misc', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
|
2006-10-30 21:01:47 +00:00
|
|
|
|
2006-08-18 07:23:02 +00:00
|
|
|
|
2007-12-19 17:35:20 +00:00
|
|
|
// hidden scripts linked from elsewhere
|
|
|
|
$ADMIN->add('misc', new admin_externalpage('oacleanup', 'Online Assignment Cleanup', $CFG->wwwroot.'/'.$CFG->admin.'/oacleanup.php', 'moodle/site:config', true));
|
|
|
|
$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)));
|
2006-09-25 20:22:55 +00:00
|
|
|
|
2007-10-28 22:35:00 +00:00
|
|
|
} // end of speedup
|
|
|
|
|
2006-09-03 14:45:57 +00:00
|
|
|
?>
|