cpg_die(_CRITICAL_ERROR, sprintf(PIC_IN_INVALID_ALBUM, $CURRENT_PIC_DATA['aid']), __FILE__, __LINE__); } $CURRENT_ALBUM_DATA = $db->sql_fetchrow($result); if (!empty($CURRENT_PIC_DATA['keywords'])) { $METATAGS['keywords'] = htmlprepare($CURRENT_PIC_DATA['keywords'], false, NULL, 1); } } // slideshow control if (isset($_GET['slideshow'])) { slideshow(); } else { // if (!isset($_GET['pos'])) cpg_die(_ERROR, NON_EXIST_AP, __FILE__, __LINE__); $picture_title = $CURRENT_PIC_DATA['title'] ? $CURRENT_PIC_DATA['title'] : strtr(preg_replace("/(.+)\\..*?\\Z/", "\\1", htmlprepare($CURRENT_PIC_DATA['filename'])), "_", " "); $nav_menu = html_img_nav_menu(); $picture = html_picture(); $votes = html_rating_box(); $pic_info = html_picinfo(); $comments = html_comments($CURRENT_PIC_DATA['pid']); pageheader($album_name . '/' . $picture_title, '', false); // Display Breadcrumbs set_breadcrumb(0); // Display Filmstrip if the album is not search if ($album != 'search') { $film_strip = display_film_strip($meta, $album, isset($cat) ? $cat : 0, $pos, true); } theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip); //, // strpos ( string haystack, string needle [, int offset]) $mpl = $CONFIG['main_page_layout']; if (strpos("{$mpl}", "anycontent") === true) { require_once "{$CPG_M_DIR}/anycontent.php";
$xoopsTpl->assign('start_img', $start_img); $xoopsTpl->assign('lang_stop_slideshow', _MD_DIS_STOP_SLIDE); user_save_profile(); $xoopsTpl->assign('gallery', $xoopsModule->getVar('name')); include_once "include/theme_func.php"; main_menu(); //$xoopsTpl->assign('xcgal_footer', pagefooter()); do_footer(); include_once "../../footer.php"; } else { if (!isset($pos)) { redirect_header('index.php', 2, _MD_NON_EXIST_AP); } $picture_title = $CURRENT_PIC_DATA['title'] ? $CURRENT_PIC_DATA['title'] : strtr(preg_replace("/(.+)\\..*?\\Z/", "\\1", htmlspecialchars($CURRENT_PIC_DATA['filename'])), "_", " "); $xoopsOption['template_main'] = 'xcgal_display.html'; include XOOPS_ROOT_PATH . "/header.php"; $xoopsTpl->assign('xoops_module_header', $xcgal_module_header); $xoopsTpl->assign('album_title', $album_title); html_img_nav_menu(); html_picture(); html_rating_box(); html_picinfo(); user_save_profile(); $xoopsTpl->assign('gallery', $xoopsModule->getVar('name')); include_once "include/theme_func.php"; main_menu(); //$xoopsTpl->assign('xcgal_footer', pagefooter()); do_footer(); include XOOPS_ROOT_PATH . '/include/comment_view.php'; include_once "../../footer.php"; }