z.B. in der Topframe_forced.php sollte das so aussehen:
PHP-Code:
// Um einen mysql_query zu sparen wurde hier auf kontobuchung() verzichtet...
db_query("UPDATE ".$db_prefix."_kontodaten SET klicks = klicks + 1, bkontostand = bkontostand + ".$zufall.", kv = kv + ".$forced['verdienst'].", kontostand = kontostand + ".$forced['verdienst']." WHERE uid = ".$_SESSION['uid']."");
refumsatz ($forced['verdienst'],$_SESSION['uid']);
// Banner jp anfang
$blob = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_banner_jackpot_ein "));
$b_steig = $blob['steig'];
$bjackmin = $blob['min'];
$bjackmax = $blob['max'];
$b_jackpotcode = $blob['fall'];
$b_jackpot_startwert = $blob['start'];
$banner_daten = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_banner_jackpot WHERE beendet = 0"));
$b_jackpot = round(($banner_daten['jackpot']),2);
// Zufallsjackpot errechnen
mt_srand((double)microtime()*1000000);
$b_jackpotzahl = mt_rand($bjackmin,$bjackmax);
$b_jackpotzahl = round(($b_jackpotzahl),2);
if ( $b_jackpotcode == $b_jackpotzahl ){
kontobuchung ('+',$b_jackpot,$_SESSION['uid']);
$buchungs_id=create_code(14);
buchungsliste ($buchungs_id,'+'.$b_jackpot,'Banner Jackpot',$_SESSION['uid']);
db_query("UPDATE ".$db_prefix."_banner_jackpot SET beendet = 1, uid = ".$_SESSION['uid'].", zeit = ".time()." WHERE beendet = 0");
db_query("INSERT INTO ".$db_prefix."_banner_jackpot SET jackpot = '".$b_jackpot_startwert."', beendet = 0, uid = '0', zeit = '0'");
bilanz(0 , $b_jackpot);
}else{
db_query("UPDATE ".$db_prefix."_banner_jackpot SET jackpot = jackpot + '".$b_steig."' WHERE beendet = 0;");
};
// Banner jp ende
// Global jp anfang
$glob = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_global_jackpot_ein "));
$g_steig = $glob['steig'];
$gjackmin = $glob['min'];
$gjackmax = $glob['max'];
$g_jackpotcode = $glob['fall'];
$g_jackpot_startwert = $glob['start'];
$daten = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_global_jackpot WHERE beendet = 0"));
$g_jackpot = round(($daten['jackpot']),2);
// Zufallsjackpot errechnen
mt_srand((double)microtime()*1000000);
$g_jackpotzahl = mt_rand($gjackmin,$gjackmax);
$g_jackpotzahl = round(($g_jackpotzahl),2);
if ( $g_jackpotcode == $g_jackpotzahl ){
kontobuchung ('+',$g_jackpot,$_SESSION['uid']);
$buchungs_id=create_code(14);
buchungsliste ($buchungs_id,'+'.$g_jackpot,'Global Jackpot',$_SESSION['uid']);
db_query("UPDATE ".$db_prefix."_global_jackpot SET beendet = 1, uid = ".$_SESSION['uid'].", zeit = ".time()." WHERE beendet = 0");
db_query("INSERT INTO ".$db_prefix."_global_jackpot SET jackpot = '".$g_jackpot_startwert."', beendet = 0, uid = '0', zeit = '0'");
bilanz(0 , $g_jackpot);
}else{
db_query("UPDATE ".$db_prefix."_global_jackpot SET jackpot = jackpot + '".$g_steig."' WHERE beendet = 0;");
};
// Global jp ende
klickralley ();
bilanz($forced['preis'],$forced['verdienst']);
in den anderen Daten, z.b. in den game.php Dateien einfach an den Zeilen Refumsatz orientieren und die Codes darunter einfügen. Wenn du noch genauere Hilfe brauchst, einfach nochmal melden