Posts by Tiago Moreira • 1 point
1 post
-
0
votes2
answers798
viewsA: Log user date, time and IP in Login
IP <php? function ip_cliente() { $ipaddress = 'UNKNOWN'; $keys=array('HTTP_CLIENT_IP','HTTP_X_FORWARDED_FOR','HTTP_X_FORWARDED','HTTP_FORWARDED_FOR','HTTP_FORWARDED','REMOTE_ADDR'); foreach($keys…