From 1a378ee6b2aa63bc85966463b13f7ac5ae68138e Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 3 Apr 2011 18:20:55 +1000 Subject: Public ban messages --- inc/mod.php | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'inc/mod.php') diff --git a/inc/mod.php b/inc/mod.php index 77c3960c..274159ba 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -146,11 +146,12 @@ return $body; } - function form_newBan($ip=null, $reason='', $continue=false, $delete=false, $board=false) { + function form_newBan($ip=null, $reason='', $continue=false, $delete=false, $board=false, $allow_public = false) { + global $config, $mod; return '
New ban' . '
' . ($continue ? '' : '') . - ($delete ? '' : '') . + ($delete || $allow_public ? '' : '') . ($board ? '' : '') . '' . '' . @@ -167,6 +168,21 @@ htmlentities($reason) . '' . '' . + ($mod['type'] >= $config['mod']['public_ban'] && $allow_public ? + '' . + '' . + '' . + '' . + '' + : '') . '' . '' . '
' . + ' ' . + ' (public; attached to post)
' . -- cgit v1.3