2006-09-03 13:10:56 +00:00
|
|
|
<?php // $Id$
|
|
|
|
|
2006-09-25 18:21:59 +00:00
|
|
|
// This is the first file read by the lib/adminlib.php script
|
|
|
|
// We use it to create the categories in correct order,
|
|
|
|
// since they need to exist *before* settingpages and externalpages
|
|
|
|
// are added to them.
|
2006-09-03 13:10:56 +00:00
|
|
|
|
2006-09-03 14:45:57 +00:00
|
|
|
$ADMIN->add('root', new admin_externalpage('adminnotifications', get_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
|
2006-09-25 18:21:59 +00:00
|
|
|
|
|
|
|
// hidden upgrade script
|
|
|
|
$ADMIN->add('root', new admin_externalpage('upgradesettings', get_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true));
|
|
|
|
|
2006-10-02 05:53:39 +00:00
|
|
|
// hidden search script
|
|
|
|
$ADMIN->add('root', new admin_externalpage('search', get_string('search', 'admin'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
|
|
|
|
|
2006-09-03 14:45:57 +00:00
|
|
|
$ADMIN->add('root', new admin_category('users', get_string('users','admin')));
|
|
|
|
$ADMIN->add('root', new admin_category('courses', get_string('courses','admin')));
|
|
|
|
$ADMIN->add('root', new admin_category('location', get_string('location','admin')));
|
|
|
|
$ADMIN->add('root', new admin_category('language', get_string('language')));
|
|
|
|
|
|
|
|
$ADMIN->add('root', new admin_category('modules', get_string('plugins', 'admin')));
|
2006-09-03 15:13:53 +00:00
|
|
|
$ADMIN->add('modules', new admin_externalpage('managemodules', get_string('activities'), "$CFG->wwwroot/$CFG->admin/modules.php"));
|
|
|
|
$ADMIN->add('modules', new admin_externalpage('manageblocks', get_string('blocks'), "$CFG->wwwroot/$CFG->admin/blocks.php"));
|
|
|
|
$ADMIN->add('modules', new admin_externalpage('managefilters', get_string('managefilters'), "$CFG->wwwroot/$CFG->admin/filters.php"));
|
2006-09-03 14:45:57 +00:00
|
|
|
|
|
|
|
$ADMIN->add('root', new admin_category('security', get_string('security','admin')));
|
|
|
|
$ADMIN->add('root', new admin_category('appearance', get_string('appearance','admin')));
|
|
|
|
$ADMIN->add('root', new admin_category('server', get_string('server','admin')));
|
2007-01-04 03:19:49 +00:00
|
|
|
$ADMIN->add('root', new admin_category('mnet', get_string('net','mnet')));
|
2006-09-03 14:45:57 +00:00
|
|
|
|
|
|
|
$ADMIN->add('root', new admin_category('reports', get_string('reports')));
|
2006-11-07 02:53:39 +00:00
|
|
|
foreach (get_list_of_plugins('admin/report') as $plugin) {
|
|
|
|
/// This snippet is temporary until simpletest can be fixed to use xmldb. See MDL-7377 XXX TODO
|
2007-01-12 00:06:08 +00:00
|
|
|
if ($plugin == 'simpletest' && $CFG->dbfamily != 'mysql' && $CFG->dbfamily != 'postgres') {
|
2006-11-07 02:53:39 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
/// End of removable snippet
|
2006-09-25 20:22:55 +00:00
|
|
|
$ADMIN->add('reports', new admin_externalpage('report'.$plugin, get_string($plugin, 'admin'), "$CFG->wwwroot/$CFG->admin/report/$plugin/index.php"));
|
2006-09-03 13:10:56 +00:00
|
|
|
}
|
|
|
|
|
2006-09-25 17:44:43 +00:00
|
|
|
$ADMIN->add('root', new admin_category('misc', get_string('miscellaneous')));
|
2006-09-03 14:45:57 +00:00
|
|
|
|
2006-09-25 20:22:55 +00:00
|
|
|
// hidden unsupported category
|
|
|
|
$ADMIN->add('root', new admin_category('unsupported', get_string('unsupported', 'admin'), true));
|
2006-09-03 14:45:57 +00:00
|
|
|
|
|
|
|
?>
|