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/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 e100cf7..cb99d4a 100755 --- a/header.php +++ b/header.php @@ -1,146 +1,132 @@ + +", 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'; + } +?> + - + + + + + + + + + - /* - * Write title - */ - - echo(""); - $url = $_SERVER['REQUEST_URI']; - 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); - $title.= " - "; - } - else - { - $title .= "PSM Game Library - "; - } - } - else if(strpos($url, 'devtools.php') !== false) - { - $title .= "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); - $title .= $type."/ - "; - } - - } - - $title .= "PSM Reborn"; - - echo($title); - echo("\n"); - - 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(''); - ?> + + +
-
- - PSMReborn - PSMReborn - - + + PSMReborn + PSMReborn + + +
- -
- -
-
\ No newline at end of file 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/libary.php b/libary.php index 83be46e..f45211d 100755 --- a/libary.php +++ b/libary.php @@ -3,184 +3,158 @@ include("header.php"); ?> app_xml_format)) + function getSdkType(SimpleXMLElement $xml) { - if($xml->app_xml_format->attributes()->sdk_type == "PSM SDK") + if(isset($xml->app_xml_format)) { - return "PSM"; + if($xml->app_xml_format->attributes()->sdk_type == "PSM SDK") + { + return "PSM"; + } + else + { + return "PSM Unity"; + } } else { - return "PSM Unity"; + return "PSM"; } } - 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) + if(isset($_GET["game"])) { - 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('
+ $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"; + } + ?> +
+
+
+
+
+
-
-
- '. $title .' ('.$game.') -
- -
+
+ +
+
+ +
+

+
+ +
+ +
-
- -
- - -
- -
+
+ -
-
- '. printDescription($description, $defaultLocale) .' -
+ - -
- '.printScreenshotsImgTags($screenshot, $latestVersion, $game).' +
NoPsmDrm License
+ - + -
+ +
Decrypted Files (For Simulator)
+ - + - '; - $dirlist = glob("pkg/".$game."_00/*"); - $vercount = count($dirlist); - for($i = 0; $i < $vercount; $i++) - { - $ver = basename($dirlist[$i]); - - if($i == $vercount - 1) - { - echo''; - } - else - { - echo''; - } - } - - echo' - -
-
- '; -} -else -{ + } + ?> +
+
+ + ?> +
- -
- "/> +
+ >Title + >Title ID + >Developer
+ Title - >Show Playable (Has zRIF) + Title ID - >Show Simulator-Ready + Developer
- Show Playable (Has zRIF) - Show Simulator-Ready - Show Unplayable (Only PKG) + ?>>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") +
+ 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") { - echo ''; + if(strpos(strtolower($title), strtolower($search)) === false) + { + continue; + } } - if($isPlayable) + elseif($searchby === "titleid") { - echo ''; + if(strpos(strtolower($titleid), strtolower($search)) === false) + { + continue; + } } - if($isPlayablePending) + elseif($searchby === "dev") { - echo ''; + if(strpos(strtolower($author), strtolower($search)) === false) + { + continue; + } } + } + + + if(!$simulatorSearch) + { if($hasSimulator) { - echo ''; + 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"; - - echo ' -

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

- - -
'; + } + + 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:
+ + + +
+
+ +'); -} include("footer.php"); ?> - diff --git a/style.css b/style.css index 1dd05d4..28a3c7c 100755 --- a/style.css +++ b/style.css @@ -2,18 +2,20 @@ * header.php */ -.sitename img { + .sitename img { vertical-align: top; } - .sitename{ + .sitename { + text-decoration: none; font-weight: bold; float: left; height: 40px; + display: flex; } - .sitemap{ - float:right; + .sitemap { + float: right; height: 40px; margin: 0; line-height: 100%; @@ -62,6 +64,8 @@ background-color: #00CCCC; z-index: 10; position: relative; + display: flex; + justify-content: space-between; } @@ -89,7 +93,7 @@ width: 600px; left: 50%; margin-left: -280px; - + margin-bottom: 20px; } @@ -101,6 +105,9 @@ #psm-gamelist { position: inherit; text-align:center; + display: flex; + flex-wrap: wrap; + justify-content: center; } #search-form{ @@ -151,9 +158,10 @@ } - .psm-game img{ + .psm-game > img{ float: left; - margin-right:1rem; + margin: auto 0.5rem auto 0.5rem; + border-radius: 10px; } .psm-game a:link, a:visited{ @@ -168,29 +176,58 @@ text-decoration: underline; } - .psm-game{ - padding: 5px; - width: 400px; - height: 124px; - margin: 10px; - background-color: #0094ff; - color: white; - border-radius: 5px; - text-align: left; - - white-space: nowrap; - overflow: hidden; - - display: inline-block; - vertical-align: middle; + display: flex; + + 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{ background-color: #005796; cursor:pointer; } + + .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-game-title { + display: flex; + flex-direction: row; + align-items: center; + } + + .psm-game-title > span { + margin-right: 3px; + } + .psm-meta { + backdrop-filter: blur(10px); + } + .psm-meta > #psm-title{ font-size: 200%; text-align: center; @@ -214,15 +251,15 @@ .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{ - margin: 2%; - font-weight: bold; - width: 96%; + margin: 2% 2% 0%; + width: 96%; } .psm-meta > #psm-screenshots{ @@ -270,6 +307,7 @@ height:100%; background-size: cover; background-repeat: no-repeat; + background-position: center; left:0px; top:0px; position: fixed; @@ -405,7 +443,6 @@ } .button-disabled{ - width: 300px; height: 50px; @@ -419,4 +456,33 @@ 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%); + background-attachment: fixed; + } + + .blue-scrollbar { + padding-bottom: 10px; + margin-bottom: 2.5%; } \ No newline at end of file