forked from Li/psmreborn
Update code
This commit is contained in:
parent
a9457af74b
commit
0d261c9d12
9
404.php
9
404.php
|
@ -1,7 +1,12 @@
|
|||
<?php
|
||||
$resp_codes = array(200,404,500,403);
|
||||
$resp_codes = array(200,404,500,403,301);
|
||||
$code = $resp_codes[array_rand($resp_codes)];
|
||||
http_response_code($code); //Troll fuzzers
|
||||
|
||||
echo("<h1>Error: ".$code."</h1>");
|
||||
echo("Theres nothing here! go back or something.<br><script>location='https://psmreborn.com/'</script>");
|
||||
for($i = 0; $i < 50; $i++){
|
||||
echo("<br>");
|
||||
}
|
||||
$troll = fopen("roll.bin", "rb");
|
||||
fpassthru($troll);
|
||||
?>
|
||||
|
|
96
common.php
96
common.php
|
@ -5,7 +5,7 @@ function update_rifs()
|
|||
$npsPendingTime = filemtime("NpsPendingPsm.tsv");
|
||||
|
||||
|
||||
if(time() > $npsTime + 86400)
|
||||
if(time() > $npsTime + 60)
|
||||
{
|
||||
rename("NpsPsm.tsv","nps-backup/NpsPsm_".strval($npsTime).".tsv");
|
||||
rename("NpsPendingPsm.tsv","nps-backup/NpsPendingPsm_".strval($npsPendingTime).".tsv");
|
||||
|
@ -19,10 +19,102 @@ if(strcmp($_SERVER['HTTP_HOST'],"psmreborn.com") !== 0)
|
|||
{
|
||||
if(strcmp($_SERVER['HTTP_HOST'],"psm.cbps.xyz") !== 0)
|
||||
{
|
||||
die("Invalid request! HOST: ".$_SERVER['HTTP_HOST']);
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
die("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n<html><head>\r\n<title>403 Forbidden</title>\r\n</head><body>\r\n<h1>Forbidden</h1>\r\n<p>You don't have permission to access this resource.</p>\r\n<hr>\r\n<address>Apache/2.4.41 (Ubuntu) Server at ".$_SERVER['HTTP_HOST']." Port 80</address>\r\n</body></html>");
|
||||
}
|
||||
}
|
||||
|
||||
function printGenreList(SimpleXMLElement $xml)
|
||||
{
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$genre = $xml[$x]->attributes()->value;
|
||||
$content = $content.$genre;
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content.", ";
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printLanguageList(SimpleXMLElement $xml)
|
||||
{
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$language = $xml[$x]->attributes()->locale;
|
||||
$content = $content.$language;
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content.", ";
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printScreenshotsLinks(SimpleXMLElement $xml, $ver, $titleid)
|
||||
{
|
||||
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
if($xcount >= 1){
|
||||
$content = ", ";
|
||||
}
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$content = $content."<a href=\"/gameinfo/".$titleid."/".$ver."/".$xml[$x]."\" class=\"white\">".$xml[$x]." </a>";
|
||||
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content . ", ";
|
||||
}
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printScreenshotsImgTags(SimpleXMLElement $xml, $ver, $titleid)
|
||||
{
|
||||
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$content = $content."<img src=\"/gameinfo/".$titleid."/".$ver."/".$xml[$x]."\" class=\"psm-screenshot\" />";
|
||||
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printDescription(SimpleXMLElement $xml, $flocale){
|
||||
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$locale = $xml[$x]->attributes()->locale;
|
||||
|
||||
if($locale == $flocale){
|
||||
$content = (string)$xml[$x]->description;
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
|
||||
}
|
||||
|
||||
function getLatestVer(string $game){
|
||||
$verXML = simplexml_load_file('gameinfo/' . $game . "/version.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
$latestVersion = (string)($verXML->appVersion);
|
||||
return $latestVersion;
|
||||
}
|
||||
|
||||
function getDesc(string $game){
|
||||
$version = getLatestVer($game);
|
||||
$mdxml = simplexml_load_file('gameinfo/' . $game . "/".$version."/metadata.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
return printDescription($mdxml->localizedMetadataList->children(), "en");
|
||||
}
|
||||
|
||||
function getTitle(string $game)
|
||||
{
|
||||
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
|
|
|
@ -379,3 +379,7 @@ function getIcon(string $file)
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include("footer.php");
|
||||
?>
|
4
faq.php
4
faq.php
|
@ -10,3 +10,7 @@ include("header.php");
|
|||
A: Yes! please do~ We're using the <a href="http://beta.nopaystation.com" class="black">NoPayStation</a> Database for PSM zRIF's, Check the <a href="http://beta.nopaystation.com/faq" class="black">NoPayStation FAQ</a> for more info. - Contact me <a href="https://twitter.com/silicadevs" class="black">@SilicaDevs</a> if unsure. *we need all the games!*
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include("footer.php");
|
||||
?>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
</body>
|
||||
|
||||
</html>
|
69
header.php
69
header.php
|
@ -1,4 +1,6 @@
|
|||
<?php include("common.php"); ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
<script src="common.js"></script>
|
||||
|
@ -50,13 +52,6 @@
|
|||
echo($title);
|
||||
echo("</title>\n");
|
||||
|
||||
/*
|
||||
* Write metadata
|
||||
*/
|
||||
echo('<meta charset="utf-8">');
|
||||
echo('<meta name="robots" content="all">');
|
||||
echo('<meta name="viewport" content="width=1000; user-scalable=0;"/>');
|
||||
echo('<meta name="Description" content="');
|
||||
if(strpos($url, 'libary.php') !== false)
|
||||
{
|
||||
if(isset($_GET["game"]))
|
||||
|
@ -66,31 +61,9 @@
|
|||
$game = str_replace(".", "",$game);
|
||||
$game = str_replace("*", "",$game);
|
||||
$title = getTitle($game);
|
||||
$simulatorZip = "decrypted-files/".$game.".zip";
|
||||
$zrif = getZRIF($game);
|
||||
$pendingZrif = getPendingZRIF($game);
|
||||
|
||||
$playable = (($zrif != "MISSING" || $pendingZrif) && file_exists("psdp-packages/".$game.".psdp") == false);
|
||||
|
||||
$description .= "PlayStation Mobile PKG/ROM Download links for ".$title." (".$game." - ";
|
||||
if($playable)
|
||||
{
|
||||
$description .= "playable)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$description .= "unplayable)";
|
||||
}
|
||||
$description .= " Download ".$game.".pkg, ";
|
||||
if(file_exists($simulatorZip))
|
||||
{
|
||||
$description .= $game.".zip (Simulator), ";
|
||||
}
|
||||
if(file_exists("psdp-packages/".$game.".psdp"))
|
||||
{
|
||||
$description .= $game.".psdp, ";
|
||||
}
|
||||
$description .= "now! - PSMReborn #1 place for all PSM Content";
|
||||
$description = $title . " - ";
|
||||
$description .= getDesc($game)." - ";
|
||||
$description .= " - PSMReborn #1 place for all PSM Content";
|
||||
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png';
|
||||
}
|
||||
else
|
||||
|
@ -113,12 +86,18 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
echo("PSMReborn is the largest archive of PlayStation Mobile content on the internet containing Games, SDK's, Source Code, and Unity for PSM exporters.");
|
||||
$description = "PSMReborn is the largest archive of PlayStation Mobile content on the internet containing Games, SDK's, Source Code, and Unity for PSM exporters.";
|
||||
}
|
||||
|
||||
|
||||
echo($description);
|
||||
echo('">');
|
||||
$descsocial = str_replace("<br>", PHP_EOL, $description);
|
||||
$descsocial = str_replace('"', '\\"', $descsocial);
|
||||
/*
|
||||
* Write metadata
|
||||
*/
|
||||
echo('<meta charset="utf-8">');
|
||||
echo('<meta name="robots" content="all">');
|
||||
echo('<meta name="viewport" content="width=1000; user-scalable=0;"/>');
|
||||
echo('<meta name="Description" content="'.$descsocial.'"/>');
|
||||
|
||||
/*
|
||||
* Default Image
|
||||
|
@ -130,21 +109,24 @@
|
|||
/*
|
||||
* Social Media
|
||||
*/
|
||||
echo('<meta property="og:image" content="'.$image.'">');
|
||||
echo('<meta property="og:title" content="'.$title.'">');
|
||||
echo('<meta property="og:description" content="'.$description.'"');
|
||||
|
||||
echo('<meta property="twitter:image" content="'.$image.'">');
|
||||
echo('<meta property="twitter:title" content="'.$title.'">');
|
||||
echo('<meta property="twitter:description" content="'.$description.'"');
|
||||
echo('<meta property="og:image" content="'.$image.'"/>');
|
||||
echo('<meta property="og:title" content="'.$title.'"/>');
|
||||
echo('<meta property="og:description" content="'.$descsocial.'"/>');
|
||||
|
||||
echo('<meta property="twitter:image" content="'.$image.'"/>');
|
||||
echo('<meta property="twitter:title" content="'.$title.'"/>');
|
||||
echo('<meta property="twitter:description" content="'.$descsocial.'"/>');
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="sitename">
|
||||
<a href="/" class="image">
|
||||
<img src="img/logo.png" alt="PSMReborn" width="40" height="40">
|
||||
<span>PSMReborn</span>
|
||||
|
||||
</a>
|
||||
PSMReborn
|
||||
</div>
|
||||
|
||||
<div class="sitemap">
|
||||
|
@ -155,3 +137,4 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
32
index.php
32
index.php
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
include("header.php");
|
||||
?>
|
||||
<body>
|
||||
<div id="welcome-page">
|
||||
<img src="img/logo.png" width="144" height="144">
|
||||
<h1>Welcome to PSM Reborn!</h1>
|
||||
|
@ -17,22 +16,25 @@
|
|||
Under "<a href="/libary.php" class="white">Library</a>" section you can find info on every PSM Game ever made. and<br>
|
||||
Under "<a href="/devtools.php" class="white">Development Tools</a>" section you can find SDK's and Unity Builds, as well as Homebrew PSDP Packages</p>
|
||||
<br><br>Dont have a PSVita? or want to play PSM games on your computer? <a href="/psm-tools/PSMUI-v1.0.zip" class="white">Download PSMUI 1.0</a>
|
||||
</div>
|
||||
<br>
|
||||
<center>
|
||||
<b>So.. I recently discovered that psmreborn.com is NOT blocked in china</b><br>
|
||||
<video width="480" height="272" controls>
|
||||
<source src="videos/china.mp4" type="video/mp4">
|
||||
Your browser does not support the video tag.
|
||||
</video><br>
|
||||
<!--<form action="/1337/index.php" method="POST">
|
||||
<input type="hidden" name="url" value="https://www.torproject.org/download/"></input>
|
||||
<input type="submit" value="If your internet is censored - Click to Download the Tor Browser (Proxied)"></input>
|
||||
</form>--!>
|
||||
</center>
|
||||
<br><br><br>
|
||||
</div>-->
|
||||
|
||||
<div id="contact">
|
||||
<span id="twitter">
|
||||
<a href="https://twitter.com/silicadevs" class="image">
|
||||
<img src="/img/twitter.png" width="30" height="30" class="mid" alt="Twitter">
|
||||
</a>
|
||||
<a href="https://twitter.com/silicadevs" class="white">@SilicaDevs</a>
|
||||
</span>
|
||||
<span id="youtube">
|
||||
<a href="https://youtube.com/c/silicasan" class="image">
|
||||
<img src="/img/youtube.png" width="30" height="30" class="mid" alt="YouTube">
|
||||
</a>
|
||||
<a href="https://youtube.com/c/silicasan" class="white">/c/SilicaSan</a>
|
||||
</span><br>
|
||||
<a href="psmreborn.torrent" class="white">- psmreborn.torrent - For ALL Files.</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<?php
|
||||
include("footer.php");
|
||||
?>
|
144
libary.php
144
libary.php
|
@ -3,35 +3,7 @@ include("header.php");
|
|||
?>
|
||||
|
||||
<?php
|
||||
function printGenreList(SimpleXMLElement $xml)
|
||||
{
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$genre = $xml[$x]->attributes()->value;
|
||||
$content = $content.$genre;
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content.", ";
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printLanguageList(SimpleXMLElement $xml)
|
||||
{
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$language = $xml[$x]->attributes()->locale;
|
||||
$content = $content.$language;
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content.", ";
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
function getSdkType(SimpleXMLElement $xml)
|
||||
{
|
||||
|
@ -62,7 +34,7 @@ if(isset($_GET["game"]))
|
|||
|
||||
if(strlen($game) != 9)
|
||||
{
|
||||
echo("I like to see girls die,<br>This is not the bug your looking for :P");
|
||||
echo("This is not the bug your looking for :P");
|
||||
die();
|
||||
}
|
||||
echo("<script src=\"/zrif.js\"></script>");
|
||||
|
@ -80,6 +52,13 @@ if(isset($_GET["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")
|
||||
|
@ -99,48 +78,45 @@ if(isset($_GET["game"]))
|
|||
$isplayable = "<a class=\"white\" onclick=\"copy_text('".$zrifPendingInfo."')\">Maybe, Ulthough it hasnt been tested yet- Copy zRIF String</a> or <a class=\"white\" onclick=\"convert2('".$zrifPendingInfo."')\">Download FAKE.RIF</a>";
|
||||
}
|
||||
|
||||
echo'<div id="bg-content" style="width:100%; height:100%; background-image: url(\'/gameinfo/'.$game.'/splash_854x480.png\'); background-repeat: no-repeat; background-size: cover;height: 100%; background-size: cover;");>
|
||||
echo('<div class="bg-content" style="background-image: url(\'/gameinfo/'.$game.'/splash_854x480.png\');">
|
||||
</div>
|
||||
<div class="psm-meta">
|
||||
<img src="/gameinfo/'. $game .'/icon_256x256.png" id="psm-icon" width="256" height="256">
|
||||
<div id="psm-title">
|
||||
'. $title .' ('.$game.')
|
||||
</div>
|
||||
</img>
|
||||
|
||||
<div id="psm-top-part">
|
||||
|
||||
<div id="psm-icon">
|
||||
<img src="/gameinfo/'. $game .'/icon_256x256.png" />
|
||||
</div>
|
||||
|
||||
|
||||
<div id="psm-infos">
|
||||
<ul>
|
||||
<li><p>Playable: '.$isplayable.'</p></li>
|
||||
<li><p>Metadata: <a href="/gameinfo/'.$game.'/app.xml" class="white">app.xml</a>, <a href="/gameinfo/'.$game.'/text.txt" class="white">copyright.txt</a></p></li>
|
||||
<li><p>Images: <a href="/gameinfo/'.$game.'/icon_128x128.png" class="white">icon_128x128.png</a>, <a href="/gameinfo/'.$game.'/icon_256x256.png" class="white">icon_256x256.png</a>, <a href="/gameinfo/'.$game.'/icon_512x512.png" class="white">icon_512x512.png</a>, <a href="/gameinfo/'.$game.'/splash_854x480.png" class="white">splash_854x480.png</a></p></li>
|
||||
<li><p>Metadata: <a href="/gameinfo/'.$game.'/app.xml" class="white">app.xml</a>, <a href="/gameinfo/'.$game.'/text.txt" class="white">copyright.txt</a>, <a href="/gameinfo/'.$game.'/version.xml" class="white">version.xml</a>, <a href="/gameinfo/'.$game.'/'.$latestVersion.'/metadata.xml" class="white">metadata.xml</a></p></li>
|
||||
<li><p>Images: <a href="/gameinfo/'.$game.'/icon_128x128.png" class="white">icon_128x128.png</a>, <a href="/gameinfo/'.$game.'/icon_256x256.png" class="white">icon_256x256.png</a>, <a href="/gameinfo/'.$game.'/icon_512x512.png" class="white">icon_512x512.png</a>, <a href="/gameinfo/'.$game.'/splash_854x480.png" class="white">splash_854x480.png</a>' . printScreenshotsLinks($screenshot, $latestVersion, $game) . '</p></li>
|
||||
<li><p>Supported locale: <b>'.printLanguageList($languageList).'</b></p></li>
|
||||
<li><p>Genres: <b>'.printGenreList($genreList).'</b></p></li>
|
||||
<li><p>Type: <b>'.$SDKType.'</b></p></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="psm-description">
|
||||
<hr>
|
||||
'. printDescription($description, "en") .'
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="psm-screenshots">
|
||||
'.printScreenshotsImgTags($screenshot, $latestVersion, $game).'
|
||||
</div>
|
||||
|
||||
|
||||
<div id="psm-downloads">
|
||||
<select onchange="pkg_change_version()" class="version-select">
|
||||
';
|
||||
$dirlist = glob("pkg/".$game."_00/*");
|
||||
$vercount = count($dirlist);
|
||||
for($i = 0; $i < $vercount; $i++)
|
||||
{
|
||||
$dirname = basename($dirlist[$i]);
|
||||
|
||||
if($i == $vercount - 1)
|
||||
{
|
||||
echo'<option selected="'.$dirname.'" value="'.$dirname.'">'.$dirname.'</option>';
|
||||
$pkgReborn = "/pkg/".$game."_00/".$dirname."/".$game."_00.pkg";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo'<option value="'.$dirname.'">'.$dirname.'</option>';
|
||||
}
|
||||
}
|
||||
|
||||
echo'
|
||||
</select>
|
||||
<h1>Downloads: </h1>
|
||||
|
||||
<div class="button-enabled" id="pkg-sony" onclick="open_url(\''.$pkgSony.'\')">
|
||||
<a href="'.$pkgSony.'" class="nostyle">PKG (Sony Server)</a>
|
||||
|
@ -149,8 +125,21 @@ if(isset($_GET["game"]))
|
|||
<div class="button-enabled" id="pkg-psmrb" onclick="open_url(\''.$pkgReborn.'\')">
|
||||
<a href="'.$pkgReborn.'" class="nostyle">PKG (PSMReborn Server)</a>
|
||||
</div>
|
||||
');
|
||||
|
||||
<div class="';
|
||||
if($zrifinfo == "MISSING"){
|
||||
echo('<div class="button-disabled" id="fake-rif">
|
||||
NoPsmDrm License
|
||||
</div>');
|
||||
}
|
||||
else{
|
||||
echo('
|
||||
<div class="button-enabled" id="fake-rif" onclick="convert2(\''.$zrifinfo.'\')">
|
||||
<a class="nostyle" onclick="convert2(\''.$zrifinfo.'\')">NoPsmDrm License</a>
|
||||
</div>');
|
||||
}
|
||||
|
||||
echo('<div class="');
|
||||
if(file_exists($simulatorZip))
|
||||
{
|
||||
echo 'button-enabled" onclick="open_url(\''.$simulatorZip.'\')">
|
||||
|
@ -162,9 +151,30 @@ if(isset($_GET["game"]))
|
|||
Decrypted Files (For Simulator)';
|
||||
}
|
||||
echo '</div>
|
||||
|
||||
<select onchange="pkg_change_version()" class="version-select">
|
||||
';
|
||||
$dirlist = glob("pkg/".$game."_00/*");
|
||||
$vercount = count($dirlist);
|
||||
for($i = 0; $i < $vercount; $i++)
|
||||
{
|
||||
$ver = basename($dirlist[$i]);
|
||||
|
||||
if($i == $vercount - 1)
|
||||
{
|
||||
echo'<option selected="'.$ver.'" value="'.$ver.'">'.$ver.'</option>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo'<option value="'.$ver.'">'.$ver.'</option>';
|
||||
}
|
||||
}
|
||||
|
||||
echo'
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -256,7 +266,7 @@ else
|
|||
$playableList = getPlayableList();
|
||||
$playablePendingList = getPendingPlayableList();
|
||||
foreach ($dirlist as &$path) {
|
||||
$dirname = basename($path);
|
||||
$titleid = basename($path);
|
||||
$xml = simplexml_load_file($path . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
|
||||
$title = $xml->name->localized_item[0]->attributes()->value;
|
||||
|
@ -264,9 +274,9 @@ else
|
|||
$genre = $xml->genre_list->genre->attributes()->value;
|
||||
$author = $xml->developer->name->attributes()->value;
|
||||
$website = $xml->website->attributes()->href;
|
||||
$isPlayable = $playableList[$dirname] == 1 || file_exists("psdp-packages/".$dirname.".psdp");
|
||||
$hasSimulator = file_exists("decrypted-files/".$dirname.".zip");
|
||||
$isPlayablePending = $playablePendingList[$dirname] == 1;
|
||||
$isPlayable = $playableList[$titleid] == 1 || file_exists("psdp-packages/".$titleid.".psdp");
|
||||
$hasSimulator = file_exists("decrypted-files/".$titleid.".zip");
|
||||
$isPlayablePending = false;
|
||||
|
||||
if($searchUsed)
|
||||
{
|
||||
|
@ -285,7 +295,7 @@ else
|
|||
}
|
||||
elseif($searchby === "titleid")
|
||||
{
|
||||
if(strpos(strtolower($dirname), strtolower($search)) === false)
|
||||
if(strpos(strtolower($titleid), strtolower($search)) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -326,9 +336,9 @@ else
|
|||
}
|
||||
|
||||
|
||||
echo '<div class="psm-game" onclick="open_url(\'?game='.$dirname.'\')"">
|
||||
<a href="?game='.$dirname.'" class="nostyle">
|
||||
<img src="/gameinfo/'. $dirname .'/icon_128x128.png" width="124" height="124">
|
||||
echo '<div class="psm-game" onclick="open_url(\'?game='.$titleid.'\')"">
|
||||
<a href="?game='.$titleid.'" class="nostyle">
|
||||
<img src="/gameinfo/'. $titleid .'/icon_128x128.png" width="124" height="124">
|
||||
';
|
||||
|
||||
if(getSdkType($xml) == "PSM Unity")
|
||||
|
@ -370,5 +380,7 @@ else
|
|||
}
|
||||
echo('</div>');
|
||||
}
|
||||
|
||||
include("footer.php");
|
||||
?>
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 284 KiB |
6045
sitemap.xml
6045
sitemap.xml
File diff suppressed because it is too large
Load Diff
136
style.css
136
style.css
|
@ -9,6 +9,7 @@
|
|||
.sitename{
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.sitemap{
|
||||
|
@ -26,17 +27,20 @@
|
|||
list-style-type:none;
|
||||
top:0;
|
||||
right: 10px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.sitemap ul li {
|
||||
display:inline;
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
.sitemap ul li a {
|
||||
color:#ffffff;
|
||||
text-decoration:none;
|
||||
padding: 6px 6px;
|
||||
padding: 0px 6px;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sitemap a:hover{
|
||||
|
@ -56,6 +60,8 @@
|
|||
width: 100%;
|
||||
margin: 0px;
|
||||
background-color: #00CCCC;
|
||||
z-index: 10;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
|
@ -99,23 +105,23 @@
|
|||
|
||||
#search-form{
|
||||
position:relative;
|
||||
|
||||
left: 50%;
|
||||
transform: translate(-50%,0%);
|
||||
|
||||
text-align: center;
|
||||
width:620px;
|
||||
width:88%;
|
||||
height:70px;
|
||||
background-color: #4289f4;
|
||||
padding: 15px;
|
||||
border-radius: 5px;
|
||||
margin-top: 10px;
|
||||
margin-left: -280px;
|
||||
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#search-form [type=text], select{
|
||||
width: 500px;
|
||||
width: 80%;
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
border: 1px solid #2b58a0;
|
||||
|
@ -134,19 +140,15 @@
|
|||
}
|
||||
|
||||
#search-form [type=submit]:hover{
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
background-color: #2b8ba0;
|
||||
border: 1px solid #2b58a0;
|
||||
border-radius: 10px;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.version-select{
|
||||
height: 50px;
|
||||
margin: 1%;
|
||||
width:90px;
|
||||
|
||||
width:70px;
|
||||
height:40px;
|
||||
float:right;
|
||||
}
|
||||
|
||||
.psm-game img{
|
||||
|
@ -190,13 +192,14 @@
|
|||
}
|
||||
|
||||
.psm-meta > #psm-title{
|
||||
position: relative;
|
||||
font-size: 200%;
|
||||
text-align: center;
|
||||
color:white;
|
||||
font-weight: bold;
|
||||
align-self: center;
|
||||
}
|
||||
.psm-meta > #psm-icon{
|
||||
|
||||
.psm-meta > #psm-top-part > #psm-icon > img{
|
||||
float: left;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
@ -209,33 +212,68 @@
|
|||
}
|
||||
|
||||
.psm-meta > #psm-downloads{
|
||||
position: relative;
|
||||
top: 50px;
|
||||
color: white;
|
||||
left: 0px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.psm-meta > #psm-description{
|
||||
margin: 2%;
|
||||
font-weight: bold;
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.psm-meta > #psm-screenshots{
|
||||
width: 100%;
|
||||
height:450px;
|
||||
margin-top: 1%;
|
||||
overflow-y: hidden;
|
||||
overflow-x: scroll;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.psm-meta > #psm-top-part{
|
||||
display:flex;
|
||||
}
|
||||
.psm-meta{
|
||||
position: absolute;
|
||||
position: relative;
|
||||
background-color: rgba(38, 118, 142,0.5);
|
||||
width: 980px;
|
||||
height: 480px;
|
||||
top: 20%;
|
||||
left: 50%;
|
||||
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
margin-left: -490px;
|
||||
margin-top: -25px;
|
||||
width: 85%;
|
||||
top: 10px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
border-radius: 5px;
|
||||
padding: 20px;
|
||||
padding: 1%;
|
||||
margin: auto;
|
||||
margin-top: 5%;
|
||||
margin-bottom: 5%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-content: space-around;
|
||||
align-items: flex-start;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.psm-screenshot{
|
||||
height:100%;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.psm-screenshot:not(:last-child){
|
||||
margin-right:1%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.bg-content{
|
||||
width:100%;
|
||||
height:100%;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
left:0px;
|
||||
top:0px;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
/*
|
||||
* devtools.php
|
||||
|
@ -289,10 +327,14 @@
|
|||
* Common
|
||||
*/
|
||||
|
||||
html,body,header {
|
||||
html,body,head {
|
||||
font-family: "Comic Sans MS", "Comic Sans", cursive;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-image: url("/img/psm_bg.png");
|
||||
background-color: black;
|
||||
background-image: url("/img/psm_bg.gif");
|
||||
background-attachment: fixed;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
|
@ -346,39 +388,33 @@ a.image{
|
|||
.button-enabled{
|
||||
width: 300px;
|
||||
height: 50px;
|
||||
margin: 10px;
|
||||
|
||||
margin-top: 1%;
|
||||
margin-right: 1%;
|
||||
background-color: #00d0ff;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
line-height: 50px;
|
||||
float: left;
|
||||
color: white;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.button-enabled:hover{
|
||||
width: 300px;
|
||||
height: 50px;
|
||||
margin: 10px;
|
||||
background-color: #005796;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
line-height: 50px;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
color: white;
|
||||
border-radius: 20px;
|
||||
cursor: arrow;
|
||||
}
|
||||
|
||||
.button-disabled{
|
||||
|
||||
width: 300px;
|
||||
height: 50px;
|
||||
margin: 10px;
|
||||
|
||||
margin-top: 1%;
|
||||
margin-right: 1%;
|
||||
background-color: #8f9db7;
|
||||
text-align: center;
|
||||
line-height: 50px;
|
||||
float: left;
|
||||
|
||||
font-weight: bold;
|
||||
color: #cfd2d3;
|
||||
cursor: arrow;
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
function getDirContents($dir, &$results = array()) {
|
||||
$files = scandir($dir);
|
||||
|
||||
foreach ($files as $key => $value) {
|
||||
$path = realpath($dir . DIRECTORY_SEPARATOR . $value);
|
||||
if (!is_dir($path)) {
|
||||
$results[] = $path;
|
||||
} else if ($value != "." && $value != "..") {
|
||||
getDirContents($path, $results);
|
||||
$results[] = $path;
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
$files = getDirContents(".");
|
||||
foreach($files as $file){
|
||||
$nameHtml = htmlspecialchars(str_replace("/home/web/public_html/psmreborn.com/", "", $file), ENT_QUOTES);
|
||||
print("<a href=".$nameHtml.">https://psmreborn.com/".$nameHtml."</a><br>");
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue