if($_GET['action'] == "place") { if($_POST['submit'] == "Miejsce") { if($own['bitches'] >= $_POST['bitches'] && is_numeric($_POST['bitches']) && $_POST['bitches'] >= 0 && $_POST['bitches'] == floor($_POST['bitches'])) { if($own['ramen'] + $own['bitcheswerken'] >-$_POST['bitches']) { echo "<div class=\"dark\"><font color=\"green\" style=\"font-weight: bold\">Dziwki pracują dla Ciebie!</font></div><br />"; mysql_query("UPDATE users SET bitches = bitches - '" . $_POST['bitches'] . "', bitcheswerken = bitcheswerken + '" . $_POST['bitches'] . "' WHERE id = '" . $own['id'] . "'"); $own['bitches'] -= $_POST['bitches']; $own['bitcheswerken'] += $_POST['bitches']; } else { echo "<div class=\"dark\"><font color=\"red\" style=\"font-weight: bold\">Nie masz tyle pomieszczeń!</font></div><br />"; } } else { echo "<div class=\"dark\"><font color=\"red\" style=\"font-weight: bold\">Nie posiadasz tylu dziwek!</font></div><br />"; } } if($_POST['submit'] == "Halen") { if($own['bitcheswerken'] >= $_POST['bitches'] && is_numeric($_POST['bitches']) && $_POST['bitches'] >= 0 && $_POST['bitches'] == floor($_POST['bitches'])) { echo "<div class=\"dark\"><font color=\"green\" style=\"font-weight: bold\">Twoje dziwki zarabiają na Ciebię!</font></div><br />"; mysql_query("UPDATE users SET bitches = bitches + '" . $_POST['bitches'] . "', bitcheswerken - bitcheswerken - '" . $_POST['bitches'] . "' WHERE id = '" . $own['id'] . "'"); $own['bitches'] += $_POST['bitches']; $own['bitcheswerken'] -= $_POST['bitches']; } else { echo "<div class=\"dark\"><font color=\"red\" style=\"font-weight: bold\">Nie masz tyle pracy dla dziwek!</font></div><br />"; } } } echo "Dziwki zarabiają 15€ na godzinę.<br /><br /> <b>W tej chwili masz:</b><br /> Wszystkich dziwek: <b>" . groot($own['bitches'] + $own['bitcheswerken']) . "</b><br /> Dziwek bez pomieszczenia: <b>" . groot($own['bitches']) . "</b><br /> Dziwek w pracy: <b>" . groot($own['bitcheswerken']) . "</b><br /> Dziwek z pomieszczeniem: <b>" . groot($own['ramen'] - $own['bitcheswerken']) . "</b><br /> <form method=\"post\"> <center> Liczba:<br /> <input type=\"text\" name=\"bitches\" class=\"input\" size=\"3\"><br /> <input type=\"submit\" name=\"submit\" class=\"submit\" value=\"Do pracy!\" /> <input type=\"submit\" name=\"submit\" class=\"submit\" value=\"Usuń z pracy\" /> </center> </form>";