function misc_glossar_comments() { global $set, $db, $apx, $user; $_REQUEST['id'] = (int) $_REQUEST['id']; if (!$_REQUEST['id']) { die('missing ID!'); } $apx->tmpl->loaddesign('blank'); glossar_showcomments($_REQUEST['id']); }
//////////////////////////////////////////////////////////////////////////////////////////////////////// require 'lib/_start.php'; //////////////////////////////////////////////////////////// SYSTEMSTART /// //////////////////////////////////////////////////////////////////////////////////////////////////////// require_once BASEDIR . getmodulepath('glossar') . 'functions.php'; $apx->module('glossar'); $apx->lang->drop('global'); headline($apx->lang->get('HEADLINE'), mklink('glossar.php', 'glossar.html')); titlebar($apx->lang->get('HEADLINE')); $_REQUEST['catid'] = (int) $_REQUEST['catid']; $_REQUEST['id'] = (int) $_REQUEST['id']; ////////////////////////////////////////////////////////////////////////////////// NUR KOMMENTARE if ($_REQUEST['id'] && $_REQUEST['comments']) { $res = $db->first("SELECT title FROM " . PRE . "_glossar WHERE ( id='" . $_REQUEST['id'] . "' " . section_filter() . " ) LIMIT 1"); titlebar($apx->lang->get('HEADLINE') . ': ' . $res['title']); glossar_showcomments($_REQUEST['id']); } ///////////////////////////////////////////////////////////////////////////////////////// DETAILS if ($_REQUEST['id']) { $apx->lang->drop('detail'); //Counter $db->query("UPDATE " . PRE . "_glossar SET hits=hits+1 WHERE id='" . $_REQUEST['id'] . "' LIMIT 1"); //Verwendete Variablen auslesen $parse = $apx->tmpl->used_vars('detail'); //Begriff-Info $res = $db->first("SELECT * FROM " . PRE . "_glossar WHERE ( id='" . $_REQUEST['id'] . "' " . iif(!$user->is_team_member(), "AND starttime!='0'") . " ) LIMIT 1"); if (!$res['id']) { filenotfound(); } //Kategorie-Info $catinfo = $db->first("SELECT * FROM " . PRE . "_glossar_cat WHERE id='" . $res['catid'] . "' LIMIT 1");