Code Duplication    Length = 9-9 lines in 2 locations

index.php 1 location

@@ 98-106 (lines=9) @@
95
        // This code is copyright WF-Projects
96
        // Using this code without our permission or removing this code voids the license agreement
97
        $_image = $myrow['imgurl'] ? urldecode($myrow['imgurl']) : '';
98
        if ($_image !== '' && $GLOBALS['xoopsModuleConfig']['usethumbs']) {
99
            $_thumb_image = new XtubeThumbsNails($_image, $GLOBALS['xoopsModuleConfig']['catimage'], 'thumbs');
100
            if ($_thumb_image) {
101
                $_thumb_image->setUseThumbs(1);
102
                $_thumb_image->setImageType('gd2');
103
                $_image = $_thumb_image->createThumbnail($GLOBALS['xoopsModuleConfig']['shotwidth'], $GLOBALS['xoopsModuleConfig']['shotheight'], $GLOBALS['xoopsModuleConfig']['imagequality'], $GLOBALS['xoopsModuleConfig']['updatethumbs'], $GLOBALS['xoopsModuleConfig']['imageAspect']);
104
            }
105
        }
106
        if (empty($_image) || '' == $_image) {
107
            $imgurl  = $indicator['image'];
108
            $_width  = 33;
109
            $_height = 24;

viewcat.php 1 location

@@ 98-106 (lines=9) @@
95
        // Using this code without our permission or removing this code voids the license agreement
96
97
        $_image = $ele['imgurl'] ? urldecode($ele['imgurl']) : '';
98
        if ($_image !== '' && $GLOBALS['xoopsModuleConfig']['usethumbs']) {
99
            $_thumb_image = new XtubeThumbsNails($_image, $GLOBALS['xoopsModuleConfig']['catimage'], 'thumbs');
100
            if ($_thumb_image) {
101
                $_thumb_image->setUseThumbs(1);
102
                $_thumb_image->setImageType('gd2');
103
                $_image = $_thumb_image->createThumbnail($GLOBALS['xoopsModuleConfig']['shotwidth'], $GLOBALS['xoopsModuleConfig']['shotheight'], $GLOBALS['xoopsModuleConfig']['imagequality'], $GLOBALS['xoopsModuleConfig']['updatethumbs'], $GLOBALS['xoopsModuleConfig']['imageAspect']);
104
            }
105
        }
106
107
        if (empty($_image) || '' == $_image) {
108
            $imgurl  = $indicator['image'];
109
            $_width  = 33;