login}'"); $dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup`,UNIX_TIMESTAMP(`online`) AS `online` FROM `[users]` WHERE `login`='{$_SESSION['login']}'"); $data = mysql_fetch_object($dbres);?>schiet + $gn->schiettijd > time()){ $verschil1 = ($gn->schiet+$gn->schiettijd) - time() - 3600; $verschil = date("H:i:s", "$verschil1"); print << ENDHTML; print <<
Trainen
Je bent nog aan het Trainen!

Je hebt nog $verschil Minuten te gaan!
ENDHTML; exit; } ?> ENDHTML; } else{ if ($_POST['Inzet'] < 0) { echo "
Kooi vechten
login}'"); $gn1 = mysql_query("SELECT *,UNIX_TIMESTAMP(`gevangenis`) AS `gevangenis`,0 FROM `[users]` WHERE `login`='{$_SESSION['login']}'"); $gn = mysql_fetch_object($gn1); if($gn->gevangenis + $gn->gevangenistijd > time() && $data->login != Timo && $data->login != Freek){ $verschil1 = $gn->gevangenis + $gn->gevangenistijd - time() - 3600; $verschil = date("H:i:s", "$verschil1");print <<

Je zit in de gevangenis

 

Je word over $verschil seconden vrijgelaten

"; echo "
Negatief getal!
"; } else{ $members1 = mysql_query("SELECT * FROM `[handdruk]`"); print " "; print << ENDHTML; if(isset($_POST['OK'])&& preg_match('/^[0-9]{0,15}$/',$_POST['Inzet'])) { $inzet = $_POST['Inzet']; if ($_POST['Inzet'] > 1000000000000000000000000000000) { echo "
"; echo "Geen negatieve getallen invoeren!"; echo ""; exit; } if(isset($_POST['AC'])){ $id = $_POST['id']; $members1 = mysql_query("SELECT * FROM `[handdruk]` WHERE `id`='$id'"); $members = mysql_fetch_object($members1); $naam1 = mysql_query("SELECT * FROM `[users]` WHERE `login`='$members->naam'"); $naam = mysql_fetch_object($naam1); print "
"; if($data->cash < $members->inzet){ print "Je hebt te weinig geld op zak."; } elseif($data->HS == $naam->HS){ $getal = rand(1,2); if($getal == 1){ print "Jij hebt gewonnen."; mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$members->inzet' WHERE `login`='$data->login'"); mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$members->naam','Kooivechten','Je hebt tegen $data->login verloren met Kooivechten.')"); mysql_query("DELETE FROM `[handdruk]` WHERE `id`='$id'"); } else{ print "Je tegenstander heeft gewonnen."; mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$members->inzet'*'2' WHERE `login`='$naam->login'"); mysql_query("UPDATE `[users]` SET `cash`=`cash`-'$members->inzet' WHERE `login`='$data->login'"); mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$members->naam','Kooivechten','Je hebt tegen $data->login gewonnen met Kooivechten.')"); mysql_query("DELETE FROM `[handdruk]` WHERE `id`='$id'"); } } elseif($data->HS > $naam->HS){ print "Jij hebt gewonnen."; mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$members->inzet' WHERE `login`='$data->login'"); mysql_query("UPDATE `[users]` SET `cash`=`cash`-'$members->inzet' WHERE `login`='$naam->login'"); mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$members->naam','Kooivechten','Je hebt tegen $data->login verloren met Kooivechten.')"); mysql_query("DELETE FROM `[handdruk]` WHERE `id`='$id'"); } else{ print "Je tegenstander heeft gewonnen."; mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$members->inzet' WHERE `login`='$naam->login'"); mysql_query("UPDATE `[users]` SET `cash`=`cash`-'$members->inzet' WHERE `login`='$data->login'"); mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$members->naam','Kooivechten','Je hebt tegen $data->login gewonnen met Kooivechten.')"); mysql_query("DELETE FROM `[handdruk]` WHERE `id`='$id'"); } print "
"; print " "; while($members = mysql_fetch_object($members1)){ if ( $members->naam != $data->login){ print " "; } } print "
  Naam: Inzet: Start tijd:
id}\"> {$members->naam} {$members->inzet} {$members->wanneer}

 Toevoegen:

Inzet:

"; echo "
Maximale bedrag
"; echo "Het maximale bedrag is €1.000.000,-"; echo ""; exit; } if ($_POST['Inzet'] >= 1000000000000000000000000000000) { echo ""; echo "
Maximale bedrag
"; echo "Het maximale bedrag is €1.000.000.000,-"; echo ""; exit; } if ($_POST['Inzet'] < 0) { echo ""; echo "
Negatief getal!
"; echo "Geen negatieve getallen invoeren!"; echo ""; exit; } if (strlen($_POST['Inzet']) > 22999999999999) { echo ""; echo "
Cheaten
"; echo "Het maximale bedrag is €1.000.000,-"; exit; } if($inzet =="" || $inzet < 1000){ echo ""; echo "
Te weinig..
"; print "Je moet wel hoger dan €1.000,- inzetten!"; } elseif($inzet > $data->cash){ echo ""; echo "
Inzet
"; print "Je hebt te weinig geld op contant."; exit; } else{ print "Je bent toegevoegt."; mysql_query("UPDATE `[users]` SET `cash`=`cash`-'$inzet' WHERE `login`='$data->login'"); mysql_query("INSERT INTO `[handdruk]` (naam,inzet,wanneer,land) values('$data->login','$inzet',NOW(),'$data->land')"); } } } } ?>