====== Kram ======
===== IP-Adresse eines Besuchers =====
$_SERVER['REMOTE_ADDR']
echo ($_SERVER['REMOTE_ADDR']);
$ip = '';
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) AND !empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
foreach (explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']) as $values) {
$ip .= long2ip(ip2long($values)) . ' ; ';
}
}
else
$ip = long2ip(ip2long($_SERVER['REMOTE_ADDR']));
echo ($ip);