\r\n"; //optional headerfields //mail($recipient, $subject, $mail_body, $header); //mail command } //Check of dit domein al bestaat in de stats... ja? update.. nee? toevoegen $query = mysql_query("SELECT * FROM `domains` where domain='$domeinnaam'"); if( mysql_num_rows( $query ) == 0 ) { mysql_query("INSERT INTO `domains` SET domain='$domeinnaam', visits=1"); $domainID = mysql_insert_id(); mysql_query("INSERT into `stats` SET domain_id='$domainID',datum='$timestamp', maand='$month', jaar='$year', ip='$ip'"); }else{ $domainInfo = mysql_fetch_assoc($query); $domainID = $domainInfo['id']; $checkip = mysql_query("SELECT * FROM `stats` WHERE ip='$ip' AND domain_id='$domainID' AND datum>$timestamp-36000"); //look if the ip is unique and if so add a new record. if( mysql_num_rows($checkip) == 0){ mysql_query("INSERT into `stats` SET domain_id='$domainID',datum='$timestamp', maand='$month', jaar='$year', ip='$ip'"); mysql_query("UPDATE `domains` SET visits=visits+1 WHERE id='$domainID'"); } } $ninestar = array("ninestar.nl","nine-star.nl","9star.nl","9-star.nl","ninestar.eu"); if ($domeinnaam == "hazelager.nl" || $domeinnaam == "haazelager.nl") { echo "

Hé Johan,

klik hier voor de goedkoopste inkt en toners van Nederland!

En voor de overige bezoekers, klik hier voor de beste accountant van Nederland

"; } else if (in_array($domeinnaam,$ninestar)) { header("Location: http://www.ggimage.com",TRUE,"301"); } else if (substr($domeinnaam,-3) == ".eu") { echo "
"; } else { // include ("OK.php"); header("Location: http://www.123inkt.nl/?referer=2008intnm1&r2=$domeinnaam",TRUE,"301"); } ?>