Bugged Config.
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
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
<?php /* ------------------------- */
error_reporting(E_PARSE);
if(!(@mysql_pconnect("localhost","User","Password") && @mysql_select_db("Database"))) {
print <<<ENDHTML
<html>
<head>
<title>Mafialegend</title>
<link rel="stylesheet" type="text/css" href="style.css">
<META HTTP-EQUIV='refresh' CONTENT='60'; URL='$PHP_SELF'>
</head>
<table width=100%>
<tr>
<td class="subTitle"><b>MYSQL ERROR</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="mainTxt">
Er is een fout opgetreden tijdens het verbinding maken met de database. Onze excuses voor het ongemak. </td></tr>
</table>
</body>
</html>
ENDHTML;
exit;
}
session_start();
if(isset($_SESSION['login'])) {
$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);
$blata = mysql_num_rows($dbres);
include("rangen.php");
include("tijden.php");
include("rangmsg.php");
/* if ($data->bank > 60000000) { $pi = $_SERVER['REMOTE_ADDR']; mysql_query("INSERT INTO `bans`(`ip`,`reden`,`door`) values('$pi','Bug exploiting','Auto')"); } */
mysql_query("UPDATE `users` SET `health`='100' WHERE (`health` > 100)");
mysql_query("UPDATE `users` SET `se`='100' WHERE (`se` > 100)");
mysql_query("UPDATE `users` SET `stad`='Amsterdam' WHERE `stad`=''");
if ($blata == 0) { header('Location login.php'); }
if ($data->status != dood) { mysql_query("UPDATE `users` SET `online`=NOW() WHERE `login`='{$data->login}'"); }
$huis = $data->stad;
$ctime = time();
}
$dbre = mysql_query("SELECT *, UNIX_TIMESTAMP(`time`) AS `getime` FROM `jail` WHERE `login`='{$data->login}'");
$jisin = mysql_num_rows($dbre);
$jail = mysql_fetch_object($dbre);
$tim = ($jail->getime - time());
if ($jisin == 1) {
if ($tim == 1) { $time = gmdate('s', $tim); $word = seconde; $boete = $jail->boete; }
elseif ($tim < 61) { $time = gmdate('s', $tim); $word = seconden; $boete = $jail->boete; }
else { $time = gmdate('i:s', $tim); $word = minuten; $boete = $jail->boete; }
}
$lang = "nl.php" ;
include($lang);
mysql_query("DELETE FROM `jail` WHERE UNIX_TIMESTAMP(`time`)-UNIX_TIMESTAMP(NOW()) < 0");
$dete = mysql_query("SELECT * FROM `detectives` WHERE UNIX_TIMESTAMP(`time`)-UNIX_TIMESTAMP(NOW()) < 0");
while($det = mysql_fetch_object($dete)) {
$suspect = mysql_query("SELECT * FROM `users` WHERE `login`='{$det->van}'");
$sus = mysql_fetch_object($suspect);
$victim = mysql_query("SELECT * FROM `users` WHERE `login`='{$det->naar}'");
$vic = mysql_fetch_object($victim);
if ($det->stad == $vic->stad) {
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$sus->login}','Gevonden','Je detective heeft {$vic->login} gevonden in {$det->stad}.')"); mysql_query("DELETE FROM `detectives` WHERE `naar`='{$vic->login}' AND `stad`='{$det->stad}'");
}
mysql_query("DELETE FROM `detectives` WHERE UNIX_TIMESTAMP(`time`)-UNIX_TIMESTAMP(NOW()) < 0");
}
$ip = $_SERVER['REMOTE_ADDR'];
$iban = mysql_fetch_object(mysql_query("SELECT * FROM `bans` WHERE `IP`='$ip'"));
$lban = mysql_fetch_object(mysql_query("SELECT * FROM `bans` WHERE `IP`='$ip' OR `login`='{$data->login}'"));
$ban = ($data->login) ? $lban : $iban;
if ($ban) {
print <<<ENDHTML
<html>
<head>
<title>Vendetta</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<table width=100%>
<tr>
<td class="subTitle"><b>Verbannen</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="mainTxt">
Je bent verbannen van Mafialegend<br><br>Reden: $ban->reden
</td></tr>
</table>
</body>
</html>
ENDHTML;
unset($_SESSION['login']);
exit;
}
function check_login() {
$res = mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE `login`='{$_SESSION['login']}'"));
if($res == 0) {
unset($_SESSION['login']);
return FALSE;
}
else { return TRUE; }
}
if ($data->xp < 10) { $jailtime = (TIME() + 20); $boete = 250; }
elseif ($data->xp < 20) { $jailtime = (TIME() + 40); $boete = 500; }
elseif ($data->xp < 50) { $jailtime = (TIME() + 60); $boete = 750; }
elseif ($data->xp < 150) { $jailtime = (TIME() + 90); $boete = 1000; }
elseif ($data->xp < 500) { $jailtime = (TIME() + 120); $boete = 5000; }
elseif ($data->xp < 1000) { $jailtime = (TIME() + 180); $boete = 7500; }
elseif ($data->xp < 2000) { $jailtime = (TIME() + 190); $boete = 12500; }
elseif ($data->xp < 3000) { $jailtime = (TIME() + 230); $boete = 25000; }
elseif ($data->xp < 4500) { $jailtime = (TIME() + 270); $boete = 50000; }
elseif ($data->xp < 6000) { $jailtime = (TIME() + 320); $boete = 60000; }
elseif ($data->xp < 8000) { $jailtime = (TIME() + 370); $boete = 75000; }
elseif ($data->xp < 11000) { $jailtime = (TIME() + 420); $boete = 85000; }
elseif ($data->xp < 15000) { $jailtime = (TIME() + 480); $boete = 100000; }
elseif ($data->xp < 20000) { $jailtime = (TIME() + 540); $boete = 125000; }
elseif ($data->xp >= 20000) { $jailtime = (TIME() + 600); $boete = 150000; }
if (!$data->famillie) { $famillie = "Geen"; }
else { $famillie = $data->famillie; }
$dbres = mysql_query("SELECT UNIX_TIMESTAMP(`time`) AS `time`,`name` FROM `cron`");
while($x = mysql_fetch_object($dbres))
$update[$x->name] = $x->time;
$rand = rand(500,1500);
if(floor($update['kogels']/ 130) != floor(time()/ 130)) {
$dbres = mysql_query("SELECT GET_LOCK('kogels_update',0)");
if(mysql_result($dbres,0) == 1) {
mysql_query("UPDATE `cron` SET `time`=NOW() WHERE `name`='kogels'");
mysql_query("DELETE FROM `messages` WHERE `to`=''");
mysql_query("DELETE FROM `messages` WHERE `to`='Notificatie'");
mysql_query("DELETE FROM `iplog` WHERE `login`=''");
mysql_query("DELETE FROM `donate` WHERE `code`='0'");
mysql_query("UPDATE `stad` SET `kogels`='100',`prijs`='$rand'");
mysql_query("SELECT RELEASE_LOCK('kogels_update')");
}
}
if(floor($update['uur']/ 3600) != floor(time()/ 3600)) {
$dbres = mysql_query("SELECT GET_LOCK('uur_update',0)");
if(mysql_result($dbres,0) == 1) {
mysql_query("UPDATE `cron` SET `time`=NOW() WHERE `name`='uur'");
mysql_query("UPDATE `casino` SET `winst`=`winst`+100 WHERE `spel`='kogelfabriek'");
$rand = rand(1500,2500);
$bloed1 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodaamm`='$bloed1' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed6 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodbamm`='$bloed6' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed7 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodabamm`='$bloed7' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed8 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodoamm`='$bloed8' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed2 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodapri`='$bloed2' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed3 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodbpri`='$bloed3' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed4 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodabpri`='$bloed4' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed5 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodopri`='$bloed5' WHERE `id`='2'");
mysql_query("SELECT RELEASE_LOCK('uur_update')");
}
}
if(floor($update['day']/ 86400) != floor(time()/ 86400)) {
$dbres = mysql_query("SELECT GET_LOCK('day_update',0)");
if(mysql_result($dbres,0) == 1) {
mysql_query("UPDATE `cron` SET `time`=NOW() WHERE `name`='day'");
mysql_query("UPDATE `famillie` SET `crusher`='0',`aantal`='0'");
mysql_query("DELETE FROM `kras`");
$alv = rand(1000,6000);
$ach = rand(1000,6000);
$any = rand(1000,6000);
$ami = rand(1000,6000);
$apa = rand(1000,6000);
$ala = rand(1000,6000);
$aco = rand(1000,6000);
$ave = rand(1000,6000);
$aam = rand(1000,6000);
$ulv = rand(6000,15000);
$uch = rand(6000,15000);
$uny = rand(6000,15000);
$umi = rand(6000,15000);
$upa = rand(6000,15000);
$ula = rand(6000,15000);
$uco = rand(6000,15000);
$uve = rand(6000,15000);
$uam = rand(6000,15000);
mysql_query("UPDATE `stad` SET `drugsp`='$ulv',`drankp`='$alv' WHERE `stad`='Las Vegas'");
mysql_query("UPDATE `stad` SET `drugsp`='$uch',`drankp`='$ach' WHERE `stad`='Chicago'");
mysql_query("UPDATE `stad` SET `drugsp`='$uny',`drankp`='$any' WHERE `stad`='New York'");
mysql_query("UPDATE `stad` SET `drugsp`='$umi',`drankp`='$ami' WHERE `stad`='Miami'");
mysql_query("UPDATE `stad` SET `drugsp`='$upa',`drankp`='$apa' WHERE `stad`='Palermo'");
mysql_query("UPDATE `stad` SET `drugsp`='$ula',`drankp`='$ala' WHERE `stad`='Los Angeles'");
mysql_query("UPDATE `stad` SET `drugsp`='$uco',`drankp`='$aco' WHERE `stad`='Corleone'");
mysql_query("UPDATE `stad` SET `drugsp`='$uve',`drankp`='$ave' WHERE `stad`='Venetië'");
mysql_query("UPDATE `stad` SET `drugsp`='$uam',`drankp`='$aam' WHERE `stad`='Amsterdan'");
mysql_query("SELECT RELEASE_LOCK('day_update')");
}
}
if(floor($update['week']/ 604800) != floor(time()/ 604800)) {
$dbres = mysql_query("SELECT GET_LOCK('week_update',0)");
if(mysql_result($dbres,0) == 1) {
mysql_query("UPDATE `cron` SET `time`=NOW() WHERE `name`='week'");
$blah = mysql_query("SELECT * FROM `users` WHERE `activated`='1' AND `status`='levend'");
while($blahh = mysql_fetch_object($blah)) {
$rp = round($blahh->xp / 50);
if ($rp > 0) { mysql_query("UPDATE `users` SET `rp`='$rp' WHERE `login`='{$blahh->login}'"); }
}
$rand = rand(500,1500);
mysql_query("UPDATE `stad` SET `drugs`='$rand',`drank`='$rand'");
mysql_query("SELECT RELEASE_LOCK('week_update')");
}
}
mysql_query("DELETE FROM `messages` WHERE UNIX_TIMESTAMP(`time`) > " . time()-24*60*60*2);
mysql_query("UPDATE `users` SET `page`='Unchat' WHERE `login`='{$data->login}'");
/* ------------------------- */
?>
error_reporting(E_PARSE);
if(!(@mysql_pconnect("localhost","User","Password") && @mysql_select_db("Database"))) {
print <<<ENDHTML
<html>
<head>
<title>Mafialegend</title>
<link rel="stylesheet" type="text/css" href="style.css">
<META HTTP-EQUIV='refresh' CONTENT='60'; URL='$PHP_SELF'>
</head>
<table width=100%>
<tr>
<td class="subTitle"><b>MYSQL ERROR</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="mainTxt">
Er is een fout opgetreden tijdens het verbinding maken met de database. Onze excuses voor het ongemak. </td></tr>
</table>
</body>
</html>
ENDHTML;
exit;
}
session_start();
if(isset($_SESSION['login'])) {
$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);
$blata = mysql_num_rows($dbres);
include("rangen.php");
include("tijden.php");
include("rangmsg.php");
/* if ($data->bank > 60000000) { $pi = $_SERVER['REMOTE_ADDR']; mysql_query("INSERT INTO `bans`(`ip`,`reden`,`door`) values('$pi','Bug exploiting','Auto')"); } */
mysql_query("UPDATE `users` SET `health`='100' WHERE (`health` > 100)");
mysql_query("UPDATE `users` SET `se`='100' WHERE (`se` > 100)");
mysql_query("UPDATE `users` SET `stad`='Amsterdam' WHERE `stad`=''");
if ($blata == 0) { header('Location login.php'); }
if ($data->status != dood) { mysql_query("UPDATE `users` SET `online`=NOW() WHERE `login`='{$data->login}'"); }
$huis = $data->stad;
$ctime = time();
}
$dbre = mysql_query("SELECT *, UNIX_TIMESTAMP(`time`) AS `getime` FROM `jail` WHERE `login`='{$data->login}'");
$jisin = mysql_num_rows($dbre);
$jail = mysql_fetch_object($dbre);
$tim = ($jail->getime - time());
if ($jisin == 1) {
if ($tim == 1) { $time = gmdate('s', $tim); $word = seconde; $boete = $jail->boete; }
elseif ($tim < 61) { $time = gmdate('s', $tim); $word = seconden; $boete = $jail->boete; }
else { $time = gmdate('i:s', $tim); $word = minuten; $boete = $jail->boete; }
}
$lang = "nl.php" ;
include($lang);
mysql_query("DELETE FROM `jail` WHERE UNIX_TIMESTAMP(`time`)-UNIX_TIMESTAMP(NOW()) < 0");
$dete = mysql_query("SELECT * FROM `detectives` WHERE UNIX_TIMESTAMP(`time`)-UNIX_TIMESTAMP(NOW()) < 0");
while($det = mysql_fetch_object($dete)) {
$suspect = mysql_query("SELECT * FROM `users` WHERE `login`='{$det->van}'");
$sus = mysql_fetch_object($suspect);
$victim = mysql_query("SELECT * FROM `users` WHERE `login`='{$det->naar}'");
$vic = mysql_fetch_object($victim);
if ($det->stad == $vic->stad) {
mysql_query("INSERT INTO `messages`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'Notificatie','{$sus->login}','Gevonden','Je detective heeft {$vic->login} gevonden in {$det->stad}.')"); mysql_query("DELETE FROM `detectives` WHERE `naar`='{$vic->login}' AND `stad`='{$det->stad}'");
}
mysql_query("DELETE FROM `detectives` WHERE UNIX_TIMESTAMP(`time`)-UNIX_TIMESTAMP(NOW()) < 0");
}
$ip = $_SERVER['REMOTE_ADDR'];
$iban = mysql_fetch_object(mysql_query("SELECT * FROM `bans` WHERE `IP`='$ip'"));
$lban = mysql_fetch_object(mysql_query("SELECT * FROM `bans` WHERE `IP`='$ip' OR `login`='{$data->login}'"));
$ban = ($data->login) ? $lban : $iban;
if ($ban) {
print <<<ENDHTML
<html>
<head>
<title>Vendetta</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<table width=100%>
<tr>
<td class="subTitle"><b>Verbannen</b></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="mainTxt">
Je bent verbannen van Mafialegend<br><br>Reden: $ban->reden
</td></tr>
</table>
</body>
</html>
ENDHTML;
unset($_SESSION['login']);
exit;
}
function check_login() {
$res = mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE `login`='{$_SESSION['login']}'"));
if($res == 0) {
unset($_SESSION['login']);
return FALSE;
}
else { return TRUE; }
}
if ($data->xp < 10) { $jailtime = (TIME() + 20); $boete = 250; }
elseif ($data->xp < 20) { $jailtime = (TIME() + 40); $boete = 500; }
elseif ($data->xp < 50) { $jailtime = (TIME() + 60); $boete = 750; }
elseif ($data->xp < 150) { $jailtime = (TIME() + 90); $boete = 1000; }
elseif ($data->xp < 500) { $jailtime = (TIME() + 120); $boete = 5000; }
elseif ($data->xp < 1000) { $jailtime = (TIME() + 180); $boete = 7500; }
elseif ($data->xp < 2000) { $jailtime = (TIME() + 190); $boete = 12500; }
elseif ($data->xp < 3000) { $jailtime = (TIME() + 230); $boete = 25000; }
elseif ($data->xp < 4500) { $jailtime = (TIME() + 270); $boete = 50000; }
elseif ($data->xp < 6000) { $jailtime = (TIME() + 320); $boete = 60000; }
elseif ($data->xp < 8000) { $jailtime = (TIME() + 370); $boete = 75000; }
elseif ($data->xp < 11000) { $jailtime = (TIME() + 420); $boete = 85000; }
elseif ($data->xp < 15000) { $jailtime = (TIME() + 480); $boete = 100000; }
elseif ($data->xp < 20000) { $jailtime = (TIME() + 540); $boete = 125000; }
elseif ($data->xp >= 20000) { $jailtime = (TIME() + 600); $boete = 150000; }
if (!$data->famillie) { $famillie = "Geen"; }
else { $famillie = $data->famillie; }
$dbres = mysql_query("SELECT UNIX_TIMESTAMP(`time`) AS `time`,`name` FROM `cron`");
while($x = mysql_fetch_object($dbres))
$update[$x->name] = $x->time;
$rand = rand(500,1500);
if(floor($update['kogels']/ 130) != floor(time()/ 130)) {
$dbres = mysql_query("SELECT GET_LOCK('kogels_update',0)");
if(mysql_result($dbres,0) == 1) {
mysql_query("UPDATE `cron` SET `time`=NOW() WHERE `name`='kogels'");
mysql_query("DELETE FROM `messages` WHERE `to`=''");
mysql_query("DELETE FROM `messages` WHERE `to`='Notificatie'");
mysql_query("DELETE FROM `iplog` WHERE `login`=''");
mysql_query("DELETE FROM `donate` WHERE `code`='0'");
mysql_query("UPDATE `stad` SET `kogels`='100',`prijs`='$rand'");
mysql_query("SELECT RELEASE_LOCK('kogels_update')");
}
}
if(floor($update['uur']/ 3600) != floor(time()/ 3600)) {
$dbres = mysql_query("SELECT GET_LOCK('uur_update',0)");
if(mysql_result($dbres,0) == 1) {
mysql_query("UPDATE `cron` SET `time`=NOW() WHERE `name`='uur'");
mysql_query("UPDATE `casino` SET `winst`=`winst`+100 WHERE `spel`='kogelfabriek'");
$rand = rand(1500,2500);
$bloed1 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodaamm`='$bloed1' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed6 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodbamm`='$bloed6' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed7 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodabamm`='$bloed7' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed8 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodoamm`='$bloed8' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed2 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodapri`='$bloed2' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed3 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodbpri`='$bloed3' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed4 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodabpri`='$bloed4' WHERE `id`='2'");
$rand = rand(1500,2500);
$bloed5 = $rand;
mysql_query("UPDATE `bloodtypes` SET `bloodopri`='$bloed5' WHERE `id`='2'");
mysql_query("SELECT RELEASE_LOCK('uur_update')");
}
}
if(floor($update['day']/ 86400) != floor(time()/ 86400)) {
$dbres = mysql_query("SELECT GET_LOCK('day_update',0)");
if(mysql_result($dbres,0) == 1) {
mysql_query("UPDATE `cron` SET `time`=NOW() WHERE `name`='day'");
mysql_query("UPDATE `famillie` SET `crusher`='0',`aantal`='0'");
mysql_query("DELETE FROM `kras`");
$alv = rand(1000,6000);
$ach = rand(1000,6000);
$any = rand(1000,6000);
$ami = rand(1000,6000);
$apa = rand(1000,6000);
$ala = rand(1000,6000);
$aco = rand(1000,6000);
$ave = rand(1000,6000);
$aam = rand(1000,6000);
$ulv = rand(6000,15000);
$uch = rand(6000,15000);
$uny = rand(6000,15000);
$umi = rand(6000,15000);
$upa = rand(6000,15000);
$ula = rand(6000,15000);
$uco = rand(6000,15000);
$uve = rand(6000,15000);
$uam = rand(6000,15000);
mysql_query("UPDATE `stad` SET `drugsp`='$ulv',`drankp`='$alv' WHERE `stad`='Las Vegas'");
mysql_query("UPDATE `stad` SET `drugsp`='$uch',`drankp`='$ach' WHERE `stad`='Chicago'");
mysql_query("UPDATE `stad` SET `drugsp`='$uny',`drankp`='$any' WHERE `stad`='New York'");
mysql_query("UPDATE `stad` SET `drugsp`='$umi',`drankp`='$ami' WHERE `stad`='Miami'");
mysql_query("UPDATE `stad` SET `drugsp`='$upa',`drankp`='$apa' WHERE `stad`='Palermo'");
mysql_query("UPDATE `stad` SET `drugsp`='$ula',`drankp`='$ala' WHERE `stad`='Los Angeles'");
mysql_query("UPDATE `stad` SET `drugsp`='$uco',`drankp`='$aco' WHERE `stad`='Corleone'");
mysql_query("UPDATE `stad` SET `drugsp`='$uve',`drankp`='$ave' WHERE `stad`='Venetië'");
mysql_query("UPDATE `stad` SET `drugsp`='$uam',`drankp`='$aam' WHERE `stad`='Amsterdan'");
mysql_query("SELECT RELEASE_LOCK('day_update')");
}
}
if(floor($update['week']/ 604800) != floor(time()/ 604800)) {
$dbres = mysql_query("SELECT GET_LOCK('week_update',0)");
if(mysql_result($dbres,0) == 1) {
mysql_query("UPDATE `cron` SET `time`=NOW() WHERE `name`='week'");
$blah = mysql_query("SELECT * FROM `users` WHERE `activated`='1' AND `status`='levend'");
while($blahh = mysql_fetch_object($blah)) {
$rp = round($blahh->xp / 50);
if ($rp > 0) { mysql_query("UPDATE `users` SET `rp`='$rp' WHERE `login`='{$blahh->login}'"); }
}
$rand = rand(500,1500);
mysql_query("UPDATE `stad` SET `drugs`='$rand',`drank`='$rand'");
mysql_query("SELECT RELEASE_LOCK('week_update')");
}
}
mysql_query("DELETE FROM `messages` WHERE UNIX_TIMESTAMP(`time`) > " . time()-24*60*60*2);
mysql_query("UPDATE `users` SET `page`='Unchat' WHERE `login`='{$data->login}'");
/* ------------------------- */
?>
if(!(@mysql_pconnect("localhost","User","Password") && @mysql_select_db("Database"))) {
En dit bestaat niet: $PHP_SELF
nou weet ik nogsteeds niet hoe ik het op moet lossen? sorry maar het gaat me niet om het script, het gaat me om het foutje ;)
Edit: En waarom gebruik je mysql_pconnect() in plaats van mysql_connect()?
Gewijzigd op 01/01/1970 01:00:00 door - SanThe -
<META HTTP-EQUIV='refresh' CONTENT='60'; URL='$PHP_SELF'>
Dan refreshed hij nog steeds daarom vroeg ik hulp hier
Huh? Zit je F5 toets niet vast?
<html>
<head>
<title>Mafialegend</title>
</head>
<link rel="shortcut icon" href="http://www.sector-13.com/Mafialegend/favicon.bmp" type="image/x-icon">
<frameset cols="*,170" frameborder="NO" border="5" framespacing="0">
<frameset rows="135,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="banner.php" name="topFrame" target="hoofd" scrolling="NO" noresize >
<frameset rows="*" cols="170,*" framespacing="0" frameborder="NO" border="0">
<frame name="inhoud" target="hoofd" src="menu.php">
<frame src="verhaal.php" name="hoofd">
</frameset>
</frameset>
<frameset rows="135,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="clock.php" name="topFrame1" scrolling="NO" noresize >
<frame src="right.php" target="hoofd" name="rightFrame" scrolling="NO" noresize>
</frameset>
</frameset>
<noframes>
<noframes>
<body>
<p>Op deze pagina worden frames gebruikt, maar uw browser ondersteunt geen
frames.</p>
</body>
</noframes>
</noframes>
</html>
Laat Maar, Fout lag aan de domme google ads die de hele tijd pagina refreshde o_O