¿Alguien tiene el code php de Iplogger?
Saludos
<?php
function logIP()
{
$ipLog="logfile.htm"; // Your logfiles name here (.txt or .html extensions ok)
// IP logging function by Dave Lauderdale
// Originally published at: www.digi-dl.com
$register_globals = (bool) ini_get('register_gobals');
if ($register_globals) $ip = getenv(REMOTE_ADDR);
else $ip = $_SERVER['REMOTE_ADDR'];
$date=date ("l dS of F Y h:i:s A");
$log=fopen("$ipLog", "a+");
if (preg_match("/\bhtm\b/i", $ipLog) || preg_match("/\bhtml\b/i", $ipLog))
{
fputs($log, "Logged IP address: $ip - Date logged: $date<br>");
}
else fputs($log, "Logged IP address: $ip - Date logged: $date\n");
fclose($log);
}
// Place the below function call wherever you want the script to fire.
logIp();
?>
Fuente: http://www.sitepoint.com/forums/showthread.php?560149-Simple-IP-logging-script (http://www.sitepoint.com/forums/showthread.php?560149-Simple-IP-logging-script)
Saludos HomeGuard
Gracías tio muy util para tenerlo guardado :)
Un saludo :P