Da ich mehrer Mods in meinem Forum installiert habe, bin ich gerad dabei manuell die ganze Updates einzupflegen. Momentan wollte ich gerade von 2.0.16 auf 2.0.17 updaten.
Aber leider bekomme ich diesen Fehler direkt unter dem Header angezeigt und der Rest vom Forum wird nicht geladen:
Code: Alles auswählen
Parse error: parse error, unexpected ';' in /srv/www/htdocs/web9/html/includes/bbcode.php on line 637
Code: Alles auswählen
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
Code: Alles auswählen
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is",
Wo liegt der Fehler, habs jetzt schon mehrfach ausprobiert, aber es will einfach nicht
