$groups = $xoopsUser->getGroups(); } else { $groups = XOOPS_GROUP_ANONYMOUS; } if (!$gperm_handler->checkRight('news_view', $article->topicid(), $groups, $xoopsModule->getVar('mid'))) { redirect_header(XOOPS_URL . '/modules/news/index.php', 3, _NOPERM); exit; } $dateformat = news_getmoduleoption('dateformat'); $article_data = $article->hometext() . $article->bodytext(); $article_title = $article->title(); $article_title = news_html2text($myts->undoHtmlSpecialChars($article_title)); $forumdata['topic_title'] = $article_title; $pdf_data['title'] = $article->title(); $topic_title = $article->topic_title(); $topic_title = news_html2text($myts->undoHtmlSpecialChars($topic_title)); $pdf_data['subtitle'] = $topic_title; $pdf_data['subsubtitle'] = ''; $pdf_data['date'] = formatTimestamp($article->published(), $dateformat); $pdf_data['filename'] = preg_replace("/[^0-9a-z\\-_\\.]/i", '', $myts->htmlSpecialChars($article->topic_title()) . ' - ' . $article->title()); $pdf_data['filename'] = 'test'; $hometext = $article->hometext(); $bodytext = $article->bodytext(); $content = $myts->undoHtmlSpecialChars($hometext) . '<br /><br />' . $myts->undoHtmlSpecialChars($bodytext); $content = str_replace('[pagebreak]', '<br /><br />', $content); $pdf_data['content'] = $content; $pdf_data['author'] = $article->uname(); //Other stuff $puff = '<br />'; $puffer = '<br /><br /><br />'; //create the A4-PDF...
exit; } $gperm_handler =& xoops_gethandler('groupperm'); if (is_object($xoopsUser)) { $groups = $xoopsUser->getGroups(); } else { $groups = XOOPS_GROUP_ANONYMOUS; } if (!$gperm_handler->checkRight("news_view", $article->topicid(), $groups, $xoopsModule->getVar('mid'))) { redirect_header(XOOPS_URL . '/modules/news/index.php', 3, _NOPERM); exit; } $dateformat = getmoduleoption('dateformat'); $article_data = $article->hometext() . $article->bodytext(); $forumdata['topic_title'] = news_html2text($myts->undoHtmlSpecialChars($article->title())); $pdf_data['title'] = news_html2text($myts->undoHtmlSpecialChars($article->title())); $pdf_data['subtitle'] = $myts->htmlSpecialChars($article->topic_title()); $pdf_data['subsubtitle'] = ''; $pdf_data['date'] = formatTimestamp($article->published(), $dateformat); $pdf_data['filename'] = preg_replace("/[^0-9a-z\\-_\\.]/i", '', $myts->htmlSpecialChars($article->topic_title()) . ' - ' . $article->title()); $pdf_data['filename'] = 'test'; $content = $article->hometext() . '<br /><br />' . $article->bodytext(); $content = str_replace("[pagebreak]", "<br /><br />", $content); $pdf_data['content'] = $content; $pdf_data['author'] = $article->uname(); //Other stuff $puff = '<br />'; $puffer = '<br /><br /><br />'; //create the A4-PDF... $pdf_config['slogan'] = $xoopsConfig['sitename'] . ' - ' . $xoopsConfig['slogan']; $pdf = new PDF();