Code Duplication    Length = 4-5 lines in 5 locations

blocks/xoopstube_top.php 5 locations

@@ 98-102 (lines=5) @@
95
        $xtubeModuleConfig['shotheight'] = $size['shotheight'];
96
    }
97
// Determine if video source YouTube
98
    if ($bsource == 0) {
99
        $thumbb
100
            = '<img src="http://img.youtube.com/vi/' . $bvidid . '/default.jpg" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="'
101
            . $xtubeModuleConfig['shotheight'] . '"  border="0" />';
102
    }
103
    // Determine if video source MetaCafe
104
    if ($bsource == 1) {
105
        list($metaclip) = explode('[/]', $bvidid);
@@ 118-122 (lines=5) @@
115
            . '" border="0" />';
116
    }
117
// Determine if video source Photobucket
118
    if ($bsource == 3) {
119
        $thumbb
120
            = '<img src="http://i153.photobucket.com/albums/' . $bvidid . '.jpg" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="'
121
            . $xtubeModuleConfig['shotheight'] . '"  border="0" />';
122
    }
123
// Determine if video source Google Video / MySpace TV / DailyMotion
124
    if ($bsource == 100) {
125
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
@@ 124-127 (lines=4) @@
121
            . $xtubeModuleConfig['shotheight'] . '"  border="0" />';
122
    }
123
// Determine if video source Google Video / MySpace TV / DailyMotion
124
    if ($bsource == 100) {
125
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
126
            . '"  border="0" />';
127
    }
128
// Determine if video source MySpace TV
129
    if ($bsource == 101) {
130
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
@@ 129-132 (lines=4) @@
126
            . '"  border="0" />';
127
    }
128
// Determine if video source MySpace TV
129
    if ($bsource == 101) {
130
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
131
            . '"  border="0" />';
132
    }
133
// Determine if video source DailyMotion
134
    if ($bsource == 102) {
135
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
@@ 134-137 (lines=4) @@
131
            . '"  border="0" />';
132
    }
133
// Determine if video source DailyMotion
134
    if ($bsource == 102) {
135
        $thumbb = '<img src="' . $bpicurl . '" title="' . $btitle . '" alt="' . $btitle . '" width="' . $xtubeModuleConfig['shotwidth'] . '" height="' . $xtubeModuleConfig['shotheight']
136
            . '"  border="0" />';
137
    }
138
139
    return $thumbb;
140
}