From 615d06acd51b1128d78bb83edab1bac4e41334dd Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 24 Feb 2011 05:27:09 -0600 Subject: [PATCH] modified: lib/lib_common.php modified: yotsubanome.php --- lib/lib_common.php | 4 ++-- yotsubanome.php | 55 +++++++++++++++++++++++----------------------- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/lib/lib_common.php b/lib/lib_common.php index ebf918b..1461497 100755 --- a/lib/lib_common.php +++ b/lib/lib_common.php @@ -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 .= '") ? $matches[0] : preg_replace('/(https?|ftp|news|gopher)(:\/\/[\w\+\$\;\?\.\{\}%,!#~*\/:@&=_-]+)/u', '$1$2', $matches[0]); + return (strtolower($matches[3]) == "") ? $matches[0] : preg_replace('/(https?|ftp|news|irc|gopher)(:\/\/[\w\+\$\;\?\.\{\}%,!#~*\/:@&=_-]+)/u', '$1$2', $matches[0]); } function auto_link($proto){ $proto = preg_replace('||',"\n",$proto); diff --git a/yotsubanome.php b/yotsubanome.php index 1f4283d..d4d4b5d 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -1111,9 +1111,8 @@ _ADMINEOF_; '); } -//////////////// -// manage_css // -//////////////// +/* manage_css */ +// http://www.magmagateau.com/fuukaba/ is the source of the code below function manage_css(){ global $PMS, $language; $order = array(); $line = ''; @@ -1185,23 +1184,23 @@ function manage_css(){ // Success messages $action = (file_exists($style_dat)) ? _t('admin_updated') : _t('admin_created'); - $delete = (@unlink(CSS_DIR.CSVSS)) ? ' - '.str_replace('[file]', CSS_DIR.CSVSS, _t('admin_deleted')).'' : false; + //---- $delete = (@unlink(CSS_DIR.CSVSS)) ? ' - '.str_replace('[file]', CSS_DIR.CSVSS, _t('admin_deleted')).'' : false; $fp = fopen($style_dat, 'w+'); set_file_buffer($fp, 0); rewind($fp); fputs($fp, $line); fclose($fp); @chmod($style_dat, 0666); - echo '
'.str_replace('[file]', $style_dat, _t('admin_updated')).$delete.'
'; + echo '
'.str_replace('[file]', $style_dat, _t('admin_updated'))./*----$delete.*/'
'; } // Editing messages if(file_exists(DATA_DIR.CSV_SS)){ $style_data = DATA_DIR.CSV_SS; $style_mode = _t('admin_editing'); - }else{ - $style_data = CSS_DIR.CSVSS; - $style_mode = _t('admin_imported'); + //---- }else{ + //---- $style_data = CSS_DIR.CSVSS; + //---- $style_mode = _t('admin_imported'); } echo '