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 .' ('.$game.')

Downloads:

Decrypted Files (For Simulator)'; } else { echo 'button-disabled"> Decrypted Files (For Simulator)'; } echo '
'; } else { $searchUsed = isset($_GET["search"]); $simulatorSearch = false; $unplayableSearch = false; $playableSearch = false; if(isset($_GET["simulator"])) { if($_GET["simulator"] == "on") $simulatorSearch = true; } if(isset($_GET["unplayable"])) { if($_GET["unplayable"] == "on") $unplayableSearch = true; } if(isset($_GET["playable"])) { if($_GET["playable"] == "on") $playableSearch = true; } echo'

Title Title ID Developer
Show Playable (Has zRIF) Show Simulator-Ready Show Unplayable (Only PKG)
'; echo('
'); $dirlist = glob("gameinfo/*"); $playableList = getPlayableList(); $playablePendingList = getPendingPlayableList(); foreach ($dirlist as &$path) { $dirname = basename($path); $xml = simplexml_load_file($path . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT); $title = $xml->name->localized_item[0]->attributes()->value; $version = $xml->attributes()->version; $genre = $xml->genre_list->genre->attributes()->value; $author = $xml->developer->name->attributes()->value; $website = $xml->website->attributes()->href; $isPlayable = $playableList[$dirname] == 1 || file_exists("psdp-packages/".$dirname.".psdp"); $hasSimulator = file_exists("decrypted-files/".$dirname.".zip"); $isPlayablePending = $playablePendingList[$dirname] == 1; if($searchUsed) { $search = $_GET["search"]; if(isset($_GET["searchby"]) && $search !== "") { $searchby = $_GET["searchby"]; if($searchby === "title") { if(strpos(strtolower($title), strtolower($search)) === false) { continue; } } elseif($searchby === "titleid") { if(strpos(strtolower($dirname), strtolower($search)) === false) { continue; } } elseif($searchby === "dev") { if(strpos(strtolower($author), strtolower($search)) === false) { continue; } } } if(!$simulatorSearch) { if($hasSimulator) { continue; } } if(!$unplayableSearch) { if(!$isPlayable && !$isPlayablePending) { continue; } } if(!$playableSearch) { if(($isPlayable || $isPlayablePending) && !$hasSimulator) { continue; } } } echo '
'; if(getSdkType($xml) == "PSM Unity") { echo ''; } if($isPlayable) { echo ''; } if($isPlayablePending) { echo ''; } if($hasSimulator) { echo ''; } $authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev"; if($playableSearch === true || $searchUsed === false) $authorUrl .= "&playable=on"; if($simulatorSearch === true || $searchUsed === false) $authorUrl .= "&simulator=on"; if($unplayableSearch === true || $searchUsed === false) $authorUrl .= "&unplayable=on"; echo '

'.$title.'
Genre: '.$genre.'
Version: '.$version.'
Author:
'.$author.'
Website: '.$website.'

'; } echo('
'); } ?>