\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "Welkom bij $top_name\n"; echo "\n"; echo "\n"; echo "
\n"; echo "

 

\n"; echo "

\n"; //echo "
\n"; echo "
\n"; echo "
\n"; echo "« »
\n"; echo "

"; echo "

 

\n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; echo ""; } else { setcookie ("test_cookies", "1",time()+(3600*$vote_timeout)); } if ($gateway == "1" && $_SERVER['REQUEST_METHOD'] == "POST" && isset($site)) { //echo "gateway post site"; if ($use_cookies == 1) { setcookie("test_cookies", "1",time()+(3600*$vote_timeout)); } //$cdate = date ("Ymd"); $cdate = time(); $err = 1; $pdate = time()-(3600*$vote_timeout); //echo "pdate = ".$pdate; $cndate = time(); $query = mysql_db_query($dbname,"Select ip from top_hits Where sid='$site' and cdate between $pdate and $cndate and ip='$_SERVER[REMOTE_ADDR]'",$db) or die (mysql_error()); if ($err == 1 && @mysql_num_rows($query) >= 1) $err = 2; if ($err == 1 && $use_cookies == 1) { if (isset($_COOKIE['anti_cheat[$site]']) && $_COOKIE['anti_cheat[$site]'] == 1) $err = 2; if (isset($_COOKIE['test_cookies']) && $_COOKIE['test_cookies'] != 1) $err = 5; } if ($err == 1) { if ($use_cookies == 1) { setcookie ("anti_cheat[$site]", "1",time()+(3600*$vote_timeout)); } mysql_db_query ($dbname,"update top_user set thin=thin+1 Where sid='$site'",$db) or die (mysql_error()); mysql_db_query ($dbname,"insert into top_hits (sid,ip,cdate) values ('$site','$_SERVER[REMOTE_ADDR]','$cdate')",$db) or die (mysql_error()); } header("location: $url_to_folder/index.php?a_m=$err"); } if ($gateway != 1) { //$cdate = date ("Ymd"); $cdate = time(); $pdate = time()-(3600*$vote_timeout); $cndate = time(); $err = 1; $query = mysql_db_query ($dbname,"Select ip from top_hits Where sid='$site' and cdate between $pdate and $cndate and ip='$_SERVER[REMOTE_ADDR]'",$db) or die (mysql_error()); if ($err == 1 && @mysql_num_rows($query) >= 1) { $err = 2; if ($use_cookies == 1) { setcookie ("anti_cheat[$site]", "1",time()+(3600*$vote_timeout)); } } if ($err == 1) { if ($anti_cheat[$site] == 1) $err = 2; } if ($err == 1) { if ($use_cookies == 1) { setcookie ("anti_cheat[$site]", "1",time()+(3600*$vote_timeout)); } mysql_db_query ($dbname,"update top_user set thin=thin+1 Where sid='$site'",$db) or die (mysql_error()); mysql_db_query ($dbname,"insert into top_hits (sid,ip,cdate) values ('$site','$_SERVER[REMOTE_ADDR]','$cdate')",$db) or die (mysql_error()); } header("location: $url_to_folder/index.php?a_m=$err"); } ?>