This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | $db_link = serverConnect(); |
||
3 | |||
4 | if ($db_link->connect_error) { |
||
5 | echo '<h1>'.$lang['dbError'].'</h1>'; |
||
6 | unset($_SESSION['server_type']); |
||
7 | unset($_SESSION['dbid']); |
||
8 | } else { |
||
9 | if ($_SESSION['user_level'] >= 2) { |
||
10 | if ($settings['lifeVersion'] == 3) { |
||
11 | ?> |
||
12 | <div class="row"> |
||
13 | <div class="col-lg-12"> |
||
14 | <h1 class="page-header"> |
||
15 | <?php echo $lang['navDashboard']; ?> |
||
16 | </h1> |
||
17 | </div> |
||
18 | </div> |
||
19 | View Code Duplication | <?php if (isset($_SESSION['update'])) { |
|
0 ignored issues
–
show
|
|||
20 | echo '<div class="alert alert-info" role="alert">'.$land['updateMessage'].' ('.$_SESSION['message']->version.') <a href="https://github.com/Cyberbyte-Studios/CyberWorks/releases">Download Section</a</div>'; |
||
21 | } ?> |
||
22 | <div class="row"> |
||
23 | <div class="col-lg-4"> |
||
24 | <div class="content-panel"> |
||
25 | <table class="table table-striped table-advance table-hover"> |
||
26 | <h4> |
||
27 | <i class="fa fa-taxi fa-fw"></i> |
||
28 | <?php echo $lang['police'].' '.$lang['overview']; ?> |
||
29 | <div class="col-lg-3 pull-right"> |
||
30 | <a href="<?php echo $settings['url'] ?>police"><?php echo $lang['viewAll']; ?> <i |
||
31 | class="fa fa-arrow-circle-right"></i></a> |
||
32 | </div> |
||
33 | </h4> |
||
34 | <hr> |
||
35 | <thead> |
||
36 | <tr> |
||
37 | <th><i class="fa fa-user"></i> <?php echo $lang['name']; ?></th> |
||
38 | <th><i class="fa fa-eye"></i> <?php echo $lang['playerID']; ?></th> |
||
39 | <th> |
||
40 | </div> |
||
41 | <?php echo $lang['rank']; ?></th> |
||
42 | </tr> |
||
43 | </thead> |
||
44 | <tbody> |
||
45 | <?php |
||
46 | $sql = "SELECT `name`,`coplevel`, $playerIdColumn as playerid FROM `players` WHERE `coplevel` >= '1' ORDER BY `coplevel` DESC LIMIT 10"; |
||
47 | $result_of_query = $db_link->query($sql); |
||
48 | View Code Duplication | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
49 | $playersID = $row['playerid']; |
||
50 | echo '<tr>'; |
||
51 | echo '<td>'.$row['name'].'</td>'; |
||
52 | echo '<td>'.$playersID.'</td>'; |
||
53 | echo '<td>'.$row['coplevel'].'</td>'; |
||
54 | echo '</tr>'; |
||
55 | } ?> |
||
56 | </tbody> |
||
57 | </table> |
||
58 | </div> |
||
59 | </div> |
||
60 | |||
61 | <div class="col-lg-4"> |
||
62 | <div class="content-panel"> |
||
63 | <table class="table table-striped table-advance table-hover"> |
||
64 | <h4> |
||
65 | <i class="fa fa-money fa-fw"></i> <?php echo $lang['topRich']; ?> |
||
66 | </h4> |
||
67 | <hr> |
||
68 | <thead> |
||
69 | <tr> |
||
70 | <th><i class="fa fa-user"></i> <?php echo $lang['name']; ?></th> |
||
71 | <th><i class="fa fa-money"></i> <?php echo $lang['cash']; ?></th> |
||
72 | <th><i class="fa fa-bank"></i> <?php echo $lang['bank']; ?></th> |
||
73 | </tr> |
||
74 | </thead> |
||
75 | <tbody> |
||
76 | |||
77 | <?php |
||
78 | $sql = 'SELECT `name`, `cash`, `bankacc` FROM `players` ORDER BY `bankacc` DESC, `cash` DESC LIMIT 10'; |
||
79 | $result_of_query = $db_link->query($sql); |
||
80 | View Code Duplication | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
81 | echo '<tr>'; |
||
82 | echo '<td>'.$row['name'].'</td>'; |
||
83 | echo '<td>'.$row['cash'].'</td>'; |
||
84 | echo '<td>'.$row['bankacc'].'</td>'; |
||
85 | echo '</tr>'; |
||
86 | } ?> |
||
87 | </tbody> |
||
88 | </table> |
||
89 | </div> |
||
90 | </div> |
||
91 | <div class="col-lg-4"> |
||
92 | <div class="content-panel"> |
||
93 | <table class="table table-striped table-advance table-hover"> |
||
94 | <h4> |
||
95 | <i class="fa fa-ambulance fa-fw"></i> |
||
96 | <?php echo $lang['medic'].' '.$lang['overview']; ?> |
||
97 | <div class="col-lg-3 pull-right"> |
||
98 | <a href="<?php echo $settings['url'] ?>medic"><?php echo $lang['viewAll'].' '; ?> <i |
||
99 | class="fa fa-arrow-circle-right"></i></a> |
||
100 | </div> |
||
101 | </h4> |
||
102 | <hr> |
||
103 | <thead> |
||
104 | <tr> |
||
105 | <th><i class="fa fa-user"></i><?php echo ' '.$lang['name']; ?></th> |
||
106 | <th><i class="fa fa-eye"></i><?php echo ' '.$lang['playerID']; ?></th> |
||
107 | <th> |
||
108 | <?php echo $lang['rank']; ?></th> |
||
109 | </tr> |
||
110 | </thead> |
||
111 | <tbody> |
||
112 | |||
113 | <?php |
||
114 | $sql = "SELECT `name`,`mediclevel`, $playerIdColumn as playerid FROM `players` WHERE `mediclevel` >= '1' ORDER BY `mediclevel` DESC LIMIT 10"; |
||
115 | $result_of_query = $db_link->query($sql); |
||
116 | View Code Duplication | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
117 | $playersID = $row['playerid']; |
||
118 | echo '<tr>'; |
||
119 | echo '<td>'.$row['name'].'</td>'; |
||
120 | echo '<td>'.$playersID.'</td>'; |
||
121 | echo '<td>'.$row['mediclevel'].'</td>'; |
||
122 | echo '</tr>'; |
||
123 | } ?> |
||
124 | </tbody> |
||
125 | </table> |
||
126 | </div> |
||
127 | </div> |
||
128 | </div> |
||
129 | <br/> |
||
130 | <div class="row"> |
||
131 | <div class="col-lg-4"> |
||
132 | <div class="content-panel"> |
||
133 | <table class="table table-striped table-advance table-hover"> |
||
134 | <h4> |
||
135 | <i class="fa fa-taxi fa-fw"></i> |
||
136 | <?php echo $lang['admin'].' '.$lang['overview']; ?> |
||
137 | <div class="col-lg-3 pull-right"> |
||
138 | <a href="<?php echo $settings['url'] ?>admins"><?php echo $lang['viewAll']; ?> <i |
||
139 | class="fa fa-arrow-circle-right"></i></a> |
||
140 | </div> |
||
141 | </h4> |
||
142 | <hr> |
||
143 | <thead> |
||
144 | <tr> |
||
145 | <th><i class="fa fa-user"></i> <?php echo $lang['name']; ?></th> |
||
146 | <th><i class="fa fa-eye"></i> <?php echo $lang['playerID']; ?></th> |
||
147 | <th> |
||
148 | </div> |
||
149 | <?php echo $lang['rank']; ?></th> |
||
150 | </tr> |
||
151 | </thead> |
||
152 | <tbody> |
||
153 | <?php |
||
154 | $sql = "SELECT `name`,`adminlevel`, $playerIdColumn as playerid FROM `players` WHERE `adminlevel` >= '1' ORDER BY `adminlevel` DESC LIMIT 10"; |
||
155 | $result_of_query = $db_link->query($sql); |
||
156 | View Code Duplication | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
157 | $playersID = $row['playerid']; |
||
158 | echo '<tr>'; |
||
159 | echo '<td>'.$row['name'].'</td>'; |
||
160 | echo '<td>'.$playersID.'</td>'; |
||
161 | echo '<td>'.$row['adminlevel'].'</td>'; |
||
162 | echo '</tr>'; |
||
163 | } ?> |
||
164 | </tbody> |
||
165 | </table> |
||
166 | </div> |
||
167 | </div> |
||
168 | <?php |
||
169 | |||
170 | } elseif ($settings['lifeVersion'] == 4 || $settings['lifeVersion'] == 5) { |
||
171 | ?> |
||
172 | <div class="row"> |
||
173 | <div class="col-lg-12"> |
||
174 | <h1 class="page-header"> |
||
175 | <?php echo $lang['navDashboard']; ?> |
||
176 | </h1> |
||
177 | </div> |
||
178 | </div> |
||
179 | View Code Duplication | <?php if (isset($_SESSION['update'])) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
180 | echo '<div class="alert alert-info" role="alert">'.$land['updateMessage'].' ('.$_SESSION['message']->version.') <a href="https://github.com/Cyberbyte-Studios/CyberWorks/releases">Download Section</a</div>'; |
||
181 | } ?> |
||
182 | <div class="row"> |
||
183 | <div class="col-lg-3 col-md-4 col-lg-offset-1"> |
||
184 | <div class="panel panel-success"> |
||
185 | <div class="panel-heading"> |
||
186 | <div class="row"> |
||
187 | <div class="col-xs-3" style="font-size: 5em;"> |
||
188 | <i class="fa fa-user fa-fw"></i> |
||
189 | </div> |
||
190 | <div class="col-xs-9 text-right"> |
||
191 | <?php |
||
192 | $sql = 'SELECT `name` FROM `players` ORDER BY `insert_time` DESC LIMIT 1;'; |
||
193 | $result_of_query = $db_link->query($sql); |
||
194 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
||
195 | echo '<h1>'.$row['name'].'</h1>'; |
||
196 | } ?> |
||
197 | <div>Newest Player</div> |
||
198 | </div> |
||
199 | </div> |
||
200 | </div> |
||
201 | </div> |
||
202 | </div> |
||
203 | <div class="col-lg-3 col-md-4"> |
||
204 | <div class="panel panel-info"> |
||
205 | <div class="panel-heading"> |
||
206 | <div class="row"> |
||
207 | <div class="col-xs-3" style="font-size: 5em;"> |
||
208 | <i class="fa fa-fw fa-users"></i> |
||
209 | </div> |
||
210 | <div class="col-xs-9 text-right"> |
||
211 | <?php |
||
212 | $sql = 'SELECT `uid` FROM `players`;'; |
||
213 | $result_of_query = $db_link->query($sql); |
||
214 | $total_records = mysqli_num_rows($result_of_query); |
||
215 | echo '<h1>'.$total_records.'</h1>'; ?> |
||
216 | <div>Players</div> |
||
217 | </div> |
||
218 | </div> |
||
219 | </div> |
||
220 | </div> |
||
221 | </div> |
||
222 | <div class="col-lg-3 col-md-4"> |
||
223 | <div class="panel panel-success"> |
||
224 | <div class="panel-heading"> |
||
225 | <div class="row"> |
||
226 | <div class="col-xs-3" style="font-size: 5em;"> |
||
227 | <i class="fa fa-fw fa-car"></i> |
||
228 | </div> |
||
229 | <div class="col-xs-9 text-right"> |
||
230 | <?php |
||
231 | $sql = 'SELECT `id` FROM `vehicles`;'; |
||
232 | $result_of_query = $db_link->query($sql); |
||
233 | $total_records = mysqli_num_rows($result_of_query); |
||
234 | echo '<h1>'.$total_records.'</h1>'; ?> |
||
235 | <span>Vehicles</span> |
||
236 | </div> |
||
237 | </div> |
||
238 | </div> |
||
239 | </div> |
||
240 | </div> |
||
241 | </div> |
||
242 | |||
243 | <div class="row"> |
||
244 | <div class="col-md-8"> |
||
245 | <div class="panel panel-default"> |
||
246 | <div class="panel-heading"> |
||
247 | <i class="fa fa-bar-chart-o fa-fw"></i> Player Join Data |
||
248 | </div> |
||
249 | <div class="panel-body"> |
||
250 | <div id="player_data_chart"></div> |
||
251 | </div> |
||
252 | </div> |
||
253 | </div> |
||
254 | <div class="col-md-4"> |
||
255 | <div class="panel panel-default"> |
||
256 | <ul id="myTab" class="nav nav-tabs nav-justified"> |
||
257 | <li class="active"> |
||
258 | <a href="#police" data-toggle="tab"> |
||
259 | <i class="fa fa-taxi fa-fw"></i> |
||
260 | <small><?php echo $lang['police'].' '.$lang['overview']; ?></small> |
||
261 | </a> |
||
262 | </li> |
||
263 | <li> |
||
264 | <a href="#medic" data-toggle="tab"> |
||
265 | <i class="fa fa-ambulance fa-fw"></i> |
||
266 | <small><?php echo $lang['medic'].' '.$lang['overview']; ?></small> |
||
267 | </a> |
||
268 | </li> |
||
269 | <li> |
||
270 | <a href="#money" data-toggle="tab"> |
||
271 | <i class="fa fa-money fa-fw"></i> |
||
272 | <small>Top Ten</small> |
||
273 | </a> |
||
274 | </li> |
||
275 | <li> |
||
276 | <a href="#admins" data-toggle="tab"> |
||
277 | <i class="fa fa-users fa-fw"></i> |
||
278 | <small><?php echo $lang['admin'].' '.$lang['overview']; ?></small> |
||
279 | </a> |
||
280 | </li> |
||
281 | </ul> |
||
282 | <div class="panel-body"> |
||
283 | <div id="myTabContent" class="tab-content"> |
||
284 | <div class="tab-pane fade in active" id="police"> |
||
285 | <table class="table table-striped table-advance table-hover"> |
||
286 | <h4> |
||
287 | <i class="fa fa-taxi fa-fw"></i> |
||
288 | <?php echo $lang['police'].' '.$lang['overview']; ?> |
||
289 | <div class="col-lg-3 pull-right"> |
||
290 | <a href="<?php echo $settings['url'] ?>police"><?php echo $lang['viewAll']; ?> <i |
||
291 | class="fa fa-arrow-circle-right"></i></a> |
||
292 | </div> |
||
293 | </h4> |
||
294 | <hr> |
||
295 | <thead> |
||
296 | <tr> |
||
297 | <th><i class="fa fa-user"></i> <?php echo $lang['name']; ?></th> |
||
298 | <th><i class="fa fa-eye"></i> <?php echo $lang['playerID']; ?></th> |
||
299 | <th><?php echo $lang['rank']; ?></th> |
||
300 | </tr> |
||
301 | </thead> |
||
302 | <tbody> |
||
303 | <?php |
||
304 | $sql = "SELECT `name`,`coplevel`, $playerIdColumn as playerid FROM `players` WHERE `coplevel` >= '1' ORDER BY `coplevel` DESC LIMIT 10"; |
||
305 | $result_of_query = $db_link->query($sql); |
||
306 | View Code Duplication | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
307 | $playersID = $row['playerid']; |
||
308 | echo '<tr>'; |
||
309 | echo '<td>'.$row['name'].'</td>'; |
||
310 | echo '<td>'.$playersID.'</td>'; |
||
311 | echo '<td>'.$row['coplevel'].'</td>'; |
||
312 | echo '</tr>'; |
||
313 | } ?> |
||
314 | </tbody> |
||
315 | </table> |
||
316 | </div> |
||
317 | <div class="tab-pane fade" id="medic"> |
||
318 | <table class="table table-striped table-advance table-hover"> |
||
319 | <h4> |
||
320 | <i class="fa fa-ambulance fa-fw"></i> |
||
321 | <?php echo $lang['medic'].' '.$lang['overview']; ?> |
||
322 | <div class="col-lg-3 pull-right"> |
||
323 | <a href="<?php echo $settings['url'] ?>medic"><?php echo $lang['viewAll']; ?> <i |
||
324 | class="fa fa-arrow-circle-right"></i></a> |
||
325 | </div> |
||
326 | </h4> |
||
327 | <hr> |
||
328 | <thead> |
||
329 | <tr> |
||
330 | <th><i class="fa fa-user"></i> <?php echo $lang['name']; ?></th> |
||
331 | <th><i class="fa fa-eye"></i> <?php echo $lang['playerID']; ?></th> |
||
332 | <th><?php echo $lang['rank']; ?></th> |
||
333 | </tr> |
||
334 | </thead> |
||
335 | <tbody> |
||
336 | <?php |
||
337 | $sql = "SELECT `name`,`mediclevel`, $playerIdColumn as playerid FROM `players` WHERE `mediclevel` >= '1' ORDER BY `mediclevel` DESC LIMIT 10"; |
||
338 | $result_of_query = $db_link->query($sql); |
||
339 | View Code Duplication | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
340 | $playersID = $row['playerid']; |
||
341 | echo '<tr>'; |
||
342 | echo '<td>'.$row['name'].'</td>'; |
||
343 | echo '<td>'.$playersID.'</td>'; |
||
344 | echo '<td>'.$row['mediclevel'].'</td>'; |
||
345 | echo '</tr>'; |
||
346 | } ?> |
||
347 | </tbody> |
||
348 | </table> |
||
349 | </div> |
||
350 | <div class="tab-pane fade" id="money"> |
||
351 | <table class="table table-striped table-advance table-hover"> |
||
352 | <h4> |
||
353 | <i class="fa fa-money fa-fw"></i> |
||
354 | <?php echo $lang['topRich']; ?> |
||
355 | </h4> |
||
356 | <hr> |
||
357 | <thead> |
||
358 | <tr> |
||
359 | <th><i class="fa fa-user"></i> <?php echo $lang['name']; ?></th> |
||
360 | <th><i class="fa fa-money"></i> <?php echo $lang['cash']; ?></th> |
||
361 | <th><i class="fa fa-bank"></i> <?php echo $lang['bank']; ?></th> |
||
362 | </tr> |
||
363 | </thead> |
||
364 | <tbody> |
||
365 | <?php |
||
366 | $sql = 'SELECT `name`, `cash`, `bankacc` FROM `players` ORDER BY `bankacc` DESC, `cash` DESC LIMIT 10'; |
||
367 | $result_of_query = $db_link->query($sql); |
||
368 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
||
369 | echo '<tr>'; |
||
370 | echo '<td>'.$row['name'].'</td>'; |
||
371 | echo '<td>'.$row['cash'].'</td>'; |
||
372 | echo '<td>'.$row['bankacc'].'</td>'; |
||
373 | echo '</tr>'; |
||
374 | } ?> |
||
375 | </tbody> |
||
376 | </table> |
||
377 | </div> |
||
378 | <div class="tab-pane fade" id="admins"> |
||
379 | <table class="table table-striped table-advance table-hover"> |
||
380 | <h4> |
||
381 | <i class="fa fa-taxi fa-fw"></i> |
||
382 | <?php echo $lang['admin'].' '.$lang['overview']; ?> |
||
383 | <div class="col-lg-3 pull-right"> |
||
384 | <a href="<?php echo $settings['url'] ?>admins"><?php echo $lang['viewAll']; ?> <i |
||
385 | class="fa fa-arrow-circle-right"></i></a> |
||
386 | </div> |
||
387 | </h4> |
||
388 | <hr> |
||
389 | <thead> |
||
390 | <tr> |
||
391 | <th><i class="fa fa-user"></i> <?php echo $lang['name']; ?></th> |
||
392 | <th><i class="fa fa-eye"></i> <?php echo $lang['playerID']; ?></th> |
||
393 | <th><?php echo $lang['rank']; ?></th> |
||
394 | </tr> |
||
395 | </thead> |
||
396 | <tbody> |
||
397 | <?php |
||
398 | $sql = "SELECT `name`,`adminlevel`, $playerIdColumn as playerid FROM `players` WHERE `adminlevel` >= '1' ORDER BY `adminlevel` DESC LIMIT 10"; |
||
399 | $result_of_query = $db_link->query($sql); |
||
400 | View Code Duplication | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
401 | $playersID = $row['playerid']; |
||
402 | echo '<tr>'; |
||
403 | echo '<td>'.$row['name'].'</td>'; |
||
404 | echo '<td>'.$playersID.'</td>'; |
||
405 | echo '<td>'.$row['adminlevel'].'</td>'; |
||
406 | echo '</tr>'; |
||
407 | } ?> |
||
408 | </tbody> |
||
409 | </table> |
||
410 | </div> |
||
411 | </div> |
||
412 | </div> |
||
413 | </div> |
||
414 | </div> |
||
415 | </div> |
||
416 | |||
417 | <?php |
||
418 | |||
419 | } |
||
420 | } |
||
421 | } |
||
0 ignored issues
–
show
|
|||
422 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.