Added IP lookup plugin choice to GUI

This commit is contained in:
moodler
2006-10-01 16:25:35 +00:00
parent a3627bb77d
commit 33b17c67c9
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -11,6 +11,15 @@ $temp->add(new admin_setting_configselect('forcetimezone', get_string('forcetime
$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);
+2
View File
@@ -18,6 +18,8 @@ $string['plugins'] = 'Modules';
$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';