3
Edit zmagazine/print.php and replace:
le="color: #000000"><?php foreach ($HTTP_POST_VARS as $k => $v) { ${$k} = $v; } foreach ($HTTP_GET_VARS as $k => $v) { ${$k} = $v; } if ( empty($articleid) ) { redirect_header("index.php"); }
with:
le="color: #000000"><?php if ( isset($_GET['articleid']) ) { $articleid = intval( $_GET['articleid'] ); } else { redirect_header("index.php"); }
and replace:
le="color: #000000"><?php PrintPage($articleid);
at the end of file with:
le="color: #000000"><?php include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() .'/include/groupaccess.php'; $article = new WfsArticle($articleid); if (checkAccess($article->groupid)) { PrintPage(intval($articleid));} else { redirect_header("index.php", 2, _NOPERM); exit(); }
This modification is based on xfsection module and trabis note.