]> 4ch.mooo.com Git - test.git/blobdiff - lib/lib_common.php
modified: lib/lib_common.php
[test.git] / lib / lib_common.php
index ebf918b850688a497dfc52eac3362730bc2be02e..1461497a04f5f6f7a5c88fbf5e4938e269ba068f 100755 (executable)
@@ -26,6 +26,7 @@ function PMCCore_errorHandler($errno, $errstr, $errfile, $errline){
 }
 
 /* css data */
+// http://www.magmagateau.com/fuukaba/ is the source of the code below
 $style_load = false;
 $style_bar = '';
 
@@ -64,7 +65,6 @@ if(str_replace('[]', '', $style_bar) == '') $style_load .= '<link rel="styleshee
 $jsdonk = 'var style_cookie = "';
 $jsdonk .= ($style_bar) ? 'yo_style' : '';
 $jsdonk .= '";';
-// http://www.magmagateau.com/fuukaba/ is the source of the code above w
 ////++++
 
 /* 輸出表頭 */
@@ -184,7 +184,7 @@ function foot(&$dat){
 /* 網址自動連結 */
 /* オートリンク */
 function auto_link_callback($matches){
-       return (strtolower($matches[3]) == "</a>") ? $matches[0] : preg_replace('/(https?|ftp|news|gopher)(:\/\/[\w\+\$\;\?\.\{\}%,!#~*\/:@&=_-]+)/u', '<a href="$1$2" rel="_blank">$1$2</a>', $matches[0]);
+       return (strtolower($matches[3]) == "</a>") ? $matches[0] : preg_replace('/(https?|ftp|news|irc|gopher)(:\/\/[\w\+\$\;\?\.\{\}%,!#~*\/:@&=_-]+)/u', '<a href="$1$2" rel="_blank">$1$2</a>', $matches[0]);
 }
 function auto_link($proto){
        $proto = preg_replace('|<br\s*/?>|',"\n",$proto);