################################################################################## ## ## MOD Title: derefer.me MOD ## MOD Author: N/A < info[at]derefer.me > (Martin Janecke) http://derefer.me/ ## MOD Description: ## This MOD derefers all user posted external hyperlinks. ## ## MOD Update: 1.2.0 -> 1.2.1 ## ## Update Level: Easy ## Update Time: 2 Minutes ## Files To Edit: ## includes/functions.php ## Included Files: N/A ## ################################################################################## ## Author Notes: ## ## This is a MOD Update from version 1.2.0 to 1.2.1. ## ## This MOD derefers all user posted external hyperlinks with or without ## url-tags, including the user's website from the user profile. It doesn't ## derefer links to messengers such as ICQ. ## Neither does it derefer external images using the img-tag. Derefering ## img-tags requires another technology, such as an image proxy. ## ## You can find the newest version of this MOD at ## http://derefer.me/download/derefer-me-mod-phpbb-2.txt ## ################################################################################## ## MOD History: ## ## 2008-07-24 - Version 1.0.0 ## - Initial Release ## ## 2008-11-23 - Version 1.1.0 ## - Use a function for dereferring. ## ## 2009-04-25 - Version 1.2.0 ## - Only derefer external links. ## ## 2010-03-16 - Version 1.2.1 ## - Fixed an error with URLs including the ampersand. ## ################################################################################## ## ## Before adding this MOD Update to your forum, you should back up all files ## related to this MOD Update. ## ################################################################################## # #-----[ OPEN ]----- # includes/functions.php # #-----[ FIND ]----- # return 'http://derefer.me/?' . urlencode ($url); # #-----[ REPLACE WITH ]----- # return 'http://derefer.me/?' . urlencode (str_replace ('&', '&', $url)); # #-----[ SAVE/CLOSE ALL FILES ]----- # # EoM