<?php
// ====================================================================
// MapRaider test page
// --------------------------------------------------------------------
// --------------------------------------------------------------------
// Code written by John Dailey and is Copyright (c)
// 2003 by John Dailey unless otherwise stated.
// Based on the JScript ASP version written by Conan Theobald
//
// Visit: www.mapraider.com
// Email: info@mapraider.com
// ====================================================================
// Turn off notice reporting so that we don't get PHP notices
// if a map doesn't have a particular tag, etc.
error_reporting(E_ALL & ~E_NOTICE);
include_once("inc.mapraider.php");
// Initialization
$sHTML = "";
$oMapraider = new XMLMapRaiderClass;
// Initialize our cache
$oMapraider->Cache_Init();
$oMapraider->IncludeFile( "Top10_UT2003" );
$oMapraider->Update();
// Display the Top-10 highest rated Unreal Tournament 2003 maps:
$oMap = $oMapraider->FindFirst( "Top10_UT2003" );
while ( !is_null($oMap) ) {
$sHTML .=
"<p style=\"clear: both;\">" .
"<img src=\"" . $oMap["screenshot"] . "\" align=\"left\" />" .
"<b>Name:</b> " . $oMap["title"] . "<br />" .
"<b>Score:</b> " . $oMap["score"] . "<br />" .
"<b>Description:</b> " . $oMap["description"] .
"</p>";
$oMap = $oMapraider->FindNext();
}
echo $sHTML;
// save any changes to the cache
$oMapraider->Cache_Save();
$oMapraider = null;
?>