<?
userstatus();
$max_banner = mysql_fetch_array(db_query("SELECT `max_forced` FROM ".$db_prefix."_userdaten WHERE uid=".$_SESSION['uid'].""));
head("Premium Klickbereich!");
echo '<br><div align="center">Im Premium Klickbereich werden nur 2 Banner gleichzeitig angezeigt!</div><br>';
$forcedbanner = db_query("SELECT * FROM ".$db_prefix."_premium WHERE menge >='1' and werbeart = 'forcedbanner' and status = '1' ORDER BY RAND()");
while($f_banner=mysql_fetch_array($forcedbanner)){
$int_reload = db_query("SELECT * FROM ".$db_prefix."_reloads WHERE tan='".$f_banner['tan']."' and (uid='".$_SESSION['uid']."' or ip='".$ip."') and bis >= ".time()."");
if (!mysql_num_rows($int_reload) && $x_banner <= ($max_banner['2']-1)) {
echo '<div align="center"><table border="0" cellpadding="5" cellspacing="1" bgcolor="#000000"><tr><td bgcolor="#CCCCCC"><div align="center"><a href="fc2.php?tan='.$f_banner['tan'].'" target="_blank"><img src="'.$f_banner['banner'].'" border="0" height="60" width="468" alt=""></a></div></td></tr><tr><td bgcolor="#CCCCCC"><div align="center">Reload:'. $f_banner['reload']/3600 .' Std. | Verdienst: '.number_format($f_banner['verdienst'],2,',','.').' | Aufendhalt:'.$f_banner['aufendhalt'].' Sekunden</div></td></tr></table><br></div>';
$x_banner++;
}
}
if ($x_banner <= 0) {
echo '<div align="center"><font color="#FF0000"><b>Alle Premium Banner im Reload !</b></font><br><br><br></div>';
} else {
echo '<div align="center"><form action="" method="post"><input type="Submit" name="mehr_banner" value="Weitere Premium Banner ?"></form></div>';
}
foot();
?>