} } if (isset($_POST['commentsubmit'])) { $pid = isset($_POST['pid']) ? $_POST['pid'] : 0; $cobj->enter_comment($_POST['author_name'], $_POST['comment'], "faq", $idx, $pid, $_POST['subject']); } // Actions +++++++++++++++++++++++++++++ $faq = new faq(); $faqpref = e107::getPlugConfig('faqs')->getPref(); if ($action == "" || $action == "main") { if (vartrue($faqpref['classic_look'])) { $ftmp = $faq->show_existing_parents($action, $sub_action, $id, $from, $amount); $caption = FAQLAN_41; } else { $srch = vartrue($_GET['srch']); $ftmp = $faq->view_all($srch); $caption = FAQLAN_FAQ; } $pageTitle = ''; // define("e_PAGETITLE", $ftmp['caption']); if (vartrue($faqpref['page_title'])) { $pageTitle = $faqpref['page_title'][e_LANGUAGE]; } else { $pageTitle = $ftmp['caption']; } if (!empty($ftmp['pagetitle'])) { $pageTitle .= ": " . $ftmp['pagetitle']; } e107::getMessage()->addDebug("TITLE: " . $pageTitle); e107::meta('og:title', $pageTitle); if (!empty($ftmp['pagedescription'])) {
$message = FAQ_ADLAN_30; } } if (isset($_POST['commentsubmit'])) { $pid = isset($_POST['pid']) ? $_POST['pid'] : 0; $cobj->enter_comment($_POST['author_name'], $_POST['comment'], "faq", $idx, $pid, $_POST['subject']); } // Actions +++++++++++++++++++++++++++++ $faq = new faq(); $faqpref = e107::getPlugConfig('faqs')->getPref(); if ($action == "" || $action == "main") { if (vartrue($faqpref['classic_look'])) { $ftmp = $faq->show_existing_parents($action, $sub_action, $id, $from, $amount); $caption = FAQLAN_41; } else { $ftmp = $faq->view_all(); $caption = FAQLAN_FAQ; } if (vartrue($faqpref['faq_title'])) { define("e_PAGETITLE", $faqpref['faq_title']); } else { define("e_PAGETITLE", FAQLAN_23); } require_once HEADERF; $ns->tablerender($caption, $ftmp['text']); } if ($action == "cat" && $idx) { $ftmp = $faq->view_faq($idx); define("e_PAGETITLE", FAQLAN_FAQ . " - " . $ftmp['title']); require_once HEADERF; $ns->tablerender($ftmp['caption'], $ftmp['text']);