Hier ein Schnippsel von dragon11
Einfach die alte klick4.php damit überspielen:
PHP-Code:
<? userstatus();
head("Paidbanner");
$max_banner = mysql_fetch_array(db_query("SELECT `max_forced` FROM ".$db_prefix."_userdaten WHERE uid=".$_SESSION['uid'].""));
$fbanner = db_query ("SELECT t1.* FROM ".$db_prefix."_gebuchte_werbung t1 LEFT JOIN ".$db_prefix."_reloads t2
ON (t1.tan=t2.tan AND (t2.uid='".$_SESSION['uid']."' or t2.ip='".$ip."'))
WHERE t1.menge >='1' and t1.werbeart = 'forcedbanner' and t1.status = '1' and t1.sponsor != '".$_SESSION['uid']."' AND t2.tan IS NULL or t2.bis < ".time()." ORDER BY verdienst DESC LIMIT ".($max_banner['max_forced']-1)."");
while($f_banner=mysql_fetch_array($fbanner)){
echo '<div align="center" id="banner_'.$x_banner.'"><a href="fc.php?tan='.$f_banner['tan'].'" target="_blank"><img src="'.$f_banner['banner'].'" border="1" height="60" width="468" alt="'.$f_banner['tan'].'" onClick="document.getElementById(\'banner_'.$x_banner.'\').style.display=\'none\';"></a><br>Reload:'. $f_banner['reload']/3600 .' Std. | Verdienst: '.number_format($f_banner['verdienst'],2,',','.').' | Aufendhalt:'.$f_banner['aufendhalt'].' Sekunden<br><br></div>';
$x_banner++;
}
if ($x_banner <= 0) {
echo '<hr><hr><hr><div align="center"><font color="#FF0000"><b>Alle Banner im Reload !</b></font>';
} else {
echo '<div align="center"><form action="" method="post"><input type="Submit" name="mehr_banner" value="Weitere Banner ?"></form></div>';
}
mysql_free_result($fbanner);
foot();
?>