X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=yotsubanome.php;h=dca24e849e7944164008e9557579d522f9c942a6;hb=8122a5e9664e0d389c620eee34665ba660774c24;hp=aa434944f59554f48698a18c0b658305e6e19e1f;hpb=b0e79e1dda08132efa1e7722551957ab41552d0c;p=test.git diff --git a/yotsubanome.php b/yotsubanome.php index aa43494..dca24e8 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -342,11 +342,12 @@ 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($config['ALLOW_NONAME']==3){ if($name) $name = ''; if($tripkeycount) $name = ''; if($email) $now = "$now"; - }elseif($config['ALLOW_NONAME']==2){ // 強制砍名 + }else + */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].'' : '';