<div style="position:fixed;left:2px; bottom:5px;z-index:1000;">
<div style="background:#333333; font-family:Tahoma, Geneva, sans-serif; color:#CCCCCC; font-size:11px; line-height:20px; padding-top:3px; padding:5px 14px; -webkit-border-radius:8px; -moz-border-radius:8px; border-radius:8px; text-align:right">
<div style="text-shadow:#f1f7f9 -1px 1px 0;font-size:14px;" align="center">
</div>
<strong><?php
$ip=$_SERVER['REMOTE_ADDR'];
echo "آی پی شما: <strong>$ip</strong>";
?> ثبت شد<br/></strong>
</div>
</div>
<div style="position:fixed;left:2px; bottom:5px;z-index:1000;">
<div style="background:#333333; font-family:Tahoma, Geneva, sans-serif; color:#CCCCCC; font-size:11px; line-height:20px; padding-top:3px; padding:5px 14px; -webkit-border-radius:8px; -moz-border-radius:8px; border-radius:8px; text-align:right">
<div style="text-shadow:#f1f7f9 -1px 1px 0;font-size:14px;" align="center">
</div>
<strong><?php
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))
//check ip from share internet
$ip=$_SERVER['HTTP_CLIENT_IP'];
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
//to check ip is pass from proxy
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
else
$ip=$_SERVER['REMOTE_ADDR'];
return $ip;
}
$ip = getRealIpAddr();
?>$ip=$_SERVER['REMOTE_ADDR'];
echo "آی پی شما: <strong>$ip</strong>";
?> ثبت شد<br/></strong>
</div>
</div>