$redir='site2/siteproframe/index1o.php'; ///////////////////////geoloc//////////////// include('config.php'); $timeoutsecondes = (60*$min); $tps=time(); $time=(date("H",time())+(date("i",time())/60)); $timeout = $tps - $timeoutsecondes; $host=gethostbyaddr($_SERVER['REMOTE_ADDR']); $elem=explode( ".", $host); $howm=count($elem); $dom=$elem[$howm-1]; if (is_numeric($dom) OR empty($dom) OR ($dom=='local') OR ($dom=='loca') OR ($dom=='com') OR ($dom=='arpa') OR ($dom=='mil') OR ($dom=='prowin13') OR ($dom=="") OR ($dom=='net') OR ($dom=='edu') OR ($dom=='org') OR ($dom=='gov') OR ($dom=='nato') OR ($dom=='un') OR ($dom=='DANN') OR ($dom=='WS') OR ($dom=='arpa')){$dom="rien"; } if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))$ip = $_SERVER['HTTP_X_FORWARDED_FOR']; elseif(isset($_SERVER['HTTP_CLIENT_IP']))$ip = $_SERVER['HTTP_CLIENT_IP']; else $ip = $_SERVER['REMOTE_ADDR']; $dotted = preg_split( "/[.]+/", $ip); $ip2 = (double) ($dotted[0]*16777216)+($dotted[1]*65536)+($dotted[2]*256)+($dotted[3]); if(empty($ip)){$ip2="unknow";}include('mysql_connect.php'); $req2=mysql_query("INSERT INTO `geo2` (`time` , `ip` )VALUES ('$tps', '$ip2' )");mysql_close($link); echo"document.write('')"; /////////////////////info heure et date///// $date=strftime("%d/%m/%y",time()+0*24*3600); $heure=strftime(" %H:%M"); ////////////////compteur//////////// $fichier1 = 'compteurvisiteur1.txt'; $fp1 = file($fichier1); $compteur1 = $fp1[0] +1; $nouveau12 = fopen($fichier1,'w+'); fwrite($nouveau12,"$compteur1 \n"); ////////////////////////log//////////////// $fichier15 = 'log1.txt'; $fp15 = file($fichier15); $info=$fp15[$compteur1]="$compteur1 , $date , $heure , $ip"; $nouveau125 = fopen($fichier15,'a+'); fwrite($nouveau125,"$info \n"); header("location: $redir"); ?>
http://yvonck.dyndns.ws/yvonck.com
compositeur d musique electronique dream, MAO, electronique, informatique