(GPLv2) or write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301, USA. ********************************************************************************/ if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_gallery.php")) { die("
Error: This file cannot be opened directly!
"); } global $dblink; $ccolor = "#FFFFFF"; //#FFFFFF if ($resultg = $dblink->get_list("SELECT * FROM memht_gallery_images AS i JOIN memht_gallery_categories AS c ON i.category=c.id WHERE i.enabled=1 ORDER BY RAND() LIMIT 1")) { foreach ($resultg as $rowg) { $icat = intval($rowg['category']); $ititle = outCode($rowg['title']); $iimgfile = outCode($rowg['imgfile']); $ithumb = outCode($rowg['thumb']); $iattachfile = outCode($rowg['attachfile']); $idescription = outCode($rowg['description']); $ctitle = outCode($rowg['name']); echo "
\"$ititle\"
"; if ($iattachfile!="") { echo "
Attachment
"; } echo "
\n"; } } else { echo "
"._EMPTY_."
"; } ?>