} else { $groups = XOOPS_GROUP_ANONYMOUS; } if (!$gperm_handler->checkRight("ams_approve", $article->topicid(), $groups, $xoopsModule->getVar('mid'))) { redirect_header(XOOPS_URL . '/modules/AMS/index.php', 3, _NOPERM); exit; } $xoopsOption['template_main'] = 'ams_article.html'; include_once XOOPS_ROOT_PATH . '/header.php'; $xoopsTpl->assign('story', $article->toArray(true, false, -1)); $banner = $myts->displayTarea($article->getBanner(), 1); if (!$banner || $banner == "") { $banner = " "; } $xoopsTpl->assign('articlebanner', $banner); if (XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) { $showcomments = 1; } else { $showcomments = 0; } $xoopsTpl->assign('showcomments', $showcomments); $xoopsTpl->assign('lang_printerpage', _AMS_NW_PRINTERFRIENDLY); $xoopsTpl->assign('lang_sendstory', _AMS_NW_SENDSTORY); $xoopsTpl->assign('lang_on', _ON); $xoopsTpl->assign('lang_postedby', _POSTEDBY); $xoopsTpl->assign('lang_reads', _READS); $xoopsTpl->assign('showfull', true); $xoopsTpl->assign('admin', false); $xoopsTpl->assign('xoops_sitename', $myts->htmlSpecialChars($article->title())); $xoopsTpl->assign('xoops_pagetitle', " v." . $article->version()); include_once XOOPS_ROOT_PATH . '/footer.php';