Lines Matching refs:TEXT
29 global $TEXT, $conf;
30 if (!$TEXT) return;
33 $TEXT = $_REQUEST['fck_wikitext'];
35 if(!preg_match('/^\s+(\-|\*)/',$TEXT)) {
36 $TEXT = trim($TEXT);
40 $TEXT = preg_replace_callback(
48 ),$TEXT);
50 if(strpos($TEXT,'data:image') !== false) {
51 $TEXT = preg_replace_callback(
89 $TEXT
92 $TEXT = str_replace('%%', "FCKGPERCENTESC", $TEXT);
95 $TEXT = preg_replace_callback('/^(.*?)(\[\[.*?\]\])*(.*?)$/ms',
103 $TEXT
107 $TEXT = rawurldecode($TEXT);
108 $TEXT = preg_replace('/NOWIKI_%_NOWIKI_%_/', '%%',$TEXT);
109 $TEXT = preg_replace('/URLENC_PERCENT/', '%',$TEXT);
110 $TEXT = preg_replace('/NOWIKI_(.)_/', '$1',$TEXT);
113 $TEXT = preg_replace_callback(
119 $TEXT
122 $TEXT = preg_replace('/^\s*[\r\n]$/ms',"__n__", $TEXT);
123 $TEXT = preg_replace('/oIWIKIo|cIWIKIc/ms',"", $TEXT);
124 $TEXT = preg_replace('/\r/ms',"", $TEXT);
125 $TEXT = preg_replace('/^\s+(?=\^|\|)/ms',"", $TEXT);
126 $TEXT = preg_replace('/__n__/',"\n", $TEXT);
127 $TEXT = str_replace("__code_NL__","\n", $TEXT);
128 $TEXT = str_replace("FCKGPERCENTESC", '%%', $TEXT);
130 $TEXT = str_replace('~~COMPLEX_TABLES~~','',$TEXT);
132 $TEXT .= "\n";
136 $pos = strpos($TEXT, 'MULTI_PLUGIN_OPEN');
138 $TEXT = preg_replace_callback(
144 $TEXT
147 $TEXT = preg_replace_callback(
153 $TEXT
155 $TEXT = str_replace("~~MULTI_PLUGIN_OPEN~~","~~MULTI_PLUGIN_OPEN~~\n",$TEXT);
158 if(strpos($TEXT,'L_PARgr') !== false) {
159 $TEXT = preg_replace_callback(
165 $TEXT
167 $TEXT = str_replace('L_PARgr', '(',$TEXT);
168 $TEXT = str_replace('R_PARgr', ')',$TEXT);
173 …$TEXT = preg_replace("/\{\{http:\/\/.*?fetch.php\?media=(.*?linkonly.*?)\}\}/",'{{' . "$1" .'}}',$…
174 $TEXT = str_replace('< nowiki >', '%%<nowiki>%%',$TEXT);
177 $TEXT = preg_replace_callback(
212 $TEXT
216 $TEXT = preg_replace_callback(
227 $TEXT
234 $TEXT = preg_replace_callback(
241 $TEXT
248 $TEXT = preg_replace_callback(
256 $TEXT
258 $TEXT = preg_replace('/__QUOTE__/ms',">",$TEXT);
259 $TEXT = preg_replace('/[\t\x20]+$/ms',"",$TEXT);
260 $TEXT = preg_replace('/\n{4,}/ms',"\n\n",$TEXT);
261 $TEXT = preg_replace('/\n{3,}/ms',"\n\n",$TEXT);
264 $TEXT = preg_replace_callback(
269 $TEXT
275 $TEXT = preg_replace_callback(
286 $TEXT
291 $TEXT = preg_replace_callback(
298 $TEXT
307 global $TEXT;
312 $TEXT = preg_replace_callback(
318 $TEXT