* Licence: GNU */ include_once 'header.php'; $faqid = isset($_GET['faqid'])? intval($_GET['faqid']) : 0; if ($faqid == 0) { redirect_header("javascript:history.go(-1)", 1, _MD_SF_NOFAQSELECTED); exit(); } // Creating the FAQ handler object $faq_handler =& sf_gethandler('faq'); // Creating the FAQ object for the selected FAQ $faqObj = new sfFaq($faqid); // If the selected FAQ was not found, exit if ($faqObj->notLoaded()) { redirect_header("javascript:history.go(-1)", 1, _MD_SF_NOFAQSELECTED); exit(); } // Creating the category object that holds the selected FAQ $categoryObj =& $faqObj->category(); // Creating the answer object $answerObj =& $faqObj->answer(); // Check user permissions to access that category of the selected FAQ if (faqAccessGranted($faqObj) < 0) { redirect_header("javascript:history.go(-1)", 1, _NOPERM); exit; } global $xoopsConfig, $xoopsDB, $xoopsModule, $myts; $who_where = $faqObj->getWhoAndWhen(); $comeFrom = $faqObj->getComeFrom(); echo "\n"; echo "\n\n"; echo "" . _MD_SF_FAQCOMEFROM . " " . $xoopsConfig['sitename'] . "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n\n"; echo "

" . $faqObj->question() . "

" . $who_where . "

" . $faqObj->question() . "

" . $answerObj->answer() . "

". $comeFrom . "


"; echo '
'; ?>