Code Duplication    Length = 4-5 lines in 5 locations

blocks/xoopstube_top.php 5 locations

@@ 92-96 (lines=5) @@
89
        $xtubeModuleConfig['shotheight'] = $size['shotheight'];
90
    }
91
    // Determine if video source YouTube
92
    if (0 == $bsource) {
93
        $thumbb = '<img src="http://img.youtube.com/vi/' . $bvidid . '/default.jpg" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="'
94
                  . $xtubeModuleConfig['shotheight'] . '"  border="0" />';
95
    }
96
    // Determine if video source MetaCafe
97
    if ($bsource == 1) {
98
        list($metaclip) = explode('[/]', $bvidid);
99
        $videothumb['metathumb'] = $metaclip;
@@ 110-114 (lines=5) @@
107
                  . '" border="0" />';
108
    }
109
    // Determine if video source Photobucket
110
    if ($bsource == 3) {
111
        $thumbb = '<img src="http://i153.photobucket.com/albums/' . $bvidid . '.jpg" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="'
112
                  . $xtubeModuleConfig['shotheight'] . '"  border="0" />';
113
    }
114
    // Determine if video source Google Video / MySpace TV / DailyMotion
115
    if ($bsource == 100) {
116
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
117
                  . '"  border="0" />';
@@ 115-118 (lines=4) @@
112
                  . $xtubeModuleConfig['shotheight'] . '"  border="0" />';
113
    }
114
    // Determine if video source Google Video / MySpace TV / DailyMotion
115
    if ($bsource == 100) {
116
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
117
                  . '"  border="0" />';
118
    }
119
    // Determine if video source MySpace TV
120
    if ($bsource == 101) {
121
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
@@ 120-123 (lines=4) @@
117
                  . '"  border="0" />';
118
    }
119
    // Determine if video source MySpace TV
120
    if ($bsource == 101) {
121
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
122
                  . '"  border="0" />';
123
    }
124
    // Determine if video source DailyMotion
125
    if ($bsource == 102) {
126
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
@@ 125-128 (lines=4) @@
122
                  . '"  border="0" />';
123
    }
124
    // Determine if video source DailyMotion
125
    if ($bsource == 102) {
126
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
127
                  . '"  border="0" />';
128
    }
129
130
    return $thumbb;
131
}