コード例 #1
0
ファイル: faqs.php プロジェクト: armpit/e107
        $message = FAQ_ADLAN_29;
        unset($faq_question, $data);
    } else {
        $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 {
        $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'];