Lines Matching refs:TEXT
36 global $TEXT, $conf;
38 if (!$TEXT) return;
41 $TEXT = $_REQUEST['fck_wikitext'];
43 if(!preg_match('/^\s+(\-|\*)/',$TEXT)) {
44 $TEXT = trim($TEXT);
48 $TEXT = preg_replace_callback(
55 },$TEXT);
57 if(strpos($TEXT,'data:image') !== false) {
58 $TEXT = preg_replace_callback(
107 $TEXT
110 $TEXT = str_replace('%%', "FCKGPERCENTESC", $TEXT);
113 $TEXT = preg_replace_callback('/^(.*?)(\[\[.*?\]\])*(.*?)$/ms',
120 $TEXT
124 $TEXT = rawurldecode($TEXT);
125 $TEXT = preg_replace('/NOWIKI_%_NOWIKI_%_/', '%%',$TEXT);
126 $TEXT = preg_replace('/URLENC_PERCENT/', '%',$TEXT);
127 $TEXT = preg_replace('/NOWIKI_(.)_/', '$1',$TEXT);
130 $TEXT = preg_replace_callback(
135 $TEXT
138 $TEXT = preg_replace('/^\s*[\r\n]$/ms',"__n__", $TEXT);
139 $TEXT = preg_replace('/oIWIKIo|cIWIKIc/ms',"", $TEXT);
140 $TEXT = preg_replace('/\r/ms',"", $TEXT);
141 $TEXT = preg_replace('/^\s+(?=\^|\|)/ms',"", $TEXT);
142 $TEXT = preg_replace('/__n__/',"\n", $TEXT);
143 $TEXT = str_replace("__code_NL__","\n", $TEXT);
144 $TEXT = str_replace("FCKGPERCENTESC", '%%', $TEXT);
146 $TEXT = str_replace('~~COMPLEX_TABLES~~','',$TEXT);
148 $TEXT .= "\n";
152 $pos = strpos($TEXT, 'MULTI_PLUGIN_OPEN');
154 $TEXT = preg_replace_callback(
159 $TEXT
162 $TEXT = preg_replace_callback(
167 $TEXT
169 $TEXT = str_replace("~~MULTI_PLUGIN_OPEN~~","~~MULTI_PLUGIN_OPEN~~\n",$TEXT);
172 if(strpos($TEXT,'L_PARgr') !== false) {
173 $TEXT = preg_replace_callback(
178 $TEXT
180 $TEXT = str_replace('L_PARgr', '(',$TEXT);
181 $TEXT = str_replace('R_PARgr', ')',$TEXT);
186 $TEXT = preg_replace_callback("#<code\s+(\w+)>.*?(\[enable_line_numbers.*?\])\s*\*\/#ms",
189 }, $TEXT
194 …$TEXT = preg_replace("/\{\{http:\/\/.*?fetch.php\?media=(.*?linkonly.*?)\}\}/",'{{' . "$1" .'}}',$…
195 $TEXT = str_replace('< nowiki >', '%%<nowiki>%%',$TEXT);
198 $TEXT = preg_replace_callback(
249 $TEXT
253 $TEXT = preg_replace_callback(
264 $TEXT
271 $TEXT = preg_replace_callback(
277 $TEXT
284 $TEXT = preg_replace_callback(
291 $TEXT
294 $TEXT = preg_replace("/<font.*?>\s+<\/font>/","", $TEXT);
295 $TEXT = preg_replace("/<font/ms"," <font", $TEXT); // add space
296 $TEXT = preg_replace("/<\/font>/ms","</font> ", $TEXT);
297 $TEXT = preg_replace('/\s{2,}<font/ms',"\n <font",$TEXT); // remove duplicate spaces
298 $TEXT = preg_replace('/font>{2,}/ms',' font> ',$TEXT);
300 $TEXT = preg_replace('/__QUOTE__/ms',">",$TEXT);
301 $TEXT = preg_replace('/[\t\x20]+$/ms',"",$TEXT);
302 $TEXT = preg_replace('/\n{4,}/ms',"\n\n",$TEXT);
303 $TEXT = preg_replace('/\n{3,}/ms',"\n\n",$TEXT);
306 $TEXT = preg_replace_callback(
311 $TEXT
317 $TEXT = preg_replace_callback(
328 $TEXT
331 $TEXT = preg_replace_callback(
339 $TEXT
346 $TEXT = preg_replace_callback(
350 },$TEXT
353 $TEXT = preg_replace_callback(
362 },$TEXT
364 $TEXT = str_replace('CBL__Bksl','\\',$TEXT);
365 $TEXT = preg_replace("/<code\s+file/ms",'<code ',$TEXT);
367 $TEXT = preg_replace('#((\\\\){2}\s*)$#', "",$TEXT);
401 global $TEXT;
406 $TEXT = preg_replace_callback(
411 $TEXT