Update code

This commit is contained in:
Li 2022-09-20 00:50:45 +12:00
parent a9457af74b
commit 0d261c9d12
17 changed files with 1872 additions and 7754 deletions

View File

@ -1,7 +1,12 @@
<?php <?php
$resp_codes = array(200,404,500,403); $resp_codes = array(200,404,500,403,301);
$code = $resp_codes[array_rand($resp_codes)]; $code = $resp_codes[array_rand($resp_codes)];
http_response_code($code); //Troll fuzzers 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);
?> ?>

View File

@ -5,7 +5,7 @@ function update_rifs()
$npsPendingTime = filemtime("NpsPendingPsm.tsv"); $npsPendingTime = filemtime("NpsPendingPsm.tsv");
if(time() > $npsTime + 86400) if(time() > $npsTime + 60)
{ {
rename("NpsPsm.tsv","nps-backup/NpsPsm_".strval($npsTime).".tsv"); rename("NpsPsm.tsv","nps-backup/NpsPsm_".strval($npsTime).".tsv");
rename("NpsPendingPsm.tsv","nps-backup/NpsPendingPsm_".strval($npsPendingTime).".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) 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) function getTitle(string $game)
{ {
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT); $xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);

View File

@ -379,3 +379,7 @@ function getIcon(string $file)
} }
?> ?>
</div> </div>
<?php
include("footer.php");
?>

View File

@ -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!* 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> </p>
</div> </div>
<?php
include("footer.php");
?>

3
footer.php Normal file
View File

@ -0,0 +1,3 @@
</body>
</html>

View File

@ -1,5 +1,7 @@
<?php include("common.php"); ?> <?php include("common.php"); ?>
<head> <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" type="text/css" href="style.css">
<script src="common.js"></script> <script src="common.js"></script>
<?php <?php
@ -50,13 +52,6 @@
echo($title); echo($title);
echo("</title>\n"); 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(strpos($url, 'libary.php') !== false)
{ {
if(isset($_GET["game"])) if(isset($_GET["game"]))
@ -66,31 +61,9 @@
$game = str_replace(".", "",$game); $game = str_replace(".", "",$game);
$game = str_replace("*", "",$game); $game = str_replace("*", "",$game);
$title = getTitle($game); $title = getTitle($game);
$simulatorZip = "decrypted-files/".$game.".zip"; $description = $title . " - ";
$zrif = getZRIF($game); $description .= getDesc($game)." - ";
$pendingZrif = getPendingZRIF($game); $description .= " - PSMReborn #1 place for all PSM Content";
$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";
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png'; $image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png';
} }
else else
@ -113,12 +86,18 @@
} }
else 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.";
} }
$descsocial = str_replace("<br>", PHP_EOL, $description);
echo($description); $descsocial = str_replace('"', '\\"', $descsocial);
echo('">'); /*
* 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 * Default Image
@ -130,21 +109,24 @@
/* /*
* Social Media * 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="og:image" content="'.$image.'"/>');
echo('<meta property="twitter:title" content="'.$title.'">'); echo('<meta property="og:title" content="'.$title.'"/>');
echo('<meta property="twitter:description" content="'.$description.'"'); 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> </head>
<div class="header"> <body>
<div class="header">
<div class="sitename"> <div class="sitename">
<a href="/" class="image"> <a href="/" class="image">
<img src="img/logo.png" alt="PSMReborn" width="40" height="40"> <img src="img/logo.png" alt="PSMReborn" width="40" height="40">
<span>PSMReborn</span>
</a> </a>
PSMReborn
</div> </div>
<div class="sitemap"> <div class="sitemap">
@ -154,4 +136,5 @@
<li><a href="/devtools.php">Development Tools</a></li> <li><a href="/devtools.php">Development Tools</a></li>
</ul> </ul>
</div> </div>
</div> </div>

File diff suppressed because one or more lines are too long

View File

@ -3,35 +3,7 @@ include("header.php");
?> ?>
<?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) function getSdkType(SimpleXMLElement $xml)
{ {
@ -62,7 +34,7 @@ if(isset($_GET["game"]))
if(strlen($game) != 9) 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(); die();
} }
echo("<script src=\"/zrif.js\"></script>"); echo("<script src=\"/zrif.js\"></script>");
@ -80,6 +52,13 @@ if(isset($_GET["game"]))
$pkgSony = getPKG($game); $pkgSony = getPKG($game);
$simulatorZip = "decrypted-files/".$game.".zip"; $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 = ""; $isplayable = "";
if($zrifinfo == "MISSING" && $zrifPendingInfo == "MISSING") 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>"; $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"> <div class="psm-meta">
<img src="/gameinfo/'. $game .'/icon_256x256.png" id="psm-icon" width="256" height="256">
<div id="psm-title"> <div id="psm-title">
'. $title .' ('.$game.') '. $title .' ('.$game.')
</div> </div>
</img>
<div id="psm-top-part">
<div id="psm-icon">
<img src="/gameinfo/'. $game .'/icon_256x256.png" />
</div>
<div id="psm-infos"> <div id="psm-infos">
<ul> <ul>
<li><p>Playable: '.$isplayable.'</p></li> <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>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></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>Supported locale: <b>'.printLanguageList($languageList).'</b></p></li>
<li><p>Genres: <b>'.printGenreList($genreList).'</b></p></li> <li><p>Genres: <b>'.printGenreList($genreList).'</b></p></li>
<li><p>Type: <b>'.$SDKType.'</b></p></li> <li><p>Type: <b>'.$SDKType.'</b></p></li>
</ul> </ul>
</div> </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"> <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.'\')"> <div class="button-enabled" id="pkg-sony" onclick="open_url(\''.$pkgSony.'\')">
<a href="'.$pkgSony.'" class="nostyle">PKG (Sony Server)</a> <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.'\')"> <div class="button-enabled" id="pkg-psmrb" onclick="open_url(\''.$pkgReborn.'\')">
<a href="'.$pkgReborn.'" class="nostyle">PKG (PSMReborn Server)</a> <a href="'.$pkgReborn.'" class="nostyle">PKG (PSMReborn Server)</a>
</div> </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)) if(file_exists($simulatorZip))
{ {
echo 'button-enabled" onclick="open_url(\''.$simulatorZip.'\')"> echo 'button-enabled" onclick="open_url(\''.$simulatorZip.'\')">
@ -162,9 +151,30 @@ if(isset($_GET["game"]))
Decrypted Files (For Simulator)'; Decrypted Files (For Simulator)';
} }
echo '</div> 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> </div>
</div>'; ';
} }
else else
{ {
@ -256,7 +266,7 @@ else
$playableList = getPlayableList(); $playableList = getPlayableList();
$playablePendingList = getPendingPlayableList(); $playablePendingList = getPendingPlayableList();
foreach ($dirlist as &$path) { foreach ($dirlist as &$path) {
$dirname = basename($path); $titleid = basename($path);
$xml = simplexml_load_file($path . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT); $xml = simplexml_load_file($path . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
$title = $xml->name->localized_item[0]->attributes()->value; $title = $xml->name->localized_item[0]->attributes()->value;
@ -264,9 +274,9 @@ else
$genre = $xml->genre_list->genre->attributes()->value; $genre = $xml->genre_list->genre->attributes()->value;
$author = $xml->developer->name->attributes()->value; $author = $xml->developer->name->attributes()->value;
$website = $xml->website->attributes()->href; $website = $xml->website->attributes()->href;
$isPlayable = $playableList[$dirname] == 1 || file_exists("psdp-packages/".$dirname.".psdp"); $isPlayable = $playableList[$titleid] == 1 || file_exists("psdp-packages/".$titleid.".psdp");
$hasSimulator = file_exists("decrypted-files/".$dirname.".zip"); $hasSimulator = file_exists("decrypted-files/".$titleid.".zip");
$isPlayablePending = $playablePendingList[$dirname] == 1; $isPlayablePending = false;
if($searchUsed) if($searchUsed)
{ {
@ -285,7 +295,7 @@ else
} }
elseif($searchby === "titleid") elseif($searchby === "titleid")
{ {
if(strpos(strtolower($dirname), strtolower($search)) === false) if(strpos(strtolower($titleid), strtolower($search)) === false)
{ {
continue; continue;
} }
@ -326,9 +336,9 @@ else
} }
echo '<div class="psm-game" onclick="open_url(\'?game='.$dirname.'\')""> echo '<div class="psm-game" onclick="open_url(\'?game='.$titleid.'\')"">
<a href="?game='.$dirname.'" class="nostyle"> <a href="?game='.$titleid.'" class="nostyle">
<img src="/gameinfo/'. $dirname .'/icon_128x128.png" width="124" height="124"> <img src="/gameinfo/'. $titleid .'/icon_128x128.png" width="124" height="124">
'; ';
if(getSdkType($xml) == "PSM Unity") if(getSdkType($xml) == "PSM Unity")
@ -370,5 +380,7 @@ else
} }
echo('</div>'); echo('</div>');
} }
include("footer.php");
?> ?>

BIN
map750.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 KiB

File diff suppressed because it is too large Load Diff

338
style.css
View File

@ -4,51 +4,55 @@
.sitename img { .sitename img {
vertical-align: top; vertical-align: top;
} }
.sitename{ .sitename{
font-weight: bold; font-weight: bold;
float: left; float: left;
} height: 40px;
}
.sitemap{ .sitemap{
float:right; float:right;
height: 40px; height: 40px;
margin: 0; margin: 0;
line-height: 100%; line-height: 100%;
position: relative; position: relative;
font-weight: bold; font-weight: bold;
} }
.sitemap ul { .sitemap ul {
margin:0; margin:0;
padding:0; padding:0;
list-style-type:none; list-style-type:none;
top:0; top:0;
right: 10px; right: 10px;
} height: 100%;
}
.sitemap ul li { .sitemap ul li {
display:inline; display: inline-block;
} height: 100%;
}
.sitemap ul li a {
.sitemap ul li a {
color:#ffffff; color:#ffffff;
text-decoration:none; text-decoration:none;
padding: 6px 6px; padding: 0px 6px;
} height: 100%;
display: block;
}
.sitemap a:hover{ .sitemap a:hover{
color: white; color: white;
background-color: #0099CC; background-color: #0099CC;
} }
.sitemap a:link, a:visited{ .sitemap a:link, a:visited{
color: white; color: white;
} }
.header { .header {
font-size: 200%; font-size: 200%;
font-weight: bold; font-weight: bold;
color: white; color: white;
@ -56,118 +60,116 @@
width: 100%; width: 100%;
margin: 0px; margin: 0px;
background-color: #00CCCC; background-color: #00CCCC;
} z-index: 10;
position: relative;
}
/* /*
* index.php * index.php
*/ */
#welcome-page{ #welcome-page{
padding:20px; padding:20px;
text-align: center; text-align: center;
} }
#contact { #contact {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
text-align:center; text-align:center;
} }
#content { #content {
position: absolute; position: absolute;
width: 600px; width: 600px;
left: 50%; left: 50%;
margin-left: -280px; margin-left: -280px;
} }
/* /*
* libary.php * libary.php
*/ */
#psm-gamelist { #psm-gamelist {
position: inherit; position: inherit;
text-align:center; text-align:center;
} }
#search-form{ #search-form{
position:relative; position:relative;
left: 50%; left: 50%;
transform: translate(-50%,0%);
text-align: center; text-align: center;
width:620px; width:88%;
height:70px; height:70px;
background-color: #4289f4; background-color: #4289f4;
padding: 15px; padding: 15px;
border-radius: 5px; border-radius: 5px;
margin-top: 10px; margin-top: 10px;
margin-left: -280px;
color: white; color: white;
font-weight: bold; font-weight: bold;
} }
#search-form [type=text], select{ #search-form [type=text], select{
width: 500px; width: 80%;
padding: 10px; padding: 10px;
display: inline-block; display: inline-block;
border: 1px solid #2b58a0; border: 1px solid #2b58a0;
border-radius: 10px; border-radius: 10px;
margin-right: 10px; margin-right: 10px;
box-sizing: border-box; box-sizing: border-box;
} }
#search-form [type=submit]{ #search-form [type=submit]{
padding: 10px; padding: 10px;
display: inline-block; display: inline-block;
background-color: #46dbfc; background-color: #46dbfc;
border: 1px solid #2b58a0; border: 1px solid #2b58a0;
border-radius: 10px; border-radius: 10px;
box-sizing: border-box; box-sizing: border-box;
} }
#search-form [type=submit]:hover{ #search-form [type=submit]:hover{
padding: 10px;
display: inline-block;
background-color: #2b8ba0; background-color: #2b8ba0;
border: 1px solid #2b58a0; cursor: pointer;
border-radius: 10px; }
box-sizing: border-box;
}
.version-select{ .version-select{
height: 50px;
margin: 1%;
width:90px;
width:70px; }
height:40px;
float:right;
}
.psm-game img{ .psm-game img{
float: left; float: left;
margin-right:1rem; margin-right:1rem;
} }
.psm-game a:link, a:visited{ .psm-game a:link, a:visited{
color: white; color: white;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
} }
.psm-game a:hover{ .psm-game a:hover{
color: white; color: white;
font-weight: bold; font-weight: bold;
text-decoration: underline; text-decoration: underline;
} }
.psm-game{ .psm-game{
padding: 5px; padding: 5px;
width: 400px; width: 400px;
height: 124px; height: 124px;
@ -182,73 +184,109 @@
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
} }
.psm-game:hover{ .psm-game:hover{
background-color: #005796; background-color: #005796;
cursor:pointer; cursor:pointer;
} }
.psm-meta > #psm-title{ .psm-meta > #psm-title{
position: relative;
font-size: 200%; font-size: 200%;
text-align: center; text-align: center;
color:white; color:white;
font-weight: bold; font-weight: bold;
} align-self: center;
.psm-meta > #psm-icon{ }
.psm-meta > #psm-top-part > #psm-icon > img{
float: left; float: left;
border-radius: 10px; border-radius: 10px;
} }
.psm-meta > #psm-infos{ .psm-meta > #psm-infos{
position: relative; position: relative;
color: white; color: white;
left: 6%; left: 6%;
} }
.psm-meta > #psm-downloads{ .psm-meta > #psm-downloads{
position: relative;
top: 50px;
color: white; 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-meta > #psm-screenshots{
position: absolute; 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: relative;
background-color: rgba(38, 118, 142,0.5); background-color: rgba(38, 118, 142,0.5);
width: 980px; width: 85%;
height: 480px; top: 10px;
top: 20%; overflow-x: hidden;
left: 50%; overflow-y: auto;
white-space: nowrap;
overflow: hidden;
margin-left: -490px;
margin-top: -25px;
border-radius: 5px; 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
*/
.devtoollist{
/*
* devtools.php
*/
.devtoollist{
position: inherit; position: inherit;
margin-left: 15%; margin-left: 15%;
margin-right: 15%; margin-right: 15%;
text-align:center; text-align:center;
} }
.devtool{ .devtool{
padding:10px; padding:10px;
margin: 10px; margin: 10px;
@ -259,8 +297,8 @@
overflow: hidden; overflow: hidden;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
} }
.devtool:link, .devtool:visited, .devtool a{ .devtool:link, .devtool:visited, .devtool a{
text-decoration: none !important; text-decoration: none !important;
color: black; color: black;
/*font-size: 150%;*/ /*font-size: 150%;*/
@ -268,119 +306,117 @@
font-weight: bold; font-weight: bold;
height:128px; height:128px;
line-height: 120px; line-height: 120px;
} }
.devtool:hover{ .devtool:hover{
background-color: #005796; background-color: #005796;
cursor: pointer; cursor: pointer;
} }
.devtool #textContent{ .devtool #textContent{
text-align: center; text-align: center;
} }
.bubble{ .bubble{
float: left; float: left;
border-radius: 100%; border-radius: 100%;
} }
/* /*
* Common * Common
*/ */
html,body,header { html,body,head {
font-family: "Comic Sans MS", "Comic Sans", cursive;
position: absolute;
width: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
background-image: url("/img/psm_bg.png"); background-color: black;
background-image: url("/img/psm_bg.gif");
background-attachment: fixed; background-attachment: fixed;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
color:white; color:white;
} }
a.image{ a.image{
text-decoration: none; text-decoration: none;
} }
.mid{ .mid{
vertical-align: middle; vertical-align: middle;
} }
.left{ .left{
float: left; float: left;
} }
.black:link, .black:visited, .black{ .black:link, .black:visited, .black{
color: black; color: black;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
} }
.black:hover{ .black:hover{
color: black; color: black;
font-weight: bold; font-weight: bold;
text-decoration: underline; text-decoration: underline;
} }
.white:link, .white:visited, .white{ .white:link, .white:visited, .white{
color: white; color: white;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
} }
.white:hover{ .white:hover{
color: white; color: white;
font-weight: bold; font-weight: bold;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.nostyle:link, .nostyle:visited, .nostyle:hover, .nostyle, .nostyle a{ .nostyle:link, .nostyle:visited, .nostyle:hover, .nostyle, .nostyle a{
color: white; color: white;
font-weight: bold; font-weight: bold;
text-decoration: none !important; text-decoration: none !important;
cursor: pointer; cursor: pointer;
} }
.button-enabled{ .button-enabled{
width: 300px; width: 300px;
height: 50px; height: 50px;
margin: 10px;
margin-top: 1%;
margin-right: 1%;
background-color: #00d0ff; background-color: #00d0ff;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
line-height: 50px; line-height: 50px;
float: left;
color: white; color: white;
border-radius: 20px; border-radius: 20px;
} }
.button-enabled:hover{ .button-enabled:hover{
width: 300px;
height: 50px;
margin: 10px;
background-color: #005796; background-color: #005796;
text-align: center; cursor: arrow;
font-weight: bold; }
line-height: 50px;
float: left;
cursor: pointer;
color: white;
border-radius: 20px;
}
.button-disabled{ .button-disabled{
width: 300px; width: 300px;
height: 50px; height: 50px;
margin: 10px;
margin-top: 1%;
margin-right: 1%;
background-color: #8f9db7; background-color: #8f9db7;
text-align: center; text-align: center;
line-height: 50px; line-height: 50px;
float: left;
font-weight: bold; font-weight: bold;
color: #cfd2d3; color: #cfd2d3;
cursor: arrow; cursor: arrow;
border-radius: 20px; border-radius: 20px;
} }

22
wget.php Normal file
View File

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