2 // Do an IP lookup of a user, using selected plugin
4 require('../config.php');
8 $ip = optional_param('ip', getremoteaddr());
9 $user = optional_param('user', $USER->id
);
11 if (empty($CFG->iplookup
)) {
12 set_config('iplookup', 'hostip');
15 require("$CFG->dirroot/iplookup/$CFG->iplookup/lib.php");
17 iplookup_display($ip, $user);