if (!is_null($id)) { $title = ' - ' . $faq->getRecordTitle($id); $keywords = ' ' . $faq->getRecordKeywords($id); } else { $id = ''; $title = ' - powered by phpMyFAQ ' . $faqconfig->get('main.currentVersion'); $keywords = ''; } // // found a solution ID? // $solution_id = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT); if (!is_null($solution_id)) { $title = ' - powered by phpMyFAQ ' . $faqconfig->get('main.currentVersion'); $keywords = ''; $a = $faq->getIdFromSolutionId($solution_id); if (is_array($a)) { $id = $a['id']; $lang = $a['lang']; $title = ' - ' . $faq->getRecordTitle($id); $keywords = ' ' . $faq->getRecordKeywords($id); } } // // Handle the Tagging ID // $tag_id = PMF_Filter::filterInput(INPUT_GET, 'tagging_id', FILTER_VALIDATE_INT); if (!is_null($tag_id)) { $title = ' - ' . $oTag->getTagNameById($tag_id); $keywords = ''; }
$keywords = ',' . $faq->getRecordKeywords($id); $metaDescription = $faq->getRecordPreview($id); } else { $id = ''; $title = ' - powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion'); $keywords = ''; $metaDescription = $faqConfig->get('main.metaDescription'); } // // found a solution ID? // $solutionId = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT); if (!is_null($solutionId)) { $title = ' - powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion'); $keywords = ''; $faqData = $faq->getIdFromSolutionId($solutionId); if (is_array($faqData)) { $id = $faqData['id']; $lang = $faqData['lang']; $title = ' - ' . $faq->getRecordTitle($id); $keywords = ',' . $faq->getRecordKeywords($id); $metaDescription = str_replace('"', '', PMF_Utils::makeShorterText(strip_tags($faqData['content']), 12)); } } // // Handle the Tagging ID // $tag_id = PMF_Filter::filterInput(INPUT_GET, 'tagging_id', FILTER_VALIDATE_INT); if (!is_null($tag_id)) { $title = ' - ' . $oTag->getTagNameById($tag_id); $keywords = '';