Sagashiteru
12-23-2007, 07:18 AM
So I was bored and make this really fast,
I have no use for it though.
In this game you just have to guess which doors doesn't have a dead end.
You can set the price, how many levels there are(of course also the image you're going to use XD).
I aded security against cheaters XD
http://thorpion.com/doors.php
there's the live script,
here's an example code:
if ($act == '1'){
//$q = mysql_query("UPDATE users SET points='$points-50' WHERE user='$user'");
$total_amount = '0';
$amount = '0';
}
$_SESSION['doors'] = $act;
$amount_doors = $act+1;
$select = mt_rand(1, $amount_doors);
$amount_won = $act*200;
$total_amount = $amount+$amount_total;
$html = PrintDoors($amount_doors, $select, $amount_won, $total_amount);
$html .= <<<Html
<p>
you have $total_amount in your prizebox.
<form action="?act=done" method="POST">
<input type="hidden" name="amount_total" value="$total_amount">
<input type="submit" value="Collect your $total_amount bucks">
</form>
</p>
Html;
echo $html;
}
Since it something that I really don't need I'll put the starting bid at $2
I have no use for it though.
In this game you just have to guess which doors doesn't have a dead end.
You can set the price, how many levels there are(of course also the image you're going to use XD).
I aded security against cheaters XD
http://thorpion.com/doors.php
there's the live script,
here's an example code:
if ($act == '1'){
//$q = mysql_query("UPDATE users SET points='$points-50' WHERE user='$user'");
$total_amount = '0';
$amount = '0';
}
$_SESSION['doors'] = $act;
$amount_doors = $act+1;
$select = mt_rand(1, $amount_doors);
$amount_won = $act*200;
$total_amount = $amount+$amount_total;
$html = PrintDoors($amount_doors, $select, $amount_won, $total_amount);
$html .= <<<Html
<p>
you have $total_amount in your prizebox.
<form action="?act=done" method="POST">
<input type="hidden" name="amount_total" value="$total_amount">
<input type="submit" value="Collect your $total_amount bucks">
</form>
</p>
Html;
echo $html;
}
Since it something that I really don't need I'll put the starting bid at $2