1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
|
Finde
<?php
Füge darunter ein
var $search_replace = array();
Suche
$searcharray[]="/\[list=(['\"]?)([^\"']*)\\1](.*)\[\/list((=\\1[^\"']*\\1])|(\]))/esiU";
$replacearray[]="formatlist('\\3', '\\2')";
ersetze mit
$this->search_replace['/\[list=(['\"]?)([^\"']*)\\1](.*)\[\/list((=\\1[^\"']*\\1])|(\]))/siU']=function($matches) {return $this->formatlist($matches[3],$matches[2]);};
Suche
$searcharray[]="/\[list](.*)\[\/list\]/esiU";
$replacearray[]="formatlist('\\1')";
ersetze mit
$this->search_replace['/\[list](.*)\[\/list\]/siU']=function($matches) {return $this->formatlist($matches[1]);};
suche
$searcharray[]="/\[url=(['\"]?)([^\"']*)\\1](.*)\[\/url\]/esiU";
$replacearray[]="formaturl('\\2','\\3')";
ersetze mit
$this->search_replace['/\[url=(['\"]?)([^\"']*)\\1](.*)\[\/url\]/siU']=function($matches) {return $this->formaturl($matches[2],$matches[3]);};
suche
$searcharray[]="/\[url]([^\"]*)\[\/url\]/esiU";
$replacearray[]="formaturl('\\1')";
ersetze mit
$this->search_replace['/\[url]([^\"]*)\[\/url\]/siU']=function($matches) {return $this->formaturl($matches[1]);};
suche
$searcharray[]="/\[code](.*)\[\/code\]/esiU";
$replacearray[]="formatcodetag('\\1')";
ersetze mit
$this->search_replace['/\[code](.*)\[\/code\]/siU']=function($matches) {return $this->formatcodetag($matches[1]);};
suche
$searcharray[]="/\[php](.*)\[\/php\]/esiU";
$replacearray[]="phphighlite('\\1')";
ersetze mit
$this->search_replace['/\[php](.*)\[\/php\]/siU']=function($matches) {return $this->phphighlite($matches[1]);};
suche
$out = preg_replace($searcharray, $replacearray, $out);
Füge darüber ein
$out = preg_replace_callback_array($this->search_replace, $out);
|