numrows(); if($besuch==1 || $anzahl==0){ $sql =& new dbc("select * from " . $sql_prefix . "_referer where name='".$domainname."' AND jahr='".date("Y")."'"); $anzahl = $sql->numrows(); if($anzahl == "0") { $sql =& new dbc("INSERT into " . $sql_prefix . "_referer (id,jahr,name,visits) values ('','".date("Y")."','".$domainname."','1')"); } if($anzahl != "0") { $sql =& new dbc("UPDATE " . $sql_prefix . "_referer SET visits=visits+1 where name='".$domainname."' AND jahr='".date("Y")."'"); } } $sql =& new dbc("SELECT DISTINCT ip,stamp FROM " . $sql_prefix . "_statistiken WHERE ip = '".$_SERVER['REMOTE_ADDR']."' order by stamp DESC limit 1"); $row = $sql->fetcharray(); $loeschzeit = 60*$min_loesch; if($row['stamp']+($loeschzeit) < time()){ $sql =& new dbc("INSERT INTO " . $sql_prefix . "_statistiken (refdomain,stamp,id,datum,ip,os,browser,ref,tag,monat,jahr) VALUES ('".$domainname."','".time()."','','$cdatum','".$_SERVER['REMOTE_ADDR']."','$os_user','$browser_user','".$_SERVER['HTTP_REFERER']."','".$cdatum=date("d")."','".$cdatum=date("m")."','".$cdatum=date("Y")."')"); } ?>