if (!defined('IN_TBDEV_ADMIN')) { print "<h1>Incorrect access</h1>You cannot access this file directly."; exit; } require_once "include/html_functions.php"; require_once "include/user_functions.php"; $lang = array_merge($lang, load_language('ad_forummanage')); if (get_user_class() < UC_MODERATOR || $CURUSER['id'] !== '1') { //sysop id check stderr("{$lang['stderr_error']}", "{$lang['text_permission']}"); } $mode = isset($_GET['mode']) ? $_GET['mode'] : ''; //if not goto default! switch ($mode) { case 'edit': editForum(); break; case 'takeedit': takeeditForum(); break; case 'delete': deleteForum(); break; case 'takedelete': takedeleteForum(); break; case 'add': addForum(); break; case 'takeadd': takeaddForum();
$no_html = intval(JRequest::getVar('no_html', 0)); $id = intval(JRequest::getVar('id', 0)); $pt_stop = "0"; if (!$no_html) { html_Kunena::showFbHeader(); } $option = JRequest::getCmd('option'); switch ($task) { case "new": editForum(0, $option); break; case "edit": editForum($cid0, $option); break; case "edit2": editForum($uid[0], $option); break; case "save": saveForum($option); break; case "cancel": cancelForum($option); break; case 'cat_lock_0': setForumVariable($cid, 'locked', 1); break; case 'cat_lock_1': setForumVariable($cid, 'locked', 0); break; case 'cat_moderate_0': setForumVariable($cid, 'moderated', 1);
/** * newForum() * * @param integer $catid * @return */ function newForum($parent_forum = null) { editForum(null, $parent_forum); }