$cid = JRequest::getVar('cid', array()); if (!is_array($cid)) { $cid = array(); } $cid0 = isset($cid[0]) ? $cid[0] : 0; $uid = JRequest::getVar('uid', array(0)); if (!is_array($uid)) { $uid = array($uid); } $order = JRequest::getVar('order', ''); // initialise some request directives (specifically for J1.5 compatibility) $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;