Recent wiki table changes have problems on PostgreSQL 7.4 MDL-6724
[moodle.git] / iplookup / index.php
1 <?php // $Id$
2       // Do an IP lookup of a user, using selected plugin
4     require('../config.php');
6     require_login();
8     $ip   = optional_param('ip', getremoteaddr());
9     $user = optional_param('user', $USER->id);
11     if (empty($CFG->iplookup)) {
12         set_config('iplookup', 'ipatlas');
13     }
15     require("$CFG->dirroot/iplookup/$CFG->iplookup/lib.php");
17     iplookup_display($ip, $user);
19 ?>