ed2k von safeurlhack ausschliessen

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
aquariumfan
Mitglied
Beiträge: 17
Registriert: 30.09.2006 03:34

ed2k von safeurlhack ausschliessen

Beitrag von aquariumfan »

Einige User auf dem Board bei mir haben wohl Probleme das einige ed2k Links unbrauchbar werden wenn der safeurl Hack angewandt wird. Kann ich die irgendwie davon ausschliessen?


Gruss
aquariumfan
Mitglied
Beiträge: 17
Registriert: 30.09.2006 03:34

Beitrag von aquariumfan »

Code: Alles auswählen

#-----[ OPEN ]------------------------------------------ 
# 
includes/bbcode.php

# 
#-----[ FIND ]------------------------------------------ 
# 

	// We do URLs in several different ways..
	 $bbcode_tpl['url1'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']);
	 $bbcode_tpl['url1'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url1']);

	 $bbcode_tpl['url2'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']);
	 $bbcode_tpl['url2'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url2']);

	 $bbcode_tpl['url3'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']);
	 $bbcode_tpl['url3'] = str_replace('{DESCRIPTION}', '\\2', $bbcode_tpl['url3']);

	 $bbcode_tpl['url4'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']);
	 $bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\3', $bbcode_tpl['url4']);

# 
#-----[ REPLACE ]------------------------------------------ 
# 

	// We do URLs in several different ways..
	 $bbcode_tpl['url1'] = str_replace('{URL}', 'http://en.safeurl.de/?\\1', $bbcode_tpl['url']);
	 $bbcode_tpl['url1'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url1']);

	 $bbcode_tpl['url2'] = str_replace('{URL}', 'http://en.safeurl.de/?\\1', $bbcode_tpl['url']);
	 $bbcode_tpl['url2'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url2']);

	 $bbcode_tpl['url3'] = str_replace('{URL}', 'http://en.safeurl.de/?\\1', $bbcode_tpl['url']);
	 $bbcode_tpl['url3'] = str_replace('{DESCRIPTION}', '\\2', $bbcode_tpl['url3']);

	 $bbcode_tpl['url4'] = str_replace('{URL}', 'http://en.safeurl.de/?\\1', $bbcode_tpl['url']);
	 $bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\3', $bbcode_tpl['url4']);

# 
#-----[ FIND ]------------------------------------------ 
#

	// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
	// xxxx can only be alpha characters.
	// yyyy is anything up to the first space, newline, comma, double quote or <
	$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=\"\\2\" target=\"_blank\">\\2</a>", $ret);

# 
#-----[ REPLACE ]------------------------------------------ 
#

	// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
	// xxxx can only be alpha characters.
	// yyyy is anything up to the first space, newline, comma, double quote or <
	$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"http://en.safeurl.de/?\\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://en.safeurl.de/?\\2\" target=\"_blank\">\\2</a>", $ret);
	
# 
#-----[ SAVE & CLOSE ALL FILES ]-------------------------- 
# 
#End

also das habe ich gemacht, kann mir jetzt jemand helfen? Geht das überhaupt?
Antworten

Zurück zu „phpBB 2.0: Mod Support“