login}'"); /* ------------------------- */ ?>
Kraak de Kluis om belcredits | |
Je hebt geen 10 belcredits";
}
else if($data->kraak > 0){
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 << 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. | |
Laaste 25 pogingen |
Login | Code | {$info->getal} | ENDHTML; } ?>