From 7d9a8c7491e8cc83620722a14052be231b88f674 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 16:40:47 +0200 Subject: [PATCH 01/13] make library less of a hacky mess --- footer.php | 1 - header.php | 40 ++-- libary.php | 646 +++++++++++++++++++++++++---------------------------- style.css | 39 ++-- 4 files changed, 345 insertions(+), 381 deletions(-) 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); } /* From af0fb3d719162d3bbefd10d039cd1729d99d6a55 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 16:51:15 +0200 Subject: [PATCH 02/13] missing echos --- libary.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libary.php b/libary.php index 5be8895..edf4ac3 100755 --- a/libary.php +++ b/libary.php @@ -89,9 +89,9 @@ include("header.php");
From bd7fa4620e2323876592c5e5e0c4a1920719acbe Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 17:10:17 +0200 Subject: [PATCH 03/13] devtools less hacky --- devtools.php | 345 +++++++++++++++++++++++---------------------------- header.php | 222 ++++++++++++++++----------------- 2 files changed, 259 insertions(+), 308 deletions(-) diff --git a/devtools.php b/devtools.php index 314f596..c1c35d8 100755 --- a/devtools.php +++ b/devtools.php @@ -150,7 +150,6 @@ function getIcon(string $file) return "/img/logo.png"; } } - ?>
@@ -171,211 +170,171 @@ function getIcon(string $file) echo "

What are you looking for?

"; } - if($type == "") - { - echo'
- - - - PSM Unity - - -
- -
- - - - PSM - - -
- -
- - - - PSM Android - - -
- -
- - - - Unofficial Tools - - -
'; + if($type == "") { ?> + + + + PSM Unity + + + + + + + PSM + + + + + + + PSM Android + + + + + + + Unofficial Tools + + + - - - - PSM SDK - - -
- -
- - - - PSM Runtime - - -
- -
- - - - Dev Assistant - - -
- -
- - - - PSDP Packages - - -
- -
- - - - Documentation - - -
- -
- - - - PSM Sources - - -
- -
- - - - Publisher Keys - - -
- - -
- - - - PSM Drivers - - -
- '; + ?> + + + + PSM SDK + + + + + + + PSM Runtime + + + + + + + Dev Assistant + + + + + + + PSDP Packages + + + + + + + Documentation + + + + + + + PSM Sources + + + + + + + Publisher Keys + + + + + + + PSM Drivers + + + - - - - PSM Mono Src - - - - -
- - - - PSM Games Src - - -
- '; + ?> + + + + PSM Mono Src + + + + + + + PSM Games Src + + + - - - - Unity Exports - - - - -
- - - - Dev Assistant - - -
- -
- - - - Documentation - - -
- -
- - - - Assets - - -
- -
- - - - Tools for Unity - - -
- -
- - - - PSDP Packages - - -
- '; + ?> + + + + Unity Exports + + + + + + + Dev Assistant + + + + + + + Documentation + + + + + + + Assets + + + + + + + Tools for Unity + + + + + + + PSDP Packages + + + - - - - '.getName(pathinfo(basename($path), PATHINFO_FILENAME)).' - - - '; - } + foreach ($dirlist as &$path) { ?> + + + + + + + diff --git a/header.php b/header.php index 9c1b1d6..e79fbc5 100755 --- a/header.php +++ b/header.php @@ -1,126 +1,118 @@ + +", PHP_EOL, $description); + $descsocial = str_replace("
", PHP_EOL, $descsocial); + $descsocial = str_replace("
", PHP_EOL, $descsocial); + $descsocial = str_replace("
", PHP_EOL, $descsocial); + $descsocial = str_replace('"', '', $descsocial); + $descsocial = str_replace("'", "", $descsocial); + + /* + * Default Image + */ + if($image == "") + { + $image .= 'http://'.$_SERVER['HTTP_HOST'].'/img/logo.png'; + } +?> + - ".$title."\n"); + <?php echo $title ?> + + + + + + + + + - if(strpos($url, 'libary.php') !== false) - { - if(isset($_GET["game"])) - { - $game = htmlspecialchars($_GET["game"], ENT_QUOTES); - $game = str_replace("/", "",$game); - $game = str_replace(".", "",$game); - $game = str_replace("*", "",$game); - $title = getTitle($game); - $description = $title . " - "; - $description .= getDesc($game); - $description .= " - PSMReborn #1 place for all PSM Content"; - $image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png'; - } - else - { - $description .= "PlayStation Mobile Game/App Library - PSMReborn #1 place for all PSM Content"; - } - } - else if(strpos($url, 'devtools.php') !== false) - { - $description .= "PlayStation Mobile Development Tools"; - if(isset($_GET["type"])) - { - $type = htmlspecialchars($_GET["type"], ENT_QUOTES); - $type = str_replace("/", "",$type); - $type = str_replace(".", "",$type); - $type = str_replace("*", "",$type); - $description .= " - ".$type."/"; - } - $description .= " - PSMReborn #1 place for all PSM Content"; - } - else - { - $description = "PSMReborn is the largest archive of PlayStation Mobile content on the internet containing Games, SDK's, Source Code, and Unity for PSM exporters."; - } - - $descsocial = str_replace("
", PHP_EOL, $description); - $descsocial = str_replace("
", PHP_EOL, $descsocial); - $descsocial = str_replace("
", PHP_EOL, $descsocial); - $descsocial = str_replace("
", PHP_EOL, $descsocial); - $descsocial = str_replace('"', '', $descsocial); - $descsocial = str_replace("'", "", $descsocial); - - - /* - * Write metadata - */ - echo(''); - echo(''); - echo(''); - echo(''); - - /* - * Default Image - */ - if($image == "") - { - $image .= 'http://'.$_SERVER['HTTP_HOST'].'/img/logo.png'; - } - /* - * Social Media - */ - - echo(''); - echo(''); - echo(''); - - echo(''); - echo(''); - echo(''); - ?> + + +
From be1a8564344c90b5dacbc9ab04d0d9b44f99b11f Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 17:23:33 +0200 Subject: [PATCH 04/13] fix website link --- libary.php | 19 +++++++++++++++---- style.css | 5 +++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/libary.php b/libary.php index edf4ac3..6b5638d 100755 --- a/libary.php +++ b/libary.php @@ -330,12 +330,23 @@ include("header.php"); - - - - + + + + + + + + + + + +
Genre:
Version:
Author:
Website:
Genre:
Version:
Author:
+ + +
diff --git a/style.css b/style.css index 87a1b8d..944fb8a 100755 --- a/style.css +++ b/style.css @@ -200,6 +200,11 @@ background-color: #005796; cursor:pointer; } + + .psm-game-info { + display: flex; + flex-direction: column; + } .psm-meta > #psm-title{ font-size: 200%; From c9781f193e74b946a9285b60fdf906c7de747eb1 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 17:24:36 +0200 Subject: [PATCH 05/13] submit button shouldnt have text --- libary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libary.php b/libary.php index 6b5638d..d3fe2a4 100755 --- a/libary.php +++ b/libary.php @@ -185,7 +185,7 @@ include("header.php"); } ?>"/> - Submit
+
Date: Mon, 19 Sep 2022 17:50:10 +0200 Subject: [PATCH 06/13] fix some index stuff --- index.php | 15 ++++++++------- style.css | 3 ++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index 4d7fdb5..0b1be56 100755 --- a/index.php +++ b/index.php @@ -15,21 +15,22 @@ Have a look around though, i got stuff for end-users and developers alike!
Under "Library" section you can find info on every PSM Game ever made. and
Under "Development Tools" section you can find SDK's and Unity Builds, as well as Homebrew PSDP Packages

-

Dont have a PSVita? or want to play PSM games on your computer? Download PSMUI 1.0 +

Dont have a PSVita? or want to play PSM games on your computer?
+ Download PSMUI 1.0
-
So.. I recently discovered that psmreborn.com is NOT blocked in china
-
+
+



  --> +
- psmreborn.torrent - For ALL Files. diff --git a/style.css b/style.css index 944fb8a..c654779 100755 --- a/style.css +++ b/style.css @@ -95,7 +95,7 @@ width: 600px; left: 50%; margin-left: -280px; - + margin-bottom: 20px; } @@ -109,6 +109,7 @@ text-align:center; display: flex; flex-wrap: wrap; + justify-content: center; } #search-form{ From 45fa627d88f0969b5e7027d36d899e323bdc4807 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 17:53:54 +0200 Subject: [PATCH 07/13] change background filter --- style.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index c654779..06457d5 100755 --- a/style.css +++ b/style.css @@ -207,6 +207,10 @@ flex-direction: column; } + .psm-meta { + backdrop-filter: blur(10px); + } + .psm-meta > #psm-title{ font-size: 200%; text-align: center; @@ -291,7 +295,6 @@ left:0px; top:0px; position: fixed; - filter: blur(10px); } /* From fced59ec001e2f0ede932cd618098db5a96514ef Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 18:19:47 +0200 Subject: [PATCH 08/13] pretty scroll bar --- libary.php | 7 +++++-- style.css | 39 +++++++++++++++++++++++++++++++++++---- 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/libary.php b/libary.php index d3fe2a4..e6a7628 100755 --- a/libary.php +++ b/libary.php @@ -101,7 +101,7 @@ include("header.php");

-
+
@@ -248,6 +248,9 @@ include("header.php"); $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) { @@ -345,7 +348,7 @@ include("header.php"); - +
diff --git a/style.css b/style.css index 06457d5..4aa0d06 100755 --- a/style.css +++ b/style.css @@ -16,6 +16,7 @@ .sitename > span { height: 100%; display: inline-block; + position: absolute; } .sitemap { @@ -206,6 +207,10 @@ display: flex; flex-direction: column; } + + .psm-game-info > object > a { + padding-left: 4px; + } .psm-meta { backdrop-filter: blur(10px); @@ -241,9 +246,8 @@ } .psm-meta > #psm-description{ - margin: 2%; - font-weight: bold; - width: 96%; + margin: 2% 2% 0%; + width: 96%; } .psm-meta > #psm-screenshots{ @@ -427,7 +431,6 @@ } .button-disabled{ - width: 300px; height: 50px; @@ -441,4 +444,32 @@ color: #cfd2d3; cursor: arrow; border-radius: 20px; + } + + a { + user-select: none; + } + + .blue-scrollbar::-webkit-scrollbar-track + { + box-shadow: inset 0 0 6px rgba(0,0,0,0.3); + background-color: #11101000; + border-radius: 10px; + } + + .blue-scrollbar::-webkit-scrollbar + { + width: 10px; + background-color: rgba(0,0,0,0); + } + + .blue-scrollbar::-webkit-scrollbar-thumb + { + border-radius: 10px; + background-image: linear-gradient(90deg, rgba(245,148,215,1) 0%, rgba(167,234,255,1) 94%); + } + + .blue-scrollbar { + padding-bottom: 10px; + margin-bottom: 2.5%; } \ No newline at end of file From 11bf55db841e74d52b049aa55853fd67d54da2fa Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 18:53:17 +0200 Subject: [PATCH 09/13] format a bit --- libary.php | 81 +++++++++++++++++++++++++----------------------------- 1 file changed, 37 insertions(+), 44 deletions(-) diff --git a/libary.php b/libary.php index e6a7628..1dd4b59 100755 --- a/libary.php +++ b/libary.php @@ -114,44 +114,47 @@ include("header.php"); PKG (PSMReborn Server) - -
NoPsmDrm License
- -
- NoPsmDrm License -
- - - -
- Decrypted Files (For Simulator) -
- -
Decrypted Files (For Simulator)
+
NoPsmDrm License
+
+ NoPsmDrm License +
- '.$ver.''; - } - else - { - echo''; - } + echo''; } - ?> - + else + { + echo''; + } + } + ?> - -
"/> -
- >Title - >Title ID - >Developer
- >Show Playable (Has zRIF) - >Show Simulator-Ready -
- @@ -322,6 +316,7 @@ include("header.php"); - - + ?>
From 1c80ee4202c8e3b58cf4ad87cd5640dd8dc22907 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 19:03:40 +0200 Subject: [PATCH 10/13] tabs --- libary.php | 524 ++++++++++++++++++++++++++--------------------------- 1 file changed, 262 insertions(+), 262 deletions(-) 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"; - } - ?> -
-
-
-
-
- -
-
- -
-
- -
-

-
- -
- -
+ 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"; + } + ?> +
+
+
+
+
+ +
+
+ +
+
+ +
+

+
+ +
+ +
-
- - - - -
NoPsmDrm License
- - +
+ + + + +
NoPsmDrm License
+ + - -
Decrypted Files (For Simulator)
- + +
Decrypted Files (For Simulator)
+ - -
-
+ +
+
-
+ ?> +
"/> + if(isset($_GET["search"])) { + echo htmlspecialchars($_GET["search"], ENT_QUOTES); + } + ?>"/>
>Title + if(!$searchUsed || isset($_GET["searchby"])) { + if(!$searchUsed || $_GET["searchby"] == "title" ) { + echo 'checked="checked"'; + } + } + ?>>Title >Title ID + if(isset($_GET["searchby"])) { + if($_GET["searchby"] == "titleid") { + echo 'checked="checked"'; + } + } + ?>>Title ID >Developer
+ if(isset($_GET["searchby"])) { + if($_GET["searchby"] == "dev") { + echo 'checked="checked"'; + } + } + ?>>Developer
>Show Playable (Has zRIF) + if(!$searchUsed || $playableSearch) { + echo 'checked="checked"'; + } + ?>>Show Playable (Has zRIF) >Show Simulator-Ready >Show Unplayable (Only PKG)
- 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; + 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($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; - } - } - } - ?> + 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; + } + } + } + ?> - +
@@ -325,30 +325,30 @@ include("header.php"); if($unplayableSearch === true || $searchUsed === false) $authorUrl .= "&unplayable=on"; ?>
Genre:
- - + + - + - + - -
Genre:
Version:
Author:
+ + -
+
From 21a760ff93347badf6e2ea7628c75aaa720c1af2 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 22:45:12 +0200 Subject: [PATCH 11/13] fixed background scrollbar --- style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/style.css b/style.css index 4aa0d06..c155e72 100755 --- a/style.css +++ b/style.css @@ -467,6 +467,7 @@ { border-radius: 10px; background-image: linear-gradient(90deg, rgba(245,148,215,1) 0%, rgba(167,234,255,1) 94%); + background-attachment: fixed; } .blue-scrollbar { From 3d12fc4db7734326db3a93502220831caed7fdb1 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Mon, 19 Sep 2022 23:12:54 +0200 Subject: [PATCH 12/13] header --- header.php | 2 +- style.css | 46 ++++++++++++++++++++++++---------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/header.php b/header.php index e79fbc5..cb99d4a 100755 --- a/header.php +++ b/header.php @@ -103,7 +103,7 @@ - + diff --git a/style.css b/style.css index c155e72..fe1b191 100755 --- a/style.css +++ b/style.css @@ -11,12 +11,7 @@ font-weight: bold; float: left; height: 40px; - } - - .sitename > span { - height: 100%; - display: inline-block; - position: absolute; + display: flex; } .sitemap { @@ -69,6 +64,8 @@ background-color: #00CCCC; z-index: 10; position: relative; + display: flex; + justify-content: space-between; } @@ -163,7 +160,8 @@ .psm-game > img{ float: left; - margin-right:0.5rem; + margin: auto 0.5rem auto 0.5rem; + border-radius: 10px; } .psm-game a:link, a:visited{ @@ -178,24 +176,23 @@ text-decoration: underline; } - .psm-game{ display: flex; - padding: 5px; - width: 20%; - min-width: 400px; - height: 150px; - margin: 10px; - background-color: #0094ff; - color: white; - border-radius: 5px; - text-align: left; - - overflow: hidden; - white-space: nowrap; - vertical-align: middle; - text-decoration: none; + padding: 5px; + width: 20%; + min-width: 400px; + height: 150px; + margin: 10px; + background-color: #0094ff; + color: white; + border-radius: 10px; + text-align: left; + + overflow: hidden; + white-space: nowrap; + vertical-align: middle; + text-decoration: none; } .psm-game:hover{ @@ -206,11 +203,16 @@ .psm-game-info { display: flex; flex-direction: column; + margin-top: 0.5rem; } .psm-game-info > object > a { padding-left: 4px; } + + .psm-game-info > table { + display: block; + } .psm-meta { backdrop-filter: blur(10px); From 207a52987abb4fb9481456819ac3e022ef9a1e06 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:25:55 +0200 Subject: [PATCH 13/13] move playable icon next to title --- libary.php | 40 +++++++++++++++++++++------------------- style.css | 10 ++++++++++ 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/libary.php b/libary.php index 05e0f35..f45211d 100755 --- a/libary.php +++ b/libary.php @@ -302,29 +302,31 @@ include("header.php"); } } } + + $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"; ?>
- - - - - - - - - - +
+ + + + + + + + + + +
+
diff --git a/style.css b/style.css index fe1b191..28a3c7c 100755 --- a/style.css +++ b/style.css @@ -213,6 +213,16 @@ .psm-game-info > table { display: block; } + + .psm-game-title { + display: flex; + flex-direction: row; + align-items: center; + } + + .psm-game-title > span { + margin-right: 3px; + } .psm-meta { backdrop-filter: blur(10px);
Genre: