[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 // This is the first file read by the lib/adminlib.php script 4 // We use it to create the categories in correct order, 5 // since they need to exist *before* settingpages and externalpages 6 // are added to them. 7 8 $systemcontext = context_system::instance(); 9 $hassiteconfig = has_capability('moodle/site:config', $systemcontext); 10 11 $ADMIN->add('root', new admin_externalpage('adminnotifications', new lang_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php")); 12 13 $ADMIN->add('root', new admin_externalpage('registrationmoodleorg', new lang_string('registration', 'admin'), 14 "$CFG->wwwroot/$CFG->admin/registration/register.php?huburl=" . HUB_MOODLEORGHUBURL . "&hubname=Moodle.org&sesskey=" . sesskey())); 15 $ADMIN->add('root', new admin_externalpage('registrationhub', new lang_string('registerwith', 'hub'), 16 "$CFG->wwwroot/$CFG->admin/registration/register.php", 'moodle/site:config', true)); 17 $ADMIN->add('root', new admin_externalpage('registrationhubs', new lang_string('hubs', 'admin'), 18 "$CFG->wwwroot/$CFG->admin/registration/index.php", 'moodle/site:config', true)); 19 $ADMIN->add('root', new admin_externalpage('siteregistrationconfirmed', 20 new lang_string('registrationconfirmed', 'hub'), 21 $CFG->wwwroot."/".$CFG->admin."/registration/confirmregistration.php", 'moodle/site:config', true)); 22 // hidden upgrade script 23 $ADMIN->add('root', new admin_externalpage('upgradesettings', new lang_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true)); 24 25 if ($hassiteconfig) { 26 $optionalsubsystems = new admin_settingpage('optionalsubsystems', new lang_string('advancedfeatures', 'admin')); 27 $ADMIN->add('root', $optionalsubsystems); 28 } 29 30 $ADMIN->add('root', new admin_category('users', new lang_string('users','admin'))); 31 $ADMIN->add('root', new admin_category('courses', new lang_string('courses','admin'))); 32 $ADMIN->add('root', new admin_category('grades', new lang_string('grades'))); 33 $ADMIN->add('root', new admin_category('competencies', new lang_string('competencies', 'core_competency'))); 34 $ADMIN->add('root', new admin_category('badges', new lang_string('badges'), empty($CFG->enablebadges))); 35 $ADMIN->add('root', new admin_category('location', new lang_string('location','admin'))); 36 $ADMIN->add('root', new admin_category('language', new lang_string('language'))); 37 $ADMIN->add('root', new admin_category('modules', new lang_string('plugins', 'admin'))); 38 $ADMIN->add('root', new admin_category('security', new lang_string('security','admin'))); 39 $ADMIN->add('root', new admin_category('appearance', new lang_string('appearance','admin'))); 40 $ADMIN->add('root', new admin_category('frontpage', new lang_string('frontpage','admin'))); 41 $ADMIN->add('root', new admin_category('server', new lang_string('server','admin'))); 42 $ADMIN->add('root', new admin_category('mnet', new lang_string('net','mnet'), (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode === 'off'))); 43 $ADMIN->add('root', new admin_category('reports', new lang_string('reports'))); 44 $ADMIN->add('root', new admin_category('development', new lang_string('development', 'admin'))); 45 46 // hidden unsupported category 47 $ADMIN->add('root', new admin_category('unsupported', new lang_string('unsupported', 'admin'), true)); 48 49 // hidden search script 50 $ADMIN->add('root', new admin_externalpage('search', new lang_string('searchresults'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |