moodle/iplookup/index.php
moodler f4fb66d7d9 Added new structure for iplookups (ie called from logs).
ipatlas is now just a plugin, and we can add other plugins
to the same job better.
2005-07-18 08:06:16 +00:00

20 lines
409 B
PHP

<?php // $Id$
// Do an IP lookup of a user, using selected plugin
require('../config.php');
require_login();
$ip = optional_param('ip', getremoteaddr());
$user = optional_param('user', $USER->id);
if (empty($CFG->iplookup)) {
set_config('iplookup', 'ipatlas');
}
require("$CFG->dirroot/iplookup/$CFG->iplookup/lib.php");
iplookup_display($ip, $user);
?>