<?
$date=date('d:m:Y | H:i:s');
$site= $_SERVER['HTTP_REFERER'];
$soft =$_SERVER['HTTP_USER_AGENT'];
$ip=$_SERVER['REMOTE_ADDR'];
$aaa= 'http://'.$info['site'];
if ( !empty ( $site) and $site == $aaa and !empty ( $soft) and !empty ( $ip) ) {
mysql_query("INSERT INTO logs (time,site,soft,ip)
VALUES('".$date."','".$site."','".$soft."','".$ip."')");
}
?>