This repository was archived by the owner on Feb 17, 2023. It is now read-only.
File tree 3 files changed +33
-11
lines changed
3 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 9
9
< tbody >
10
10
< tr >
11
11
< ?php if(isset($_GET['rid']))
12
- \Azure\Database\Adapter::secure_query("DELETE FROM users_bans WHERE id = :id", [':id' =>
12
+ \Azure\Database\Adapter::secure_query("DELETE FROM bans WHERE id = :id", [':id' =>
13
13
\Azure\View\Misc::escape_text($_GET['rid'])]);
14
14
?>
15
15
< ?= \Azure\View\Page::include_content('menu', 'ase/user/sub'); ?>
29
29
< td class ="tablesubheader " width ="30% " align ="center "> Added By</ td >
30
30
< td class ="tablesubheader " width ="30% " align ="center "> Remove</ td >
31
31
</ tr >
32
- < ?php foreach(\Azure\Database\Adapter::query("SELECT * FROM users_bans ") as $row): ?>
32
+ < ?php foreach(\Azure\Database\Adapter::query("SELECT * FROM bans ") as $row): ?>
33
33
< tr >
34
34
< td class ="tablerow2 "> < ?= $row['id']; ?> </ td >
35
35
< td class ="tablerow2 " align ="center "> < ?= $row['bantype']; ?> </ td >
36
+ < ?php if(EMULATOR_TYPE == 'plus'): ?>
36
37
< td class ="tablerow2 " align ="center "> < ?= $row['value']; ?> </ td >
37
38
< td class ="tablerow2 " align ="center "> < ?= $row['reason']; ?> </ td >
38
39
< td class ="tablerow2 " align ="center "> < ?= $row['expire']; ?> </ td >
40
+ < ?php else:
41
+ $userName = \Azure\Database\Adapter::fetch_array(\Azure\Database\Adapter::query("SELECT username FROM users WHERE id = '{$row['user_id']}'"));
42
+ ?>
43
+ < td class ="tablerow2 " align ="center "> < ?= $userName ?> </ td >
44
+ < td class ="tablerow2 " align ="center "> < ?= $row['ban_reason']; ?> </ td >
45
+ < td class ="tablerow2 " align ="center "> < ?= $row['ban_expire']; ?> </ td >
46
+ < ?php endif; ?>
39
47
< td class ="tablerow2 " align ="center "> < a
40
48
href ="/theallseeingeye/web/bans/rid/<?= $row['id']; ?> "> < img
41
49
src ="/web-img/ase/images/delete.gif " alt ="Delete Ban "> </ a > </ td >
Original file line number Diff line number Diff line change 22
22
< td class ="tablesubheader " width ="20% " align ="center "> Time</ td >
23
23
< td class ="tablesubheader " width ="60% " align ="center "> Message</ td >
24
24
</ tr >
25
- < ?php foreach(\Azure\Database\Adapter::query("SELECT * FROM users_chatlogs") as $row): ?>
26
- < tr >
27
- < td class ="tablerow2 " align ="center "> < ?= $row['user_id']; ?> </ td >
28
- < td class ="tablerow2 " align ="center "> < ?= $row['room_id']; ?> </ td >
29
- < td class ="tablerow2 " align ="center "> < ?= $row['timestamp']; ?> </ td >
30
- < td class ="tablerow2 " align ="center "> < ?= $row['message']; ?> </ td >
31
- </ tr >
32
- < ?php endforeach; ?>
25
+ < ?php
26
+ if(EMULATOR_TYPE == 'plus'):
27
+ foreach(\Azure\Database\Adapter::query("SELECT * FROM chatlogs") as $row): ?>
28
+ < tr >
29
+ < td class ="tablerow2 " align ="center "> < ?= $row['user_id']; ?> </ td >
30
+ < td class ="tablerow2 " align ="center "> < ?= $row['room_id']; ?> </ td >
31
+ < td class ="tablerow2 " align ="center "> < ?= $row['timestamp']; ?> </ td >
32
+ < td class ="tablerow2 " align ="center "> < ?= $row['message']; ?> </ td >
33
+ </ tr >
34
+ < ?php
35
+ endforeach;
36
+ else:
37
+ foreach(\Azure\Database\Adapter::query("SELECT * FROM chatlogs_room") as $row): ?>
38
+ < tr >
39
+ < td class ="tablerow2 " align ="center "> < ?= $row['user_from_id']; ?> </ td >
40
+ < td class ="tablerow2 " align ="center "> < ?= $row['room_id']; ?> </ td >
41
+ < td class ="tablerow2 " align ="center "> < ?= $row['timestamp']; ?> </ td >
42
+ < td class ="tablerow2 " align ="center "> < ?= $row['message']; ?> </ td >
43
+ </ tr >
44
+ < ?php
45
+ endforeach;
46
+ endif;
33
47
</ tbody >
34
48
</ table >
35
49
</ div >
Original file line number Diff line number Diff line change 35
35
</ div >
36
36
</ td >
37
37
< td class ="tablerow2 " align ="center "> < a
38
- href ="mailto:ciaos.atutti@alice.it "> < ?= $row['mail']; ?> </ a >
38
+ href ="mailto:<?= $row['mail']; ?> "> < ?= $row['mail']; ?> </ a >
39
39
</ td >
40
40
< td class ="tablerow2 " align ="center "> </ td >
41
41
< td class ="tablerow2 " align ="center "> < ?= $row['last_online']; ?> </ td >
You can’t perform that action at this time.
0 commit comments