|
55 | 55 | <!DOCTYPE html> |
56 | 56 | <html> |
57 | 57 | <head> |
58 | | - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 58 | + <meta meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8"> |
| 59 | + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> |
59 | 60 | <link rel="stylesheet" href="style.css" type="text/css"> |
60 | 61 | <title>Fail2Ban Webinterface</title> |
61 | | - <h1>Fail2Ban Webinterface</h1> |
62 | | - <form name="reload" method="POST"> |
63 | | - <button class="button" type="submit" name="submit_reload"><?=$refresh?> |
64 | | - <img src="images/reload.svg" alt="add"> |
65 | | - </button> |
66 | | - </form> |
67 | | - </head> |
68 | | - <body> |
| 62 | + <div class="header" id="myHeader"> |
| 63 | + <h1>Fail2Ban Webinterface</h1> |
| 64 | + <form name="reload" method="POST"> |
| 65 | + <button class="button" type="submit" name="submit_reload"><?=$refresh?> |
| 66 | + <img src="images/reload.svg" alt="add"> |
| 67 | + </button> |
| 68 | + </form> |
| 69 | + </div> |
69 | 70 | <?php |
70 | 71 | $erg2=@exec('sudo /usr/bin/fail2ban-client status'); |
71 | 72 | if($erg2=='') { |
72 | 73 | echo '<h1><p class="msg_er">'.$serviceerror.'</p></h1>'; |
73 | 74 | exit; |
74 | 75 | } |
75 | 76 | ?> |
| 77 | + </head> |
| 78 | + <body> |
76 | 79 | <h2><?=$bannedclientsperJail?></h2> |
77 | 80 | <?php |
78 | 81 | $usedns=$_GET['usedns']; |
|
138 | 141 | foreach($clients as $client) { |
139 | 142 | $client_ip=explode(" (", $client)[0]; |
140 | 143 | echo ' |
141 | | - <tr> |
| 144 | + <tr class="highlight"> |
142 | 145 | <form name="unban" method="POST"> |
143 | 146 | <input type="hidden" name="unban_jail" value="'.$jail.'"> |
144 | 147 | <input type="hidden" name="unban_ip" value="'.$client_ip.'"> |
|
153 | 156 | '; |
154 | 157 | } |
155 | 158 | } else { |
156 | | - echo '<tr><td class="msg_gr" colspan="2">'.$nobannedclients.'</td></tr>'; |
| 159 | + echo '<tr class="highlight"><td class="msg_gr" colspan="2">'.$nobannedclients.'</td></tr>'; |
157 | 160 | } |
158 | 161 | } |
159 | 162 | } |
|
168 | 171 | <th>IP</th> |
169 | 172 | <th><?=$banip?></th> |
170 | 173 | </tr> |
171 | | - <tr> |
| 174 | + <tr class="highlight"> |
172 | 175 | <td> |
173 | 176 | <select name="ban_jail"><option value="">- <?=$select?> -</option> |
174 | 177 | <?php |
|
0 commit comments