";
if($nr1 == 1 && $nr2 == 1 && $nr3 == 1){
$profit2 = round($inzet*76);
$profit1 = round($profit2-$inzet);
$profit = number_format($profit1,0,",",".");
echo "Gefeliciteerd! Je hebt € $profit gewonnen";
}
elseif($nr1 == 2 && $nr2 == 2 && $nr3 == 2){
$profit2 = round($inzet*51);
$profit1 = round($profit2-$inzet);
$profit = number_format($profit1,0,",",".");
echo "Gefeliciteerd! Je hebt € $profit gewonnen";
}
elseif($nr1 == 3 && $nr2 == 3 && $nr3 == 3){
$profit2 = round($inzet*36);
$profit1 = round($profit2-$inzet);
$profit = number_format($profit1,0,",",".");
echo "Gefeliciteerd! Je hebt € $profit gewonnen";
}
elseif(($nr1 == 4 && $nr2 == 4 && $nr3 == 4) XOR ($nr1 == 4 && $nr2 == 4 && $nr3 == 9) XOR ($nr1 == 4 && $nr2 == 9 && $nr3 == 9) XOR ($nr1 == 9 && $nr2 == 9 && $nr3 == 9) XOR ($nr1 == 9 && $nr2 == 9 && $nr3 == 4) XOR ($nr1 == 9 && $nr2 == 4 && $nr3 == 4) XOR ($nr1 == 9 && $nr2 == 4 && $nr3 == 9) XOR ($nr1 == 4 && $nr2 == 9 && $nr3 == 4)){
$profit2 = round($inzet*7);
$profit1 = round($profit2-$inzet);
$profit = number_format($profit1,0,",",".");
echo "Gefeliciteerd! Je hebt € $profit gewonnen";
}
elseif($nr1 == 2 XOR $nr2 == 2 XOR $nr3 == 2){
$profit2 = round($inzet*4);
$profit1 = round($profit2-$inzet);
$profit = number_format($profit1,0,",",".");
echo "Gefeliciteerd! Je hebt € $profit gewonnen";
}
elseif(($nr1 == 2 && $nr2 == 2) XOR ($nr2 == 2 && $nr3 == 2) XOR ($nr3 == 2 && $nr1 == 2)){
$profit2 = round($inzet*8);
$profit1 = round($profit2-$inzet);
$profit = number_format($profit1,0,",",".");
echo "Gefeliciteerd! Je hebt € $profit gewonnen";
}
elseif(($nr1 == 4 && $nr2 == 4) XOR ($nr1 == 4 && $nr2 == 9) XOR ($nr1 == 9 && $nr2 == 4) XOR ($nr1 == 9 && $nr2 == 9) XOR ($nr1 == 4 && $nr3 == 4) XOR ($nr1 == 4 && $nr3 == 9) XOR ($nr1 == 9 && $nr3 == 4) XOR ($nr1 == 9 && $nr3 == 9) XOR ($nr2 == 4 && $nr3 == 4) XOR ($nr2 == 4 && $nr3 == 9) XOR ($nr2 == 9 && $nr3 == 4) XOR ($nr2 == 9 && $nr3 == 9)){
$profit2 = round($inzet*7);
$profit1 = round($profit2-$inzet);
$profit = number_format($profit1,0,",",".");
echo "Gefeliciteerd! Je hebt € $profit gewonnen";
}
else{
$profit2 = round($inzet);
$profit1 = round(0-$inzet);
$profit = number_format($profit2,0,",",".");
print"Je hebt € $profit verloren.";
}
mysql_query("UPDATE `[buildings]` SET `profit`=`profit`-$profit1 WHERE `type`='slot' AND `city`='{$data['land']}'");
mysql_query("UPDATE `[buildings]` SET `bank`=`bank`-'$profit1' WHERE `city`='{$data['land']}'");
mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$profit1' WHERE `login`='{$data['login']}'");
echo " |
";
}
}
$price = number_format($aantal->price,0,",",".");
$check = $aantal->price/10;
$price2 = number_format($check,0,",",".");
?>