function misc_gallery_comments() { global $set, $db, $apx, $user; $_REQUEST['id'] = (int) $_REQUEST['id']; if (!$_REQUEST['id']) { die('missing ID!'); } $apx->tmpl->loaddesign('blank'); require_once BASEDIR . getmodulepath('gallery') . 'functions.php'; gallery_showcomments($_REQUEST['id']); }
$apx->tmpl->assign('TIME', $gallery['starttime']); $apx->tmpl->assign('UPDATETIME', $updatetime); $apx->tmpl->assign('COUNT', number_format($piccount, 0, '', '.')); //Tags $apx->tmpl->assign('TAG_IDS', $tagids); $apx->tmpl->assign('TAG', $tagdata); $apx->tmpl->assign('KEYWORDS', $keywords); //Produkt $apx->tmpl->assign('PRODUCT_ID', $gallery['prodid']); //Untergalerien if ($set['gallery']['subgals']) { $apx->tmpl->assign('PATH', gallery_path($gallery['id'])); } //KOMMENTARE if ($_REQUEST['comments']) { gallery_showcomments($_REQUEST['pic']); require 'lib/_end.php'; } //Seitenzahlen gallery_pages($gallery['id']); //Neues Bild if ($pic['addtime'] + $set['gallery']['new'] * 24 * 3600 >= time()) { $new = 1; } else { $new = 0; } //Bild-Platzhalter $apx->tmpl->assign('IMAGE', getpath('uploads') . $pic['picture']); $apx->tmpl->assign('HITS', number_format($pic['hits'], 0, '', '.')); $apx->tmpl->assign('CAPTION', $pic['caption']); $apx->tmpl->assign('NEW', $new);