\n\n\\2", $text); $text=bb_code_trick($text); $text = preg_replace_callback("/<(script|noscript|object|param|embed|noembed|style|pre|code|ul|ol).*?<\/\\1>\n?/s","bb_admin_post_anything_preserve", $text); $text = preg_replace_callback("/(<\/?(blockquote|bq|p|h.|del|ins|div|pre|li|tr|td)( [^>]*)?>)\n/s","bb_admin_post_anything_preserve", $text); // $text=bb_autop($text,1); $text=nl2br($text); $text = stripslashes(str_replace('', "\n", $text)); return $text; } function bb_admin_post_anything_preserve($text) {return str_replace("\n","",$text[0]);} function bb_admin_post_anything_edit() {bb_admin_post_anything_post(1);} function bb_admin_post_anything_post($edit=0) { if (!bb_current_user_can('administrate')) {return;} global $bb_post; $checked=""; $tags=bb_allowed_tags(); $tags['br']=true; $tags['p']=true; $tags = implode('|',array_keys($tags))."|\s|\/"; $style="margin:0.4em 0;height:1.4em; width:1.4em;".(strpos($_SERVER['HTTP_USER_AGENT'],'MSIE') ? 'font-size:1.4em;' : '')."clear:left; vertical-align:middle;"; if (!empty($edit) && !empty($bb_post->post_text) && preg_match("/<(?!($tags))/si", $bb_post->post_text)) {$checked="checked='checked'";} echo ""; } ?>