Jackpot Game!

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

46 replies · 3,715 views · started 18 years ago · 1 min read

TL;DR · summary of 46 replies
  • The code approach to fixing the if else statements was suggested by Guest: Something like this should be used.
  • The issue with the original script's database insertion queries was not resolved, as no specific fix or updated code was provided in the thread.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

10 participants
wizard Senior · 493 posts #41

this should work CODE<?php

/**

header('Content-type: application/xhtml+xml');

echo '<?xml version="1.0" encoding="utf-8"?>'; echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; echo '<html xmlns="http://www.w3.org/1999/xhtml">';

include("config.php");

include("core.php");

function pghead($title) { echo ' <head> <title>'.$title.'</title> <!--<link rel="StyleSheet" type="text/css" href="css/base.css"/> <link rel="shortcut icon" href="favicon.ico"/>--> </head> <body> '; }

function canplay_jackpot($uid) { $sql = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); if($sql[0]>=10) { return true; }else{ return false; } }

$bcon = connectdb(); $sid = $_GET['sid']; $uid = getuid_sid($sid); $action = $_GET['action'];

if(!$bcon) { pghead('Database Error'); echo ' '; echo 'External image (may be gone)'; echo ' '; echo 'Database Connection Error, please try again later!'; echo ' '; echo ' '; echo 'External image (may be gone)'; echo 'Fun Menu'; echo ' '; echo 'External image (may be gone)'; echo 'Home'; echo ' '; echo '</body>'; echo '</html>'; exit(); }

if(!islogged($sid)) { pghead('Login Error'); echo ' '; echo 'External image (may be gone)'; echo ' '; echo 'You are not logged in or your session has expired!'; echo ' '; echo 'Login'; echo ' '; echo ' '; echo 'External image (may be gone)'; echo 'Home'; echo ' '; echo '</body>'; echo '</html>'; exit(); }

if(isbanned($uid)) { pghead('Banned'); echo ' '; echo 'External image (may be gone)'; echo ' '; echo ''; echo 'You are Banned '; echo ' '; $sql = "SELECT timeto, pnreas, exid FROM ibwf_parusa WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2' "; $banto = mysql_fetch_array(mysql_query($sql)); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo 'Time Left:'.$rmsg.''; echo ' '; $nick = getnick_uid($banto[2]); echo 'By:'.$nick.''; echo ' '; echo 'Reason:'.$banto[1].''; echo ''; echo ' '; echo ' '; echo 'External image (may be gone)'; echo 'Home'; echo ' '; echo '</body>'; echo '</html>'; exit(); }

if(!canplay_jackpot($uid)) { pghead('Error'); echo ' '; echo 'External image (may be gone)'; echo ' '; echo 'You must have atleast 10 plusses to play JackPot!'; echo ' '; echo ' '; echo ' '; echo 'External image (may be gone)'; echo 'Fun Menu'; echo ' '; echo 'External image (may be gone)'; echo 'Home'; echo ' '; echo '</body>'; echo '</html>'; exit(); }

if($action=='play') { pghead('JackPot'); echo ' '; echo 'External image (may be gone)'; echo ' '; echo 'Place your bet'; echo ' '; echo '<form action="jackpot.php?action=do_bet&amp;sid='.$sid.'" method="post">'; echo '<select name="bet">'; echo '<option value="10">10</option>'; echo '<option value="20">20</option>'; echo '<option value="30">30</option>'; echo '<option value="40">40</option>'; echo '<option value="50">50</option>'; echo '<option value="60">60</option>'; echo '<option value="70">70</option>'; echo '<option value="80">80</option>'; echo '<option value="90">90</option>'; echo '<option value="100">100</option>'; echo '</select>'; echo ' '; echo 'Choose your lucky number'; echo ' '; echo '<select name="lucky_number">'; echo '<option value="1">1</option>'; echo '<option value="2">2</option>'; echo '<option value="3">3</option>'; echo '<option value="4">4</option>'; echo '<option value="5">5</option>'; echo '<option value="6">6</option>'; echo '<option value="7">7</option>'; echo '<option value="8">8</option>'; echo '<option value="9">9</option>'; echo '<option value="10">10</option>'; echo '</select>'; echo ' '; echo '<input type="submit" value="Spin"/>'; echo '</form>'; echo ' '; echo ' '; echo 'External image (may be gone)'; echo 'Fun Menu'; echo ' '; echo 'External image (may be gone)'; echo 'Home'; echo ' '; echo '</body>'; }else if($action=='do_bet') { if(isset($_POST)) { $bet = $_POST['bet']; $lucky_number = $_POST['lucky_number']; $random = rand(1,10);

    pghead('JackPot');
    echo '

'; echo 'External image (may be gone)'; echo ' '; echo 'JackPot Result'; echo ' '; echo ' ';

    $uplus = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
    
    echo 'Your Plusses: **'.$uplus[0].'**';
    echo '

'; echo ' '; echo 'Your lucky number: '.$lucky_number.''; echo ' '; echo 'The winning number: '.$random.''; echo ' '; echo ' ';

    if($lucky_number==$random)
    {
        $var   = $bet * 2;
        $nplus = $uplus[0] + $var;

        if(@mysql_query("UPDATE ibwf_users SET plusses='".$nplus."' WHERE id='".$uid."'"))
        {
            echo 'You have recieved '.$var.' plusses for winning';
            echo '

'; echo 'You now have '.$nplus.' plusses left.'; echo ' '; } }else{ $nplus = $uplus[0] - $bet; if($nplus<0) { $nplus = 0; } if(@mysql_query("UPDATE ibwf_users SET plusses='".$nplus."' WHERE id='".$uid."'")) { echo 'You have lost '.$bet.' plusses for losing'; echo ' '; echo 'You now have '.$nplus.' plusses left.'; echo ' '; } } echo ' '; echo 'Try Again';

    echo '

'; echo ' '; echo 'External image (may be gone)'; echo 'Fun Menu '; echo 'External image (may be gone)'; echo 'Home'; echo ' '; echo '</body>'; }else{ pghead('Cheater'); echo ' '; echo 'What the hell are you trying??? '; echo ' '; echo ' '; echo 'External image (may be gone)'; echo 'Fun Menu'; echo ' '; echo 'External image (may be gone)'; echo 'Home'; echo ' '; echo '</body>'; } }else{ pghead('JackPot'); echo ' '; echo 'External image (may be gone)'; echo ' '; echo 'So you want to challenge our dealer and Win the jackpot!'; echo ' '; echo 'If you think you got what it takes, click below:'; echo ' '; echo 'Play Now'; echo ' '; echo ' '; echo 'External image (may be gone)'; echo 'Fun Menu'; echo ' '; echo 'External image (may be gone)'; echo 'Home'; echo ' '; echo '</body>'; }

echo '</html>';

?>

inet Senior · 264 posts #42

lol this site removes my copyright notice as he coded the whole thing better edit it now, you just copy and paste things.. i dont want to do this but you actions like that is entirely wrong.. removing others name just to recognize you as the coder? lol you asked me, to help you to have a monster game yet i discovered what you did.. i will only help you when you replace that thing to what is due to it.. and i will provide you the game for free.. you've been asking me to give a copy of wapindo monster game.. lol when i will give this to you you again put in your copyrights?

CODEOn the Spot Jackpot! version: 3 © Indonesiawap Script created by Leorjuna@indonesiawap.net! Kamau harus mempunyai 75 plussess untuk bermain Jackpot..mintalah staf untuk modal plussess kamu!

© Indonesiawap.net Advertisers: Updates by: Leoarjuna Indonesiawap.net Jackpot money is Please choose your bet! This is an instant jackpot game! Your bet will be multiplied by the current jackpot! The more you bet, the more you win! The cost of game is per bet minus in your current plusses! The minimum bet is ten!

Your Bet:

Choose your number from 1 to 9 in the selection box bellow! Our system will send immidiately the prize and will send the confirmation of your winnings at your inbox! So choose wisely! You get 100 bonus plusses if you win! Choose Your Digit:

«back to fun menu Home

i will only provide the monster scripts for you free, when you retain my name as the coder lol...

and i will always check out your site if you still insist that you code that thing..

i see in there 3 of my gamescripts..

and please reply in here Leorjuna

i'm hoping that you got to edit that now..

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

Guest #43

I only the test just try, to jackpot him, I have tried in an original your jackpot, but was just the same results, not the work, with your coppyright , thank, I has been removed by me jackpod him.

Guest #44

lol this site removes my copyright notice as he coded the whole thing better edit it now, you just copy and paste things.. i dont want to do this but you actions like that is entirely wrong.. removing others name just to recognize you as the coder? lol you asked me, to help you to have a monster game yet i discovered what you did.. i will only help you when you replace that thing to what is due to it.. and i will provide you the game for free.. you've been asking me to give a copy of wapindo monster game.. lol when i will give this to you you again put in your copyrights?

CODE On the Spot Jackpot! version: 3 © Indonesiawap Script created by Leorjuna@indonesiawap.net! Kamau harus mempunyai 75 plussess untuk bermain Jackpot..mintalah staf untuk modal plussess kamu!

© Indonesiawap.net Advertisers: Updates by: Leoarjuna Indonesiawap.net Jackpot money is Please choose your bet! This is an instant jackpot game! Your bet will be multiplied by the current jackpot! The more you bet, the more you win! The cost of game is per bet minus in your current plusses! The minimum bet is ten!

Your Bet:

Choose your number from 1 to 9 in the selection box bellow! Our system will send immidiately the prize and will send the confirmation of your winnings at your inbox! So choose wisely! You get 100 bonus plusses if you win! Choose Your Digit: «back to fun menu Home i will only provide the monster scripts for you free, when you retain my name as the coder lol...

and i will always check out your site if you still insist that you code that thing..

i see in there 3 of my gamescripts..

and please reply in here Leorjuna i'm hoping that you got to edit that now..

Ok.you helped I about the monster game, I will use coppyright you.plz...provide me..

Guest #45

lol this site removes my copyright notice as he coded the whole thing better edit it now, you just copy and paste things.. i dont want to do this but you actions like that is entirely wrong.. removing others name just to recognize you as the coder? lol you asked me, to help you to have a monster game yet i discovered what you did.. i will only help you when you replace that thing to what is due to it.. and i will provide you the game for free.. you've been asking me to give a copy of wapindo monster game.. lol when i will give this to you you again put in your copyrights?

CODE On the Spot Jackpot! version: 3 © Indonesiawap Script created by Leorjuna@indonesiawap.net! Kamau harus mempunyai 75 plussess untuk bermain Jackpot..mintalah staf untuk modal plussess kamu!

© Indonesiawap.net Advertisers: Updates by: Leoarjuna Indonesiawap.net Jackpot money is Please choose your bet! This is an instant jackpot game! Your bet will be multiplied by the current jackpot! The more you bet, the more you win! The cost of game is per bet minus in your current plusses! The minimum bet is ten!

Your Bet:

Choose your number from 1 to 9 in the selection box bellow! Our system will send immidiately the prize and will send the confirmation of your winnings at your inbox! So choose wisely! You get 100 bonus plusses if you win! Choose Your Digit: «back to fun menu Home i will only provide the monster scripts for you free, when you retain my name as the coder lol...

and i will always check out your site if you still insist that you code that thing..

i see in there 3 of my gamescripts..

and please reply in here Leorjuna i'm hoping that you got to edit that now.. I only the test just try, to jackpot him, I have tried in an original your jackpot, but was just the same results, not the work, with your coppyright , thank, I has been removed by me jackpod him.

Guest #46

Now the jackpot game,has been install again in my wapsite,that work,because yesterday..I am wrong has remove coppyright by you...lol.Am sory inet..wink.

busterkeaton10 Developer · 68 posts #47

Now the jackpot game,has been install again in my wapsite,that work,because yesterday..I am wrong has remove coppyright by you...lol.Am sory inet..wink.

💬 Woa the whole name of inets site is in his site! cool free advertising! 🍬

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close