diff --git a/footer.php b/footer.php index e78e3ef..b353eb4 100644 --- a/footer.php +++ b/footer.php @@ -1,3 +1,2 @@ - \ No newline at end of file diff --git a/header.php b/header.php index 80ad834..7715d90 100755 --- a/header.php +++ b/header.php @@ -9,11 +9,6 @@ $description = ""; $image = ""; - /* - * Write title - */ - - echo(""); $url = $_SERVER['REQUEST_URI']; if(strpos($url, 'libary.php') !== false) { @@ -48,9 +43,11 @@ } $title .= "PSM Reborn"; - - echo($title); - echo("\n"); + + /* + * Write title + */ + echo("".$title."\n"); if(strpos($url, 'libary.php') !== false) { @@ -124,20 +121,17 @@
-
- - PSMReborn - PSMReborn - - + + PSMReborn + PSMReborn + + +
- -
- -
-
\ No newline at end of file diff --git a/libary.php b/libary.php index c380770..5be8895 100755 --- a/libary.php +++ b/libary.php @@ -3,184 +3,155 @@ 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"; + } + } + 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"; + } + ?> +
+
+
+
+
+ +
+
+ +
+
+ +
+

+
+ +
+ +
-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"; - } -} +
+ + + + + +
NoPsmDrm License
+ + + + + + + +
Decrypted Files (For Simulator)
+ -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(); - } - 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"; - - $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; - - $defaultLocale = (string)$metadataXML->localizedMetadataList->attributes()->default_locale; - - $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.') -
- -
- -
- -
- - -
- -
-
- -
-
- '. printDescription($description, $defaultLocale) .' -
-
- - -
- '.printScreenshotsImgTags($screenshot, $latestVersion, $game).' -
- - -
- - - - - '); - - if($zrifinfo == "MISSING"){ - echo('
- NoPsmDrm License -
'); - } - else{ - echo(' - '); - } - - echo('
- Decrypted Files (For Simulator)'; - } - else - { - echo 'button-disabled"> - Decrypted Files (For Simulator)'; - } - echo '
- - -
-
- '; -} -else -{ + +
+
+ + ?> + +
- -
- Title - Title ID - Developer
- Show Playable (Has zRIF) - Show Simulator-Ready - Show Unplayable (Only PKG) + "/> + + Submit
+ + >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) { - $titleid = 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[$titleid] == 1 || file_exists("psdp-packages/".$titleid.".psdp"); - $hasSimulator = file_exists("decrypted-files/".$titleid.".zip"); - $isPlayablePending = false; - - 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; - } - } - } - - echo '
- - - '; - - if(getSdkType($xml) == "PSM Unity") - { - echo ''; - } - if($isPlayable) - { - echo ''; - } - if($isPlayablePending) - { - echo ''; - } - if($hasSimulator) - { - echo ''; - } - + '); -} + ?> + + + + + + + + +
Genre:
Version:
Author:
Website:
+
+ + + - diff --git a/style.css b/style.css index 1dd05d4..87a1b8d 100755 --- a/style.css +++ b/style.css @@ -2,18 +2,24 @@ * header.php */ -.sitename img { + .sitename img { vertical-align: top; } - .sitename{ + .sitename { + text-decoration: none; font-weight: bold; float: left; height: 40px; } + + .sitename > span { + height: 100%; + display: inline-block; + } - .sitemap{ - float:right; + .sitemap { + float: right; height: 40px; margin: 0; line-height: 100%; @@ -101,6 +107,8 @@ #psm-gamelist { position: inherit; text-align:center; + display: flex; + flex-wrap: wrap; } #search-form{ @@ -151,9 +159,9 @@ } - .psm-game img{ + .psm-game > img{ float: left; - margin-right:1rem; + margin-right:0.5rem; } .psm-game a:link, a:visited{ @@ -170,20 +178,22 @@ .psm-game{ + display: flex; + padding: 5px; - width: 400px; - height: 124px; + width: 20%; + min-width: 400px; + height: 150px; margin: 10px; background-color: #0094ff; color: white; border-radius: 5px; text-align: left; - white-space: nowrap; overflow: hidden; - - display: inline-block; + white-space: nowrap; vertical-align: middle; + text-decoration: none; } .psm-game:hover{ @@ -214,9 +224,10 @@ .psm-meta > #psm-downloads{ color: white; display: flex; - flex-direction: row; - width: 100%; justify-content: center; + flex-direction: row; + flex-wrap: wrap; + width: 100%; } .psm-meta > #psm-description{ @@ -270,9 +281,11 @@ height:100%; background-size: cover; background-repeat: no-repeat; + background-position: center; left:0px; top:0px; position: fixed; + filter: blur(10px); } /*