Skip to content

Commit 9bda681

Browse files
committed
some last fixes
1 parent 9dc09f8 commit 9bda681

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/includes/routes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ function route_test() {
6060
global $httpvars;
6161
global $db;
6262

63+
return false;
64+
6365
b4k::set_header("content-type", "text/plain");
6466

6567
switch($httpvars["get"]["act"]) {

app/includes/routes_controlpanel_mod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function route_controlpanel_mod_addban() {
373373

374374
$post = null;
375375

376-
$ip = $httpvars["get"]["ip"];
376+
$ip = $httpvars["get_n_post"]["ip"];
377377
$postinfo = $httpvars["get"]["post"];
378378

379379
$ip = (strlen($ip) ? $ip : null);

app/templates/controlpanel_mod_addban.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<tr>
2323
<td>IP/Host</td>
24-
<td><input type="text" {% if ip %}value="{{ ip }}" readonly{% else %}name="host"{% endif %}></td>
24+
<td><input type="text" {% if ip %}value="{{ ip }}" readonly{% else %}name="ip"{% endif %}></td>
2525
</tr>
2626

2727
<tr>

0 commit comments

Comments
 (0)