3 // "locations" settingpage
4 $temp = new admin_settingpage('locationsettings', get_string('locationsettings', 'admin'));
5 $options = get_list_of_timezones();
6 $options[99] = get_string('serverlocaltime');
7 $temp->add(new admin_setting_configselect('timezone', get_string('timezone','admin'), get_string('configtimezone', 'admin'), 99, $options));
8 $options[99] = get_string('timezonenotforced', 'admin');
9 $temp->add(new admin_setting_configselect('forcetimezone', get_string('forcetimezone', 'admin'), get_string('helpforcetimezone', 'admin'), 99, $options));
10 $options = get_list_of_countries();
11 $options[0] = get_string('choose') .'...';
12 $temp->add(new admin_setting_configselect('country', get_string('country', 'admin'), get_string('configcountry', 'admin'), 0, $options));
15 if ($plugins = get_list_of_plugins('iplookup')) {
16 foreach ($plugins as $plugin) {
17 $iplookups[$plugin] = $plugin;
20 $temp->add(new admin_setting_configselect('iplookup', get_string('iplookup', 'admin'), get_string('configiplookup', 'admin'), 'hostip', $iplookups));
22 $ADMIN->add('location', $temp);
25 $ADMIN->add('location', new admin_externalpage('timezoneimport', get_string('updatetimezones', 'admin'), "$CFG->wwwroot/$CFG->admin/timezoneimport.php"));