// Permissioning is handled in the class, where it should be... if (isset($_REQUEST["remove"])) { if ($gShout->expunge($_REQUEST["remove"])) { $feedback['success'] = tra("Message removed"); } else { $feedback['error'] = $gShout->mErrors['expunge']; } } elseif (isset($_REQUEST["shoutbox_admin"]) && $gBitUser->isAdmin()) { $gBitSystem->storeConfig('shoutbox_autolink', isset($_REQUEST["shoutbox_autolink"]) ? $_REQUEST["shoutbox_autolink"] : NULL, SHOUTBOX_PKG_NAME); $gBitSystem->storeConfig('shoutbox_email_notice', isset($_REQUEST["shoutbox_email_notice"]) ? 'y' : NULL, SHOUTBOX_PKG_NAME); $gBitSystem->storeConfig('shoutbox_smileys', isset($_REQUEST["shoutbox_smileys"]) ? 'y' : NULL, SHOUTBOX_PKG_NAME); // to be on the safe side, we will simply nuke the entire shoutbox cache $gShout->mCache->expungeCache(); } if (!empty($_REQUEST["save"]) && $gBitUser->hasPermission('p_shoutbox_post')) { if ($gShout->store($_REQUEST)) { $feedback['success'] = tra("Message saved"); } else { $feedback['error'] = $gShout->mErrors; } } if (!empty($_REQUEST["shout_id"])) { $edit = $gShout->getShout($_REQUEST["shout_id"]); $gBitSmarty->assign("shout_id", $_REQUEST["shout_id"]); } $listHash = $_REQUEST; $channels = $gShout->getList($listHash); $gBitSmarty->assign('channels', $channels); $gBitSmarty->assign('listInfo', $listHash['listInfo']); $gBitSmarty->assign('shout', $edit); $gBitSmarty->assign('feedback', $feedback);