diff --git a/libary.php b/libary.php index 1dd4b59..ce37593 100755 --- a/libary.php +++ b/libary.php @@ -3,156 +3,156 @@ include("header.php"); ?> app_xml_format)) - { - if($xml->app_xml_format->attributes()->sdk_type == "PSM SDK") - { - return "PSM"; - } - else - { - return "PSM Unity"; - } - } - else - { - return "PSM"; - } - } + 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("This is not the bug your looking for :P"); - die(); - } - ?> - - - 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"; - - $verXML = simplexml_load_file('gameinfo/' . $game . "/version.xml", 'SimpleXMLElement', LIBXML_NOENT); - $latestVersion = (string)($verXML->appVersion); - $pkgReborn = "/pkg/".$game."_00/".$latestVersion."/".$game."_00.pkg"; - - $metadataXML = simplexml_load_file('gameinfo/' . $game . "/". $latestVersion ."/metadata.xml", 'SimpleXMLElement', LIBXML_NOENT); - $description = $metadataXML->localizedMetadataList->children(); - $screenshot = $metadataXML->screenShotList->screenShot; - $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"; - } - ?> -
- -