|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | core |
Variables | |
| $ip = optional_param('ip', getremoteaddr(), PARAM_HOST) | |
| $user = optional_param('user', 0, PARAM_INT) | |
| $info = array($ip) | |
| $note = array() | |
| if(!preg_match('/(^\d{1, 3})\.(\d{1, 3})\.(\d{1, 3})\.(\d{1, 3})$/', $ip, $match)) if($match | $info [1] > 255 or $match[2] > 255 or $match[3] > 255 or $match[4] > 255) if($match[1]== '127'or $match[1]== '10'or($match[1]== '172'and $match[2] >= '16'and $match[2]<= '31') or($match[1]== '192'and $match[2]== '168')) = iplookup_find_location($ip) |
| $title = implode(' - ', $info['title']) | |
| if (!preg_match('/(^\d{1, 3})\.(\d{1, 3})\.(\d{1, 3})\.(\d{1, 3})$/', $ip, $match)) if ($match $info[1] > 255 or $match[2] > 255 or $match[3] > 255 or $match[4] > 255) if ($match[1]== '127'or $match[1]== '10'or($match[1]== '172'and $match[2] >= '16'and $match[2]<= '31') or($match[1]== '192'and $match[2]== '168')) = iplookup_find_location($ip) |
| $ip = optional_param('ip', getremoteaddr(), PARAM_HOST) |