assign('BBC_'.$key, true); } // edit field has different id // if ( // (isset($_GET['action']) AND $_GET['action'] == 'edit_comment') // OR (isset($page['body_id']) AND $page['body_id'] == 'theCommentsPage') // ) { // $template->assign('form_name', 'editComment'); // } else { // $template->assign('form_name', 'addComment'); // } $template->assign('form_name', 'addComment'); if (isset($pwg_loaded_plugins['SmiliesSupport'])) { $template->assign('BBC_smilies', true); } $template->assign('BBCODE_PATH', BBcode_PATH); $template->set_filename('bbcode_bar', dirname(__FILE__).'/template/bbcode_bar.tpl'); $template->parse('bbcode_bar', true); // smilies support >2.2.a ## must be parsed after bbcode_bar, because the javascript must be after bbc's one if (isset($pwg_loaded_plugins['SmiliesSupport']) AND version_compare($pwg_loaded_plugins['SmiliesSupport']['version'], '2.2.a') != -1) { set_smiliessupport(); } } //Check tags and eventually close malformed tags, return BBCoded String function CheckTags($str) { //storage stack $tags = array(); for ($pos = 0; $pos