Code Duplication    Length = 5-6 lines in 2 locations

html/inc/user.inc 2 locations

@@ 360-365 (lines=6) @@
357
        }
358
        row2(tra("Profile"), $x);
359
    }
360
    if (!DISABLE_FORUMS) {
361
        $tot = total_posts($user);
362
        if ($tot) {
363
            row2(tra("Message boards"), "<a href=\"".url_base()."forum_user_posts.php?userid=$user->id\">".tra("%1 posts", $tot)."</a>");
364
        }
365
    }
366
    
367
    row2(tra("Private messages"), pm_notification($user).pm_email_remind($user));
368
@@ 491-495 (lines=5) @@
488
            row2(tra("Team"), tra("None"));
489
        }
490
    }
491
    if (!DISABLE_FORUMS) {
492
        if ($tot) {
493
            row2(tra("Message boards"), "<a href=\"".url_base()."forum_user_posts.php?userid=$user->id\">".tra("%1 posts", $tot)."</a>");
494
        }
495
    }
496
    if ($logged_in_user && $logged_in_user->id != $user->id) {
497
        row2(tra("Contact"), "<a href=\"pm.php?action=new&userid=".$user->id."\">".tra("Send private message")."</a>");
498
        $friend = BoincFriend::lookup($logged_in_user->id, $user->id);