3
Edit zmagazine/print.php and replace:
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:
if ( isset($_GET['articleid']) )
{
$articleid = intval( $_GET['articleid'] );
}
else
{
redirect_header("index.php");
}
and replace:
PrintPage($articleid);
at the end of file with:
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.