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

@ -1,40 +1,40 @@
function copy_text(zrif) function copy_text(zrif)
{ {
window.prompt("Press CTRL+C to copy",zrif); window.prompt("Press CTRL+C to copy",zrif);
} }
function open_url(url) function open_url(url)
{ {
window.location = url; window.location = url;
} }
function pkg_change_version() function pkg_change_version()
{ {
var VerSelect = document.getElementsByClassName("version-select")[0]; var VerSelect = document.getElementsByClassName("version-select")[0];
var PkgSony = document.getElementById("pkg-sony"); var PkgSony = document.getElementById("pkg-sony");
var PkgPsmReborn = document.getElementById("pkg-psmrb"); var PkgPsmReborn = document.getElementById("pkg-psmrb");
var Ver = VerSelect.value; var Ver = VerSelect.value;
/* /*
* Sony URL Change * Sony URL Change
*/ */
SonyUrl = PkgSony.getElementsByTagName('a')[0].href; SonyUrl = PkgSony.getElementsByTagName('a')[0].href;
var UrlSplit = SonyUrl.split('/') var UrlSplit = SonyUrl.split('/')
UrlSplit[7] = Ver UrlSplit[7] = Ver
var PatchedUrl = UrlSplit.join("/") var PatchedUrl = UrlSplit.join("/")
PkgSony.outerHTML = PkgSony.outerHTML.replace(SonyUrl,PatchedUrl) PkgSony.outerHTML = PkgSony.outerHTML.replace(SonyUrl,PatchedUrl)
document.getElementById('pkg-sony').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid document.getElementById('pkg-sony').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid
/* /*
* PSM Reborn URL Change * PSM Reborn URL Change
*/ */
var PsmRbUrl = PkgPsmReborn.getElementsByTagName('a')[0].href; var PsmRbUrl = PkgPsmReborn.getElementsByTagName('a')[0].href;
UrlSplit = PsmRbUrl.split('/') UrlSplit = PsmRbUrl.split('/')
UrlSplit[5] = Ver UrlSplit[5] = Ver
PatchedUrl = UrlSplit.join("/") PatchedUrl = UrlSplit.join("/")
PkgPsmReborn.outerHTML = PkgPsmReborn.outerHTML.replace(PsmRbUrl,PatchedUrl) PkgPsmReborn.outerHTML = PkgPsmReborn.outerHTML.replace(PsmRbUrl,PatchedUrl)
document.getElementById('pkg-psmrb').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid document.getElementById('pkg-psmrb').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid
//Also you cant acccess it with variables, it just doesnt update in the browser (it does if u use console though.. because javascript lol) //Also you cant acccess it with variables, it just doesnt update in the browser (it does if u use console though.. because javascript lol)
} }

View File

@ -1,150 +1,242 @@
<?php <?php
function update_rifs() function update_rifs()
{ {
$npsTime = filemtime("NpsPsm.tsv"); $npsTime = filemtime("NpsPsm.tsv");
$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");
file_put_contents("NpsPsm.tsv", file_get_contents("http://nopaystation.com/tsv/PSM_GAMES.tsv")); file_put_contents("NpsPsm.tsv", file_get_contents("http://nopaystation.com/tsv/PSM_GAMES.tsv"));
file_put_contents("NpsPendingPsm.tsv", file_get_contents("https://nopaystation.com/tsv/pending/PSM_GAMES.tsv")); file_put_contents("NpsPendingPsm.tsv", file_get_contents("https://nopaystation.com/tsv/pending/PSM_GAMES.tsv"));
} }
} }
update_rifs(); update_rifs();
if(strcmp($_SERVER['HTTP_HOST'],"psmreborn.com") !== 0) 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 getTitle(string $game)
{ function printGenreList(SimpleXMLElement $xml)
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT); {
$title = $xml->name->localized_item[0]->attributes()->value; $content = "";
unset($xml); $xcount = count($xml);
return $title; for ($x = 0; $x < $xcount; $x++) {
} $genre = $xml[$x]->attributes()->value;
$content = $content.$genre;
function getPlayableList() if($xcount > 1 && $x+1 < $xcount)
{ {
$playable_list = (array)null; $content = $content.", ";
$delimiter = "\t"; }
$fp = fopen("NpsPsm.tsv", 'r'); }
while (!feof($fp)) return $content;
{ }
$line = fgets($fp, 2048);
$data = str_getcsv($line, $delimiter); function printLanguageList(SimpleXMLElement $xml)
$playable = 0; {
if($data[4] != "MISSING") $content = "";
{ $xcount = count($xml);
$playable = 1; for ($x = 0; $x < $xcount; $x++) {
} $language = $xml[$x]->attributes()->locale;
$playable_list[$data[0]] = $playable; $content = $content.$language;
if($xcount > 1 && $x+1 < $xcount)
{
} $content = $content.", ";
fclose($fp); }
return $playable_list; }
} return $content;
}
function getPendingPlayableList() function printScreenshotsLinks(SimpleXMLElement $xml, $ver, $titleid)
{ {
$playable_list = (array)null;
$delimiter = "\t"; $content = "";
$fp = fopen("NpsPendingPsm.tsv", 'r'); $xcount = count($xml);
while (!feof($fp)) if($xcount >= 1){
{ $content = ", ";
$line = fgets($fp, 2048); }
$data = str_getcsv($line, $delimiter); for ($x = 0; $x < $xcount; $x++) {
$playable = 0; $content = $content."<a href=\"/gameinfo/".$titleid."/".$ver."/".$xml[$x]."\" class=\"white\">".$xml[$x]." </a>";
if($data[4] != "MISSING")
{ if($xcount > 1 && $x+1 < $xcount)
$playable = 1; {
} $content = $content . ", ";
}
$gameTid = basename($data[3], "_00.pkg"); }
$playable_list[$gameTid] = $playable;
return $content;
}
}
fclose($fp); function printScreenshotsImgTags(SimpleXMLElement $xml, $ver, $titleid)
return $playable_list; {
}
$content = "";
$xcount = count($xml);
function getZRIF(string $titleid) for ($x = 0; $x < $xcount; $x++) {
{ $content = $content."<img src=\"/gameinfo/".$titleid."/".$ver."/".$xml[$x]."\" class=\"psm-screenshot\" />";
$delimiter = "\t";
}
$fp = fopen("NpsPsm.tsv", 'r');
// Workaround for NPS having multiple entries for some reason return $content;
}
$zrif = "MISSING";
function printDescription(SimpleXMLElement $xml, $flocale){
while ( !feof($fp) )
{ $content = "";
$line = fgets($fp, 2048); $xcount = count($xml);
$data = str_getcsv($line, $delimiter); for ($x = 0; $x < $xcount; $x++) {
$locale = $xml[$x]->attributes()->locale;
if($data[0] == $titleid)
{ if($locale == $flocale){
$zrif = $data[4]; $content = (string)$xml[$x]->description;
} }
} }
return $content;
fclose($fp);
return $zrif; }
}
function getLatestVer(string $game){
function getPendingZRIF(string $titleid) $verXML = simplexml_load_file('gameinfo/' . $game . "/version.xml", 'SimpleXMLElement', LIBXML_NOENT);
{ $latestVersion = (string)($verXML->appVersion);
$delimiter = "\t"; return $latestVersion;
}
$fp = fopen("NpsPendingPsm.tsv", 'r');
function getDesc(string $game){
while ( !feof($fp) ) $version = getLatestVer($game);
{ $mdxml = simplexml_load_file('gameinfo/' . $game . "/".$version."/metadata.xml", 'SimpleXMLElement', LIBXML_NOENT);
$line = fgets($fp, 2048); return printDescription($mdxml->localizedMetadataList->children(), "en");
}
$data = str_getcsv($line, $delimiter);
$gameTid = basename($data[3], "_00.pkg"); function getTitle(string $game)
if($gameTid == $titleid) {
{ $xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
return($data[4]); $title = $xml->name->localized_item[0]->attributes()->value;
} unset($xml);
} return $title;
}
fclose($fp);
return "MISSING"; function getPlayableList()
} {
$playable_list = (array)null;
function getPKG(string $titleid) $delimiter = "\t";
{ $fp = fopen("NpsPsm.tsv", 'r');
$delimiter = "\t"; while (!feof($fp))
{
$fp = fopen("NpsPsm.tsv", 'r'); $line = fgets($fp, 2048);
$data = str_getcsv($line, $delimiter);
while ( !feof($fp) ) $playable = 0;
{ if($data[4] != "MISSING")
$line = fgets($fp, 2048); {
$playable = 1;
$data = str_getcsv($line, $delimiter); }
$playable_list[$data[0]] = $playable;
if($data[0] == $titleid)
{
return($data[3]); }
} fclose($fp);
} return $playable_list;
}
fclose($fp);
}
function getPendingPlayableList()
?> {
$playable_list = (array)null;
$delimiter = "\t";
$fp = fopen("NpsPendingPsm.tsv", 'r');
while (!feof($fp))
{
$line = fgets($fp, 2048);
$data = str_getcsv($line, $delimiter);
$playable = 0;
if($data[4] != "MISSING")
{
$playable = 1;
}
$gameTid = basename($data[3], "_00.pkg");
$playable_list[$gameTid] = $playable;
}
fclose($fp);
return $playable_list;
}
function getZRIF(string $titleid)
{
$delimiter = "\t";
$fp = fopen("NpsPsm.tsv", 'r');
// Workaround for NPS having multiple entries for some reason
$zrif = "MISSING";
while ( !feof($fp) )
{
$line = fgets($fp, 2048);
$data = str_getcsv($line, $delimiter);
if($data[0] == $titleid)
{
$zrif = $data[4];
}
}
fclose($fp);
return $zrif;
}
function getPendingZRIF(string $titleid)
{
$delimiter = "\t";
$fp = fopen("NpsPendingPsm.tsv", 'r');
while ( !feof($fp) )
{
$line = fgets($fp, 2048);
$data = str_getcsv($line, $delimiter);
$gameTid = basename($data[3], "_00.pkg");
if($gameTid == $titleid)
{
return($data[4]);
}
}
fclose($fp);
return "MISSING";
}
function getPKG(string $titleid)
{
$delimiter = "\t";
$fp = fopen("NpsPsm.tsv", 'r');
while ( !feof($fp) )
{
$line = fgets($fp, 2048);
$data = str_getcsv($line, $delimiter);
if($data[0] == $titleid)
{
return($data[3]);
}
}
fclose($fp);
}
?>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<cross-domain-policy> <cross-domain-policy>
<allow-access-from domain="*" /> <allow-access-from domain="*" />
</cross-domain-policy> </cross-domain-policy>

View File

@ -1,381 +1,385 @@
<?php <?php
include("header.php"); include("header.php");
function format_version(string $version) function format_version(string $version)
{ {
return substr($version,0,2) .".". substr($version,2,2); return substr($version,0,2) .".". substr($version,2,2);
} }
function getName(string $file) function getName(string $file)
{ {
if($file == "psm_tool_set_for_unity_installer_ver09806_20131125_1848_for_Unity_r22419") if($file == "psm_tool_set_for_unity_installer_ver09806_20131125_1848_for_Unity_r22419")
{ {
return "ToolSet v9806"; return "ToolSet v9806";
} }
elseif(strpos($file, "MakePsmGreatAgain") !== false) elseif(strpos($file, "MakePsmGreatAgain") !== false)
{ {
return "MPGA ".substr($file,19,4); return "MPGA ".substr($file,19,4);
} }
elseif(strpos($file, 'PSMToolSetForUnity_') !== false) elseif(strpos($file, 'PSMToolSetForUnity_') !== false)
{ {
return "Toolset v".substr($file,19,7); return "Toolset v".substr($file,19,7);
} }
elseif($file == "UnitySetup_update-4.3.4f1") elseif($file == "UnitySetup_update-4.3.4f1")
{ {
return "Unity v4.3.4f1"; return "Unity v4.3.4f1";
} }
elseif($file == "UnitySetup_update-4.3.7p3") elseif($file == "UnitySetup_update-4.3.7p3")
{ {
return "Unity v4.3.7p3"; return "Unity v4.3.7p3";
} }
elseif($file == "psmdevassistant") elseif($file == "psmdevassistant")
{ {
return "Dev Assistant"; return "Dev Assistant";
} }
elseif($file == "PlaystationCertificates") elseif($file == "PlaystationCertificates")
{ {
return "PS Certificates"; return "PS Certificates";
} }
elseif($file == "UnityJapan2014-Introduction_to_Unity-for-PSM") elseif($file == "UnityJapan2014-Introduction_to_Unity-for-PSM")
{ {
return "Intro 2 Unity r1"; return "Intro 2 Unity r1";
} }
elseif($file == "UnityJapan2014-Introduction_to_Unity-for-PSM2") elseif($file == "UnityJapan2014-Introduction_to_Unity-for-PSM2")
{ {
return "Intro 2 Unity r2"; return "Intro 2 Unity r2";
} }
elseif($file == "PSM Dev 01.03") elseif($file == "PSM Dev 01.03")
{ {
return "PSM Dev 01.03"; return "PSM Dev 01.03";
} }
elseif(strpos($file, 'PSMPublishingUtility_') !== false) elseif(strpos($file, 'PSMPublishingUtility_') !== false)
{ {
return "PSMPU ".substr($file,21,6); return "PSMPU ".substr($file,21,6);
} }
elseif($file == "MichaelFleischauer-PlaystationmobileDevelopmentCookbook-packtPublishing2013") elseif($file == "MichaelFleischauer-PlaystationmobileDevelopmentCookbook-packtPublishing2013")
{ {
return "PSMCookbook"; return "PSMCookbook";
} }
elseif($file == "IP9100-PCSI00011_00-PSMRUNTIME000000") elseif($file == "IP9100-PCSI00011_00-PSMRUNTIME000000")
{ {
return "Runtime 01.00"; return "Runtime 01.00";
} }
elseif(strpos($file, "IP9100-PCSI00011_00-PSMRUNTIME000000-A") !== false) elseif(strpos($file, "IP9100-PCSI00011_00-PSMRUNTIME000000-A") !== false)
{ {
return "Runtime ".format_version(substr($file,38,4)); return "Runtime ".format_version(substr($file,38,4));
} }
elseif(strpos($file, "IP9100-PCSI00007_00-PSSUITEDEV000000-A") !== false) elseif(strpos($file, "IP9100-PCSI00007_00-PSSUITEDEV000000-A") !== false)
{ {
return "PSM Dev ".format_version(substr($file,38,4)); return "PSM Dev ".format_version(substr($file,38,4));
} }
elseif(strpos($file, 'UnitySetup') !== false) elseif(strpos($file, 'UnitySetup') !== false)
{ {
return substr($file,strpos($file,"-for-Editor-")+12,12); return substr($file,strpos($file,"-for-Editor-")+12,12);
} }
elseif(strpos($file, "IP9100-PCSI00009_00-UNITYDEV00000000-A") !== false) elseif(strpos($file, "IP9100-PCSI00009_00-UNITYDEV00000000-A") !== false)
{ {
return "Unity Dev ".format_version(substr($file,38,4)); return "Unity Dev ".format_version(substr($file,38,4));
} }
elseif(strpos($file, "PCSI00007-99_999-99_00-") !== false) elseif(strpos($file, "PCSI00007-99_999-99_00-") !== false)
{ {
return "PSMCP ".str_replace("_",".",substr($file,23,5)); return "PSMCP ".str_replace("_",".",substr($file,23,5));
} }
elseif(strpos($file, "PCSI00009-99_999-99_00-") !== false) elseif(strpos($file, "PCSI00009-99_999-99_00-") !== false)
{ {
return "UNITYCP ".str_replace("_",".",substr($file,23,5)); return "UNITYCP ".str_replace("_",".",substr($file,23,5));
} }
elseif(strpos($file, "PSM_SDK_") !== false) elseif(strpos($file, "PSM_SDK_") !== false)
{ {
return "SDK ".substr($file,8,7); return "SDK ".substr($file,8,7);
} }
elseif(strpos($file, "PSSuiteSDK_") !== false) elseif(strpos($file, "PSSuiteSDK_") !== false)
{ {
return "SDK ".substr($file,11,7); return "SDK ".substr($file,11,7);
} }
else else
{ {
return $file; return $file;
} }
} }
function getIcon(string $file) function getIcon(string $file)
{ {
$ext = pathinfo($file, PATHINFO_EXTENSION); $ext = pathinfo($file, PATHINFO_EXTENSION);
if($ext == "psdp") if($ext == "psdp")
{ {
return "/img/psdp.png"; return "/img/psdp.png";
} }
elseif($ext == "pdf") elseif($ext == "pdf")
{ {
return "/img/docs.png"; return "/img/docs.png";
} }
elseif($ext == "exe" && strpos($file, 'UnitySetup') == false) elseif($ext == "exe" && strpos($file, 'UnitySetup') == false)
{ {
return "/img/sdk.png"; return "/img/sdk.png";
} }
elseif($ext == "exe" && strpos($file, 'UnitySetup') !== false) elseif($ext == "exe" && strpos($file, 'UnitySetup') !== false)
{ {
return "/img/unity_icon.png"; return "/img/unity_icon.png";
} }
elseif($ext == "pkg") elseif($ext == "pkg")
{ {
return "/img/pkg.png"; return "/img/pkg.png";
} }
elseif($ext == "zip" || $ext == "tgz" || $ext == "gz" || $ext == "7z") elseif($ext == "zip" || $ext == "tgz" || $ext == "gz" || $ext == "7z")
{ {
return "/img/zip_icon.png"; return "/img/zip_icon.png";
} }
elseif($ext == "cmbackup") elseif($ext == "cmbackup")
{ {
return "/img/cmbackup.png"; return "/img/cmbackup.png";
} }
elseif($ext == "ppk") elseif($ext == "ppk")
{ {
return "/img/ppk_icon.png"; return "/img/ppk_icon.png";
} }
elseif($ext == "apk") elseif($ext == "apk")
{ {
return "/img/apk-icon.png"; return "/img/apk-icon.png";
} }
elseif($ext == "skprx") elseif($ext == "skprx")
{ {
return "/img/kernel-plugin.png"; return "/img/kernel-plugin.png";
} }
elseif($ext == "suprx") elseif($ext == "suprx")
{ {
return "/img/user-plugin.png"; return "/img/user-plugin.png";
} }
else else
{ {
return "/img/logo.png"; return "/img/logo.png";
} }
} }
?> ?>
<div class="devtoollist"> <div class="devtoollist">
<?php <?php
$type = ""; $type = "";
if(isset($_GET["type"])) if(isset($_GET["type"]))
{ {
$type = htmlspecialchars($_GET["type"], ENT_QUOTES); $type = htmlspecialchars($_GET["type"], ENT_QUOTES);
$type = str_replace("/", "",$type); $type = str_replace("/", "",$type);
$type = str_replace(".", "",$type); $type = str_replace(".", "",$type);
$type = str_replace("*", "",$type); $type = str_replace("*", "",$type);
echo "<h1>".$type."/</h1>"; echo "<h1>".$type."/</h1>";
} }
else else
{ {
echo "<h1>What are you looking for?</h1>"; echo "<h1>What are you looking for?</h1>";
} }
if($type == "") if($type == "")
{ {
echo'<div class="devtool" id="unity" onclick="open_url(\'?type=unity\')"> echo'<div class="devtool" id="unity" onclick="open_url(\'?type=unity\')">
<a href="?type=unity" class="image"> <a href="?type=unity" class="image">
<img src="/img/unity_icon.png" width="128" height="128" class="bubble"> <img src="/img/unity_icon.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM Unity PSM Unity
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="psm" onclick="open_url(\'?type=psm\')"> <div class="devtool" id="psm" onclick="open_url(\'?type=psm\')">
<a href="?type=psm" class="image"> <a href="?type=psm" class="image">
<img src="/img/psm_icon.png" width="128" height="128" class="bubble"> <img src="/img/psm_icon.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM PSM
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="android" onclick="open_url(\'?type=psm-android\')"> <div class="devtool" id="android" onclick="open_url(\'?type=psm-android\')">
<a href="?type=psm-android" class="image"> <a href="?type=psm-android" class="image">
<img src="/img/androiddev.png" width="128" height="128" class="bubble"> <img src="/img/androiddev.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM Android PSM Android
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="tools" onclick="open_url(\'?type=psm-tools\')"> <div class="devtool" id="tools" onclick="open_url(\'?type=psm-tools\')">
<a href="?type=psm-tools" class="image"> <a href="?type=psm-tools" class="image">
<img src="/img/tools.png" width="128" height="128" class="bubble"> <img src="/img/tools.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Unofficial Tools Unofficial Tools
</span> </span>
</a> </a>
</div>'; </div>';
} }
elseif($type == "psm") elseif($type == "psm")
{ {
echo'<div class="devtool" id="psmsdk" onclick="open_url(\'?type=psm-sdk\')"> echo'<div class="devtool" id="psmsdk" onclick="open_url(\'?type=psm-sdk\')">
<a href="?type=psm-sdk" class="image"> <a href="?type=psm-sdk" class="image">
<img src="/img/sdk.png" width="128" height="128" class="bubble"> <img src="/img/sdk.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM SDK PSM SDK
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="psmruntime" onclick="open_url(\'?type=psm-runtime\')"> <div class="devtool" id="psmruntime" onclick="open_url(\'?type=psm-runtime\')">
<a href="?type=psm-runtime" class="image"> <a href="?type=psm-runtime" class="image">
<img src="/img/psmruntime.png" width="128" height="128" class="bubble"> <img src="/img/psmruntime.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM Runtime PSM Runtime
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="psmdev" onclick="open_url(\'?type=psm-dev\')"> <div class="devtool" id="psmdev" onclick="open_url(\'?type=psm-dev\')">
<a href="?type=psm-dev" class="image"> <a href="?type=psm-dev" class="image">
<img src="/img/psmdev.png" width="128" height="128" class="bubble"> <img src="/img/psmdev.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Dev Assistant Dev Assistant
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="psdp" onclick="open_url(\'?type=psm-psdp\')"> <div class="devtool" id="psdp" onclick="open_url(\'?type=psm-psdp\')">
<a href="?type=psm-psdp" class="image"> <a href="?type=psm-psdp" class="image">
<img src="/img/psdp.png" width="128" height="128" class="bubble"> <img src="/img/psdp.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSDP Packages PSDP Packages
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="docs" onclick="open_url(\'?type=psm-docs\')"> <div class="devtool" id="docs" onclick="open_url(\'?type=psm-docs\')">
<a href="?type=psm-docs" class="image"> <a href="?type=psm-docs" class="image">
<img src="/img/docs.png" width="128" height="128" class="bubble"> <img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Documentation Documentation
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="sources" onclick="open_url(\'?type=psm-sources\')"> <div class="devtool" id="sources" onclick="open_url(\'?type=psm-sources\')">
<a href="?type=psm-sources" class="image"> <a href="?type=psm-sources" class="image">
<img src="/img/sources.png" width="128" height="128" class="bubble"> <img src="/img/sources.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM Sources PSM Sources
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="keys" onclick="open_url(\'?type=psm-offical-keys\')"> <div class="devtool" id="keys" onclick="open_url(\'?type=psm-offical-keys\')">
<a href="?type=psm-offical-keys" class="image"> <a href="?type=psm-offical-keys" class="image">
<img src="/img/psmda_keys.png" width="128" height="128" class="bubble"> <img src="/img/psmda_keys.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Publisher Keys Publisher Keys
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="drivers" onclick="open_url(\'?type=psm-drivers\')"> <div class="devtool" id="drivers" onclick="open_url(\'?type=psm-drivers\')">
<a href="?type=psm-drivers" class="image"> <a href="?type=psm-drivers" class="image">
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble"> <img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM Drivers PSM Drivers
</span> </span>
</a> </a>
</div> </div>
'; ';
} }
elseif($type == "psm-sources") elseif($type == "psm-sources")
{ {
echo'<div class="devtool" id="monosrc" onclick="open_url(\'?type=psm-mono-src\')"> echo'<div class="devtool" id="monosrc" onclick="open_url(\'?type=psm-mono-src\')">
<a href="?type=psm-mono-src" class="image"> <a href="?type=psm-mono-src" class="image">
<img src="/img/mono.png" width="128" height="128" class="bubble"> <img src="/img/mono.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM Mono Src PSM Mono Src
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="gamessrc" onclick="open_url(\'?type=psm-games-src\')"> <div class="devtool" id="gamessrc" onclick="open_url(\'?type=psm-games-src\')">
<a href="?type=psm-games-src" class="image"> <a href="?type=psm-games-src" class="image">
<img src="/img/games.png" width="128" height="128" class="bubble"> <img src="/img/games.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSM Games Src PSM Games Src
</span> </span>
</a> </a>
</div> </div>
'; ';
} }
elseif($type == "unity") elseif($type == "unity")
{ {
echo'<div class="devtool" id="unityexport" onclick="open_url(\'?type=unity-support\')"> echo'<div class="devtool" id="unityexport" onclick="open_url(\'?type=unity-support\')">
<a href="?type=unity-support" class="image"> <a href="?type=unity-support" class="image">
<img src="/img/export.png" width="128" height="128" class="bubble"> <img src="/img/export.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Unity Exports Unity Exports
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="unitydev" onclick="open_url(\'?type=unity-dev\')"> <div class="devtool" id="unitydev" onclick="open_url(\'?type=unity-dev\')">
<a href="?type=unity-dev" class="image"> <a href="?type=unity-dev" class="image">
<img src="/img/unitydev.png" width="128" height="128" class="bubble"> <img src="/img/unitydev.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Dev Assistant Dev Assistant
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="unitydocs" onclick="open_url(\'?type=unity-docs\')"> <div class="devtool" id="unitydocs" onclick="open_url(\'?type=unity-docs\')">
<a href="?type=unity-docs" class="image"> <a href="?type=unity-docs" class="image">
<img src="/img/docs.png" width="128" height="128" class="bubble"> <img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Documentation Documentation
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="unityassets" onclick="open_url(\'?type=unity-assets\')"> <div class="devtool" id="unityassets" onclick="open_url(\'?type=unity-assets\')">
<a href="?type=unity-assets" class="image"> <a href="?type=unity-assets" class="image">
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble"> <img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Assets Assets
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="unitytools" onclick="open_url(\'?type=unity-tools\')"> <div class="devtool" id="unitytools" onclick="open_url(\'?type=unity-tools\')">
<a href="?type=unity-tools" class="image"> <a href="?type=unity-tools" class="image">
<img src="/img/tools.png" width="128" height="128" class="bubble"> <img src="/img/tools.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
Tools for Unity Tools for Unity
</span> </span>
</a> </a>
</div> </div>
<div class="devtool" id="unity-psdp" onclick="open_url(\'?type=unity-psdp\')"> <div class="devtool" id="unity-psdp" onclick="open_url(\'?type=unity-psdp\')">
<a href="?type=unity-psdp" class="image"> <a href="?type=unity-psdp" class="image">
<img src="/img/psdp.png" width="128" height="128" class="bubble"> <img src="/img/psdp.png" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
PSDP Packages PSDP Packages
</span> </span>
</a> </a>
</div> </div>
'; ';
} }
else else
{ {
$dirlist = glob($type.'/*'); $dirlist = glob($type.'/*');
foreach ($dirlist as &$path) { foreach ($dirlist as &$path) {
echo '<div class="devtool" onclick="open_url(\''.$path.'\')"> echo '<div class="devtool" onclick="open_url(\''.$path.'\')">
<a href="'.$path.'" class="image" title="'.basename($path).'"> <a href="'.$path.'" class="image" title="'.basename($path).'">
<img src="'.getIcon($path).'" width="128" height="128" class="bubble"> <img src="'.getIcon($path).'" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
'.getName(pathinfo(basename($path), PATHINFO_FILENAME)).' '.getName(pathinfo(basename($path), PATHINFO_FILENAME)).'
</span> </span>
</a> </a>
</div>'; </div>';
} }
} }
?> ?>
</div> </div>
<?php
include("footer.php");
?>

28
faq.php
View File

@ -1,12 +1,16 @@
<?php <?php
include("header.php"); include("header.php");
?> ?>
<div id="questions"> <div id="questions">
<a href="#add-zrif"></a> <a href="#add-zrif"></a>
<p> <p>
Q: I have a PSM Game thats marked "zRIF Missing!" can i add it?<br> Q: I have a PSM Game thats marked "zRIF Missing!" can i add it?<br>
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,157 +1,140 @@
<?php include("common.php"); ?> <?php include("common.php"); ?>
<head> <!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="style.css"> <html>
<script src="common.js"></script> <head>
<?php <link rel="stylesheet" type="text/css" href="style.css">
$title = ""; <script src="common.js"></script>
$description = ""; <?php
$image = ""; $title = "";
$description = "";
/* $image = "";
* Write title
*/ /*
* Write title
echo("<title>"); */
$url = $_SERVER['REQUEST_URI'];
if(strpos($url, 'libary.php') !== false) echo("<title>");
{ $url = $_SERVER['REQUEST_URI'];
if(isset($_GET["game"])) if(strpos($url, 'libary.php') !== false)
{ {
$game = htmlspecialchars($_GET["game"], ENT_QUOTES); if(isset($_GET["game"]))
{
$game = str_replace("/", "",$game); $game = htmlspecialchars($_GET["game"], ENT_QUOTES);
$game = str_replace(".", "",$game);
$game = str_replace("*", "",$game); $game = str_replace("/", "",$game);
$game = str_replace(".", "",$game);
$title = getTitle($game); $game = str_replace("*", "",$game);
$title.= " - ";
} $title = getTitle($game);
else $title.= " - ";
{ }
$title .= "PSM Game Library - "; else
} {
} $title .= "PSM Game Library - ";
else if(strpos($url, 'devtools.php') !== false) }
{ }
$title .= "PlayStation Mobile Development Tools - "; else if(strpos($url, 'devtools.php') !== false)
if(isset($_GET["type"])) {
{ $title .= "PlayStation Mobile Development Tools - ";
$type = htmlspecialchars($_GET["type"], ENT_QUOTES); if(isset($_GET["type"]))
$type = str_replace("/", "",$type); {
$type = str_replace(".", "",$type); $type = htmlspecialchars($_GET["type"], ENT_QUOTES);
$type = str_replace("*", "",$type); $type = str_replace("/", "",$type);
$title .= $type."/ - "; $type = str_replace(".", "",$type);
} $type = str_replace("*", "",$type);
$title .= $type."/ - ";
} }
$title .= "PSM Reborn"; }
echo($title); $title .= "PSM Reborn";
echo("</title>\n");
echo($title);
/* echo("</title>\n");
* Write metadata
*/ if(strpos($url, 'libary.php') !== false)
echo('<meta charset="utf-8">'); {
echo('<meta name="robots" content="all">'); if(isset($_GET["game"]))
echo('<meta name="viewport" content="width=1000; user-scalable=0;"/>'); {
echo('<meta name="Description" content="'); $game = htmlspecialchars($_GET["game"], ENT_QUOTES);
if(strpos($url, 'libary.php') !== false) $game = str_replace("/", "",$game);
{ $game = str_replace(".", "",$game);
if(isset($_GET["game"])) $game = str_replace("*", "",$game);
{ $title = getTitle($game);
$game = htmlspecialchars($_GET["game"], ENT_QUOTES); $description = $title . " - ";
$game = str_replace("/", "",$game); $description .= getDesc($game)." - ";
$game = str_replace(".", "",$game); $description .= " - PSMReborn #1 place for all PSM Content";
$game = str_replace("*", "",$game); $image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png';
$title = getTitle($game); }
$simulatorZip = "decrypted-files/".$game.".zip"; else
$zrif = getZRIF($game); {
$pendingZrif = getPendingZRIF($game); $description .= "PlayStation Mobile Game/App Library - PSMReborn #1 place for all PSM Content";
}
$playable = (($zrif != "MISSING" || $pendingZrif) && file_exists("psdp-packages/".$game.".psdp") == false); }
else if(strpos($url, 'devtools.php') !== false)
$description .= "PlayStation Mobile PKG/ROM Download links for ".$title." (".$game." - "; {
if($playable) $description .= "PlayStation Mobile Development Tools";
{ if(isset($_GET["type"]))
$description .= "playable)"; {
} $type = htmlspecialchars($_GET["type"], ENT_QUOTES);
else $type = str_replace("/", "",$type);
{ $type = str_replace(".", "",$type);
$description .= "unplayable)"; $type = str_replace("*", "",$type);
} $description .= " - ".$type."/";
$description .= " Download ".$game.".pkg, "; }
if(file_exists($simulatorZip)) $description .= " - PSMReborn #1 place for all PSM Content";
{ }
$description .= $game.".zip (Simulator), "; else
} {
if(file_exists("psdp-packages/".$game.".psdp")) $description = "PSMReborn is the largest archive of PlayStation Mobile content on the internet containing Games, SDK's, Source Code, and Unity for PSM exporters.";
{ }
$description .= $game.".psdp, ";
} $descsocial = str_replace("<br>", PHP_EOL, $description);
$description .= "now! - PSMReborn #1 place for all PSM Content"; $descsocial = str_replace('"', '\\"', $descsocial);
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png'; /*
} * Write metadata
else */
{ echo('<meta charset="utf-8">');
$description .= "PlayStation Mobile Game/App Library - PSMReborn #1 place for all PSM Content"; echo('<meta name="robots" content="all">');
} echo('<meta name="viewport" content="width=1000; user-scalable=0;"/>');
} echo('<meta name="Description" content="'.$descsocial.'"/>');
else if(strpos($url, 'devtools.php') !== false)
{ /*
$description .= "PlayStation Mobile Development Tools"; * Default Image
if(isset($_GET["type"])) */
{ if($image == "")
$type = htmlspecialchars($_GET["type"], ENT_QUOTES); {
$type = str_replace("/", "",$type); $image .= 'http://'.$_SERVER['HTTP_HOST'].'/img/logo.png';
$type = str_replace(".", "",$type); }
$type = str_replace("*", "",$type); /*
$description .= " - ".$type."/"; * Social Media
} */
$description .= " - PSMReborn #1 place for all PSM Content";
} echo('<meta property="og:image" content="'.$image.'"/>');
else echo('<meta property="og:title" content="'.$title.'"/>');
{ echo('<meta property="og:description" content="'.$descsocial.'"/>');
echo("PSMReborn is the largest archive of PlayStation Mobile content on the internet containing Games, SDK's, Source Code, and Unity for PSM exporters.");
} echo('<meta property="twitter:image" content="'.$image.'"/>');
echo('<meta property="twitter:title" content="'.$title.'"/>');
echo('<meta property="twitter:description" content="'.$descsocial.'"/>');
echo($description); ?>
echo('">'); </head>
<body>
/* <div class="header">
* Default Image <div class="sitename">
*/ <a href="/" class="image">
if($image == "") <img src="img/logo.png" alt="PSMReborn" width="40" height="40">
{ <span>PSMReborn</span>
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/img/logo.png';
} </a>
/* </div>
* Social Media
*/ <div class="sitemap">
echo('<meta property="og:image" content="'.$image.'">'); <ul>
echo('<meta property="og:title" content="'.$title.'">'); <li><a href="/">Home</a></li>
echo('<meta property="og:description" content="'.$description.'"'); <li><a href="/libary.php">PSM Library</a></li>
<li><a href="/devtools.php">Development Tools</a></li>
echo('<meta property="twitter:image" content="'.$image.'">'); </ul>
echo('<meta property="twitter:title" content="'.$title.'">'); </div>
echo('<meta property="twitter:description" content="'.$description.'"'); </div>
?>
</head>
<div class="header">
<div class="sitename">
<a href="/" class="image">
<img src="img/logo.png" alt="PSMReborn" width="40" height="40">
</a>
PSMReborn
</div>
<div class="sitemap">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/libary.php">PSM Library</a></li>
<li><a href="/devtools.php">Development Tools</a></li>
</ul>
</div>
</div>

File diff suppressed because one or more lines are too long

View File

@ -1,374 +1,386 @@
<?php <?php
include("header.php"); include("header.php");
?> ?>
<?php <?php
function printGenreList(SimpleXMLElement $xml)
{
$content = ""; function getSdkType(SimpleXMLElement $xml)
$xcount = count($xml); {
for ($x = 0; $x < $xcount; $x++) { if(isset($xml->app_xml_format))
$genre = $xml[$x]->attributes()->value; {
$content = $content.$genre; if($xml->app_xml_format->attributes()->sdk_type == "PSM SDK")
if($xcount > 1 && $x+1 < $xcount) {
{ return "PSM";
$content = $content.", "; }
} else
} {
return $content; return "PSM Unity";
} }
}
function printLanguageList(SimpleXMLElement $xml) else
{ {
$content = ""; return "PSM";
$xcount = count($xml); }
for ($x = 0; $x < $xcount; $x++) { }
$language = $xml[$x]->attributes()->locale;
$content = $content.$language; if(isset($_GET["game"]))
if($xcount > 1 && $x+1 < $xcount) {
{ $game = htmlspecialchars($_GET["game"], ENT_QUOTES);
$content = $content.", ";
} $game = str_replace("/", "",$game);
} $game = str_replace(".", "",$game);
return $content; $game = str_replace("*", "",$game);
}
if(strlen($game) != 9)
function getSdkType(SimpleXMLElement $xml) {
{ echo("This is not the bug your looking for :P");
if(isset($xml->app_xml_format)) die();
{ }
if($xml->app_xml_format->attributes()->sdk_type == "PSM SDK") echo("<script src=\"/zrif.js\"></script>");
{ echo("<a id=\"zrif-bin-worker\" href=\"\"></a>");
return "PSM";
} $title = getTitle($game);
else
{ $xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
return "PSM Unity"; $genreList = $xml->genre_list->children();
} $languageList = $xml->name->children();
} $featureList = $xml->feature_list->children();
else $SDKType = getSdkType($xml);
{ $zrifinfo = getZRIF($game);
return "PSM"; $zrifPendingInfo = getPendingZRIF($game);
} $pkgSony = getPKG($game);
} $simulatorZip = "decrypted-files/".$game.".zip";
if(isset($_GET["game"])) $verXML = simplexml_load_file('gameinfo/' . $game . "/version.xml", 'SimpleXMLElement', LIBXML_NOENT);
{ $latestVersion = (string)($verXML->appVersion);
$game = htmlspecialchars($_GET["game"], ENT_QUOTES); $pkgReborn = "/pkg/".$game."_00/".$latestVersion."/".$game."_00.pkg";
$game = str_replace("/", "",$game); $metadataXML = simplexml_load_file('gameinfo/' . $game . "/". $latestVersion ."/metadata.xml", 'SimpleXMLElement', LIBXML_NOENT);
$game = str_replace(".", "",$game); $description = $metadataXML->localizedMetadataList->children();
$game = str_replace("*", "",$game); $screenshot = $metadataXML->screenShotList->screenShot;
$isplayable = "";
if(strlen($game) != 9)
{ if($zrifinfo == "MISSING" && $zrifPendingInfo == "MISSING")
echo("I like to see girls die,<br>This is not the bug your looking for :P"); {
die(); $isplayable = "<a href=\"/faq.php#add-zrif\" class=\"white\">No, Missing zRIF - Do you have a working copy of this game?</a>";
} }
echo("<script src=\"/zrif.js\"></script>"); if(file_exists("psdp-packages/".$game.".psdp"))
echo("<a id=\"zrif-bin-worker\" href=\"\"></a>"); {
$isplayable = "<a href=\"/psdp-packages/".$game.".psdp\" class=\"white\">Yes, with PSDP Package in Developer Assistant</a>";
$title = getTitle($game); }
if($zrifinfo != "MISSING")
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT); {
$genreList = $xml->genre_list->children(); $isplayable = "<a class=\"white\" onclick=\"copy_text('".$zrifinfo."')\">Yes! Copy zRIF String</a> or <a class=\"white\" onclick=\"convert2('".$zrifinfo."')\">Download FAKE.RIF</a>";
$languageList = $xml->name->children(); }
$featureList = $xml->feature_list->children(); if($zrifPendingInfo != "MISSING")
$SDKType = getSdkType($xml); {
$zrifinfo = getZRIF($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>";
$zrifPendingInfo = getPendingZRIF($game); }
$pkgSony = getPKG($game);
$simulatorZip = "decrypted-files/".$game.".zip"; echo('<div class="bg-content" style="background-image: url(\'/gameinfo/'.$game.'/splash_854x480.png\');">
</div>
$isplayable = ""; <div class="psm-meta">
<div id="psm-title">
if($zrifinfo == "MISSING" && $zrifPendingInfo == "MISSING") '. $title .' ('.$game.')
{ </div>
$isplayable = "<a href=\"/faq.php#add-zrif\" class=\"white\">No, Missing zRIF - Do you have a working copy of this game?</a>";
} <div id="psm-top-part">
if(file_exists("psdp-packages/".$game.".psdp"))
{ <div id="psm-icon">
$isplayable = "<a href=\"/psdp-packages/".$game.".psdp\" class=\"white\">Yes, with PSDP Package in Developer Assistant</a>"; <img src="/gameinfo/'. $game .'/icon_256x256.png" />
} </div>
if($zrifinfo != "MISSING")
{
$isplayable = "<a class=\"white\" onclick=\"copy_text('".$zrifinfo."')\">Yes! Copy zRIF String</a> or <a class=\"white\" onclick=\"convert2('".$zrifinfo."')\">Download FAKE.RIF</a>"; <div id="psm-infos">
} <ul>
if($zrifPendingInfo != "MISSING") <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>, <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>
$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>"; <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>
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;");> <li><p>Type: <b>'.$SDKType.'</b></p></li>
<div class="psm-meta"> </ul>
<img src="/gameinfo/'. $game .'/icon_256x256.png" id="psm-icon" width="256" height="256"> </div>
<div id="psm-title"> </div>
'. $title .' ('.$game.')
</div> <div id="psm-description">
</img> <hr>
'. printDescription($description, "en") .'
<div id="psm-infos"> <hr>
<ul> </div>
<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> <div id="psm-screenshots">
<li><p>Supported locale: <b>'.printLanguageList($languageList).'</b></p></li> '.printScreenshotsImgTags($screenshot, $latestVersion, $game).'
<li><p>Genres: <b>'.printGenreList($genreList).'</b></p></li> </div>
<li><p>Type: <b>'.$SDKType.'</b></p></li>
</ul>
</div> <div id="psm-downloads">
<div id="psm-downloads"> <div class="button-enabled" id="pkg-sony" onclick="open_url(\''.$pkgSony.'\')">
<select onchange="pkg_change_version()" class="version-select"> <a href="'.$pkgSony.'" class="nostyle">PKG (Sony Server)</a>
'; </div>
$dirlist = glob("pkg/".$game."_00/*");
$vercount = count($dirlist); <div class="button-enabled" id="pkg-psmrb" onclick="open_url(\''.$pkgReborn.'\')">
for($i = 0; $i < $vercount; $i++) <a href="'.$pkgReborn.'" class="nostyle">PKG (PSMReborn Server)</a>
{ </div>
$dirname = basename($dirlist[$i]); ');
if($i == $vercount - 1) if($zrifinfo == "MISSING"){
{ echo('<div class="button-disabled" id="fake-rif">
echo'<option selected="'.$dirname.'" value="'.$dirname.'">'.$dirname.'</option>'; NoPsmDrm License
$pkgReborn = "/pkg/".$game."_00/".$dirname."/".$game."_00.pkg"; </div>');
} }
else else{
{ echo('
echo'<option value="'.$dirname.'">'.$dirname.'</option>'; <div class="button-enabled" id="fake-rif" onclick="convert2(\''.$zrifinfo.'\')">
} <a class="nostyle" onclick="convert2(\''.$zrifinfo.'\')">NoPsmDrm License</a>
} </div>');
}
echo'
</select> echo('<div class="');
<h1>Downloads: </h1> if(file_exists($simulatorZip))
{
<div class="button-enabled" id="pkg-sony" onclick="open_url(\''.$pkgSony.'\')"> echo 'button-enabled" onclick="open_url(\''.$simulatorZip.'\')">
<a href="'.$pkgSony.'" class="nostyle">PKG (Sony Server)</a> <a href="'.$simulatorZip.'" class="nostyle">Decrypted Files (For Simulator)</a>';
</div> }
else
<div class="button-enabled" id="pkg-psmrb" onclick="open_url(\''.$pkgReborn.'\')"> {
<a href="'.$pkgReborn.'" class="nostyle">PKG (PSMReborn Server)</a> echo 'button-disabled">
</div> Decrypted Files (For Simulator)';
}
<div class="'; echo '</div>
if(file_exists($simulatorZip))
{ <select onchange="pkg_change_version()" class="version-select">
echo 'button-enabled" onclick="open_url(\''.$simulatorZip.'\')"> ';
<a href="'.$simulatorZip.'" class="nostyle">Decrypted Files (For Simulator)</a>'; $dirlist = glob("pkg/".$game."_00/*");
} $vercount = count($dirlist);
else for($i = 0; $i < $vercount; $i++)
{ {
echo 'button-disabled"> $ver = basename($dirlist[$i]);
Decrypted Files (For Simulator)';
} if($i == $vercount - 1)
echo '</div> {
</div> echo'<option selected="'.$ver.'" value="'.$ver.'">'.$ver.'</option>';
</div> }
</div>'; else
} {
else echo'<option value="'.$ver.'">'.$ver.'</option>';
{ }
$searchUsed = isset($_GET["search"]); }
$simulatorSearch = false; echo'
$unplayableSearch = false; </select>
$playableSearch = false; </div>
</div>
if(isset($_GET["simulator"])) ';
{ }
if($_GET["simulator"] == "on") else
$simulatorSearch = true; {
} $searchUsed = isset($_GET["search"]);
if(isset($_GET["unplayable"])) $simulatorSearch = false;
{ $unplayableSearch = false;
if($_GET["unplayable"] == "on") $playableSearch = false;
$unplayableSearch = true;
} if(isset($_GET["simulator"]))
{
if(isset($_GET["playable"])) if($_GET["simulator"] == "on")
{ $simulatorSearch = true;
if($_GET["playable"] == "on") }
$playableSearch = true;
} if(isset($_GET["unplayable"]))
{
echo'<div id="search-form"> if($_GET["unplayable"] == "on")
<form action="" method="get"> $unplayableSearch = true;
<input type="text" name="search" value="'; }
if(isset($_GET["search"]))
{ if(isset($_GET["playable"]))
echo htmlspecialchars($_GET["search"], ENT_QUOTES); {
} if($_GET["playable"] == "on")
echo '"></input> $playableSearch = true;
<input type="submit"></input><br> }
<input type="radio" name="searchby" value="title" ';
if(!$searchUsed || isset($_GET["searchby"])) echo'<div id="search-form">
{ <form action="" method="get">
if(!$searchUsed || $_GET["searchby"] == "title" ) <input type="text" name="search" value="';
{ if(isset($_GET["search"]))
echo 'checked="checked"'; {
} echo htmlspecialchars($_GET["search"], ENT_QUOTES);
} }
echo '>Title</input> echo '"></input>
<input type="radio" name="searchby" value="titleid" '; <input type="submit"></input><br>
if(isset($_GET["searchby"])) <input type="radio" name="searchby" value="title" ';
{ if(!$searchUsed || isset($_GET["searchby"]))
if($_GET["searchby"] == "titleid") {
{ if(!$searchUsed || $_GET["searchby"] == "title" )
echo 'checked="checked"'; {
} echo 'checked="checked"';
} }
echo '>Title ID</input> }
<input type="radio" name="searchby" value="dev" '; echo '>Title</input>
if(isset($_GET["searchby"])) <input type="radio" name="searchby" value="titleid" ';
{ if(isset($_GET["searchby"]))
if($_GET["searchby"] == "dev") {
{ if($_GET["searchby"] == "titleid")
echo 'checked="checked"'; {
} echo 'checked="checked"';
} }
echo '>Developer</input><br> }
<input type="checkbox" name="playable" '; echo '>Title ID</input>
if(!$searchUsed || $playableSearch) <input type="radio" name="searchby" value="dev" ';
{ if(isset($_GET["searchby"]))
echo 'checked="checked"'; {
} if($_GET["searchby"] == "dev")
echo'>Show Playable (Has zRIF)</input> {
<input type="checkbox" name="simulator" '; echo 'checked="checked"';
if(!$searchUsed || $simulatorSearch) }
{ }
echo 'checked="checked"'; echo '>Developer</input><br>
} <input type="checkbox" name="playable" ';
echo '>Show Simulator-Ready</input> if(!$searchUsed || $playableSearch)
<input type="checkbox" name="unplayable" '; {
if(!$searchUsed || $unplayableSearch) echo 'checked="checked"';
{ }
echo 'checked="checked"'; echo'>Show Playable (Has zRIF)</input>
} <input type="checkbox" name="simulator" ';
echo '>Show Unplayable (Only PKG)</input> if(!$searchUsed || $simulatorSearch)
</form> {
</div> echo 'checked="checked"';
'; }
echo '>Show Simulator-Ready</input>
<input type="checkbox" name="unplayable" ';
echo('<div id="psm-gamelist">'); if(!$searchUsed || $unplayableSearch)
$dirlist = glob("gameinfo/*"); {
$playableList = getPlayableList(); echo 'checked="checked"';
$playablePendingList = getPendingPlayableList(); }
foreach ($dirlist as &$path) { echo '>Show Unplayable (Only PKG)</input>
$dirname = basename($path); </form>
$xml = simplexml_load_file($path . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT); </div>
';
$title = $xml->name->localized_item[0]->attributes()->value;
$version = $xml->attributes()->version;
$genre = $xml->genre_list->genre->attributes()->value; echo('<div id="psm-gamelist">');
$author = $xml->developer->name->attributes()->value; $dirlist = glob("gameinfo/*");
$website = $xml->website->attributes()->href; $playableList = getPlayableList();
$isPlayable = $playableList[$dirname] == 1 || file_exists("psdp-packages/".$dirname.".psdp"); $playablePendingList = getPendingPlayableList();
$hasSimulator = file_exists("decrypted-files/".$dirname.".zip"); foreach ($dirlist as &$path) {
$isPlayablePending = $playablePendingList[$dirname] == 1; $titleid = basename($path);
$xml = simplexml_load_file($path . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
if($searchUsed)
{ $title = $xml->name->localized_item[0]->attributes()->value;
$search = $_GET["search"]; $version = $xml->attributes()->version;
$genre = $xml->genre_list->genre->attributes()->value;
$author = $xml->developer->name->attributes()->value;
if(isset($_GET["searchby"]) && $search !== "") $website = $xml->website->attributes()->href;
{ $isPlayable = $playableList[$titleid] == 1 || file_exists("psdp-packages/".$titleid.".psdp");
$searchby = $_GET["searchby"]; $hasSimulator = file_exists("decrypted-files/".$titleid.".zip");
if($searchby === "title") $isPlayablePending = false;
{
if(strpos(strtolower($title), strtolower($search)) === false) if($searchUsed)
{ {
continue; $search = $_GET["search"];
}
}
elseif($searchby === "titleid") if(isset($_GET["searchby"]) && $search !== "")
{ {
if(strpos(strtolower($dirname), strtolower($search)) === false) $searchby = $_GET["searchby"];
{ if($searchby === "title")
continue; {
} if(strpos(strtolower($title), strtolower($search)) === false)
} {
elseif($searchby === "dev") continue;
{ }
if(strpos(strtolower($author), strtolower($search)) === false) }
{ elseif($searchby === "titleid")
continue; {
} if(strpos(strtolower($titleid), strtolower($search)) === false)
} {
} continue;
}
}
if(!$simulatorSearch) elseif($searchby === "dev")
{ {
if($hasSimulator) if(strpos(strtolower($author), strtolower($search)) === false)
{ {
continue; continue;
} }
} }
}
if(!$unplayableSearch)
{
if(!$isPlayable && !$isPlayablePending) if(!$simulatorSearch)
{ {
continue; if($hasSimulator)
} {
} continue;
}
if(!$playableSearch) }
{
if(($isPlayable || $isPlayablePending) && !$hasSimulator) if(!$unplayableSearch)
{ {
continue; if(!$isPlayable && !$isPlayablePending)
} {
} continue;
} }
}
echo '<div class="psm-game" onclick="open_url(\'?game='.$dirname.'\')""> if(!$playableSearch)
<a href="?game='.$dirname.'" class="nostyle"> {
<img src="/gameinfo/'. $dirname .'/icon_128x128.png" width="124" height="124"> if(($isPlayable || $isPlayablePending) && !$hasSimulator)
'; {
continue;
if(getSdkType($xml) == "PSM Unity") }
{ }
echo '<img src="/img/unity.png" title="Made With Unity" width="10" height="10" >'; }
}
if($isPlayable)
{ echo '<div class="psm-game" onclick="open_url(\'?game='.$titleid.'\')"">
echo '<img src="/img/playable.png" title="zRIF Known" width="10" height="10" >'; <a href="?game='.$titleid.'" class="nostyle">
} <img src="/gameinfo/'. $titleid .'/icon_128x128.png" width="124" height="124">
if($isPlayablePending) ';
{
echo '<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >'; if(getSdkType($xml) == "PSM Unity")
} {
if($hasSimulator) echo '<img src="/img/unity.png" title="Made With Unity" width="10" height="10" >';
{ }
echo '<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >'; if($isPlayable)
} {
echo '<img src="/img/playable.png" title="zRIF Known" width="10" height="10" >';
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev"; }
if($playableSearch === true || $searchUsed === false) if($isPlayablePending)
$authorUrl .= "&playable=on"; {
if($simulatorSearch === true || $searchUsed === false) echo '<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >';
$authorUrl .= "&simulator=on"; }
if($unplayableSearch === true || $searchUsed === false) if($hasSimulator)
$authorUrl .= "&unplayable=on"; {
echo '<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >';
echo '<span id="psm-info"> }
<p>
<b>'.$title.'</b><br> $authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev";
Genre: <b>'.$genre.'</b><br> if($playableSearch === true || $searchUsed === false)
Version: <b>'.$version.'</b><br> $authorUrl .= "&playable=on";
<b>Author: <a class="white" href="'.$authorUrl.'">'.$author.'</a><br> if($simulatorSearch === true || $searchUsed === false)
Website: <a class="white" href="'.$website.'">'.$website.'</a><br></b> $authorUrl .= "&simulator=on";
</p> if($unplayableSearch === true || $searchUsed === false)
</span> $authorUrl .= "&unplayable=on";
</a>
</div>'; echo '<span id="psm-info">
} <p>
echo('</div>'); <b>'.$title.'</b><br>
} Genre: <b>'.$genre.'</b><br>
?> Version: <b>'.$version.'</b><br>
<b>Author: <a class="white" href="'.$authorUrl.'">'.$author.'</a><br>
Website: <a class="white" href="'.$website.'">'.$website.'</a><br></b>
</p>
</span>
</a>
</div>';
}
echo('</div>');
}
include("footer.php");
?>

BIN
map750.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 KiB

View File

@ -1,6 +1,6 @@
<?php <?php
if(isset($_GET["url"])) if(isset($_GET["url"]))
{ {
echo('<script>window.location="'.htmlspecialchars($_GET["url"]).'";</script>'); echo('<script>window.location="'.htmlspecialchars($_GET["url"]).'";</script>');
} }
?> ?>

View File

@ -1,3 +1,3 @@
User-agent: * User-agent: *
Allow: / Allow: /
Sitemap: http://psmreborn.com/sitemap.xml Sitemap: http://psmreborn.com/sitemap.xml

File diff suppressed because it is too large Load Diff

808
style.css
View File

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

318
zrif.js

File diff suppressed because one or more lines are too long