![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 141 Pomógł: 17 Dołączył: 2.04.2008 Skąd: z Zabrza Ostrzeżenie: (0%) ![]() ![]() |
Mam taką funkcje:
Kod function parseTagsRecursive($string) { $regex = '#\[quote]((?:[^[]|\[(?!/?quote])|(?R))+)\[/quote]#'; if(is_array($string)) { $input = "<div class=\"quote\">\n"; $input .= " <div class=\"top\"></div>\n"; $input .= " <div class=\"mid\">"; $input .= $string[1]; $input .= " </div>"; $input .= "</div>"; } return preg_replace_callback($regex, 'parseTagsRecursive', $string); } Wywołuje ją tak:
W momencie kiedy $string zawiera [quote] Apache przestaje działać ![]() Serwer to XAMPP na Windows Vista, strona, a w tym przypadku forum budowane jest na cakePHP. Jakieś pomysły? PS: Parser na forum mógłby nie edytować BBCode wewnątrz Ten post edytował lukaszgolder 19.01.2010, 17:10:16 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 06:46 |