diff --git a/public/shoutbox.php b/public/shoutbox.php index e2fe7d6a..0701547f 100644 --- a/public/shoutbox.php +++ b/public/shoutbox.php @@ -96,18 +96,16 @@ else } $limit = ($CURUSER['sbnum'] ? $CURUSER['sbnum'] : 70); -if ($where == "helpbox") -{ -$sql = "SELECT * FROM shoutbox WHERE type='hb' ORDER BY date DESC LIMIT ".$limit; -} -elseif ($CURUSER['hidehb'] == 'yes' || $showhelpbox_main != 'yes'){ -$sql = "SELECT * FROM shoutbox WHERE type='sb' ORDER BY date DESC LIMIT ".$limit; -} -elseif ($CURUSER){ -$sql = "SELECT * FROM shoutbox ORDER BY date DESC LIMIT ".$limit; -} -else { -die("
".$lang_shoutbox['std_access_denied_note']."