$pageTitle = $ftmp['caption']; } if (!empty($ftmp['pagetitle'])) { $pageTitle .= ": " . $ftmp['pagetitle']; } e107::getMessage()->addDebug("TITLE: " . $pageTitle); e107::meta('og:title', $pageTitle); if (!empty($ftmp['pagedescription'])) { e107::meta('og:description', $ftmp['pagedescription']); } define('e_PAGETITLE', $pageTitle); require_once HEADERF; $ns->tablerender($ftmp['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']); } if ($action == "cat") { $ftmp = $faq->view_cat_list($action, $id); define("e_PAGETITLE", strip_tags($ftmp['title'] . $ftmp['caption'])); require_once HEADERF; $ns->tablerender($ftmp['caption'], $ftmp['text']); } if ((check_class($faqpref['add_faq']) || ADMIN) && ($action == "new" || $action == "edit")) { require_once HEADERF; $faq->add_faq($action, $id, $idx); } require_once FOOTERF;