attributes()->value;
$content = $content.$genre;
if($xcount > 1 && $x+1 < $xcount)
{
$content = $content.", ";
}
}
return $content;
}
function printLanguageList(SimpleXMLElement $xml)
{
$content = "";
$xcount = count($xml);
for ($x = 0; $x < $xcount; $x++) {
$language = $xml[$x]->attributes()->locale;
$content = $content.$language;
if($xcount > 1 && $x+1 < $xcount)
{
$content = $content.", ";
}
}
return $content;
}
function getSdkType(SimpleXMLElement $xml)
{
if(isset($xml->app_xml_format))
{
if($xml->app_xml_format->attributes()->sdk_type == "PSM SDK")
{
return "PSM";
}
else
{
return "PSM Unity";
}
}
else
{
return "PSM";
}
}
if(isset($_GET["game"]))
{
$game = htmlspecialchars($_GET["game"], ENT_QUOTES);
$game = str_replace("/", "",$game);
$game = str_replace(".", "",$game);
$game = str_replace("*", "",$game);
if(strlen($game) != 9)
{
echo("I like to see girls die,
This is not the bug your looking for :P");
die();
}
echo("");
echo("");
$title = getTitle($game);
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
$genreList = $xml->genre_list->children();
$languageList = $xml->name->children();
$featureList = $xml->feature_list->children();
$SDKType = getSdkType($xml);
$zrifinfo = getZRIF($game);
$zrifPendingInfo = getPendingZRIF($game);
$pkgSony = getPKG($game);
$simulatorZip = "decrypted-files/".$game.".zip";
$isplayable = "";
if($zrifinfo == "MISSING" && $zrifPendingInfo == "MISSING")
{
$isplayable = "No, Missing zRIF - Do you have a working copy of this game?";
}
if(file_exists("psdp-packages/".$game.".psdp"))
{
$isplayable = "Yes, with PSDP Package in Developer Assistant";
}
if($zrifinfo != "MISSING")
{
$isplayable = "Yes! Copy zRIF String or Download FAKE.RIF";
}
if($zrifPendingInfo != "MISSING")
{
$isplayable = "Maybe, Ulthough it hasnt been tested yet- Copy zRIF String or Download FAKE.RIF";
}
echo'
'.$title.'
Genre: '.$genre.'
Version: '.$version.'
Author: '.$author.'
Website: '.$website.'