Zitat von
jpwfour
Einfacher wäre es vermutlich, in der functions.lib.php neue Funktionen anzulegen
PHP-Code:
function TYPjackpot() {
//code hier rein
}
und dann in den jeweiligen Dateien, sei es nun topframes oder Spiele Dateien, nur noch die Funktionen reinzusetzen, an der Stelle, wo "gebucht"/"vergütet" wird, was man ja meist an:
kontobuchung(...);
refumsatz(...);
buchungsliste(...);
erkennt.
Das ist natürlich auch eine ganz neue Möglichkeit, aber ich glaube, das Problem , was er wirklich hat, ist, das er die richtigen Dateien nicht findet.
Also, den Mail Jackpot in der pcheck.php einfügen. So ungefähr:
PHP-Code:
if (($mail['start']+$mail['aufendhalt']-1) <= time() AND $mail['status'] == 0) {
kontobuchung ('+',$mail['verdienst'],$mail['uid']);
buchungsliste (create_code(14),$mail['verdienst'],'Paidmailverdienst',$mail['uid']);
refumsatz ($mail['verdienst'],$mail['uid']);
aktivralley ($mail['verdienst'],$mail['uid']);
// Mail jp anfang
$mlob = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_mail_jackpot_ein "));
$m_steig = $mlob['steig'];
$mjackmin = $mlob['min'];
$mjackmax = $mlob['max'];
$m_jackpotcode = $mlob['fall'];
$m_jackpot_startwert = $mlob['start'];
$mail_daten = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_mail_jackpot WHERE beendet = 0"));
$m_jackpot = round(($mail_daten['jackpot']),2);
// Zufallsjackpot errechnen
mt_srand((double)microtime()*1000000);
$m_jackpotzahl = mt_rand($mjackmin,$mjackmax);
$m_jackpotzahl = round(($m_jackpotzahl),2);
if ( $m_jackpotcode == $m_jackpotzahl ){
kontobuchung ('+',$m_jackpot,$_SESSION['uid']);
$buchungs_id=create_code(14);
buchungsliste ($buchungs_id,'+'.$m_jackpot,'Mail Jackpot',$_SESSION['uid']);
db_query("UPDATE ".$db_prefix."_mail_jackpot SET beendet = 1, uid = ".$_SESSION['uid'].", zeit = ".time()." WHERE beendet = 0");
db_query("INSERT INTO ".$db_prefix."_mail_jackpot SET jackpot = '".$m_jackpot_startwert."', beendet = 0, uid = '0', zeit = '0'");
bilanz(0 , $m_jackpot);
}else{
db_query("UPDATE ".$db_prefix."_mail_jackpot SET jackpot = jackpot + '".$m_steig."' WHERE beendet = 0;");
};
// Mail 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
Den Paidlink Jackpot in der topframe_text.php einfügen. So ungefähr:
PHP-Code:
kontobuchung ('+',$forced['verdienst'],$_SESSION['uid']);
refumsatz ($forced['verdienst'],$_SESSION['uid']);
aktivralley ($forced['verdienst'],$_SESSION['uid']);
// Paidlink jp anfang
$plob = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_paid_jackpot_ein "));
$p_steig = $plob['steig'];
$pjackmin = $plob['min'];
$pjackmax = $plob['max'];
$p_jackpotcode = $plob['fall'];
$p_jackpot_startwert = $plob['start'];
$paid_daten = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_paid_jackpot WHERE beendet = 0"));
$p_jackpot = round(($paid_daten['jackpot']),2);
// Zufallsjackpot errechnen
mt_srand((double)microtime()*1000000);
$p_jackpotzahl = mt_rand($pjackmin,$pjackmax);
$p_jackpotzahl = round(($p_jackpotzahl),2);
if ( $p_jackpotcode == $p_jackpotzahl ){
kontobuchung ('+',$p_jackpot,$_SESSION['uid']);
$buchungs_id=create_code(14);
buchungsliste ($buchungs_id,'+'.$p_jackpot,'Paidlink Jackpot',$_SESSION['uid']);
db_query("UPDATE ".$db_prefix."_paid_jackpot SET beendet = 1, uid = ".$_SESSION['uid'].", zeit = ".time()." WHERE beendet = 0");
db_query("INSERT INTO ".$db_prefix."_paid_jackpot SET jackpot = '".$p_jackpot_startwert."', beendet = 0, uid = '0', zeit = '0'");
bilanz(0 , $p_jackpot);
}else{
db_query("UPDATE ".$db_prefix."_paid_jackpot SET jackpot = jackpot + '".$p_steig."' WHERE beendet = 0;");
};
// Paidlink 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
wenn du meine Codes so übernimmst, dann hat sich der Global JP damit auch erledigt.