Bij deze pagina heb ik het sowieso. Excuses voor de lange code.
<?
$code = str_replace(" ", "",$code);
$vordering1 = floor($data->vordering/9);
$vordering2 = floor($data->vordering/15);
$vordering3 = floor($data->vordering/30);
$vordering4 = floor($data->vordering/37);
$vordering5 = floor($data->vordering/48);
$vordering6 = floor($data->vordering/64);
$vordering7 = floor($data->vordering/80);
$vordering8 = floor($data->vordering/110);
$vordering9 = floor($data->vordering/140);
$vordering10 = floor($data->vordering/170);
$vordering11 = floor($data->vordering/178);
$vordering12 = floor($data->vordering/192);
$vordering13 = floor($data->vordering/200);
$vordering14 = floor($data->vordering/204);
$vordering15 = floor($data->vordering/206);
$_POST['captcha'] = ereg_replace("j", "J", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("k", "K", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("l", "L", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("m", "M", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("n", "N", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("o", "O", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("p", "P", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("q", "Q", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("r", "R", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("s", "S", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("t", "T", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("u", "U", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("v", "V", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("w", "W", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("x", "X", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("y", "Y", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("z", "Z", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("a", "A", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("b", "B", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("c", "C", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("d", "D", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("e", "E", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("f", "F", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("g", "G", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("h", "H", $_POST['captcha']);
$_POST['captcha'] = ereg_replace("i", "I", $_POST['captcha']);
if($_POST['captcha'] != ""){
if($_POST['captcha'] != $_SESSION['captcha']){
$error = 3;
}
}
$data2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`steel`) AS `steel`,0 FROM `users` WHERE `login`='$data->login'");
$data1 = mysql_fetch_object($data2);
$datijd = $data->steeltijd;
$tijdverschil1 = $data1->steel-3600+$datijd-time();
if($data1->steel + $datijd < time()){
if($error != 3){
if($_POST['crime'] == 1){
$vord = rand(1,5);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering1){
$winst = rand(500,800);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering1){
if($bakkans == 3){
$error = 2;
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 2){
$vord = rand(1,6);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering2){
$winst = rand(800,1000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering2){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 3){
$vord = rand(2,7);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering3){
$winst = rand(1000,5000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering3){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 4){
$vord = rand(6,9);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering4){
$winst = rand(5000,10000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering4){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 5){
$vord = rand(7,10);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering5){
$winst = rand(10000,20000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering5){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='60' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 6){
$vord = rand(8,10);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering6){
$winst = rand(60000,120000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering6){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 7){
$vord = rand(8,10);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering7){
$winst = rand(100000,130000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering7){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 8){
$vord = rand(8,10);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering8){
$winst = rand(160000,200000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering8){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 9){
$vord = rand(8,10);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering9){
$winst = rand(250000,400000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering9){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='120' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 10){
$vord = rand(9,11);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering10){
$winst = rand(400000,560000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='180' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering10){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='180' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='180' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 11){
$vord = rand(10,12);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering11){
$winst = rand(500000,590000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='300' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering11){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='180' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='180' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 12){
$vord = rand(12,14);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering12){
$winst = rand(560000,640000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='300' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering12){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='300' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='300' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 13){
$vord = rand(15,18);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering13){
$winst = rand(600000,700000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='480' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering13){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='480' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='480' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 14){
$vord = rand(16,18);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering14){
$winst = rand(700000,1000000);
mysql_query("UPDATE `users` SET `contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='480' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering14){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='480' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='480' WHERE `login`='$data->login'");
}
}
}
if($_POST['crime'] == 15){
$vord = rand(18,21);
$rang = rand(0,2);
$kans = rand(0,100);
$bakkans = rand(0,3);
if($kans <= $vordering15){
$winst = rand(1000000,2000000);
mysql_query("UPDATE `users` SET `fbibom`=`fbibom`+'1',`contant`=`contant`+'$winst',`vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='600' WHERE `login`='$data->login'");
$error = niks;
}
if($kans > $vordering15){
if($bakkans == 3){
$error = 2;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='600' WHERE `login`='$data->login'");
$tijd = rand(2,5);
}
else{
$error = 1;
$vord = rand(1,5);
mysql_query("UPDATE `users` SET `vordering`=`vordering`+'$vord',`rankvord`=`rankvord`+'$rang',`steel`=NOW(),`steeltijd`='600' WHERE `login`='$data->login'");
}
}
}
}
}else{$error = misdaad;}
if($error != niks){
if($bakkans == 3){
$time = $tijd*60;
mysql_query("UPDATE `users` SET `gevangenis`='$time',`baktijd`=NOW() WHERE `id`='$data->id'");
}
}
if(!isset($_POST['submit'])){
$data2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`steel`) AS `steel`,0 FROM `users` WHERE `login`='$data->login'");
$data1 = mysql_fetch_object($data2);
$datijd = $data->steeltijd;
$tijdverschil1 = $data1->steel-3600+$datijd-time();
if($data1->steel + $datijd > time()){
list($uur,$min,$sec)=explode(":",date("H:i:s",$tijdverschil1));
$error = misdaden;
$countdown = $data1->steel+$datijd-time();
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup_error" align="center">
<tr>
<td style="color:red">
De politie is nog naar je op zoek, over <font id="count_timer"></font> is de kust weer veilig </td>
</tr>
<tr>
<td style="color:red">
<br><br>
<a href="#" onclick="history.go(-1); return false" class="error_ok">OK</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript">
countdown('<?echo$countdown;?>','count_timer','index.php?a=crimes');
</script> </div>
</td>
</tr>
</table>
</td>
<?}}
if($error == ""){?>
<div class="title_bg"><div style="font-size:17px; color:#1b1a17; margin-left:10px; padding-top:4px;">Misdaden</div></div>
<div style="width:100%; height:auto; background:#c3b79d; font-family:arial; font-size:12px; color:#2a190e;">
<div style="padding:5px; padding-bottom:10px;">
Door het plegen van misdaden kun je flink geld verdienen. Maar denk er aan, de politie is er niet voor niets! Het aantal procenten geeft aan wat de kans is of een actie wel of niet lukt. Hoe vaker je een misdaad pleegt, hoe hoger de kans zal zijn. <br /><br />
</div>
</div>
<?}?>
<script language="javascript">
function openTab(pTabPage,pTab){
document.getElementById('crime_1').style.display = 'none';
document.getElementById('crime_2').style.display = 'none';
document.getElementById('crime_3').style.display = 'none';
document.getElementById(pTabPage).style.display = 'block';
document.getElementById('tab1').style.background = '';
document.getElementById('tab1').style.fontWeight = 'normal';
document.getElementById('tab2').style.background = '';
document.getElementById('tab2').style.fontWeight = 'normal';
document.getElementById('tab3').style.background = '';
document.getElementById('tab3').style.fontWeight = 'normal';
document.getElementById(pTab).style.background = 'url(\'images/tab_info_arrow.gif\') bottom no-repeat';
document.getElementById(pTab).style.fontWeight = 'bold';
}
</script>
<?
if($error == 1){
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup" align="center">
<tr>
<td>
Het is mislukt maar je kon de politie ontlopen. Dat ging nog maar net goed! </td>
</tr>
<tr>
<td>
<br><br>
<a href="index.php?a=news" class="msg_ok">Klik hier indien je niet automatisch verder gaat.</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript">
setTimeout("document.location.href='index.php?a=news'",(3000*2));
</script>
</div>
</td>
</tr>
</table>
</td>
<?}
if($error == 2){
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup" align="center">
<tr>
<td>
Het is mislukt, en je bent gepakt door de politie! </td>
</tr>
<tr>
<td>
<br><br>
<a href="index.php?a=news" class="msg_ok">Klik hier indien je niet automatisch verder gaat.</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript">
setTimeout("document.location.href='index.php?a=news'",(3000*2));
</script>
</div>
</td>
</tr>
</table>
</td>
<?}
if($error == niks){
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup" align="center">
<tr>
<td>
Het is gelukt, en je hebt €<?echo$winst;?>,- gekregen! </td>
</tr>
<tr>
<td>
<br><br>
<a href="index.php?a=news" class="msg_ok">Klik hier indien je niet automatisch verder gaat.</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript">
setTimeout("document.location.href='index.php?a=news'",(3000*2));
</script>
</div>
</td>
</tr>
</table>
</td>
<?}
if($error == 3){
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup_error" align="center">
<tr>
<td style="color:red">
<b>FOUT!</b><br><br>De code was onjuist! </td>
</tr>
<tr>
<td>
<br><br>
<a href="#" onclick="history.go(-1); return false" class="error_ok">OK</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?
}
if($error == ""){
?>
<div style="width:100%; height:25px; background:url('images/tab_info_bg.jpg') repeat-x; font-family:arial; font-size:12px; color:#2a190e;">
<div id="tab1" style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px; background:url('images/tab_info_arrow.gif') bottom no-repeat; font-weight:bold;"><a href="#" onclick="openTab('crime_1','tab1'); return false">Kleine misdaden</a></div>
<div style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;">|</div>
<div id="tab2" style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;"><a href="#" onclick="openTab('crime_2','tab2'); return false">Grote misdaden</a></div>
<div style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;">|</div>
<div id="tab3" style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;"><a href="#" onclick="openTab('crime_3','tab3'); return false">Hele grote misdaden</a></div>
</div>
<div style="background-color:#dbd2b7; ">
<br>
<table cellpadding="4" cellspacing="0" width="100%" align="center"><tr><td>
<form method="POST" onsubmit="return checkError(this)">
<input type="hidden" name="sel" id="sel" value="">
<div id="crime_1">
<table align="center" width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td>
<input type="radio" name="crime" value="1" onclick="document.getElementById('sel').value = 'true'">
Snoep stelen van een kind </td>
<td align="right">
<?
if($vordering1 > 100){
$vordering1 = 100;
}
$vordering1 = floor($vordering1);
echo $vordering1;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="2" onclick="document.getElementById('sel').value = 'true'">
Fiets stelen </td>
<td align="right">
<?
if($vordering2 > 100){
$vordering2 = 100;
}
echo$vordering2;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="3" onclick="document.getElementById('sel').value = 'true'">
Zakkenrollen in de stad </td>
<td align="right">
<?
if($vordering3 > 100){
$vordering3 = 100;
}
echo$vordering3;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="4" onclick="document.getElementById('sel').value = 'true'">
Inbreken in een auto </td>
<td align="right">
<?
if($vordering4 > 100){
$vordering4 = 100;
}
echo$vordering4;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="5" onclick="document.getElementById('sel').value = 'true'">
Spullen uit het lokale warenhuis stelen </td>
<td align="right">
<?
if($vordering5 > 100){
$vordering5 = 100;
}
echo$vordering5;?>%
</td>
</tr>
<tr height="20px">
</tr>
</table>
</div>
<div id="crime_2" style="display:none">
<table align="center" width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td>
<input type="radio" name="crime" value="6" onclick="document.getElementById('sel').value = 'true'">
Groot warenhuis overvallen </td>
<td align="right">
<?
if($vordering6 > 100){
$vordering6 = 100;
}
echo$vordering6;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="7" onclick="document.getElementById('sel').value = 'true'">
Vrachtwagen kapen </td>
<td align="right">
<?
if($vordering7 > 100){
$vordering7 = 100;
}
echo$vordering7;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="8" onclick="document.getElementById('sel').value = 'true'">
Overval een juwelier </td>
<td align="right">
<?
if($vordering8 > 100){
$vordering8 = 100;
}
echo$vordering8;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="9" onclick="document.getElementById('sel').value = 'true'">
Een grote loods leegroven </td>
<td align="right">
<?
if($vordering9 > 100){
$vordering9 = 100;
}
echo$vordering9;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="10" onclick="document.getElementById('sel').value = 'true'">
Drugs vervoeren </td>
<td align="right">
<?
if($vordering10 > 100){
$vordering10 = 100;
}
echo$vordering10;?>%
</td>
</tr>
<tr height="20px">
</tr>
</table>
</div>
<div id="crime_3" style="display:none">
<table align="center" width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td>
<input type="radio" name="crime" value="11" onclick="document.getElementById('sel').value = 'true'">
Inbreken in een Museum </td>
<td align="right">
<?
if($vordering11 > 100){
$vordering11 = 100;
}
echo$vordering11;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="12" onclick="document.getElementById('sel').value = 'true'">
Geldtransport overvallen </td>
<td align="right">
<?
if($vordering12 > 100){
$vordering12 = 100;
}
echo$vordering12;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="13" onclick="document.getElementById('sel').value = 'true'">
De bank overvallen </td>
<td align="right">
<?
if($vordering13 > 100){
$vordering13 = 100;
}
echo$vordering13;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="14" onclick="document.getElementById('sel').value = 'true'">
De president blackmailen </td>
<td align="right">
<?
if($vordering14 > 100){
$vordering14 = 100;
}
echo$vordering14;?>%
</td>
</tr>
<tr>
<td>
<input type="radio" name="crime" value="15" onclick="document.getElementById('sel').value = 'true'">
Het hoofdkantoor van de FBI opblazen </td>
<td align="right">
<?
if($vordering15 > 100){
$vordering15 = 100;
}
echo$vordering15;?>%
</td>
</tr>
<tr height="20px">
</tr>
</table>
</div>
<table align="center" width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td >
<table width="100%">
<tr>
<td><?
$first = rand(1, 26);
$second = rand(1, 26);
$third = rand(1, 26);
$fourth = rand(1, 26);
$captcha = ("$first $second $third $fourth");
include("lib/captcha/captcha.php?code=$captcha");
?><img src="lib/captcha/captcha.php?code=<?echo$captcha;
$captcha = ereg_replace("10", "J", $captcha);
$captcha = ereg_replace("11", "K", $captcha);
$captcha = ereg_replace("12", "L", $captcha);
$captcha = ereg_replace("13", "M", $captcha);
$captcha = ereg_replace("14", "N", $captcha);
$captcha = ereg_replace("15", "O", $captcha);
$captcha = ereg_replace("16", "P", $captcha);
$captcha = ereg_replace("17", "Q", $captcha);
$captcha = ereg_replace("18", "R", $captcha);
$captcha = ereg_replace("19", "S", $captcha);
$captcha = ereg_replace("20", "T", $captcha);
$captcha = ereg_replace("21", "U", $captcha);
$captcha = ereg_replace("22", "V", $captcha);
$captcha = ereg_replace("23", "W", $captcha);
$captcha = ereg_replace("24", "X", $captcha);
$captcha = ereg_replace("25", "Y", $captcha);
$captcha = ereg_replace("26", "Z", $captcha);
$captcha = ereg_replace("0", "", $captcha);
$captcha = ereg_replace("1", "A", $captcha);
$captcha = ereg_replace("2", "B", $captcha);
$captcha = ereg_replace("3", "C", $captcha);
$captcha = ereg_replace("4", "D", $captcha);
$captcha = ereg_replace("5", "E", $captcha);
$captcha = ereg_replace("6", "F", $captcha);
$captcha = ereg_replace("7", "G", $captcha);
$captcha = ereg_replace("8", "H", $captcha);
$captcha = ereg_replace("9", "I", $captcha);
$captcha = str_replace(" ", "",$captcha);
$_SESSION['captcha'] = $captcha;
?>" border="1"></td>
<td align="center"><input type="text" name="captcha"><br /><input type="submit" value="Misdaad plegen!" name="submit" class="mod_submit"></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<br />
Vul in het vakje de vierletterige code in. Deze code is ter beveiliging.<br><br>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<script language="javascript">
function checkError(pForm){
var errormsg = '';
if(pForm.captcha.value.length != 4) errormsg += 'Je hebt geen geldige code ingevuld!<br>';
if(pForm.sel.value != 'true') errormsg += 'Je hebt geen activiteit gekozen!<br>';
if(errormsg != ''){
showError(errormsg);
return false;
}
return true;
}
</script> </div>
</td>
</tr>
</table>
</td>
<?}
if($_POST['crime'] < 6 && $error == niks){
$_SESSION['mission'] = "Voer een kleine misdaad met succes uit";
}
if($_POST['crime'] > 5 && $_POST['crime'] < 11 && $error == niks){
$_SESSION['mission'] = "Voer een grote misdaad met succes uit";
}
?>
Toon Meer