'; if ($mode == 'showreview') { // We're showing a review ... if (($name == 'REVIEW') && ($info['FILE'] == $filename)) { // We're showing _this_ review echo '
';
if ($info['URL']) {
echo '';
}
echo ''.$info['TITLE'];
if ($info['TITLE'] && $info['AUTHOR']) {
echo ' by ';
}
echo $info['AUTHOR'].'';
if ($info['URL']) {
echo '';
}
if ($info['BUYURL']) {
echo ' Buy it now!';
}
if ($info['REVAUTH'] || $info['DATE']) {
echo '
(';
if ($info['REVAUTH']) {
echo 'Review by '.$info['REVAUTH'].' ';
if ($info['DATE']) echo ' - ';
}
if ($info['DATE']) {
$date = date('j<\sup>S\sup> M Y', strtotime($info['DATE']));
echo 'Added on '.$date;
}
echo ')
Want to know what we think of the things, then check out our reviews. You can select a set of reviews either by category ...
Listing all reviews ...'; } else if ($select == 'REVAUTH') { // Author mode echo 'Listing all reviews by '.$mode.'...
'; } else { // Catagory mode echo 'Listing all reviews of '.$mode.'...
'; } } // set callback functions xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); // open XML file if (!($fp = fopen($file, "r"))) { die("Cannot locate XML data file: $file"); } // read and parse data while ( ($data = fgets($fp, 4096)) ) { // error handler if (!xml_parse($xml_parser, $data, feof($fp) )) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } } // clean up xml_parser_free($xml_parser); if ($mode == 'index') { echo '... or select a set of reviews by one author ...
If that doesn'."'".'t help then click here to view all reviews.
'; } else { // Not index mode echo 'Return to index page
'; } foot($style); ?>