Differences Between: [Versions 39 and 311]
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 new moodle_url("/admin/registration/index.php"))); 15 // hidden upgrade script 16 $ADMIN->add('root', new admin_externalpage('upgradesettings', new lang_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true)); 17 18 // Adding Moodle Services information page. 19 $moodleservices = new admin_settingpage('moodleservices', new lang_string('moodleservices', 20 'admin')); 21 $ADMIN->add('root', $moodleservices); 22 23 $userfeedback = new admin_settingpage('userfeedback', new lang_string('feedbacksettings', 'admin')); 24 $ADMIN->add('root', $userfeedback); 25 26 if ($hassiteconfig) { 27 $optionalsubsystems = new admin_settingpage('optionalsubsystems', new lang_string('advancedfeatures', 'admin')); 28 $ADMIN->add('root', $optionalsubsystems); 29 } 30 31 $ADMIN->add('root', new admin_category('users', new lang_string('users','admin'))); 32 $ADMIN->add('root', new admin_category('courses', new lang_string('courses','admin'))); 33 $ADMIN->add('root', new admin_category('grades', new lang_string('grades'))); 34 $ADMIN->add('root', new admin_category('analytics', new lang_string('analytics', 'analytics'))); 35 $ADMIN->add('root', new admin_category('competencies', new lang_string('competencies', 'core_competency'))); 36 $ADMIN->add('root', new admin_category('badges', new lang_string('badges'), empty($CFG->enablebadges))); 37 $ADMIN->add('root', new admin_category('h5p', new lang_string('h5p', 'core_h5p'))); 38 $ADMIN->add('root', new admin_category('license', new lang_string('license'))); 39 $ADMIN->add('root', new admin_category('location', new lang_string('location','admin'))); 40 $ADMIN->add('root', new admin_category('language', new lang_string('language'))); 41 $ADMIN->add('root', new admin_category('messaging', new lang_string('messagingcategory', 'admin'))); 42 $ADMIN->add('root', new admin_category('payment', new lang_string('payments', 'payment'))); 43 $ADMIN->add('root', new admin_category('modules', new lang_string('plugins', 'admin'))); 44 $ADMIN->add('root', new admin_category('security', new lang_string('security','admin'))); 45 $ADMIN->add('root', new admin_category('appearance', new lang_string('appearance','admin'))); 46 $ADMIN->add('root', new admin_category('frontpage', new lang_string('frontpage','admin'))); 47 $ADMIN->add('root', new admin_category('server', new lang_string('server','admin'))); 48 $ADMIN->add('root', new admin_category('mnet', new lang_string('net','mnet'), (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode === 'off'))); 49 $ADMIN->add('root', new admin_category('reports', new lang_string('reports'))); 50 $ADMIN->add('root', new admin_category('development', new lang_string('development', 'admin'))); 51 52 // hidden unsupported category 53 $ADMIN->add('root', new admin_category('unsupported', new lang_string('unsupported', 'admin'), true)); 54 55 // hidden search script 56 $ADMIN->add('root', new admin_externalpage('search', new lang_string('search', 'admin'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:configview', true));
title
Description
Body
title
Description
Body
title
Description
Body
title
Body