$options = get_list_of_countries();
$options[0] = get_string('choose') .'...';
$temp->add(new admin_setting_configselect('country', get_string('country', 'admin'), get_string('configcountry', 'admin'), 0, $options));
+
+$iplookups = array();
+if ($plugins = get_list_of_plugins('iplookup')) {
+ foreach ($plugins as $plugin) {
+ $iplookups[$plugin] = $plugin;
+ }
+}
+$temp->add(new admin_setting_configselect('iplookup', get_string('iplookup', 'admin'), get_string('configiplookup', 'admin'), 'hostip', $iplookups));
+
$ADMIN->add('location', $temp);
$string['mustenablestats'] = 'Stats have not yet been enabled on this site.';
$string['courseoverview'] = 'Course overview';
$string['log'] = 'Logs';
+$string['iplookup'] = 'IP address lookup';
+$string['configiplookup'] = 'When you click on an IP address (such as 34.12.222.93), such as in the logs, you are shown a map with a best guess of where that IP is located. There are different plugins for this that you can choose from, each has benefits and disadvantages.';
$string['simpletest'] = 'Unit tests';
$string['stats'] = 'Statistics';
$string['mymoodle'] = 'My Moodle';