diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-15 15:37:39 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-15 15:37:39 +1100 |
| commit | f47cccab019f3e7882a188c7d09e3070eb8f82ce (patch) | |
| tree | b197c10403fb290aa688fa5d0c3fa190c0049fba /inc/mod.php | |
| parent | c2727787aba5cf837af747cfb8b5c61c750c1581 (diff) | |
fixed ban addition page
Diffstat (limited to 'inc/mod.php')
| -rw-r--r-- | inc/mod.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/mod.php b/inc/mod.php index 23ec43af..a325d589 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -111,10 +111,12 @@ return $body; } - function form_newBan($ip=null, $reason='', $continue=false) { + function form_newBan($ip=null, $reason='', $continue=false, $delete=false, $board=false) { return '<fieldset><legend>New ban</legend>' . - '<form action="" method="post">' . + '<form action="?/ban" method="post">' . ($continue ? '<input type="hidden" name="continue" value="' . htmlentities($continue) . '" />' : '') . + ($delete ? '<input type="hidden" name="delete" value="' . htmlentities($delete) . '" />' : '') . + ($board ? '<input type="hidden" name="board" value="' . htmlentities($board) . '" />' : '') . '<table>' . '<tr>' . '<th><label for="ip">IP</label></th>' . |
