This repository was archived by the owner on Feb 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 < tbody >
1010 < tr >
1111 < ?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' =>
1313 \Azure\View\Misc::escape_text($_GET['rid'])]);
1414 ?>
1515 < ?= \Azure\View\Page::include_content('menu', 'ase/user/sub'); ?>
2929 < td class ="tablesubheader " width ="30% " align ="center "> Added By</ td >
3030 < td class ="tablesubheader " width ="30% " align ="center "> Remove</ td >
3131 </ 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): ?>
3333 < tr >
3434 < td class ="tablerow2 "> < ?= $row['id']; ?> </ td >
3535 < td class ="tablerow2 " align ="center "> < ?= $row['bantype']; ?> </ td >
36+ < ?php if(EMULATOR_TYPE == 'plus'): ?>
3637 < td class ="tablerow2 " align ="center "> < ?= $row['value']; ?> </ td >
3738 < td class ="tablerow2 " align ="center "> < ?= $row['reason']; ?> </ td >
3839 < 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; ?>
3947 < td class ="tablerow2 " align ="center "> < a
4048 href ="/theallseeingeye/web/bans/rid/<?= $row['id']; ?> "> < img
4149 src ="/web-img/ase/images/delete.gif " alt ="Delete Ban "> </ a > </ td >
Original file line number Diff line number Diff line change 2222 < td class ="tablesubheader " width ="20% " align ="center "> Time</ td >
2323 < td class ="tablesubheader " width ="60% " align ="center "> Message</ td >
2424 </ 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;
3347 </ tbody >
3448 </ table >
3549 </ div >
Original file line number Diff line number Diff line change 3535 </ div >
3636 </ td >
3737 < td class ="tablerow2 " align ="center "> < a
38- href ="mailto:ciaos.atutti@alice.it "> < ?= $row['mail']; ?> </ a >
38+ href ="mailto:<?= $row['mail']; ?> "> < ?= $row['mail']; ?> </ a >
3939 </ td >
4040 < td class ="tablerow2 " align ="center "> </ td >
4141 < td class ="tablerow2 " align ="center "> < ?= $row['last_online']; ?> </ td >
You can’t perform that action at this time.
0 commit comments