function actionBrowse($sMode = '', $sValue = '', $sValue2 = '', $sValue3 = '')
{
if ('user' == $sMode || 'my' == $sMode) {
$aProfile = getProfileInfo($this->_iProfileId);
if (0 === strcasecmp($sValue, $aProfile['NickName']) || 'my' == $sMode) {
$this->_browseMy($aProfile);
return;
}
}
if (!$this->isAllowedBrowse()) {
$this->_oTemplate->displayAccessDenied();
return;
}
if ('tag' == $sMode || 'category' == $sMode) {
$sValue = uri2title($sValue);
}
bx_import('SearchResult', $this->_aModule);
$sClass = $this->_aModule['class_prefix'] . 'SearchResult';
$o = new $sClass(process_db_input($sMode, BX_TAGS_STRIP), process_db_input($sValue, BX_TAGS_STRIP), process_db_input($sValue2, BX_TAGS_STRIP), process_db_input($sValue3, BX_TAGS_STRIP));
if ($o->isError) {
$this->_oTemplate->displayPageNotFound();
return;
}
if (bx_get('rss')) {
echo $o->rss();
exit;
}
$this->_oTemplate->pageStart();
if ($s = $o->processing()) {
echo $s;
} else {
$this->_oTemplate->displayNoData();
return;
}
$this->_oTemplate->addCss(array('unit.css', 'main.css', 'twig.css'));
$this->_oTemplate->pageCode($o->aCurrent['title'], false, false);
}