Quote:
Originally posted by LightBringer
Hey Lesane... Great hack.
For some feedback, I'd like to let you know that a small bug is found with the "starting Jackpot" count.
I started the count with 5000 and then bought one ticket.
Since I was the only user that bought it...I won.
Well..I was awarded the cost of the ticket...not the cost of the ticket + the starting Jackpot
My understanding was the inital jackpot count would be given...if this is incorrect..please let me know.
Thanks.
|
Ieek, didn't thought about the starting jackpot amount.
Here is the fix, open admin/storeadmin.php and find:
PHP Code:
$totalp = $DB_site->query_first("SELECT COUNT(userid) AS usert FROM storelottery WHERE lotnumber=2");
$usertotaal = number_format($totalp[usert]);
$kutje=$usertotaal*$costt;
And
Replace It With:
PHP Code:
$jack=$DB_site->query_first("SELECT * FROM storelottery WHERE lotnumber=1");
$kutje=$jack[jackpot];
Thanks for letting me know, Txt file in 1st post is updated.