query("SELECT * FROM ". PREFIX ."_covers WHERE newsid = '".$row['id']."' ORDER BY id DESC"); while ($img = $db->get_row($img_query)) { if ($img['thumb'] != '') { $img_thumb = ""; } else { $img_thumb = ""; } if ($im == 0) { $gallery .= <<{$img_thumb} HTML; } else { $gallery .= <<{$img_thumb} HTML; } $im = $im+1; $gallarr[]=$im; $freeimg[$im] = "{$img_thumb}"; $freelink[$im] = $img['link']; $freethumb[$im] = $img['thumb']; } if ($gallery != ''){ $tpl->set( '[img]', "" ); $tpl->set( '[/img]', "" ); if (count($gallarr) == '1') { $radio = ''; } else { $radio = '
'; } $gall = '