* @author Thorsten Rinne <*****@*****.**> * @author Lars Tiedemann <*****@*****.**> * @copyright 2002-2010 phpMyFAQ Team * @license http://www.mozilla.org/MPL/MPL-1.1.html Mozilla Public License Version 1.1 * @link http://www.phpmyfaq.de * @since 2002-08-27 */ if (!defined('IS_VALID_PHPMYFAQ')) { header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); exit; } $captcha = new PMF_Captcha($sids); $oGlossary = new PMF_Glossary(); $oLnk = new PMF_Linkverifier(); $tagging = new PMF_Tags(); $relevant = new PMF_Relation(); $faqrating = new PMF_Rating(); $comment = new PMF_Comment(); if (!is_null($showCaptcha)) { $captcha->showCaptchaImg(); exit; } $currentCategory = $cat; $record_id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT); $solution_id = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT); $highlight = PMF_Filter::filterInput(INPUT_GET, 'highlight', FILTER_SANITIZE_STRIPPED); $faqsession->userTracking('article_view', $record_id); // Get all data from the FAQ record if (0 == $solution_id) { $faq->getRecord($record_id); } else {
* @author Thorsten Rinne <*****@*****.**> * @author Lars Tiedemann <*****@*****.**> * @copyright 2002-2012 phpMyFAQ Team * @license http://www.mozilla.org/MPL/MPL-1.1.html Mozilla Public License Version 1.1 * @link http://www.phpmyfaq.de * @since 2002-08-27 */ if (!defined('IS_VALID_PHPMYFAQ')) { header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); exit; } $captcha = new PMF_Captcha($db, $Language); $oGlossary = new PMF_Glossary(); $oLnk = new PMF_Linkverifier(); $faqTagging = new PMF_Tags($db, $Language); $faqRelation = new PMF_Relation($db, $Language); $faqRating = new PMF_Rating(); $faqComment = new PMF_Comment(); if (is_null($user)) { $user = new PMF_User_CurrentUser(); } $faqSearchResult = new PMF_Search_Resultset($user, $faq); $captcha->setSessionId($sids); if (!is_null($showCaptcha)) { $captcha->showCaptchaImg(); exit; } $currentCategory = $cat; $recordId = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT); $solutionId = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT); $highlight = PMF_Filter::filterInput(INPUT_GET, 'highlight', FILTER_SANITIZE_STRIPPED);