function misc_links_comments() { global $set, $db, $apx, $user; $_REQUEST['id'] = (int) $_REQUEST['id']; if (!$_REQUEST['id']) { die('missing ID!'); } $apx->tmpl->loaddesign('blank'); links_showcomments($_REQUEST['id']); }
//eMail-Benachrichtigung if ($set['links']['mailonbroken']) { $input = array('URL' => substr(HTTP, 0, -1) . $link); sendmail($set['links']['mailonbroken'], 'BROKEN', $input); } message($apx->lang->get('MSG_BROKEN'), $link); require 'lib/_end.php'; } else { tmessage('broken', array('ID' => $_REQUEST['id'])); } } ////////////////////////////////////////////////////////////////////////////////// NUR KOMMENTARE if ($_REQUEST['id'] && $_REQUEST['comments']) { $res = $db->first("SELECT title FROM " . PRE . "_links WHERE ( id='" . $_REQUEST['id'] . "' " . section_filter() . " ) LIMIT 1"); titlebar($apx->lang->get('HEADLINE') . ': ' . $res['title']); links_showcomments($_REQUEST['id']); } ///////////////////////////////////////////////////////////////////////////////////////// DETAILS if ($_REQUEST['id']) { $apx->lang->drop('detail'); //Verwendete Variablen auslesen $parse = $apx->tmpl->used_vars('detail'); //Link-Info $res = $db->first("SELECT a.*,b.username,b.email,b.pub_hidemail FROM " . PRE . "_links AS a LEFT JOIN " . PRE . "_user AS b USING(userid) WHERE ( a.id='" . $_REQUEST['id'] . "' " . iif(!$user->is_team_member(), "AND ( '" . time() . "' BETWEEN a.starttime AND a.endtime )") . " " . section_filter() . " ) LIMIT 1"); if (!$res['id']) { filenotfound(); } //Altersabfrage if ($res['restricted']) { checkage(); }