Fout huis
ik koop hem en dan staat er je hebt een huis gekocht maar dan staat bij status (home.php) staat huis geen
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
<?PHP
session_start();
include ("config.php");
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`pc`) AS `pc`,UNIX_TIMESTAMP(`transport`) AS `transport`,UNIX_TIMESTAMP(`bc`) AS `bc`,UNIX_TIMESTAMP(`slaap`) AS `slaap`,UNIX_TIMESTAMP(`kc`) AS `kc`,UNIX_TIMESTAMP(`start`) AS `start`,UNIX_TIMESTAMP(`crime`) AS `crime`,UNIX_TIMESTAMP(`ac`) AS `ac` FROM `users` WHERE `login`='{$_SESSION['login']}'");
$data = mysql_fetch_object($dbres);
if ($data->status == dood) { header("Location: rip.php"); exit; }
?>
<html>
<head>
<title>Undergroundcrime.nl</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="keywords" content="Undergroundcrime.nl,Crimegame,crimegame,Undergroundcrime.nl">
<meta name="language" content="english">
<META name="description" lang="nl" content="Undergroundcrime.nl crimegame met pit.">
</head>
<body>
<?
if (!$_SESSION['login']) {
$dbres = mysql_query("SELECT `id` FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
$online = mysql_num_rows($dbres);
if ($online == 1) { $aantal = lid; }
else { $aantal = leden; }
if ($online == 1) { $ww = is; }
else { $ww = zijn; }
print "<table width=100%>
<tr><td class=\"subTitle\"><b>Home</b></td></tr><tr><td> </td></tr><td class=mainTxt align=left>";
echo "<b>Undergroundcrime.nl is een tekst-based online multiplayer role playing game.</b><br><br>Undergroundcrime.nl is een spel dat zich afspeelt in de onderwereld, tussen gangsters en wiseguys, waar misdaden tot de gewone orde van de dag behoren. Door misdaden te plegen, auto's te stelen, banken te beroven,... kan je een machtig misdadiger worden. Je kan alle obstakels op je pad uitroeien door wapens en kogels te kopen en te gaan moorden. Hoe hoger je bent, hoe harder de concurrentie. Samen met andere gangsters kan je een familie oprichten, gewapende overvallen plegen. Een gangster heeft vrienden nodig als wapens. Bescherming van vrienden kan nog niet genoeg zijn,
een kogelvrije vest of een stelletje body guards daarintegen helpen altijd dat kleine ietsje meer...<br><br>Denk je dus klaar te zijn voor deze uitdaging? Klik dan als een echte gangster op de 'Registreer' knop en wandel binnen in de wereld van Undergroundcrime.nl.<br><br>Veel spelplezier!
<br><br>
<b><font color=FFFFFF>Er $ww momenteel $online $aantal aan het spelen.</font></b></table>";
echo "<br>";
}
if ($_SESSION['login']) {
if ($data->status == dood) { header("Location: rip.php"); exit; }
print "<table width=100%>";
$time = time();
$sql = mysql_query("SELECT * FROM `mshop` WHERE (`aflooptijd`-$time < 0)");
while($mshop = mysql_fetch_object($sql)) {
if($mshop->type == 'bullet'){
if($mshop->bieder ==''){
mysql_query("UPDATE `users` SET `kogels`=`kogels`+$mshop->specs WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je kogels zijn niet verkocht.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
mysql_query("UPDATE `users` SET `kogels`=`kogels`+$mshop->specs WHERE `login`='$mshop->bieder'");
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt $mshop->specs kogels gekocht voor €$mshop->bod.')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt $mshop->specs kogels verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
elseif($mshop->type == 'ws'){
if($mshop->bieder ==''){
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je ooggetuige van de moord op $mshop->specs2 is niet verkocht.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt de ooggetuige van de moord op $mshop->specs2 gekocht voor €$mshop->bod. De moordenaar was $mshop->specs3.')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt de ooggetuige van de moord op $mshop->specs2 verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
elseif($mshop->type == 'car'){
if($mshop->bieder ==''){
$steden = Array("PWG","VLD","TLS","OBS","Slinge");
$rstad = rand(0,7);
$stad = $steden[$rstad];
mysql_query("INSERT INTO `garage`(`login`,`naam`,`waarde`,`damage`,`stad`) values('$mshop->door','$mshop->specs','$mshop->specs2','$mshop->specs3','$stad')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je wagen is niet verkocht.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `garage`(`login`,`naam`,`waarde`,`damage`,`stad`) values('$mshop->bieder','$mshop->specs','$mshop->specs2','$mshop->specs3','$data->stad')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt de wagen gekocht voor €$mshop->bod.')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt je wagen verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
elseif($mshop->type == 'obj'){
if($mshop->bieder ==''){
mysql_query("UPDATE `casino` SET `status`='0' WHERE `owner`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je object is niet verkocht.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
mysql_query("UPDATE `casino` SET `status`='0',`winst`='0',`inzet`='100000',`owner`='{$mshop->bieder}' WHERE `owner`='$mshop->door'");
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt $obj->specs in $obj->specs2 gekocht voor €$mshop->bod.')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt je $obj->specs in $obj->specs2 verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
elseif($mshop->type == 'don'){
if($mshop->bieder ==''){
mysql_query("UPDATE `donate` SET `status`='0' WHERE `id`='$mshop->specs2'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je donatie code is niet verkocht. Je code was: $mshop->specs')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
$keychars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$length = 10;
$code = "";
$max=strlen($keychars)-1;
for ($i=0;$i<=$length;$i++) {
$code .= substr($keychars, rand(0, $max), 1);
}
while(mysql_num_rows(mysql_query("SELECT * FROM `donate` WHERE `code`='{$code}'")) == 1){
$code = "";
$max=strlen($keychars)-1;
for ($i=0;$i<=$length;$i++) {
$code .= substr($keychars, rand(0, $max), 1);
}
}
mysql_query("UPDATE `donate` SET `status`='0',`code`='{$code}',`door`='{$mshop->bieder}' WHERE `id`='{$mshop->specs2}'");
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt een donatie code gekocht voor €$mshop->bod. De code is: $code')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt je donatie code verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
}
mysql_query("DELETE FROM `ws` WHERE UNIX_TIMESTAMP(`time`)-UNIX_TIMESTAMP(NOW()) < 0");
$inboxnew = mysql_num_rows(mysql_query("SELECT id FROM `messages` WHERE `read`=0 AND `to`='{$data->login}'"));
$new1 = "nieuw";
$new2 = "nieuwe";
$iword = ($inboxnew == 1) ? $new1 : $new2;
$message1 = "bericht";
$message2 = "berichten";
$xword = ($inboxnew == 1) ? $message1 : $message2;
$min = gmdate('i', $data->play);
$uur = gmdate('G', $data->play);
$dag = floor($data->play / 86400);
if ($inboxnew > 0) { echo "<tr><td class=subTitle><b>Berichten</b></td></tr><tr><td> </td></tr><td class=mainTxt><strong><a href=message.php?p=inbox><b><center>$inboxnew $iword $xword</a></strong></b></center></td></tr><tr><td> </td></tr>"; }
$time = time();
$crime = gmdate('i:s',($data->crime - $time));
$ac = gmdate('i:s', ($data->ac - $time));
$bc = gmdate('H:i:s', ($data->bc - $time));
$pc = gmdate('i:s', ($data->pc - $time));
$tc = gmdate('i:s', ($data->transport - $time));
$kc = gmdate('i:s', ($data->kc - $time));
$bt = gmdate('i:s', ($data->slaap - $time));
//$oc = gmdate('H:i:s', ($data->oc - $time));
if (($data->crime - $time) < 0) { $crime = Nu; }
if (($data->ac - $time) < 0) { $ac = Nu; }
if (($data->bc - $time) < 0) { $bc = Nu; }
if (($data->pc - $time) < 0) { $pc = Nu; }
if (($data->transport - $time) < 0) { $tc = Nu; }
if (($data->kc - $time) < 0) { $kc = Nu; }
if (($data->slaap - $time) < 0) { $bt = Nu; }
/* (90 - ($time - $data->ac)) */
$tot = $data->bank + $data->zak;
$sign = mysql_query("SELECT *,UNIX_TIMESTAMP(`start`) AS `start`,DATE_FORMAT(`start`,'%d-%m-%Y %H:%i') FROM `users` WHERE `login`='{$data->login}' AND `activated`=1");
$start = mysql_fetch_object($sign);
if (!$data->famillie) { $famillie = "Geen"; }
elseif ($data->famillie != NULL) { $famillie = $data->famillie; }
if ($data->{$data->stad} > 0) { $huis = "Ja"; }
else { $huis = "Geen"; }
$respect = round($data->respect,0);
$gam = mysql_query("SELECT * FROM `casino` WHERE `owner`='{$data->login}'");
$game = mysql_fetch_object($gam);
if (!$data->testament) { $testament = "Geen"; }
else { $testament = $data->testament; }
if (!$data->wapon) { $wapon = "Geen"; }
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' AND `nr`='{$data->wapon}'");
$wapen = mysql_fetch_object($dbres);
$wapon = $wapen->naam;
}
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`='{$data->defence}'");
$defence = mysql_fetch_object($dbres);
$defence = $defence->naam;
if ($game->spel == NULL) { $spel = "Geen"; }
elseif ($game->spel != NULL) { $spel = "$game->spel $game->stad"; }
$health = $data->health;
$rangvordering = round($vordering,2);
$schiet = round($data->se,1);
if ($rangvordering == 100 && $data->xp < 20000) { $rangvordering = 99.99; }
if ($data->xp > 20000) { $rangvordering = 100; }
$shealth = round(100 - $data->health);
$svordering = (100 - $rangvordering);
$sschiet = round(100 - $schiet);
if ($rangvordering > 50) { $vltekst = "{$rangvordering}%"; }
else { $vrtekst = "{$rangvordering}%"; }
if ($health > 50) { $hltekst = "{$health}%"; }
else { $hrtekst = "{$health}%"; }
if ($schiet > 50) { $sltekst = "{$schiet}%"; }
else { $srtekst = "{$schiet}%"; }
if ($data->level == 1) { $level = "Normale gebruiker"; }
elseif ($data->level == 255) { $level = "Admin"; }
elseif ($data->level == 200) { $level = "Hulp Admin"; }
else { $level = Webmaster; }
if ($data->famrang == 0) { $rank = "Geen"; }
elseif ($data->famrang == 1) { $rank = Member; }
elseif ($data->famrang == 2) { $rank = Recruiter; }
elseif ($data->famrang == 3) { $rank = Consiglieri; }
elseif ($data->famrang == 4) { $rank = Halfdon; }
elseif ($data->famrang == 5) { $rank = Don; }
if ($data->trans == 0) { $trans = "Geen"; }
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' AND `nr`='{$data->trans}'");
$trans = mysql_fetch_object($dbres);
$trans = $trans->naam;
}
$zak = number_format($data->zak, 0, ',' , ',');
$bank = number_format($data->bank, 0, ',' , ',');
$huwelijk = (!$data->huwelijk) ? "<i>Niet getrouwd</i>" : "$data->login & $data->huwelijk";
$names = array("Geen donateur","Donateur","Zilveren Donateur","Gouden Donateur","Mega donateur");
$donatierang = $names[$data->paid];
$donatie1 = $data->paidtime1 - time();
$donatie2 = $data->paidtime2 - time();
$donatie3 = $data->paidtime3 - time();
$max1 = max($donatie1,$donatie2);
$donatie = max($max1,$donatie3);
if ($data->paid > 0 && $donatie > 0) {
$trash = $donatie/86400;
$d = floor($trash);
$trash = $donatie-($d*86400);
$trash = $trash/3600;
$h = floor($trash);
$trash = $donatie-(($d*86400)+($h*3600));
$trash = $trash/60;
$m = floor($trash);
$trash = $donatie-(($d*86400)+($h*3600)+($m*60));
$s = $trash;
if($h < 10){ $h = "0".$h;}
if($m < 10){ $m = "0".$m;}
if($s < 10){ $h = "0".$s;}
$donatietijd = $d." dagen ".$h.":".$m.":".$s;
}
print <<<ENDHTML
<tr><td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class=subTitle colspan=5><b>Status</b></td></tr><tr><td> </td></tr><td class=mainTxt><table width=100%>
<tr>
<td class=subTitle align="center" colspan="2"><b>Algemeen</b></td>
<td width="4%"> </td>
<td class=subTitle align="center" colspan="2"><b>Bezit</b></td>
</tr>
<tr>
<td width="24%">ID</td>
<td width="24%">$data->id</td>
<td> </td>
<td width="24%">Huis</td>
<td width="24%">$huis</td>
</tr>
<tr>
<td>Naam</td>
<td>$data->login</td>
<td> </td>
<td>Kogels</td>
<td>$data->kogels</td>
</tr>
<tr>
<td>Level</td>
<td>$level</td>
<td> </td>
<td>Transport</td>
<td>$trans</td>
</tr>
<tr>
<td>Rank</td>
<td>$rang</td>
<td> </td>
<td>Bodyguards</td>
<td>$data->guard</td>
</tr>
<tr>
<td>Stad</td>
<td>$data->stad</td>
<td> </td>
<td>Geld op zak</td>
<td>€ $zak</td>
</tr>
<tr>
<td>Respect</td>
<td>$respect</td>
<td> </td>
<td>Geld op bank</td>
<td>€ $bank</td>
</tr>
<tr>
<td>Testament</td>
<td>$data->testament</td>
<td> </td>
<td align="center"><div align="left">Wapen</div></td>
<td align="center"><div align="left">$wapon</div></td>
</tr>
<tr>
<td>Huwelijk</td>
<td>$huwelijk</td>
<td> </td>
<td>Bescherming</td>
<td>$defence</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td width="24%">Misdaad</td>
<td width="24%">$crime</td>
</tr>
<tr>
<td class=subTitle align="center" colspan="2"><b>Familie</b></td>
<td> </td>
<td>Auto</td>
<td>$ac</td>
</tr>
<tr>
<td>Familie</td>
<td>$famillie</td>
<td> </td>
<td>Route 66</td>
<td>$pc</td>
</tr>
<tr>
<td>Rank</td>
<td>$rank</td>
<td> </td>
<td>Organised Crime</td>
<td>$bc</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td>Transport</td>
<td>$tc</td>
</tr>
<tr>
<td class=subTitle align="center" colspan="2"><b>Werkervaring</b></td>
<td> </td>
<td>Moorden</td>
<td>$kc</td>
</tr>
<tr>
<td>Uitbraken</td>
<td>$data->bo</td>
<td> </td>
<td>Kogels</td>
<td>$bt</td>
</tr>
<tr>
<td>Misdaden</td>
<td>$data->nrofcrime</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Auto stelen</td>
<td>$data->nrofcar</td>
<td> </td>
<td colspan="2" class=subTitle><div align="center"><b>Statusbalken</b></div></td>
</tr>
<tr>
<td>Route 66</td>
<td>$data->nrofroute</td>
<td> </td>
<td>Rangvordering</td>
<td> <table width="50%" cellspacing="0" cellpadding="0">
<tr>
<td width="$rangvordering%" bgcolor="#FFCC00"><div align="center">$vltekst</div></td>
<td width="$svordering%" bgcolor="#CC3300"><div align="center">$vrtekst</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>Organised Crime</td>
<td>$data->nrofoc</td>
<td> </td>
<td>Health</td>
<td> <table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="$health%" bgcolor="#009900"><div align="center">$hltekst</div></td>
<td width="$shealth%" bgcolor="#CC3300"><div align="center">$hrtekst</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>Races</td>
<td>$data->nrofrace</td>
<td> </td>
<td>Moordervaring</td>
<td> <table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="$schiet%" bgcolor="#FFFFFF"><div align="center">$sltekst</div></td>
<td width="$sschiet%" bgcolor="#CC3300"><div align="center">$srtekst</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>Moorden</td>
<td>$data->nrofkill</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</table>
ENDHTML;
}
?>
</body>
</html>
session_start();
include ("config.php");
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`pc`) AS `pc`,UNIX_TIMESTAMP(`transport`) AS `transport`,UNIX_TIMESTAMP(`bc`) AS `bc`,UNIX_TIMESTAMP(`slaap`) AS `slaap`,UNIX_TIMESTAMP(`kc`) AS `kc`,UNIX_TIMESTAMP(`start`) AS `start`,UNIX_TIMESTAMP(`crime`) AS `crime`,UNIX_TIMESTAMP(`ac`) AS `ac` FROM `users` WHERE `login`='{$_SESSION['login']}'");
$data = mysql_fetch_object($dbres);
if ($data->status == dood) { header("Location: rip.php"); exit; }
?>
<html>
<head>
<title>Undergroundcrime.nl</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="keywords" content="Undergroundcrime.nl,Crimegame,crimegame,Undergroundcrime.nl">
<meta name="language" content="english">
<META name="description" lang="nl" content="Undergroundcrime.nl crimegame met pit.">
</head>
<body>
<?
if (!$_SESSION['login']) {
$dbres = mysql_query("SELECT `id` FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
$online = mysql_num_rows($dbres);
if ($online == 1) { $aantal = lid; }
else { $aantal = leden; }
if ($online == 1) { $ww = is; }
else { $ww = zijn; }
print "<table width=100%>
<tr><td class=\"subTitle\"><b>Home</b></td></tr><tr><td> </td></tr><td class=mainTxt align=left>";
echo "<b>Undergroundcrime.nl is een tekst-based online multiplayer role playing game.</b><br><br>Undergroundcrime.nl is een spel dat zich afspeelt in de onderwereld, tussen gangsters en wiseguys, waar misdaden tot de gewone orde van de dag behoren. Door misdaden te plegen, auto's te stelen, banken te beroven,... kan je een machtig misdadiger worden. Je kan alle obstakels op je pad uitroeien door wapens en kogels te kopen en te gaan moorden. Hoe hoger je bent, hoe harder de concurrentie. Samen met andere gangsters kan je een familie oprichten, gewapende overvallen plegen. Een gangster heeft vrienden nodig als wapens. Bescherming van vrienden kan nog niet genoeg zijn,
een kogelvrije vest of een stelletje body guards daarintegen helpen altijd dat kleine ietsje meer...<br><br>Denk je dus klaar te zijn voor deze uitdaging? Klik dan als een echte gangster op de 'Registreer' knop en wandel binnen in de wereld van Undergroundcrime.nl.<br><br>Veel spelplezier!
<br><br>
<b><font color=FFFFFF>Er $ww momenteel $online $aantal aan het spelen.</font></b></table>";
echo "<br>";
}
if ($_SESSION['login']) {
if ($data->status == dood) { header("Location: rip.php"); exit; }
print "<table width=100%>";
$time = time();
$sql = mysql_query("SELECT * FROM `mshop` WHERE (`aflooptijd`-$time < 0)");
while($mshop = mysql_fetch_object($sql)) {
if($mshop->type == 'bullet'){
if($mshop->bieder ==''){
mysql_query("UPDATE `users` SET `kogels`=`kogels`+$mshop->specs WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je kogels zijn niet verkocht.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
mysql_query("UPDATE `users` SET `kogels`=`kogels`+$mshop->specs WHERE `login`='$mshop->bieder'");
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt $mshop->specs kogels gekocht voor €$mshop->bod.')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt $mshop->specs kogels verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
elseif($mshop->type == 'ws'){
if($mshop->bieder ==''){
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je ooggetuige van de moord op $mshop->specs2 is niet verkocht.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt de ooggetuige van de moord op $mshop->specs2 gekocht voor €$mshop->bod. De moordenaar was $mshop->specs3.')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt de ooggetuige van de moord op $mshop->specs2 verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
elseif($mshop->type == 'car'){
if($mshop->bieder ==''){
$steden = Array("PWG","VLD","TLS","OBS","Slinge");
$rstad = rand(0,7);
$stad = $steden[$rstad];
mysql_query("INSERT INTO `garage`(`login`,`naam`,`waarde`,`damage`,`stad`) values('$mshop->door','$mshop->specs','$mshop->specs2','$mshop->specs3','$stad')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je wagen is niet verkocht.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `garage`(`login`,`naam`,`waarde`,`damage`,`stad`) values('$mshop->bieder','$mshop->specs','$mshop->specs2','$mshop->specs3','$data->stad')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt de wagen gekocht voor €$mshop->bod.')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt je wagen verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
elseif($mshop->type == 'obj'){
if($mshop->bieder ==''){
mysql_query("UPDATE `casino` SET `status`='0' WHERE `owner`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je object is niet verkocht.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
mysql_query("UPDATE `casino` SET `status`='0',`winst`='0',`inzet`='100000',`owner`='{$mshop->bieder}' WHERE `owner`='$mshop->door'");
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt $obj->specs in $obj->specs2 gekocht voor €$mshop->bod.')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt je $obj->specs in $obj->specs2 verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
elseif($mshop->type == 'don'){
if($mshop->bieder ==''){
mysql_query("UPDATE `donate` SET `status`='0' WHERE `id`='$mshop->specs2'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je donatie code is niet verkocht. Je code was: $mshop->specs')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
else{
$keychars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$length = 10;
$code = "";
$max=strlen($keychars)-1;
for ($i=0;$i<=$length;$i++) {
$code .= substr($keychars, rand(0, $max), 1);
}
while(mysql_num_rows(mysql_query("SELECT * FROM `donate` WHERE `code`='{$code}'")) == 1){
$code = "";
$max=strlen($keychars)-1;
for ($i=0;$i<=$length;$i++) {
$code .= substr($keychars, rand(0, $max), 1);
}
}
mysql_query("UPDATE `donate` SET `status`='0',`code`='{$code}',`door`='{$mshop->bieder}' WHERE `id`='{$mshop->specs2}'");
mysql_query("UPDATE `users` SET `zak`=`zak`+$mshop->bod WHERE `login`='$mshop->door'");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->bieder}','Zwarte markt','Je hebt een donatie code gekocht voor €$mshop->bod. De code is: $code')");
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$mshop->door}','Zwarte markt','Je hebt je donatie code verkocht voor €$mshop->bod.')");
mysql_query("DELETE FROM `mshop` WHERE `id`='{$mshop->id}'");
}
}
}
mysql_query("DELETE FROM `ws` WHERE UNIX_TIMESTAMP(`time`)-UNIX_TIMESTAMP(NOW()) < 0");
$inboxnew = mysql_num_rows(mysql_query("SELECT id FROM `messages` WHERE `read`=0 AND `to`='{$data->login}'"));
$new1 = "nieuw";
$new2 = "nieuwe";
$iword = ($inboxnew == 1) ? $new1 : $new2;
$message1 = "bericht";
$message2 = "berichten";
$xword = ($inboxnew == 1) ? $message1 : $message2;
$min = gmdate('i', $data->play);
$uur = gmdate('G', $data->play);
$dag = floor($data->play / 86400);
if ($inboxnew > 0) { echo "<tr><td class=subTitle><b>Berichten</b></td></tr><tr><td> </td></tr><td class=mainTxt><strong><a href=message.php?p=inbox><b><center>$inboxnew $iword $xword</a></strong></b></center></td></tr><tr><td> </td></tr>"; }
$time = time();
$crime = gmdate('i:s',($data->crime - $time));
$ac = gmdate('i:s', ($data->ac - $time));
$bc = gmdate('H:i:s', ($data->bc - $time));
$pc = gmdate('i:s', ($data->pc - $time));
$tc = gmdate('i:s', ($data->transport - $time));
$kc = gmdate('i:s', ($data->kc - $time));
$bt = gmdate('i:s', ($data->slaap - $time));
//$oc = gmdate('H:i:s', ($data->oc - $time));
if (($data->crime - $time) < 0) { $crime = Nu; }
if (($data->ac - $time) < 0) { $ac = Nu; }
if (($data->bc - $time) < 0) { $bc = Nu; }
if (($data->pc - $time) < 0) { $pc = Nu; }
if (($data->transport - $time) < 0) { $tc = Nu; }
if (($data->kc - $time) < 0) { $kc = Nu; }
if (($data->slaap - $time) < 0) { $bt = Nu; }
/* (90 - ($time - $data->ac)) */
$tot = $data->bank + $data->zak;
$sign = mysql_query("SELECT *,UNIX_TIMESTAMP(`start`) AS `start`,DATE_FORMAT(`start`,'%d-%m-%Y %H:%i') FROM `users` WHERE `login`='{$data->login}' AND `activated`=1");
$start = mysql_fetch_object($sign);
if (!$data->famillie) { $famillie = "Geen"; }
elseif ($data->famillie != NULL) { $famillie = $data->famillie; }
if ($data->{$data->stad} > 0) { $huis = "Ja"; }
else { $huis = "Geen"; }
$respect = round($data->respect,0);
$gam = mysql_query("SELECT * FROM `casino` WHERE `owner`='{$data->login}'");
$game = mysql_fetch_object($gam);
if (!$data->testament) { $testament = "Geen"; }
else { $testament = $data->testament; }
if (!$data->wapon) { $wapon = "Geen"; }
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' AND `nr`='{$data->wapon}'");
$wapen = mysql_fetch_object($dbres);
$wapon = $wapen->naam;
}
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`='{$data->defence}'");
$defence = mysql_fetch_object($dbres);
$defence = $defence->naam;
if ($game->spel == NULL) { $spel = "Geen"; }
elseif ($game->spel != NULL) { $spel = "$game->spel $game->stad"; }
$health = $data->health;
$rangvordering = round($vordering,2);
$schiet = round($data->se,1);
if ($rangvordering == 100 && $data->xp < 20000) { $rangvordering = 99.99; }
if ($data->xp > 20000) { $rangvordering = 100; }
$shealth = round(100 - $data->health);
$svordering = (100 - $rangvordering);
$sschiet = round(100 - $schiet);
if ($rangvordering > 50) { $vltekst = "{$rangvordering}%"; }
else { $vrtekst = "{$rangvordering}%"; }
if ($health > 50) { $hltekst = "{$health}%"; }
else { $hrtekst = "{$health}%"; }
if ($schiet > 50) { $sltekst = "{$schiet}%"; }
else { $srtekst = "{$schiet}%"; }
if ($data->level == 1) { $level = "Normale gebruiker"; }
elseif ($data->level == 255) { $level = "Admin"; }
elseif ($data->level == 200) { $level = "Hulp Admin"; }
else { $level = Webmaster; }
if ($data->famrang == 0) { $rank = "Geen"; }
elseif ($data->famrang == 1) { $rank = Member; }
elseif ($data->famrang == 2) { $rank = Recruiter; }
elseif ($data->famrang == 3) { $rank = Consiglieri; }
elseif ($data->famrang == 4) { $rank = Halfdon; }
elseif ($data->famrang == 5) { $rank = Don; }
if ($data->trans == 0) { $trans = "Geen"; }
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' AND `nr`='{$data->trans}'");
$trans = mysql_fetch_object($dbres);
$trans = $trans->naam;
}
$zak = number_format($data->zak, 0, ',' , ',');
$bank = number_format($data->bank, 0, ',' , ',');
$huwelijk = (!$data->huwelijk) ? "<i>Niet getrouwd</i>" : "$data->login & $data->huwelijk";
$names = array("Geen donateur","Donateur","Zilveren Donateur","Gouden Donateur","Mega donateur");
$donatierang = $names[$data->paid];
$donatie1 = $data->paidtime1 - time();
$donatie2 = $data->paidtime2 - time();
$donatie3 = $data->paidtime3 - time();
$max1 = max($donatie1,$donatie2);
$donatie = max($max1,$donatie3);
if ($data->paid > 0 && $donatie > 0) {
$trash = $donatie/86400;
$d = floor($trash);
$trash = $donatie-($d*86400);
$trash = $trash/3600;
$h = floor($trash);
$trash = $donatie-(($d*86400)+($h*3600));
$trash = $trash/60;
$m = floor($trash);
$trash = $donatie-(($d*86400)+($h*3600)+($m*60));
$s = $trash;
if($h < 10){ $h = "0".$h;}
if($m < 10){ $m = "0".$m;}
if($s < 10){ $h = "0".$s;}
$donatietijd = $d." dagen ".$h.":".$m.":".$s;
}
print <<<ENDHTML
<tr><td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class=subTitle colspan=5><b>Status</b></td></tr><tr><td> </td></tr><td class=mainTxt><table width=100%>
<tr>
<td class=subTitle align="center" colspan="2"><b>Algemeen</b></td>
<td width="4%"> </td>
<td class=subTitle align="center" colspan="2"><b>Bezit</b></td>
</tr>
<tr>
<td width="24%">ID</td>
<td width="24%">$data->id</td>
<td> </td>
<td width="24%">Huis</td>
<td width="24%">$huis</td>
</tr>
<tr>
<td>Naam</td>
<td>$data->login</td>
<td> </td>
<td>Kogels</td>
<td>$data->kogels</td>
</tr>
<tr>
<td>Level</td>
<td>$level</td>
<td> </td>
<td>Transport</td>
<td>$trans</td>
</tr>
<tr>
<td>Rank</td>
<td>$rang</td>
<td> </td>
<td>Bodyguards</td>
<td>$data->guard</td>
</tr>
<tr>
<td>Stad</td>
<td>$data->stad</td>
<td> </td>
<td>Geld op zak</td>
<td>€ $zak</td>
</tr>
<tr>
<td>Respect</td>
<td>$respect</td>
<td> </td>
<td>Geld op bank</td>
<td>€ $bank</td>
</tr>
<tr>
<td>Testament</td>
<td>$data->testament</td>
<td> </td>
<td align="center"><div align="left">Wapen</div></td>
<td align="center"><div align="left">$wapon</div></td>
</tr>
<tr>
<td>Huwelijk</td>
<td>$huwelijk</td>
<td> </td>
<td>Bescherming</td>
<td>$defence</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td width="24%">Misdaad</td>
<td width="24%">$crime</td>
</tr>
<tr>
<td class=subTitle align="center" colspan="2"><b>Familie</b></td>
<td> </td>
<td>Auto</td>
<td>$ac</td>
</tr>
<tr>
<td>Familie</td>
<td>$famillie</td>
<td> </td>
<td>Route 66</td>
<td>$pc</td>
</tr>
<tr>
<td>Rank</td>
<td>$rank</td>
<td> </td>
<td>Organised Crime</td>
<td>$bc</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td>Transport</td>
<td>$tc</td>
</tr>
<tr>
<td class=subTitle align="center" colspan="2"><b>Werkervaring</b></td>
<td> </td>
<td>Moorden</td>
<td>$kc</td>
</tr>
<tr>
<td>Uitbraken</td>
<td>$data->bo</td>
<td> </td>
<td>Kogels</td>
<td>$bt</td>
</tr>
<tr>
<td>Misdaden</td>
<td>$data->nrofcrime</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Auto stelen</td>
<td>$data->nrofcar</td>
<td> </td>
<td colspan="2" class=subTitle><div align="center"><b>Statusbalken</b></div></td>
</tr>
<tr>
<td>Route 66</td>
<td>$data->nrofroute</td>
<td> </td>
<td>Rangvordering</td>
<td> <table width="50%" cellspacing="0" cellpadding="0">
<tr>
<td width="$rangvordering%" bgcolor="#FFCC00"><div align="center">$vltekst</div></td>
<td width="$svordering%" bgcolor="#CC3300"><div align="center">$vrtekst</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>Organised Crime</td>
<td>$data->nrofoc</td>
<td> </td>
<td>Health</td>
<td> <table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="$health%" bgcolor="#009900"><div align="center">$hltekst</div></td>
<td width="$shealth%" bgcolor="#CC3300"><div align="center">$hrtekst</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>Races</td>
<td>$data->nrofrace</td>
<td> </td>
<td>Moordervaring</td>
<td> <table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="$schiet%" bgcolor="#FFFFFF"><div align="center">$sltekst</div></td>
<td width="$sschiet%" bgcolor="#CC3300"><div align="center">$srtekst</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>Moorden</td>
<td>$data->nrofkill</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</table>
ENDHTML;
}
?>
</body>
</html>
En van de winkel waar je het huis kan kopen
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
include('config.php');
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`pc`) AS `pc`,UNIX_TIMESTAMP(`transport`) AS `transport`,UNIX_TIMESTAMP(`safe`) AS `safe`,UNIX_TIMESTAMP(`bc`) AS `bc`,UNIX_TIMESTAMP(`slaap`) AS `slaap`,UNIX_TIMESTAMP(`kc`) AS `kc`,UNIX_TIMESTAMP(`start`) AS `start`,UNIX_TIMESTAMP(`crime`) AS `crime`,UNIX_TIMESTAMP(`ac`) AS `ac` FROM `users` WHERE `login`='{$_SESSION['login']}'");
$data = mysql_fetch_object($dbres);
if(! check_login()) {
header('Location: login.php');
exit;
}
if ($jisin == 1) { header('Location: jisin.php'); }
?>
<html>
<head>
<title>Undergroundcrime.nl - Shop</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="keywords" content="StreefMaffia,Crimegame,crimegame,StreefMaffia">
<meta name="language" content="english">
<META name="description" lang="nl" content="StreefMaffia crimegame met pit.">
</head>
<table width=100% align=center>
<tr>
<td class="subTitle"><b>Winkel</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="mainTxt">
<?
if (isset($_POST['safe1'])) {
if($_POST['safe'] != 60 && $_POST['safe'] != 60 && $_POST['safe'] != 120 && $_POST['safe'] != 360 && $_POST['safe'] != 720 && $_POST['safe'] != 1440 && $_POST['safe'] != 2880){
echo"Er is een error opgetreden. U bent nu € 1.000.000 kwijt. ";
exit;
}
$safe = $_POST['safe'];
$safetijd = (time() + ($safe*60));
$prijs = (($safe/60)*500000);
if ($data->zak < $prijs) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `zak`=`zak`-$prijs,`safe`=FROM_UNIXTIME($safetijd) WHERE `login`='{$data->login}'"); echo "Je bent nu ondergedoken"; exit; }
}
elseif (isset($_POST['huis'])) {
if ($_POST['wat'] == huis) {
if ($data->zak < 750000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `{$huis}`='1',`zak`=`zak`-750000 WHERE `login`='{$data->login}'"); echo "Je hebt een huis gekocht"; exit; }
}
}
elseif (isset($_POST['guard'])) {
if ($_POST['wat'] == guard1) {
if ($data->zak < 25000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=1,`zak`=`zak`-25000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
elseif ($_POST['wat'] == guard2) {
if ($data->zak < 50000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=2,`zak`=`zak`-50000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
elseif ($_POST['wat'] == guard3) {
if ($data->zak < 100000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=3,`zak`=`zak`-100000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
elseif ($_POST['wat'] == guard4) {
if ($data->zak < 250000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=4,`zak`=`zak`-250000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
elseif ($_POST['wat'] == guard5) {
if ($data->zak < 500000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=5,`zak`=`zak`-500000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
}
elseif (isset($_POST['trans'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' AND `nr`='{$_POST['wat']}'");
$trans = mysql_fetch_object($dbres);
if ($data->zak < $trans->aprijs) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `trans`='{$trans->nr}',`zak`=`zak`-$trans->aprijs WHERE `login`='{$data->login}'"); echo "Je hebt een $trans->naam gekocht"; exit; }
}
elseif (isset($_POST['vtrans'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' AND `nr`='{$_POST['wat']}'");
$trans = mysql_fetch_object($dbres);
if ($data->trans != $trans->nr) { echo "Je hebt geen $trans->naam."; exit; }
else { mysql_query("UPDATE `users` SET `trans`=0,`zak`=`zak`+$trans->vprijs WHERE `login`='{$data->login}'"); echo "Je hebt je $trans->naam verkocht"; exit; }
}
elseif (isset($_POST['wapon'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' AND `nr`='{$_POST['wat']}'");
$wapen = mysql_fetch_object($dbres);
if ($data->zak < $wapen->aprijs) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `wapon`='{$wapen->nr}',`zak`=`zak`-$wapen->aprijs WHERE `login`='{$data->login}'"); echo "Je hebt een $wapen->naam gekocht"; exit; }
}
elseif (isset($_POST['vwapon'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' AND `nr`='{$_POST['wat']}'");
$wapen = mysql_fetch_object($dbres);
if ($data->wapon != $wapen->nr) { echo "Je hebt geen $wapen->naam."; exit; }
else { mysql_query("UPDATE `users` SET `wapon`=0,`zak`=`zak`+$wapen->vprijs WHERE `login`='{$data->login}'"); echo "Je hebt je $wapen->naam verkocht"; exit; }
}
elseif (isset($_POST['defence'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`='{$_POST['wat']}'");
$defence = mysql_fetch_object($dbres);
if ($data->zak < $defence->aprijs) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `defence`='{$defence->nr}',`zak`=`zak`-$defence->aprijs WHERE `login`='{$data->login}'"); echo "Je hebt een $defence->naam gekocht"; exit; }
}
elseif (isset($_POST['vdefence'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`='{$_POST['wat']}'");
$defence = mysql_fetch_object($dbres);
if ($data->defence != $defence->nr) { echo "Je hebt geen $defence->naam."; exit; }
else { mysql_query("UPDATE `users` SET `defence`=0,`zak`=`zak`+$defence->vprijs WHERE `login`='{$data->login}'"); echo "Je hebt je $defence->naam verkocht"; exit; }
}
elseif (isset($_POST['vhuis'])) {
if ($_POST['wat'] == huis1) {
if ($data->{$huis} < 1) { echo "Je hebt geen huis."; ;exit; }
else { mysql_query("UPDATE `users` SET `{$huis}`='0',`zak`=`zak`+500000 WHERE `login`='{$data->login}'"); echo "Je hebt je huis verkocht"; exit; }
}
}
print "<table><tr><td width=100% align=center><form method='post'>";
print "<tr><td width=100%><b>Safehouse</b></td></tr>";
if ($data->safe - time() > 0) { $safe = gmdate('H:i:s',($data->safe - time())); print "<tr><td width=100%>Je zit nog $safe in een safehouse</td></tr>"; }
if ($data->safe - time() < 0) { print "<tr><td width=100%><select name=safe width=150>
<option value=60>1 uur € 500.000</option>
<option value=120>2 uur € 1.000.000</option>
<option value=360>6 uur € 3.000.000</option>
<option value=720>12 uur € 6.000.000</option>
<option value=1440>24 uur € 12.000.000</option>
<option value=2880>48 uur € 24.000.000</option>
</select>
Verberg je in een safehouse.<br></td></tr>"; }
if ($data->safe - time() < 0) { print "<tr><td width=100%><br><input type='submit' name='safe1' value='Duik onder'></td></tr>"; }
print "<tr><td width=100%> </td></tr>";
print "<tr><td width=100%><b>Huis</b></td></tr>";
if (!$data->{$huis}) { print "<tr><td width=100%><input type='radio' name='wat' value='huis' checked>Koop een Huis €750000<br></td></tr>"; }
if ($data->{$huis} < 1) { print "<tr><td width=100%><br><input type='submit' name='huis' value='Koop'></td></tr>"; }
if ($data->{$huis} > 0) { print "<tr><td width=100%><input type='radio' name='wat' value='huis1' checked>Verkoop je huis voor €500000<br></td></tr>"; }
if ($data->{$huis} > 0) { print "<tr><td width=100%><br><input type='submit' name='vhuis' value='Verkoop'></td></tr>"; }
print "<tr><td width=100%> </td></tr>";
if ($data->guard != 5) { print "<tr><td width=100%><b>Bodyguards</b></td></tr>"; }
if ($data->guard == 0) { print "<tr><td width=100%><input type='radio' name='wat' value='guard1' checked>Koop een Lijfwacht €25000<br></td></tr>"; }
if ($data->guard == 1) { print "<tr><td width=100%><input type='radio' name='wat' value='guard2'>Koop een Lijfwacht €50000<br></td></tr>"; }
if ($data->guard == 2) { print "<tr><td width=100%><input type='radio' name='wat' value='guard3'>Koop een Lijfwacht €100000<br></td></tr>"; }
if ($data->guard == 3) { print "<tr><td width=100%><input type='radio' name='wat' value='guard4'>Koop een Lijfwacht €250000<br></td></tr>"; }
if ($data->guard == 4) { print "<tr><td width=100%><input type='radio' name='wat' value='guard5'>Koop een Lijfwacht €500000<br></td></tr>"; }
if ($data->guard != 5) { print "<tr><td width=100%><br><input type='submit' name='guard' value='Koop'></td></tr>"; }
print "<tr><td width=100%> </td></tr>";
print "<tr><td width=100%><b>Transport</b></td></tr>";
if ($data->trans < 1) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' ORDER BY `nr`");
while($trans = mysql_fetch_object($dbres)) {
print "<tr><td width=100%><input type='radio' name='wat' value='$trans->nr'>Koop een $trans->naam voor €{$trans->aprijs}<br></td></tr>";
}
print "<tr><td width=100%><br><input type='submit' name='trans' value='Koop'></td></tr>";
}
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' AND `nr`='{$data->trans}'");
$trans = mysql_fetch_object($dbres);
print "<tr><td width=100%><input type='radio' name='wat' value='$data->trans' checked>Verkoop je $trans->naam voor €{$trans->vprijs}<br></td></tr>
<tr><td width=100%><br><input type='submit' name='vtrans' value='Verkoop'></td></tr>" ;
}
print "<tr><td width=100%> </td></tr>";
print "<tr><td width=100%><b>Wapens</b></td></tr>";
if ($data->wapon < 1) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' ORDER BY `nr`");
while($wapen = mysql_fetch_object($dbres)) {
print "<tr><td width=100%><input type='radio' name='wat' value='$wapen->nr'>Koop een $wapen->naam voor €{$wapen->aprijs}<br></td></tr>";
}
print "<tr><td width=100%><br><input type='submit' name='wapon' value='Koop'></td></tr>";
}
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' AND `nr`='{$data->wapon}'");
$wapen = mysql_fetch_object($dbres);
print "<tr><td width=100%><input type='radio' name='wat' value='$data->wapon' checked>Verkoop je $wapen->naam voor €{$wapen->vprijs}<br></td></tr>
<tr><td width=100%><br><input type='submit' name='vwapon' value='Verkoop'></td></tr>" ;
}
print "<tr><td width=100%> </td></tr>";
print "<tr><td width=100%><b>Bescherming</b></td></tr>";
if ($data->defence < 1) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`!='0' ORDER BY `nr`");
while($defence = mysql_fetch_object($dbres)) {
print "<tr><td width=100%><input type='radio' name='wat' value='$defence->nr'>Koop een $defence->naam voor €{$defence->aprijs}<br></td></tr>";
}
print "<tr><td width=100%><br><input type='submit' name='defence' value='Koop'></td></tr>";
}
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`='{$data->defence}'");
$defence = mysql_fetch_object($dbres);
print "<tr><td width=100%><input type='radio' name='wat' value='$data->defence' checked>Verkoop je $defence->naam voor €{$defence->vprijs}<br></td></tr>
<tr><td width=100%><br><input type='submit' name='vdefence' value='Verkoop'></td></tr>" ;
}
print "</table></td></tr></form>";
?>
</table></table>
include('config.php');
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`pc`) AS `pc`,UNIX_TIMESTAMP(`transport`) AS `transport`,UNIX_TIMESTAMP(`safe`) AS `safe`,UNIX_TIMESTAMP(`bc`) AS `bc`,UNIX_TIMESTAMP(`slaap`) AS `slaap`,UNIX_TIMESTAMP(`kc`) AS `kc`,UNIX_TIMESTAMP(`start`) AS `start`,UNIX_TIMESTAMP(`crime`) AS `crime`,UNIX_TIMESTAMP(`ac`) AS `ac` FROM `users` WHERE `login`='{$_SESSION['login']}'");
$data = mysql_fetch_object($dbres);
if(! check_login()) {
header('Location: login.php');
exit;
}
if ($jisin == 1) { header('Location: jisin.php'); }
?>
<html>
<head>
<title>Undergroundcrime.nl - Shop</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="keywords" content="StreefMaffia,Crimegame,crimegame,StreefMaffia">
<meta name="language" content="english">
<META name="description" lang="nl" content="StreefMaffia crimegame met pit.">
</head>
<table width=100% align=center>
<tr>
<td class="subTitle"><b>Winkel</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="mainTxt">
<?
if (isset($_POST['safe1'])) {
if($_POST['safe'] != 60 && $_POST['safe'] != 60 && $_POST['safe'] != 120 && $_POST['safe'] != 360 && $_POST['safe'] != 720 && $_POST['safe'] != 1440 && $_POST['safe'] != 2880){
echo"Er is een error opgetreden. U bent nu € 1.000.000 kwijt. ";
exit;
}
$safe = $_POST['safe'];
$safetijd = (time() + ($safe*60));
$prijs = (($safe/60)*500000);
if ($data->zak < $prijs) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `zak`=`zak`-$prijs,`safe`=FROM_UNIXTIME($safetijd) WHERE `login`='{$data->login}'"); echo "Je bent nu ondergedoken"; exit; }
}
elseif (isset($_POST['huis'])) {
if ($_POST['wat'] == huis) {
if ($data->zak < 750000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `{$huis}`='1',`zak`=`zak`-750000 WHERE `login`='{$data->login}'"); echo "Je hebt een huis gekocht"; exit; }
}
}
elseif (isset($_POST['guard'])) {
if ($_POST['wat'] == guard1) {
if ($data->zak < 25000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=1,`zak`=`zak`-25000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
elseif ($_POST['wat'] == guard2) {
if ($data->zak < 50000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=2,`zak`=`zak`-50000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
elseif ($_POST['wat'] == guard3) {
if ($data->zak < 100000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=3,`zak`=`zak`-100000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
elseif ($_POST['wat'] == guard4) {
if ($data->zak < 250000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=4,`zak`=`zak`-250000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
elseif ($_POST['wat'] == guard5) {
if ($data->zak < 500000) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `guard`=5,`zak`=`zak`-500000 WHERE `login`='{$data->login}'"); echo "Je hebt een lijfwacht gekocht"; exit; }
}
}
elseif (isset($_POST['trans'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' AND `nr`='{$_POST['wat']}'");
$trans = mysql_fetch_object($dbres);
if ($data->zak < $trans->aprijs) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `trans`='{$trans->nr}',`zak`=`zak`-$trans->aprijs WHERE `login`='{$data->login}'"); echo "Je hebt een $trans->naam gekocht"; exit; }
}
elseif (isset($_POST['vtrans'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' AND `nr`='{$_POST['wat']}'");
$trans = mysql_fetch_object($dbres);
if ($data->trans != $trans->nr) { echo "Je hebt geen $trans->naam."; exit; }
else { mysql_query("UPDATE `users` SET `trans`=0,`zak`=`zak`+$trans->vprijs WHERE `login`='{$data->login}'"); echo "Je hebt je $trans->naam verkocht"; exit; }
}
elseif (isset($_POST['wapon'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' AND `nr`='{$_POST['wat']}'");
$wapen = mysql_fetch_object($dbres);
if ($data->zak < $wapen->aprijs) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `wapon`='{$wapen->nr}',`zak`=`zak`-$wapen->aprijs WHERE `login`='{$data->login}'"); echo "Je hebt een $wapen->naam gekocht"; exit; }
}
elseif (isset($_POST['vwapon'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' AND `nr`='{$_POST['wat']}'");
$wapen = mysql_fetch_object($dbres);
if ($data->wapon != $wapen->nr) { echo "Je hebt geen $wapen->naam."; exit; }
else { mysql_query("UPDATE `users` SET `wapon`=0,`zak`=`zak`+$wapen->vprijs WHERE `login`='{$data->login}'"); echo "Je hebt je $wapen->naam verkocht"; exit; }
}
elseif (isset($_POST['defence'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`='{$_POST['wat']}'");
$defence = mysql_fetch_object($dbres);
if ($data->zak < $defence->aprijs) { echo "Je hebt niet genoeg geld op zak."; exit; }
else { mysql_query("UPDATE `users` SET `defence`='{$defence->nr}',`zak`=`zak`-$defence->aprijs WHERE `login`='{$data->login}'"); echo "Je hebt een $defence->naam gekocht"; exit; }
}
elseif (isset($_POST['vdefence'])) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`='{$_POST['wat']}'");
$defence = mysql_fetch_object($dbres);
if ($data->defence != $defence->nr) { echo "Je hebt geen $defence->naam."; exit; }
else { mysql_query("UPDATE `users` SET `defence`=0,`zak`=`zak`+$defence->vprijs WHERE `login`='{$data->login}'"); echo "Je hebt je $defence->naam verkocht"; exit; }
}
elseif (isset($_POST['vhuis'])) {
if ($_POST['wat'] == huis1) {
if ($data->{$huis} < 1) { echo "Je hebt geen huis."; ;exit; }
else { mysql_query("UPDATE `users` SET `{$huis}`='0',`zak`=`zak`+500000 WHERE `login`='{$data->login}'"); echo "Je hebt je huis verkocht"; exit; }
}
}
print "<table><tr><td width=100% align=center><form method='post'>";
print "<tr><td width=100%><b>Safehouse</b></td></tr>";
if ($data->safe - time() > 0) { $safe = gmdate('H:i:s',($data->safe - time())); print "<tr><td width=100%>Je zit nog $safe in een safehouse</td></tr>"; }
if ($data->safe - time() < 0) { print "<tr><td width=100%><select name=safe width=150>
<option value=60>1 uur € 500.000</option>
<option value=120>2 uur € 1.000.000</option>
<option value=360>6 uur € 3.000.000</option>
<option value=720>12 uur € 6.000.000</option>
<option value=1440>24 uur € 12.000.000</option>
<option value=2880>48 uur € 24.000.000</option>
</select>
Verberg je in een safehouse.<br></td></tr>"; }
if ($data->safe - time() < 0) { print "<tr><td width=100%><br><input type='submit' name='safe1' value='Duik onder'></td></tr>"; }
print "<tr><td width=100%> </td></tr>";
print "<tr><td width=100%><b>Huis</b></td></tr>";
if (!$data->{$huis}) { print "<tr><td width=100%><input type='radio' name='wat' value='huis' checked>Koop een Huis €750000<br></td></tr>"; }
if ($data->{$huis} < 1) { print "<tr><td width=100%><br><input type='submit' name='huis' value='Koop'></td></tr>"; }
if ($data->{$huis} > 0) { print "<tr><td width=100%><input type='radio' name='wat' value='huis1' checked>Verkoop je huis voor €500000<br></td></tr>"; }
if ($data->{$huis} > 0) { print "<tr><td width=100%><br><input type='submit' name='vhuis' value='Verkoop'></td></tr>"; }
print "<tr><td width=100%> </td></tr>";
if ($data->guard != 5) { print "<tr><td width=100%><b>Bodyguards</b></td></tr>"; }
if ($data->guard == 0) { print "<tr><td width=100%><input type='radio' name='wat' value='guard1' checked>Koop een Lijfwacht €25000<br></td></tr>"; }
if ($data->guard == 1) { print "<tr><td width=100%><input type='radio' name='wat' value='guard2'>Koop een Lijfwacht €50000<br></td></tr>"; }
if ($data->guard == 2) { print "<tr><td width=100%><input type='radio' name='wat' value='guard3'>Koop een Lijfwacht €100000<br></td></tr>"; }
if ($data->guard == 3) { print "<tr><td width=100%><input type='radio' name='wat' value='guard4'>Koop een Lijfwacht €250000<br></td></tr>"; }
if ($data->guard == 4) { print "<tr><td width=100%><input type='radio' name='wat' value='guard5'>Koop een Lijfwacht €500000<br></td></tr>"; }
if ($data->guard != 5) { print "<tr><td width=100%><br><input type='submit' name='guard' value='Koop'></td></tr>"; }
print "<tr><td width=100%> </td></tr>";
print "<tr><td width=100%><b>Transport</b></td></tr>";
if ($data->trans < 1) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' ORDER BY `nr`");
while($trans = mysql_fetch_object($dbres)) {
print "<tr><td width=100%><input type='radio' name='wat' value='$trans->nr'>Koop een $trans->naam voor €{$trans->aprijs}<br></td></tr>";
}
print "<tr><td width=100%><br><input type='submit' name='trans' value='Koop'></td></tr>";
}
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='trans' AND `nr`='{$data->trans}'");
$trans = mysql_fetch_object($dbres);
print "<tr><td width=100%><input type='radio' name='wat' value='$data->trans' checked>Verkoop je $trans->naam voor €{$trans->vprijs}<br></td></tr>
<tr><td width=100%><br><input type='submit' name='vtrans' value='Verkoop'></td></tr>" ;
}
print "<tr><td width=100%> </td></tr>";
print "<tr><td width=100%><b>Wapens</b></td></tr>";
if ($data->wapon < 1) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' ORDER BY `nr`");
while($wapen = mysql_fetch_object($dbres)) {
print "<tr><td width=100%><input type='radio' name='wat' value='$wapen->nr'>Koop een $wapen->naam voor €{$wapen->aprijs}<br></td></tr>";
}
print "<tr><td width=100%><br><input type='submit' name='wapon' value='Koop'></td></tr>";
}
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='att' AND `nr`='{$data->wapon}'");
$wapen = mysql_fetch_object($dbres);
print "<tr><td width=100%><input type='radio' name='wat' value='$data->wapon' checked>Verkoop je $wapen->naam voor €{$wapen->vprijs}<br></td></tr>
<tr><td width=100%><br><input type='submit' name='vwapon' value='Verkoop'></td></tr>" ;
}
print "<tr><td width=100%> </td></tr>";
print "<tr><td width=100%><b>Bescherming</b></td></tr>";
if ($data->defence < 1) {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`!='0' ORDER BY `nr`");
while($defence = mysql_fetch_object($dbres)) {
print "<tr><td width=100%><input type='radio' name='wat' value='$defence->nr'>Koop een $defence->naam voor €{$defence->aprijs}<br></td></tr>";
}
print "<tr><td width=100%><br><input type='submit' name='defence' value='Koop'></td></tr>";
}
else {
$dbres = mysql_query("SELECT * FROM `items` WHERE `type`='def' AND `nr`='{$data->defence}'");
$defence = mysql_fetch_object($dbres);
print "<tr><td width=100%><input type='radio' name='wat' value='$data->defence' checked>Verkoop je $defence->naam voor €{$defence->vprijs}<br></td></tr>
<tr><td width=100%><br><input type='submit' name='vdefence' value='Verkoop'></td></tr>" ;
}
print "</table></td></tr></form>";
?>
</table></table>
en de structure
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
-- --------------------------------------------------------
--
-- Tabel structuur voor tabel `users`
--
CREATE TABLE `users` (
`id` int(4) NOT NULL auto_increment,
`login` varchar(16) NOT NULL default '',
`start` datetime NOT NULL default '0000-00-00 00:00:00',
`online` datetime NOT NULL default '0000-00-00 00:00:00',
`pass` varchar(50) NOT NULL default '',
`email` varchar(255) NOT NULL default '',
`ip` varchar(255) NOT NULL default '',
`stad` varchar(100) NOT NULL default 'Brussel',
`geslacht` varchar(20) NOT NULL default '',
`activated` char(1) NOT NULL default '0',
`safe` datetime NOT NULL default '0000-00-00 00:00:00',
`health` int(3) NOT NULL default '100',
`xp` int(6) NOT NULL default '0',
`ac` datetime NOT NULL default '0000-00-00 00:00:00',
`crime` datetime NOT NULL default '0000-00-00 00:00:00',
`bc` datetime NOT NULL default '0000-00-00 00:00:00',
`pc` datetime NOT NULL default '0000-00-00 00:00:00',
`play` int(255) NOT NULL default '0',
`zak` int(10) NOT NULL default '1000',
`bank` int(10) NOT NULL default '0',
`banktime` int(15) NOT NULL default '0',
`respect` int(10) NOT NULL default '0',
`se` decimal(4,1) NOT NULL default '0.0',
`famillie` varchar(20) NOT NULL default '',
`famrang` char(1) NOT NULL default '0',
`famcapo` varchar(25) NOT NULL default '',
`trans` char(2) NOT NULL default '0',
`kogels` int(10) NOT NULL default '0',
`wapon` char(2) NOT NULL default '0',
`guard` int(2) NOT NULL default '0',
`defence` int(2) NOT NULL default '0',
`level` varchar(4) NOT NULL default '1',
`rp` int(3) NOT NULL default '0',
`kc` datetime NOT NULL default '0000-00-00 00:00:00',
`status` varchar(10) NOT NULL default 'levend',
`drugs` char(2) NOT NULL default '0',
`drank` char(2) NOT NULL default '0',
`drugst` datetime NOT NULL default '0000-00-00 00:00:00',
`drankt` datetime NOT NULL default '0000-00-00 00:00:00',
`energie` decimal(3,1) NOT NULL default '99.9',
`slaap` datetime NOT NULL default '0000-00-00 00:00:00',
`sl` char(1) NOT NULL default '0',
`vet` char(3) NOT NULL default '0',
`Brussel` char(1) NOT NULL default '0',
`transport` datetime NOT NULL default '0000-00-00 00:00:00',
`Leuven` char(1) NOT NULL default '0',
`Gent` char(1) NOT NULL default '0',
`Brugge` char(1) NOT NULL default '0',
`Hasselt` char(1) NOT NULL default '0',
`Antwerpen` char(1) NOT NULL default '0',
`Amsterdam` char(1) NOT NULL default '0',
`Enschede` char(1) NOT NULL default '',
`pic` varchar(255) NOT NULL default '',
`info` text NOT NULL,
`bo` int(255) NOT NULL default '0',
`nrofcrime` int(10) NOT NULL default '0',
`nrofcar` int(10) NOT NULL default '0',
`nrofroute` int(10) NOT NULL default '0',
`nrofoc` int(10) NOT NULL default '0',
`nrofrace` int(10) NOT NULL default '0',
`nrofkill` int(10) NOT NULL default '0',
`testament` varchar(16) NOT NULL default '',
`huwelijk` varchar(16) NOT NULL default '',
`bf` int(10) NOT NULL default '0',
`lang` char(2) NOT NULL default 'nl',
`paid` char(1) NOT NULL default '0',
`ah` int(1) NOT NULL default '0',
`dh` int(1) NOT NULL default '0',
`gstart` int(2) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`login`),
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=103 ;
--
-- Gegevens worden uitgevoerd voor tabel `users`
--
--
-- Tabel structuur voor tabel `users`
--
CREATE TABLE `users` (
`id` int(4) NOT NULL auto_increment,
`login` varchar(16) NOT NULL default '',
`start` datetime NOT NULL default '0000-00-00 00:00:00',
`online` datetime NOT NULL default '0000-00-00 00:00:00',
`pass` varchar(50) NOT NULL default '',
`email` varchar(255) NOT NULL default '',
`ip` varchar(255) NOT NULL default '',
`stad` varchar(100) NOT NULL default 'Brussel',
`geslacht` varchar(20) NOT NULL default '',
`activated` char(1) NOT NULL default '0',
`safe` datetime NOT NULL default '0000-00-00 00:00:00',
`health` int(3) NOT NULL default '100',
`xp` int(6) NOT NULL default '0',
`ac` datetime NOT NULL default '0000-00-00 00:00:00',
`crime` datetime NOT NULL default '0000-00-00 00:00:00',
`bc` datetime NOT NULL default '0000-00-00 00:00:00',
`pc` datetime NOT NULL default '0000-00-00 00:00:00',
`play` int(255) NOT NULL default '0',
`zak` int(10) NOT NULL default '1000',
`bank` int(10) NOT NULL default '0',
`banktime` int(15) NOT NULL default '0',
`respect` int(10) NOT NULL default '0',
`se` decimal(4,1) NOT NULL default '0.0',
`famillie` varchar(20) NOT NULL default '',
`famrang` char(1) NOT NULL default '0',
`famcapo` varchar(25) NOT NULL default '',
`trans` char(2) NOT NULL default '0',
`kogels` int(10) NOT NULL default '0',
`wapon` char(2) NOT NULL default '0',
`guard` int(2) NOT NULL default '0',
`defence` int(2) NOT NULL default '0',
`level` varchar(4) NOT NULL default '1',
`rp` int(3) NOT NULL default '0',
`kc` datetime NOT NULL default '0000-00-00 00:00:00',
`status` varchar(10) NOT NULL default 'levend',
`drugs` char(2) NOT NULL default '0',
`drank` char(2) NOT NULL default '0',
`drugst` datetime NOT NULL default '0000-00-00 00:00:00',
`drankt` datetime NOT NULL default '0000-00-00 00:00:00',
`energie` decimal(3,1) NOT NULL default '99.9',
`slaap` datetime NOT NULL default '0000-00-00 00:00:00',
`sl` char(1) NOT NULL default '0',
`vet` char(3) NOT NULL default '0',
`Brussel` char(1) NOT NULL default '0',
`transport` datetime NOT NULL default '0000-00-00 00:00:00',
`Leuven` char(1) NOT NULL default '0',
`Gent` char(1) NOT NULL default '0',
`Brugge` char(1) NOT NULL default '0',
`Hasselt` char(1) NOT NULL default '0',
`Antwerpen` char(1) NOT NULL default '0',
`Amsterdam` char(1) NOT NULL default '0',
`Enschede` char(1) NOT NULL default '',
`pic` varchar(255) NOT NULL default '',
`info` text NOT NULL,
`bo` int(255) NOT NULL default '0',
`nrofcrime` int(10) NOT NULL default '0',
`nrofcar` int(10) NOT NULL default '0',
`nrofroute` int(10) NOT NULL default '0',
`nrofoc` int(10) NOT NULL default '0',
`nrofrace` int(10) NOT NULL default '0',
`nrofkill` int(10) NOT NULL default '0',
`testament` varchar(16) NOT NULL default '',
`huwelijk` varchar(16) NOT NULL default '',
`bf` int(10) NOT NULL default '0',
`lang` char(2) NOT NULL default 'nl',
`paid` char(1) NOT NULL default '0',
`ah` int(1) NOT NULL default '0',
`dh` int(1) NOT NULL default '0',
`gstart` int(2) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`login`),
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=103 ;
--
-- Gegevens worden uitgevoerd voor tabel `users`
--
Tip: Gooi het script van je server en vergeet dat je ooit zo stom bent geweest om het te installeren. En dat is niet lullig bedoelt, het script staat namelijk stijf van de fouten.