fixed ban addition page

This commit is contained in:
Savetheinternet 2011-01-15 15:37:39 +11:00
parent c2727787ab
commit f47cccab01
2 changed files with 31 additions and 25 deletions

View file

@ -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>' .