These files still need tidying
[moodle.git] / admin / settings / misc.php
CommitLineData
a7c72afc 1<?php // $Id$
2
3// * Miscellaneous settings (still to be sorted)
50999a0b 4$temp = new admin_settingpage('legacy', get_string('legacy','admin'));
5$temp->add(new admin_setting_configcheckbox('teacherassignteachers', get_string('teacherassignteachers', 'admin'), get_string('configteacherassignteachers', 'admin'), 1));
6$temp->add(new admin_setting_sitesettext('teacher', get_string('wordforteacher'), get_string('wordforteachereg'), ''));
7$temp->add(new admin_setting_sitesettext('teachers', get_string('wordforteachers'), get_string('wordforteacherseg'), ''));
8$temp->add(new admin_setting_sitesettext('student', get_string('wordforstudent'), get_string('wordforstudenteg'), ''));
9$temp->add(new admin_setting_sitesettext('students', get_string('wordforstudents'), get_string('wordforstudentseg'), ''));
10$ADMIN->add('misc', $temp);
11
12$temp = new admin_settingpage('unsorted', get_string('unsorted', 'admin'));
9519ee2e 13$temp->add(new admin_setting_configtext('docroot', get_string('docroot', 'admin'), get_string('configdocroot', 'admin'), 'http://docs.moodle.org', PARAM_URL));
14$temp->add(new admin_setting_configcheckbox('doctonewwindow', get_string('doctonewwindow', 'admin'), get_string('configdoctonewwindow', 'admin'), 0));
15$temp->add(new admin_setting_configselect('bloglevel', get_string('bloglevel', 'admin'), get_string('configbloglevel', 'admin'), 4, array(5 => get_string('worldblogs','blog'),
16 4 => get_string('siteblogs','blog'),
17 3 => get_string('courseblogs','blog'),
18 2 => get_string('groupblogs','blog'),
19 1 => get_string('personalblogs','blog'),
20 0 => get_string('disableblogs','blog'))));
21$temp->add(new admin_setting_configselect('loglifetime', get_string('loglifetime', 'admin'), get_string('configloglifetime', 'admin'), 0, array(0 => get_string('neverdeletelogs'),
22 1000 => get_string('numdays', '', 1000),
23 365 => get_string('numdays', '', 365),
24 180 => get_string('numdays', '', 180),
25 150 => get_string('numdays', '', 150),
26 120 => get_string('numdays', '', 120),
27 90 => get_string('numdays', '', 90),
28 60 => get_string('numdays', '', 60),
29 30 => get_string('numdays', '', 30))));
50999a0b 30$ADMIN->add('misc', $temp);
31
32$ADMIN->add('misc', new admin_externalpage('sitefiles', get_string('sitefiles'), $CFG->wwwroot . '/files/index.php?id=' . SITEID));
a7c72afc 33
a7c72afc 34
35?>