Hab's nochmal neu gedownloadet.
klick4
PHP-Code:
<?
userstatus ();
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.'_adscan_userblacklist t4 ON t4.tan = t1.tan AND t4.uid = '.$_SESSION['uid'].'
LEFT JOIN '.$db_prefix.'_fb_blacklist AS t3 ON t3.kid = t1.kid AND t3.werbeart=t1.werbeart
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 (t3.kid IS NULL OR LOCATE(t3.sponsor, t1.ziel) = 0) AND t4.tan IS NULL AND 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']);
echo mysql_error();
while ($f_banner = mysql_fetch_assoc ($fbanner)){
echo '<div align="center" id="banner_'.$f_banner['tan'].'"><a href="fc.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_banner['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 ();
?>
topframe-forced
PHP-Code:
<?
@require_once ('lib/functions.lib.php');
@require_once ('lib/session.lib.php');
// Variabeln definieren
if (!isset($headmsg)) $headmsg = "";
if (!isset($puk)) $puk = "";
if (!isset($force_error)) $force_error = "";
if (!isset($wartezeit)) $wartezeit = "";
if (!isset($_GET['art'])) $_GET['art'] = "";
if (!isset($_GET['puk'])) $_GET['puk'] = "";
if (!isset($_GET['auszahlen'])) $_GET['auszahlen'] = "false";
if (!isset($_SESSION['uid'])) $_SESSION['uid'] = "";
if (!isset($forced['ziel'])) $forced['ziel'] = "";
if (!isset($forced['aufendhalt'])) $forced['aufendhalt'] = "";
if (!isset($forced['tan'])) $forced['tan'] = "";
// Nur weiter wenn eingeloggt
if ($_SESSION['login'] != 'true' || $_SESSION['uid'] <= 0) die('Bitte einloggen!');
@db_connect();
// Tan sichern
$_GET['tan'] = mysql_real_escape_string ($_GET['tan']);
// Werbedaten auslesen! Fixed
$kamp = 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 t1.tan = '".$_GET['tan']."' AND t2.tan IS NULL AND t1.werbeart = 'forcedbanner' AND t1.menge >=1 AND t1.status = 1 AND t1.sponsor != ".$_SESSION['uid']." LIMIT 1");
// Reloadprüfen
if (mysql_num_rows($kamp)) {
$forced = mysql_fetch_assoc($kamp);
$wartezeit = $forced['aufendhalt'];
$headmsg = 'Vergütung in '.$forced['aufendhalt'].' Sek.!';
if ($_GET['auszahlen'] != 'true'){
$puk = md5($_SESSION['uid'].$forced['aufendhalt'].date("d.m.Y",time()).$percode);
$_SESSION['earlies_payout'.$_GET['tan']] = time()+$wartezeit-1;
}
} else {
$headmsg = 'Banner noch im Reload!';
$force_error = 'true';
}
// User bezahlen und Reload schreiben
if ($_GET['auszahlen'] == 'true' && $force_error != 'true' && $_GET['puk'] == md5($_SESSION['uid'].$forced['aufendhalt'].date("d.m.Y",time()).$percode) && time() >= $_SESSION['earlies_payout'.$_GET['tan']]){
// Um einen mysql_query zu sparen wurde hier auf kontobuchung() verzichtet...
db_query("UPDATE ".$db_prefix."_kontodaten SET klicks = klicks + 1, kv = kv + ".$forced['verdienst'].", kontostand = kontostand + ".$forced['verdienst']." WHERE uid = ".$_SESSION['uid']."");
refumsatz ($forced['verdienst'],$_SESSION['uid']);
aktivralley ($forced['verdienst'],$_SESSION['uid']);
klickralley ();
bilanz($forced['preis'],$forced['verdienst']);
$new_reload = time()+$forced['reload'];
db_query("INSERT INTO ".$db_prefix."_reloads (ip,uid,tan,bis) VALUES ('".$ip."',".$_SESSION['uid'].",'".$forced['tan']."',".$new_reload.")");
db_query("UPDATE ".$db_prefix."_gebuchte_werbung SET menge = menge - 1 WHERE tan='".$_GET['tan']."'");
$_SESSION['earlies_payout'.$_GET['tan']] = '';
$headmsg = $forced['verdienst'].' '.$waehrung.' erhalten!';
}elseif($_GET['auszahlen'] == 'true' && time() < $_SESSION['earlies_payout'.$_GET['tan']]){
$headmsg = 'Wartezeit umgangen.';
}elseif($_GET['auszahlen'] == 'true' && $force_error != 'true'){
$headmsg = 'Pin abgelaufen';
}
@db_close();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="css/bframe.css" type="text/css">
<?
if ($wartezeit>=0 && $_GET['auszahlen'] != 'true') {
echo '
<meta http-equiv="refresh" content="'.$wartezeit.';url=topframe_forced.php?auszahlen=true&tan='.$forced['tan'].'&puk='.$puk.'">
';
}
?>
</head>
<body>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="left">
<tr>
<td align="left" width="50%"><b><?=$seitenname;?> ist für den Inhalt nicht verantwortlich.</b></td>
<td align="right" width="50%"><b><?=$headmsg;?></b> </td>
</tr>
</table>
</body>
</html>