Move files around.

This commit is contained in:
Darko
2015-05-28 12:36:00 +02:00
parent a5ea73deec
commit ae0434ac11
1403 changed files with 13 additions and 18 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty magicurl modifier plugin
*
* Type: modifier<br>
* Name: magicurl<br>
* Purpose: turn www addresses into hyperlinks
* @author bb
* @param string
* @return string
*/
function smarty_modifier_magicurl($str, $dereferrer="") {
return preg_replace('/(https?):\/\/([A-Za-z0-9\._\-\/\?=&;%]+)/is', '<a href="'.$dereferrer.'$1://$2" target="_blank">$1://$2</a>', $str);
}
?>