$app->redirect(htmlspecialchars_decode(JRoute::_(KUNENA_LIVEURLREL . '&func=listcat' . $strcatid))); } } switch ($func) { case 'view': $fbMenu = KUNENA_get_menu(NULL, $fbConfig, $fbIcons, $my_id, 3, $view, $catid, $id, $thread); break; case 'showcat': //get number of pending messages $kunena_db->setQuery("SELECT COUNT(*) FROM #__fb_messages WHERE catid='{$catid}' AND hold='1'"); $numPending = $kunena_db->loadResult(); check_dberror('Unable load pending messages.'); $fbMenu = KUNENA_get_menu(NULL, $fbConfig, $fbIcons, $my_id, 2, $view, $catid, $id, $thread, $is_Moderator, $numPending); break; default: $fbMenu = KUNENA_get_menu(NULL, $fbConfig, $fbIcons, $my_id, 1, $view); break; } // display header $KunenaTemplate->addVar('kunena-header', 'menu', $fbMenu); $KunenaTemplate->addVar('kunena-header', 'board_title', stripslashes($board_title)); if (file_exists(KUNENA_JTEMPLATEPATH . '/css/kunena.forum.css')) { $KunenaTemplate->addVar('kunena-header', 'css_path', KUNENA_JTEMPLATEURL . '/template/' . $fbConfig->template . '/kunena.forum.css'); } else { $KunenaTemplate->addVar('kunena-header', 'css_path', KUNENA_DIRECTURL . '/template/' . $fbConfig->template . '/kunena.forum.css'); } $KunenaTemplate->addVar('kunena-header', 'offline_message', stripslashes($fbConfig->board_offline) ? '<span id="fbOffline">' . _FORUM_IS_OFFLINE . '</span>' : ''); $KunenaTemplate->addVar('kunena-header', 'searchbox', getSearchBox()); $KunenaTemplate->addVar('kunena-header', 'pb_imgswitchurl', KUNENA_URLIMAGESPATH . "shrink.gif"); $KunenaTemplate->displayParsedTemplate('kunena-header'); //BEGIN: PROFILEBOX
$func = 'listcat'; } } switch ($func) { case 'view': $fbMenu = KUNENA_get_menu(KUNENA_CB_ITEMID, $fbConfig, $fbIcons, $my_id, 3, $view, $catid, $id, $thread); break; case 'showcat': //get number of pending messages $database->setQuery("SELECT count(*) FROM #__fb_messages WHERE catid={$catid} and hold=1"); $numPending = $database->loadResult(); check_dberror('Unable load pending messages.'); $fbMenu = KUNENA_get_menu(KUNENA_CB_ITEMID, $fbConfig, $fbIcons, $my_id, 2, $view, $catid, $id, $thread, $is_Moderator, $numPending); break; default: $fbMenu = KUNENA_get_menu(KUNENA_CB_ITEMID, $fbConfig, $fbIcons, $my_id, 1); break; } // display header $obj_KUNENA_tmpl->readTemplatesFromFile("header.html"); $obj_KUNENA_tmpl->addVar('jb-header', 'menu', $fbMenu); $obj_KUNENA_tmpl->addVar('jb-header', 'board_title', stripslashes($board_title)); if (file_exists(KUNENA_JTEMPLATEPATH . '/css/kunena.forum.css')) { $obj_KUNENA_tmpl->addVar('jb-header', 'css_path', KUNENA_JTEMPLATEURL . '/template/' . $fbConfig->template . '/kunena.forum.css'); } else { $obj_KUNENA_tmpl->addVar('jb-header', 'css_path', KUNENA_DIRECTURL . '/template/' . $fbConfig->template . '/kunena.forum.css'); } $obj_KUNENA_tmpl->addVar('jb-header', 'offline_message', stripslashes($fbConfig->board_offline) ? '<span id="fbOffline">' . _FORUM_IS_OFFLINE . '</span>' : ''); $obj_KUNENA_tmpl->addVar('jb-header', 'searchbox', getSearchBox()); $obj_KUNENA_tmpl->addVar('jb-header', 'pb_imgswitchurl', KUNENA_URLIMAGESPATH . "shrink.gif"); $obj_KUNENA_tmpl->displayParsedTemplate('jb-header');