Nieuw lid |
|
Hallo,
ik ben bezig met het bewerken van een maffia site probleem is nu
als een gebruiker bij drugsverkoop zijn drugs wil verkopen lukt dit tot alles op is(dus niks meer over geeft) maar als hij dan in het veld dit type:
[spatie]5000[spatie]
dan verkoopt hij wel weer drugs terwijl hij normaal niet meer kan.
if(isset($_POST['go'])){
if($_POST['drug_1'] <= $data->nederwiet && $_POST['drug_2'] <= $data->paddo && $_POST['drug_3'] <= $data->xtc && $_POST['drug_4'] <= $data->lsd && $_POST['drug_5'] <= $data->speed && $_POST['drug_6'] <= $data->opium){
if($_POST['drug_1']+$_POST['drug_2']+$_POST['drug_3']+$_POST['drug_4']+$_POST['drug_5']+$postdrugs6 > 0){
$error = niks;
$gelderbij = $ditland->nederwiet*$_POST['drug_1']+$ditland->paddo*$_POST['drug_2']+$ditland->xtc*$_POST['drug_3']+$ditland->lsd*$_POST['drug_4']+$ditland->speed*$_POST['drug_5']+$ditland->opium*$_POST['drug_6'];
mysql_query("UPDATE `users` SET `contant`=`contant`+'$gelderbij',`nederwiet`=`nederwiet`-'{$_POST['drug_1']}',`paddo`=`paddo`-'{$_POST['drug_2']}',`xtc`=`xtc`-'{$_POST['drug_3']}',`lsd`=`lsd`-'{$_POST['drug_4']}',`speed`=`speed`-'{$_POST['drug_5']}',`opium`=`opium`-'{$_POST['drug_6']}' WHERE `id`='$data->id'");
}
}
$post = $_POST['drug_1']+$_POST['drug_2']+$_POST['drug_3']+$_POST['drug_4']+$_POST['drug_5']+$_POST['drug_6'];
if($post <= 0){
$error = 1;}
if($_POST['drug_1'] > $data->nederwiet || $_POST['drug_2'] > $data->paddo || $_POST['drug_3'] > $data->xtc || $_POST['drug_4'] > $data->lsd || $_POST['drug_5'] > $data->speed || $_POST['drug_6'] > $data->opium){
$error = 2;}
}
if($_POST['drug_1'] <= $data->nederwiet && $_POST['drug_2'] <= $data->paddo && $_POST['drug_3'] <= $data->xtc && $_POST['drug_4'] <= $data->lsd && $_POST['drug_5'] <= $data->speed && $_POST['drug_6'] <= $data->opium){ if($_POST['drug_1']+$_POST['drug_2']+$_POST['drug_3']+$_POST['drug_4']+$_POST['drug_5']+$postdrugs6 > 0){ $error = niks; $gelderbij = $ditland->nederwiet*$_POST['drug_1']+$ditland->paddo*$_POST['drug_2']+$ditland->xtc*$_POST['drug_3']+$ditland->lsd*$_POST['drug_4']+$ditland->speed*$_POST['drug_5']+$ditland->opium*$_POST['drug_6']; mysql_query("UPDATE `users` SET `contant`=`contant`+'$gelderbij',`nederwiet`=`nederwiet`-'{$_POST['drug_1']}',`paddo`=`paddo`-'{$_POST['drug_2']}',`xtc`=`xtc`-'{$_POST['drug_3']}',`lsd`=`lsd`-'{$_POST['drug_4']}',`speed`=`speed`-'{$_POST['drug_5']}',`opium`=`opium`-'{$_POST['drug_6']}' WHERE `id`='$data->id'"); } } $post = $_POST['drug_1']+$_POST['drug_2']+$_POST['drug_3']+$_POST['drug_4']+$_POST['drug_5']+$_POST['drug_6']; if($post <= 0){ $error = 1;} if($_POST['drug_1'] > $data->nederwiet || $_POST['drug_2'] > $data->paddo || $_POST['drug_3'] > $data->xtc || $_POST['drug_4'] > $data->lsd || $_POST['drug_5'] > $data->speed || $_POST['drug_6'] > $data->opium){ $error = 2;} }
Mvg
|