From 9f853ae75df668782020b824eb127d23c3657ed8 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 11 Jul 2012 15:11:21 -0500 Subject: [PATCH] modified: yotsubanome.php --- yotsubanome.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/yotsubanome.php b/yotsubanome.php index dca24e8..021abc3 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -342,12 +342,11 @@ function arrangeThread($PTE, $tree, $tree_cut, $posts, $hiddenReply, $resno=0, $ // Tripcode indicator // t++ //++++---- // This may be a blob of code but it apparently works >< please help me here $tripkeycount = substr_count($name, TRIP_KEY); - /*if($config['ALLOW_NONAME']==3){ - if($name) $name = ''; - if($tripkeycount) $name = ''; + if($config['ALLOW_NONAME']==3){ + if($name || $tripkeycount) $name = $config['DEFAULT_NONAME']; if($email) $now = "$now"; }else - */if($config['ALLOW_NONAME']==2){ // 強制砍名 + if($config['ALLOW_NONAME']==2){ // 強制砍名 if($tripkeycount==1) $name = preg_match('/(\\'.TRIP_KEY.'.{10})/', $name, $matches) ? ''.$matches[1].'' : ''; if($tripkeycount==2) $name = preg_match('/(\\'.TRIP_KEY.TRIP_KEY.'.{16})/', $name, $matches) ? ''.$matches[1].'' : ''; if($tripkeycount==3) $name = preg_match('/(\\'.TRIP_KEY.'.{32})/', $name, $matches) ? ''.$matches[1].'' : ''; -- 2.39.2