if (!mysql_num_rows($result)) { cpg_die(CRITICAL_ERROR, sprintf($lang_errors['pic_in_invalid_album'], $CURRENT_PIC_DATA['aid']), __FILE__, __LINE__); } $CURRENT_ALBUM_DATA = mysql_fetch_array($result); if (is_numeric($album)) { $cat = -$album; $actual_cat = $CURRENT_ALBUM_DATA['category']; breadcrumb($actual_cat, $breadcrumb, $breadcrumb_text); $cat = -$album; } else { $actual_cat = $CURRENT_ALBUM_DATA['category']; breadcrumb($actual_cat, $breadcrumb, $breadcrumb_text); } } echo "<table align=\"center\" cellspacing=\"1\" style=\"width:100%;height:100%\">"; $test = html_picinfo(); $test = str_replace("tableb_compact", "enl_infotable\" width=\"50%", $test); $test = str_replace("tableh2_compact", "enl_infotablehead\" align=\"center", $test); $test = str_replace("valign=\"top\"", "align=\"right\"", $test); $test = str_replace(" class=\"alblink\"", "", $test); $kopf = ''; if ($CURRENT_PIC_DATA['title']) { $kopf .= "<tr><td class=\"enl_infotable\" width=\"50%\" align=\"right\">"; $kopf .= $lang_upload_php['pic_title']; $kopf .= ":</td><td class=\"enl_infotable\" width=\"50%\">"; $kopf .= $CURRENT_PIC_DATA['title']; $kopf .= "</td></tr>"; } if ($CURRENT_PIC_DATA['caption']) { $kopf .= "<tr><td class=\"enl_infotable\" width=\"50%\" align=\"right\">"; $kopf .= $lang_upload_php['description'];
} $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"; }