<?userstatus ();
if(strstr($_SERVER['HTTP_USER_AGENT'], 'Lynx')!=false)
{
die('Aufruf mit diesem Browser nicht gestattet');
}
$REMOTE_ADDR=$_SERVER["REMOTE_ADDR"];
$HTTP_REFERER=$_SERVER['HTTP_REFERER'];
preg_match("/^(http:\/\/)?([^\/]+)/i",$HTTP_REFERER, $treffer);
$host = $treffer[2];
$check_this = $_GET['check'];
// die letzten beiden Segmente aus Hostnamen holen
preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $treffer);
$url_check = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_anteil_einst"));
$datum=date("d.m.Y");
$zeit=date("H:i:s",time());
if($treffer[0] != $url_check['url']){?><center><br><br><br><br>Der Direktaufruf dieser Datei ist nicht gestattet!! <?
}else{
$pruef = db_query("SELECT * FROM ".$db_prefix."_anteil_klick WHERE uid = '".$_SESSION['uid']."'");
if(mysql_num_rows($pruef) < 1){db_query ("INSERT INTO ".$db_prefix."_anteil_klick (uid,summe) VALUES ('".$_SESSION['uid']."','0')");}
head ('Paidbanner');
$usr = mysql_fetch_assoc (db_query ('SELECT max_forced FROM '.$db_prefix.'_userdaten WHERE uid = '.$_SESSION['uid'].' LIMIT 1'));
$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.'") AND t2.bis >= '.time().')
WHERE t2.tan IS NULL AND t1.werbeart = "forcedbanner" AND t1.menge > 0 AND t1.status = 1 AND t1.verdienst > 0 AND t1.sponsor != '.$_SESSION['uid'].' ORDER BY t1.verdienst DESC LIMIT '.$usr['max_forced'].'');
while ($f_banner = mysql_fetch_assoc ($fbanner)){
echo '<div align="center" id="banner_'.$f_banner['tan'].'"><a href="fc_ant.php?tan='.$f_banner['tan'].'" target="_blank"><img src="'.$f_banner['banner'].'" border="0" height="60" width="468" alt="'.$f_banner['tan'].'" onClick="document.getElementById(\'banner_'.$f_ban ner['tan'].'\').style.display=\'none\';"></a>'
. '<br>Reload:'. $f_banner['reload']/3600 .' Std. | Verdienst: '.number_format($f_banner['verdienst'],2,',','.').' | Aufenthalt: '.$f_banner['aufendhalt'].' Sekunden<br><br></div>';
}
if (mysql_num_rows ($fbanner) > 0) echo '<div align="center"><input type="button" name="mehr_banner" value="Weitere Banner !" onclick="javascript
:location.reload();" /></div>';
else echo '<div style="text-align: center; font-weight: bold; color: #ff0000;">Alle Banner im Reload !</div>';
foot();}
?>