Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/settings/location.php
Go to the documentation of this file.
00001 <?php
00002 
00003 if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
00004 
00005     // "locations" settingpage
00006     $temp = new admin_settingpage('locationsettings', get_string('locationsettings', 'admin'));
00007     $options = get_list_of_timezones();
00008     $options[99] = get_string('serverlocaltime');
00009     $temp->add(new admin_setting_configselect('timezone', get_string('timezone','admin'), get_string('configtimezone', 'admin'), 99, $options));
00010     $options[99] = get_string('timezonenotforced', 'admin');
00011     $temp->add(new admin_setting_configselect('forcetimezone', get_string('forcetimezone', 'admin'), get_string('helpforcetimezone', 'admin'), 99, $options));
00012     $temp->add(new admin_settings_country_select('country', get_string('country', 'admin'), get_string('configcountry', 'admin'), 0));
00013     $temp->add(new admin_setting_configtext('defaultcity', get_string('defaultcity', 'admin'), get_string('defaultcity_help', 'admin'), ''));
00014 
00015     $temp->add(new admin_setting_heading('iplookup', get_string('iplookup', 'admin'), get_string('iplookupinfo', 'admin')));
00016     $temp->add(new admin_setting_configfile('geoipfile', get_string('geoipfile', 'admin'), get_string('configgeoipfile', 'admin', $CFG->dataroot.'/geoip/'), $CFG->dataroot.'/geoip/GeoLiteCity.dat'));
00017     $temp->add(new admin_setting_configtext('googlemapkey', get_string('googlemapkey', 'admin'), get_string('configgooglemapkey', 'admin', $CFG->wwwroot), ''));
00018 
00019     $temp->add(new admin_setting_configtext('allcountrycodes', get_string('allcountrycodes', 'admin'), get_string('configallcountrycodes', 'admin'), '', '/^(?:\w+(?:,\w+)*)?$/'));
00020 
00021     $ADMIN->add('location', $temp);
00022 
00023 } // end of speedup
 All Data Structures Namespaces Files Functions Variables Enumerations