]> 4ch.mooo.com Git - test.git/commitdiff
modified: yotsubanome.php
authorsparky4 <sparky4@4ch.irc.su>
Wed, 11 Jul 2012 20:11:21 +0000 (15:11 -0500)
committersparky4 <sparky4@4ch.irc.su>
Wed, 11 Jul 2012 20:11:21 +0000 (15:11 -0500)
yotsubanome.php

index dca24e849e7944164008e9557579d522f9c942a6..021abc31b4285f2ba1fc018d5eda4e8dece5f1f2 100755 (executable)
@@ -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 = "<a href=\"mailto:$email\" class=\"linkmail\">$now</a>";
                }else
-               */if($config['ALLOW_NONAME']==2){ // 強制砍名
+               if($config['ALLOW_NONAME']==2){ // 強制砍名
                        if($tripkeycount==1) $name = preg_match('/(\\'.TRIP_KEY.'.{10})/', $name, $matches) ? '<span class="postertrip">'.$matches[1].'</span>' : '';
                        if($tripkeycount==2) $name = preg_match('/(\\'.TRIP_KEY.TRIP_KEY.'.{16})/', $name, $matches) ? '<span class="postertrip">'.$matches[1].'</span>' : '';
                        if($tripkeycount==3) $name = preg_match('/(\\'.TRIP_KEY.'.{32})/', $name, $matches) ? '<span class="postertrip">'.$matches[1].'</span>' : '';