exit; } $content->hits(); if ($content->getVar('status') != 'N') { // deleted content view only admin if (!is_object($xoopsUser) || !($xoopsUser->isAdmin($xoopsModule->getVar('mid')) || $content->getVar('status') == 'W' && $content->getVar('poster') == $xoopsUser->getVar('uid'))) { redirect_header('index.php', 3, _NOPERM); exit; } } include XOOPS_ROOT_PATH . "/header.php"; $xoopsOption['template_main'] = 'medialinks_detail.html'; $xoopsTpl->assign('xoops_pagetitle', htmlspecialchars($xoopsModule->getVar('name') . _MD_SEP . $content->getVar('title'))); $xoopsTpl->assign('fields', $content->dispVars()); $keyid = isset($_GET['keyid']) ? intval($_GET['keyid']) : 0; $keys =& $content->getKeywords(); if (count($keys) && !in_array($keyid, $keys)) { $ids = $keywords->getPriKeysID(); $keyid = 0; if (count($keys)) { foreach ($ids as $pid) { if (in_array($pid, $keys)) { $keyid = $pid; break; } } } } $keypath = $content->keys_path($keyid, 0, true); $xoopsTpl->assign('keypath', $keypath); set_ml_breadcrumbs($keypath, array(array('url' => MODULE_URL . '/detail.php?mid=' . $mid, 'name' => htmlspecialchars($content->getVar('title')))));