diff --git a/libary.php b/libary.php
index f45211d..2ca54a5 100755
--- a/libary.php
+++ b/libary.php
@@ -1,356 +1,356 @@
-
-
-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";
- }
- ?>
-
- 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[$titleid] == 1 || file_exists("psdp-packages/".$titleid.".psdp");
- $hasSimulator = file_exists("decrypted-files/".$titleid.".zip");
- $isPlayablePending = false;
-
- preg_match('/https?:\/\/(?:www\.)?(.+[^\/])/', $website, $website_array);
- $websitePretty = $website_array[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($titleid), 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;
- }
- }
- }
-
- $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";
- ?>
-
-
-
-
-
-
-
- Genre: |
- |
-
-
- Version: |
- |
-
-
- Author: |
- |
-
-
-
-
-
-
-
-
+
+
+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";
+ }
+ ?>
+
+
+
+
+
+
+
+
+ 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[$titleid] == 1 || file_exists("psdp-packages/".$titleid.".psdp");
+ $hasSimulator = file_exists("decrypted-files/".$titleid.".zip");
+ $isPlayablePending = false;
+
+ preg_match('/https?:\/\/(?:www\.)?(.+[^\/])/', $website, $website_array);
+ $websitePretty = $website_array[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($titleid), 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;
+ }
+ }
+ }
+
+ $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";
+ ?>
+
+
+
+
+
+
+
+ Genre: |
+ |
+
+
+ Version: |
+ |
+
+
+ Author: |
+ |
+
+
+
+
+
+
+
+