OK==1) { // build the main review page $review->setTemplate("./cw_leeds.html"); // Page that should be used as the template $mainReview = $review->parseTemplate(); // add comments $commentsList = new CWReviewCommentsList($_GET['_CWR_RVID'], $mainReview); $commentsList->setListLength(10); $commentsList->buildCommentList(); $page = $commentsList->addCommentsToPage(); // build facilities $facilitiesList = new CWReviewFacilityList($_GET['_CWR_RVID'], $page); $facPage = stripslashes($facilitiesList->addToPage()); // build ratings $ratingsList = new CWReviewRatingList($_GET['_CWR_RVID'], $facPage); $ratPage = stripslashes($ratingsList->addToPage()); // print out page and exit echo stripslashes($ratPage); die(); } else { include("reviewErrorTemplate.html"); die(); } } else { echo $review; include("reviewErrorTemplate.html"); die(); } ?>