Location: PHPKode > projects > ToplistHost > toplisthost/out.php
<?php
include("funktions.php");
openmysql();
$config=loadconfig();
if(!$liste) fehler("Variable liste fehlt / Variable liste is missing");
$listconfig=loadlistconfig();

$temp="setin$liste";
if($$temp) {
	mysql_query("update ft_k_stat set hitsin=hitsin+1 where kunde=".$$temp." and datum=curdate()");
	if(mysql_affected_rows() == 0) {
		mysql_query("insert into ft_k_stat values ($liste, ".$$temp.", curdate(), 1, 0, 0)");
	}
	mysql_query("update ft_k_members set spalte1=spalte1+1 where kunde=".$$temp);
	print mysql_error();
	setcookie("setin$liste",0,-1);
}

$temp="out".$liste.$id;
if(!$$temp) {
	switch($listconfig[5]) {
		case 6:
		case 0:
		case 1:
			mysql_query("update ft_k_members set spalte2=spalte2+1 where kunde=$id");
			break;
	}
	setcookie("out".$liste.$id, 1, time()+$listconfig[36]);
}

$result=mysql_query("select url from ft_k_members where kunde=$id");
list($url)=mysql_fetch_row($result);
print mysql_error();
	
mysql_query("update ft_k_stat set hitsout=hitsout+1 where kunde=$id and datum=curdate()");
if(mysql_affected_rows() == 0) {
	mysql_query("insert into ft_k_stat values ($liste, $id, curdate(), 0,1, 0)");
}

header("Location: $url");

?>
Return current item: ToplistHost