]> git.mjollnir.org Git - moodle.git/commitdiff
Added IP lookup plugin choice to GUI
authormoodler <moodler>
Sun, 1 Oct 2006 16:25:35 +0000 (16:25 +0000)
committermoodler <moodler>
Sun, 1 Oct 2006 16:25:35 +0000 (16:25 +0000)
admin/settings/location.php
lang/en_utf8/admin.php

index cde4443bf349d06fb0df05d657db2bfb45945a6d..cc5607a87c240e8bfb48ed533e4f2af49958a7a6 100644 (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);
 
 
index 7e32d0c65b548e2f6c207c7784191828ac8b5db9..ebb76235290634d4c6ff0e87aea93a54d63ade1e 100644 (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';