login}'"); /* ------------------------- */ ?> login}' AND `area`='2' AND FLOOR(UNIX_TIMESTAMP(`time`)/(60*60*24))=FLOOR(UNIX_TIMESTAMP(NOW())/(60*60*24))"); $num = mysql_num_rows($dbres); $code = $_POST['code']; $code2 = $gok->code; if($data->belcredits < 10){ print"
Kraak de Kluis om belcredits
Je hebt geen 10 belcredits"; } else if($data->kraak > 0){ print "
Je hebt dit uur de kluis al geprobeert te kraken!
\n"; } else if($code >= 100){ print"
code is tehoog"; } else if($code <= -1){ print"
code telaag"; } else if($code == $code2){ $data->belcredits += $gok->kluis; $code = rand(0,99); mysql_query("UPDATE `[users]` SET `belcredits`={$data->belcredits} WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `kraak`='1' WHERE `login`='".$data->login."'"); mysql_query("UPDATE `[kraakkluis]` SET `kluis`='50',`code`='$code',`winnaar`='$data->login' WHERE `area`='2'"); mysql_query("DELETE FROM `[kraaknr]` WHERE `area`='2'"); print"
Je had de code goed"; } else{ $data->belcredits -= 10; mysql_query("UPDATE `[users]` SET `belcredits`={$data->belcredits} WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `kraak`='1' WHERE `login`='".$data->login."'"); mysql_query("UPDATE `[kraakkluis]` SET `kluis`=`kluis`+'10' WHERE `area`='2'"); mysql_query("INSERT INTO `[kraaknr]` (time,login,getal,area) VALUES (NOW(),'$data->login', '$code','2')"); print"
Je had de code fout"; } } $dbres = mysql_query("SELECT * FROM `[kraaknr]` WHERE `login`='{$data->login}' AND FLOOR(UNIX_TIMESTAMP(`time`)/(60*60*24))=FLOOR(UNIX_TIMESTAMP(NOW())/(60*60*24))"); $num = mysql_num_rows($dbres); $time2 = time()+105400; $time = date("Y-m-d", "$time2"); print <<
De bedoeling van kraak de kluis is. Een getal tussen de 0 en 99 tegokken. Als jij de goede code hebt krijg jij de inhoud van de kluis.
Om te kraken kost het je 10 belcredits.
Inhoud is $datas->kluis belcredits.
Vorige winnaar was $gok->winnaar.
Jij hebt vandaag deze kluis al $num X proberen te kraken.
Code (0-99):
ENDHTML; print "
Laaste 25 pogingen
\n"; print " \n"; $dbres = mysql_query("SELECT * FROM `[kraaknr]` WHERE `area`='2' ORDER BY `time` DESC LIMIT 0,25"); while($info = mysql_fetch_object($dbres)) { print <<{$info->login} ENDHTML; } ?>
Login Code
{$info->getal}