function misc_articles_comments() { global $set, $db, $apx, $user; $_REQUEST['id'] = (int) $_REQUEST['id']; if (!$_REQUEST['id']) { die('missing ID!'); } $apx->tmpl->loaddesign('blank'); articles_showcomments($_REQUEST['id']); }
header('location:' . $link); exit; } //////////////////////////////////////////////////////////////////////////////////////////////////////// NUR KOMMENTARE if ($_REQUEST['id'] && $_REQUEST['comments']) { $res = $db->first("SELECT id,title,starttime FROM " . PRE . "_articles WHERE ( " . time() . " BETWEEN starttime AND endtime AND id='" . $_REQUEST['id'] . "' " . $artfilter . " " . section_filter() . " ) LIMIT 1"); //Headline + Titlebar if (articles_is_recent($res['id'])) { headline($apx->lang->get('HEADLINE_' . strtoupper($arttype)), mklink($link2file . '.php', $link2file . '.html')); titlebar($apx->lang->get('HEADLINE_' . strtoupper($arttype)) . ': ' . $res['title']); } else { headline($apx->lang->get('HEADLINE_ARCHIVE'), mklink('articlearchive.php', 'articlearchive.html')); headline(getcalmonth(date('m', $res['starttime'] - TIMEDIFF)) . ' ' . date('Y', $res['starttime'] - TIMEDIFF), mklink('articlearchive.php?month=' . date('m', $res['starttime'] - TIMEDIFF) . date('Y', $res['starttime'] - TIMEDIFF), 'articlearchive,' . date('m', $res['starttime'] - TIMEDIFF) . ',' . date('Y', $res['starttime'] - TIMEDIFF) . ',1.html')); titlebar($apx->lang->get('HEADLINE_ARCHIVE') . ': ' . $res['title']); } articles_showcomments($_REQUEST['id']); require 'lib/_end.php'; } //////////////////////////////////////////////////////////////////////////////////////////////////////// BILDERSERIE ANZEIGEN if ($_REQUEST['id'] && $_REQUEST['pic']) { //Verwendete Variablen auslesen $parse = $apx->tmpl->used_vars('picture'); //Galerie-INFO $article = $db->first("SELECT id,catid,title,subtitle,starttime,pictures,restricted FROM " . PRE . "_articles WHERE ( id='" . $_REQUEST['id'] . "' " . section_filter() . " " . iif(!$user->is_team_member(), " AND ( '" . time() . "' BETWEEN starttime AND endtime ) ") . " ) LIMIT 1"); if (!$article['id']) { filenotfound(); } //Altersabfrage if ($article['restricted']) { checkage(); }