Bank |
= 10000000) {
echo "Ga weg joh!,,,, Ga bij iemand anders ouwhoeren!";
die();
}
if($_POST['amount'] <= $data->bank) {
$data->cash += $_POST['amount'];
$data->bank -= $_POST['amount'];
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else
print " |
Zoveel geld staat er niet op de bank |
\n";
}
else if(isset($_POST['in']) && preg_match('/^[0-9]+$/',$_POST['amount'])) {
if($_POST['amount'] >= 10000000) {
echo "DONDER OP HIERO MAN";
die();
}
if($_POST['amount'] <= $data->cash) {
if($_POST['amount'] <= $data->bankmax) {
if($data->bankleft > 0) {
$data->cash -= $_POST['amount'];
$data->bank += $_POST['amount'];
$data->bankleft--;
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash},`bankleft`={$data->bankleft} WHERE `login`='{$data->login}'");
}
else
print " Je kan niet meer storten vandaag |
\n";
}
else
print " Je mag maar €{$data->bankmax},- per keer storten |
\n";
}
else
print " Zoveel geld heb je niet |
\n";
}
print <<
Je mag nog {$data->bankleft}x geld storten (max. €{$data->bankmax} per keer)
Contant: | €{$data->cash} |
Op de bank: | €{$data->bank} |
|
ENDHTML;
/* ------------------------- */ ?>