$topicid = isset($_POST['topicid']) ? intval($_POST['topicid']) : $topicid; /* * Data loading section */ $story = new Bulletin( $mydirname , $storyid ); if ( $storyid ){ $topicid = $story->getVar('topicid'); if( empty($topicid) ){ die(_MD_NO_TOPICS); exit; } } // In case of No Topic $BTopic = new BulletinTopic( $mydirname, $topicid ); $topicid = $BTopic->getTopicIdByPermissionCheck($topicid); if( $topicid ){ $story->setVar('topicid', $topicid); } if( !$BTopic->topicExists() ){ die(_MD_NO_TOPICS); exit; } $xoopsTpl->assign('topic_title', $BTopic->topic_title()); // Chanege the WSYWIG editor if( ! empty( $_REQUEST['using_fck'] ) ) { $_POST['text'] = $_POST['text_fck'] ; }