"; $smilies = explode(",", $config['smilies']); foreach($smilies as $smile) { $i++; $smile = trim($smile); $output .= "\"$smile\""; if ($i%3 == 0) $output .= ""; } $output .= ""; if ($ajax_post_id) { $ajax_post_id = '_'.$ajax_post_id; $addform = "document.forum_post_form".$ajax_post_id; } else { $addform = "document.getElementById( 'forum-post-form' )"; } $startform = "post_text".$ajax_post_id; $add_id = false; if ($access_upload AND $forum_config['tools_upload'] OR $access_upload AND $forum_config['img_upload']) { $tag_upload = "
"; } if (!$upload_var['reply']){ $code = <<
{$tag_upload}
HTML; } else { $code = <<
{$tag_upload}
HTML; } if ( stristr( $_SERVER['REQUEST_URI'], "pages.php" ) ) { $script_code = @file_get_contents(SYSTEM_DIR."/ajax/bbcodes.js"); $script_code .= << HTML; } else { $script_code = << HTML; } $bb_code = <<