From: moodler Date: Sun, 1 Oct 2006 16:25:35 +0000 (+0000) Subject: Added IP lookup plugin choice to GUI X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=33b17c67c9fa9165db24a4f2e46c083a469e444b;p=moodle.git Added IP lookup plugin choice to GUI --- diff --git a/admin/settings/location.php b/admin/settings/location.php index cde4443bf3..cc5607a87c 100644 --- a/admin/settings/location.php +++ b/admin/settings/location.php @@ -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); diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index 7e32d0c65b..ebb7623529 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -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';