EOF; $HTMLStylesFmt['wtf'] = ' #text { width: 100% !important; } #CONTAINERtext { width: 100% !important;} #CONTROLStext, #showWYSIWYGtext, .wzCtrl { padding: 0; border: 0;} #CONTROLStext button, #showWYSIWYGtext input, #CONTROLStext select { border: 1px outset buttonface; } #showWYSIWYGtext input { margin:1px;} '; } $EnableGUIButtons = 0; SDV($WTFAllowedTags, "

". "

". "




    1. "); $WTFKeepToken = "{$KeepToken}WTF{$KeepToken}"; Markup('WTF', ' '') $new['text'] = "
      {$new['text']}
      "; } if($EnablePost) { $new['text'] = strip_tags($new['text'], $WTFAllowedTags); $new['text'] = preg_replace("/(<\\/?\\w+)(( .*?)?)>/e", 'trim("$1 ".PQA(PSS(\'$3\'))).">"', $new['text']); // $new['text'] .= ''; } } function WTFMarkup($m) { $allHF = $m[0]; global $KeepToken; if(preg_match("/$KeepToken(\d+)X$KeepToken/", $allHF)) return $allHF; # already processed $all = preg_replace("/^.*?\\(:groupheader:\\)(.*?)\\(:groupfooter:\\).*$/s", '$1', $allHF); if( $all == $allHF) return $allHF; # some include or skin area $rx = "/<pre class=\\\\?['\"]pmwikimarkup\\\\?['\"]>(.*?)<\\/pre>/s"; preg_match_all($rx, $all, $match); // if((!@$match) || count($match[1])<1) return $allHF; $split = preg_split($rx, $all); // if(count($split)<2) return $allHF; // $cnt++; $ret = ''; foreach ($split as $k=>$v) { $ret .= Keep(str_replace( array('<', '>', '&nbsp;'), array('<', '>', ' '), $v), 'X'); if(isset($match[1][$k])) $ret.="\n{$match[1][$k]}"; } return str_replace($all, $ret, $allHF); }