| @@ 124-137 (lines=14) @@ | ||
| 121 | // This code is copyright WF-Projects |
|
| 122 | // Using this code without our permission or removing this code voids the license agreement |
|
| 123 | $_image = ($myrow['imgurl']) ? urldecode($myrow['imgurl']) : ''; |
|
| 124 | if ($_image != "" && $xoopsModuleConfig['usethumbs']) { |
|
| 125 | $_thumb_image = new XtubeThumbsNails($_image, $xoopsModuleConfig['catimage'], 'thumbs'); |
|
| 126 | if ($_thumb_image) { |
|
| 127 | $_thumb_image->setUseThumbs(1); |
|
| 128 | $_thumb_image->setImageType('gd2'); |
|
| 129 | $_image = $_thumb_image->createThumbnail( |
|
| 130 | $xoopsModuleConfig['shotwidth'], |
|
| 131 | $xoopsModuleConfig['shotheight'], |
|
| 132 | $xoopsModuleConfig['imagequality'], |
|
| 133 | $xoopsModuleConfig['updatethumbs'], |
|
| 134 | $xoopsModuleConfig['keepaspect'] |
|
| 135 | ); |
|
| 136 | } |
|
| 137 | } |
|
| 138 | if (empty($_image) || $_image == '') { |
|
| 139 | $imgurl = $indicator['image']; |
|
| 140 | $_width = 33; |
|
| @@ 102-115 (lines=14) @@ | ||
| 99 | // Using this code without our permission or removing this code voids the license agreement |
|
| 100 | ||
| 101 | $_image = ($ele['imgurl']) ? urldecode($ele['imgurl']) : ''; |
|
| 102 | if ($_image != '' && $xoopsModuleConfig['usethumbs']) { |
|
| 103 | $_thumb_image = new XtubeThumbsNails($_image, $xoopsModuleConfig['catimage'], 'thumbs'); |
|
| 104 | if ($_thumb_image) { |
|
| 105 | $_thumb_image->setUseThumbs(1); |
|
| 106 | $_thumb_image->setImageType('gd2'); |
|
| 107 | $_image = $_thumb_image->createThumbnail( |
|
| 108 | $xoopsModuleConfig['shotwidth'], |
|
| 109 | $xoopsModuleConfig['shotheight'], |
|
| 110 | $xoopsModuleConfig['imagequality'], |
|
| 111 | $xoopsModuleConfig['updatethumbs'], |
|
| 112 | $xoopsModuleConfig['keepaspect'] |
|
| 113 | ); |
|
| 114 | } |
|
| 115 | } |
|
| 116 | ||
| 117 | if (empty($_image) || $_image == '') { |
|
| 118 | $imgurl = $indicator['image']; |
|