getMessage(). " line " . __LINE__ .", " . $db->getUserInfo() . " -->"); } //Lets see if we have a particular FAQ in question... if(isset($_REQUEST['retrieve']) && !empty($_REQUEST['retrieve']) ) { if($_REQUEST['retrieve'] == '/var/www/vhosts/r-world.com/httpdocs/FAQ') { header("Location: {$_SERVER['PHP_SELF']}"); exit; } //echo "\n\n"; if(strrchr($_REQUEST['retrieve'], '/') !== FALSE && sizeof(strrchr($_REQUEST['retrieve']) == 1) ) // $_REQUEST['retrieve'] contains '/' and it is the last charector { $therequest = substr($_REQUEST['retrieve'], 0 , -1); // strip the '/' //echo "\n\n"; }else { $therequest = $_REQUEST['retrieve']; //echo "\n\n"; } $ragflPageName= "{$therequest}"; $ragflParentPageName= "FAQs"; $ragflParentPageLink= "http://www.r-world.com/FAQ/"; include ("header.php"); $theFAQs = getfaq($db, $therequest); echo $theFAQs['TOC']; echo $theFAQs['BODY']; }else { include ("header.php"); $theFAQs = getfaq($db); echo $theFAQs['LINKEDTOC']; //echo $theFAQs['BODY']; } /** * Inlcude the Footer File. * This will now finish output to the user`s web browser. * The footer includes much of your common site design elements, such as logo, navigation, and finishing up of the page. */ include ("footer.php"); ?>