|
7 | 7 | * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher |
8 | 8 | */ |
9 | 9 |
|
10 | | -use FeatherBB\Core\Url; |
11 | | - |
12 | 10 | // Make sure no one attempts to run this script "directly" |
13 | 11 | if (!isset($feather)) { |
14 | 12 | exit; |
15 | 13 | } |
| 14 | + |
| 15 | +$feather->hooks->fire('view.admin.bans.admin_bans.start'); |
16 | 16 | ?> |
17 | 17 |
|
18 | | - <div class="blockform"> |
19 | | - <h2><span><?php _e('New ban head') ?></span></h2> |
20 | | - <div class="box"> |
21 | | - <form id="bans" method="post" action="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-ent"><?= $feather->urlFor('addBan') ?>"> |
22 | | - <input type="hidden" name="<?= $csrf_key; ?>" value="<?= $csrf_token; ?>"> |
23 | | - <div class="inform"> |
24 | | - <fieldset> |
25 | | - <legend><?php _e('Add ban subhead') ?></legend> |
26 | | - <div class="infldset"> |
27 | | - <table class="aligntop"> |
28 | | - <tr> |
29 | | - <th scope="row"><?php _e('Username label') ?><div><input type="submit" name="add_ban" value="<?php _e('Add') ?>" tabindex="2" /></div></th> |
30 | | - <td> |
31 | | - <input type="text" name="new_ban_user" size="25" maxlength="25" tabindex="1" /> |
32 | | - <span><?php _e('Username advanced help') ?></span> |
33 | | - </td> |
34 | | - </tr> |
35 | | - </table> |
36 | | - </div> |
37 | | - </fieldset> |
38 | | - </div> |
39 | | - </form> |
40 | | - </div> |
| 18 | + <div class="blockform"> |
| 19 | + <h2><span><?php _e('New ban head') ?></span></h2> |
| 20 | + <div class="box"> |
| 21 | + <form id="bans" method="post" action="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-ent"><?= $feather->urlFor('addBan') ?>"> |
| 22 | + <input type="hidden" name="<?= $csrf_key; ?>" value="<?= $csrf_token; ?>"> |
| 23 | + <div class="inform"> |
| 24 | + <fieldset> |
| 25 | + <legend><?php _e('Add ban subhead') ?></legend> |
| 26 | + <div class="infldset"> |
| 27 | + <table class="aligntop"> |
| 28 | + <tr> |
| 29 | + <th scope="row"><?php _e('Username label') ?><div><input type="submit" name="add_ban" value="<?php _e('Add') ?>" tabindex="2" /></div></th> |
| 30 | + <td> |
| 31 | + <input type="text" name="new_ban_user" size="25" maxlength="25" tabindex="1" /> |
| 32 | + <span><?php _e('Username advanced help') ?></span> |
| 33 | + </td> |
| 34 | + </tr> |
| 35 | + </table> |
| 36 | + </div> |
| 37 | + </fieldset> |
| 38 | + </div> |
| 39 | + </form> |
| 40 | + </div> |
41 | 41 |
|
42 | | - <h2 class="block2"><span><?php _e('Ban search head') ?></span></h2> |
43 | | - <div class="box"> |
44 | | - <form id="find_bans" method="get" action="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-ent"><?= $feather->urlFor('addBan') ?>"> |
45 | | - <input type="hidden" name="<?= $csrf_key; ?>" value="<?= $csrf_token; ?>"> |
46 | | - <p class="submittop"><input type="submit" name="find_ban" value="<?php _e('Submit search') ?>" tabindex="3" /></p> |
47 | | - <div class="inform"> |
48 | | - <fieldset> |
49 | | - <legend><?php _e('Ban search subhead') ?></legend> |
50 | | - <div class="infldset"> |
51 | | - <p><?php _e('Ban search info') ?></p> |
52 | | - <table class="aligntop"> |
53 | | - <tr> |
54 | | - <th scope="row"><?php _e('Username label') ?></th> |
55 | | - <td><input type="text" name="username" size="30" maxlength="25" tabindex="4" /></td> |
56 | | - </tr> |
57 | | - <tr> |
58 | | - <th scope="row"><?php _e('IP label') ?></th> |
59 | | - <td><input type="text" name="ip" size="30" maxlength="255" tabindex="5" /></td> |
60 | | - </tr> |
61 | | - <tr> |
62 | | - <th scope="row"><?php _e('E-mail label') ?></th> |
63 | | - <td><input type="text" name="email" size="30" maxlength="80" tabindex="6" /></td> |
64 | | - </tr> |
65 | | - <tr> |
66 | | - <th scope="row"><?php _e('Message label') ?></th> |
67 | | - <td><input type="text" name="message" size="30" maxlength="255" tabindex="7" /></td> |
68 | | - </tr> |
69 | | - <tr> |
70 | | - <th scope="row"><?php _e('Expire after label') ?></th> |
71 | | - <td><input type="text" name="expire_after" size="10" maxlength="10" tabindex="8" /> |
72 | | - <span><?php _e('Date help') ?></span></td> |
73 | | - </tr> |
74 | | - <tr> |
75 | | - <th scope="row"><?php _e('Expire before label') ?></th> |
76 | | - <td><input type="text" name="expire_before" size="10" maxlength="10" tabindex="9" /> |
77 | | - <span><?php _e('Date help') ?></span></td> |
78 | | - </tr> |
79 | | - <tr> |
80 | | - <th scope="row"><?php _e('Order by label') ?></th> |
81 | | - <td> |
82 | | - <select name="order_by" tabindex="10"> |
83 | | - <option value="username" selected="selected"><?php _e('Order by username') ?></option> |
84 | | - <option value="ip"><?php _e('Order by ip') ?></option> |
85 | | - <option value="email"><?php _e('Order by e-mail') ?></option> |
86 | | - <option value="expire"><?php _e('Order by expire') ?></option> |
87 | | - </select> |
| 42 | + <h2 class="block2"><span><?php _e('Ban search head') ?></span></h2> |
| 43 | + <div class="box"> |
| 44 | + <form id="find_bans" method="get" action="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-ent"><?= $feather->urlFor('addBan') ?>"> |
| 45 | + <input type="hidden" name="<?= $csrf_key; ?>" value="<?= $csrf_token; ?>"> |
| 46 | + <p class="submittop"><input type="submit" name="find_ban" value="<?php _e('Submit search') ?>" tabindex="3" /></p> |
| 47 | + <div class="inform"> |
| 48 | + <fieldset> |
| 49 | + <legend><?php _e('Ban search subhead') ?></legend> |
| 50 | + <div class="infldset"> |
| 51 | + <p><?php _e('Ban search info') ?></p> |
| 52 | + <table class="aligntop"> |
| 53 | + <tr> |
| 54 | + <th scope="row"><?php _e('Username label') ?></th> |
| 55 | + <td><input type="text" name="username" size="30" maxlength="25" tabindex="4" /></td> |
| 56 | + </tr> |
| 57 | + <tr> |
| 58 | + <th scope="row"><?php _e('IP label') ?></th> |
| 59 | + <td><input type="text" name="ip" size="30" maxlength="255" tabindex="5" /></td> |
| 60 | + </tr> |
| 61 | + <tr> |
| 62 | + <th scope="row"><?php _e('E-mail label') ?></th> |
| 63 | + <td><input type="text" name="email" size="30" maxlength="80" tabindex="6" /></td> |
| 64 | + </tr> |
| 65 | + <tr> |
| 66 | + <th scope="row"><?php _e('Message label') ?></th> |
| 67 | + <td><input type="text" name="message" size="30" maxlength="255" tabindex="7" /></td> |
| 68 | + </tr> |
| 69 | + <tr> |
| 70 | + <th scope="row"><?php _e('Expire after label') ?></th> |
| 71 | + <td><input type="text" name="expire_after" size="10" maxlength="10" tabindex="8" /> |
| 72 | + <span><?php _e('Date help') ?></span></td> |
| 73 | + </tr> |
| 74 | + <tr> |
| 75 | + <th scope="row"><?php _e('Expire before label') ?></th> |
| 76 | + <td><input type="text" name="expire_before" size="10" maxlength="10" tabindex="9" /> |
| 77 | + <span><?php _e('Date help') ?></span></td> |
| 78 | + </tr> |
| 79 | + <tr> |
| 80 | + <th scope="row"><?php _e('Order by label') ?></th> |
| 81 | + <td> |
| 82 | + <select name="order_by" tabindex="10"> |
| 83 | + <option value="username" selected="selected"><?php _e('Order by username') ?></option> |
| 84 | + <option value="ip"><?php _e('Order by ip') ?></option> |
| 85 | + <option value="email"><?php _e('Order by e-mail') ?></option> |
| 86 | + <option value="expire"><?php _e('Order by expire') ?></option> |
| 87 | + </select> |
88 | 88 |     |
89 | 89 | <select name="direction" tabindex="11"> |
90 | | - <option value="ASC" selected="selected"><?php _e('Ascending') ?></option> |
91 | | - <option value="DESC"><?php _e('Descending') ?></option> |
92 | | - </select> |
93 | | - </td> |
94 | | - </tr> |
95 | | - </table> |
96 | | - </div> |
97 | | - </fieldset> |
98 | | - </div> |
99 | | - <p class="submitend"><input type="submit" name="find_ban" value="<?php _e('Submit search') ?>" tabindex="12" /></p> |
100 | | - </form> |
101 | | - </div> |
102 | | - </div> |
103 | | - <div class="clearer"></div> |
| 90 | + <option value="ASC" selected="selected"><?php _e('Ascending') ?></option> |
| 91 | + <option value="DESC"><?php _e('Descending') ?></option> |
| 92 | + </select> |
| 93 | + </td> |
| 94 | + </tr> |
| 95 | + </table> |
| 96 | + </div> |
| 97 | + </fieldset> |
| 98 | + </div> |
| 99 | + <p class="submitend"><input type="submit" name="find_ban" value="<?php _e('Submit search') ?>" tabindex="12" /></p> |
| 100 | + </form> |
| 101 | + </div> |
| 102 | + </div> |
| 103 | + <div class="clearer"></div> |
104 | 104 | </div> |
| 105 | + |
| 106 | +<?php |
| 107 | +$feather->hooks->fire('view.admin.bans.admin_bans.end'); |
0 commit comments