Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/iplookup/index.php File Reference

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'])

Variable Documentation

$info = array($ip)

Definition at line 46 of file index.php.

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)

Definition at line 61 of file index.php.

Definition at line 34 of file index.php.

$note = array()

Definition at line 47 of file index.php.

$title = implode(' - ', $info['title'])

Definition at line 78 of file index.php.

Definition at line 35 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations