2010-08-17 01:23:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'include/init.php';
|
2011-08-11 19:19:51 +02:00
|
|
|
$output = Output::start();
|
2010-08-17 01:23:57 +02:00
|
|
|
|
2013-04-23 15:13:11 +02:00
|
|
|
if (IpV4::isValid($_SERVER['REMOTE_ADDR'])) {
|
|
|
|
$ip = new IpV4($_SERVER['REMOTE_ADDR']);
|
|
|
|
}
|
|
|
|
else if (IpV6::isValid($_SERVER['REMOTE_ADDR'])) {
|
|
|
|
$ip = new IpV6($_SERVER['REMOTE_ADDR']);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$output->add('can\'t determine remote addr', 'error', $_SERVER['REMOTE_ADDR']);
|
|
|
|
}
|
2010-08-17 01:23:57 +02:00
|
|
|
|
|
|
|
$output->add('your current internet ip address', 'notice', $ip);
|
|
|
|
|
2010-10-07 21:03:13 +02:00
|
|
|
$output->send();
|
2010-10-07 14:22:51 +02:00
|
|
|
|
2010-08-17 01:23:57 +02:00
|
|
|
?>
|