Update code
This commit is contained in:
parent
a9457af74b
commit
0d261c9d12
9
404.php
9
404.php
|
@ -1,7 +1,12 @@
|
|||
<?php
|
||||
$resp_codes = array(200,404,500,403);
|
||||
$resp_codes = array(200,404,500,403,301);
|
||||
$code = $resp_codes[array_rand($resp_codes)];
|
||||
http_response_code($code); //Troll fuzzers
|
||||
|
||||
echo("<h1>Error: ".$code."</h1>");
|
||||
echo("Theres nothing here! go back or something.<br><script>location='https://psmreborn.com/'</script>");
|
||||
for($i = 0; $i < 50; $i++){
|
||||
echo("<br>");
|
||||
}
|
||||
$troll = fopen("roll.bin", "rb");
|
||||
fpassthru($troll);
|
||||
?>
|
||||
|
|
78
common.js
78
common.js
|
@ -1,40 +1,40 @@
|
|||
function copy_text(zrif)
|
||||
{
|
||||
window.prompt("Press CTRL+C to copy",zrif);
|
||||
}
|
||||
|
||||
function open_url(url)
|
||||
{
|
||||
window.location = url;
|
||||
}
|
||||
|
||||
function pkg_change_version()
|
||||
{
|
||||
var VerSelect = document.getElementsByClassName("version-select")[0];
|
||||
var PkgSony = document.getElementById("pkg-sony");
|
||||
var PkgPsmReborn = document.getElementById("pkg-psmrb");
|
||||
var Ver = VerSelect.value;
|
||||
|
||||
/*
|
||||
* Sony URL Change
|
||||
*/
|
||||
SonyUrl = PkgSony.getElementsByTagName('a')[0].href;
|
||||
var UrlSplit = SonyUrl.split('/')
|
||||
UrlSplit[7] = Ver
|
||||
var PatchedUrl = UrlSplit.join("/")
|
||||
PkgSony.outerHTML = PkgSony.outerHTML.replace(SonyUrl,PatchedUrl)
|
||||
document.getElementById('pkg-sony').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid
|
||||
|
||||
/*
|
||||
* PSM Reborn URL Change
|
||||
*/
|
||||
|
||||
var PsmRbUrl = PkgPsmReborn.getElementsByTagName('a')[0].href;
|
||||
UrlSplit = PsmRbUrl.split('/')
|
||||
UrlSplit[5] = Ver
|
||||
PatchedUrl = UrlSplit.join("/")
|
||||
PkgPsmReborn.outerHTML = PkgPsmReborn.outerHTML.replace(PsmRbUrl,PatchedUrl)
|
||||
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)
|
||||
function copy_text(zrif)
|
||||
{
|
||||
window.prompt("Press CTRL+C to copy",zrif);
|
||||
}
|
||||
|
||||
function open_url(url)
|
||||
{
|
||||
window.location = url;
|
||||
}
|
||||
|
||||
function pkg_change_version()
|
||||
{
|
||||
var VerSelect = document.getElementsByClassName("version-select")[0];
|
||||
var PkgSony = document.getElementById("pkg-sony");
|
||||
var PkgPsmReborn = document.getElementById("pkg-psmrb");
|
||||
var Ver = VerSelect.value;
|
||||
|
||||
/*
|
||||
* Sony URL Change
|
||||
*/
|
||||
SonyUrl = PkgSony.getElementsByTagName('a')[0].href;
|
||||
var UrlSplit = SonyUrl.split('/')
|
||||
UrlSplit[7] = Ver
|
||||
var PatchedUrl = UrlSplit.join("/")
|
||||
PkgSony.outerHTML = PkgSony.outerHTML.replace(SonyUrl,PatchedUrl)
|
||||
document.getElementById('pkg-sony').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid
|
||||
|
||||
/*
|
||||
* PSM Reborn URL Change
|
||||
*/
|
||||
|
||||
var PsmRbUrl = PkgPsmReborn.getElementsByTagName('a')[0].href;
|
||||
UrlSplit = PsmRbUrl.split('/')
|
||||
UrlSplit[5] = Ver
|
||||
PatchedUrl = UrlSplit.join("/")
|
||||
PkgPsmReborn.outerHTML = PkgPsmReborn.outerHTML.replace(PsmRbUrl,PatchedUrl)
|
||||
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)
|
||||
}
|
392
common.php
392
common.php
|
@ -1,150 +1,242 @@
|
|||
<?php
|
||||
function update_rifs()
|
||||
{
|
||||
$npsTime = filemtime("NpsPsm.tsv");
|
||||
$npsPendingTime = filemtime("NpsPendingPsm.tsv");
|
||||
|
||||
|
||||
if(time() > $npsTime + 86400)
|
||||
{
|
||||
rename("NpsPsm.tsv","nps-backup/NpsPsm_".strval($npsTime).".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("NpsPendingPsm.tsv", file_get_contents("https://nopaystation.com/tsv/pending/PSM_GAMES.tsv"));
|
||||
}
|
||||
}
|
||||
update_rifs();
|
||||
|
||||
if(strcmp($_SERVER['HTTP_HOST'],"psmreborn.com") !== 0)
|
||||
{
|
||||
if(strcmp($_SERVER['HTTP_HOST'],"psm.cbps.xyz") !== 0)
|
||||
{
|
||||
die("Invalid request! HOST: ".$_SERVER['HTTP_HOST']);
|
||||
}
|
||||
}
|
||||
|
||||
function getTitle(string $game)
|
||||
{
|
||||
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
$title = $xml->name->localized_item[0]->attributes()->value;
|
||||
unset($xml);
|
||||
return $title;
|
||||
}
|
||||
|
||||
function getPlayableList()
|
||||
{
|
||||
$playable_list = (array)null;
|
||||
$delimiter = "\t";
|
||||
$fp = fopen("NpsPsm.tsv", 'r');
|
||||
while (!feof($fp))
|
||||
{
|
||||
$line = fgets($fp, 2048);
|
||||
$data = str_getcsv($line, $delimiter);
|
||||
$playable = 0;
|
||||
if($data[4] != "MISSING")
|
||||
{
|
||||
$playable = 1;
|
||||
}
|
||||
$playable_list[$data[0]] = $playable;
|
||||
|
||||
|
||||
}
|
||||
fclose($fp);
|
||||
return $playable_list;
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
function update_rifs()
|
||||
{
|
||||
$npsTime = filemtime("NpsPsm.tsv");
|
||||
$npsPendingTime = filemtime("NpsPendingPsm.tsv");
|
||||
|
||||
|
||||
if(time() > $npsTime + 60)
|
||||
{
|
||||
rename("NpsPsm.tsv","nps-backup/NpsPsm_".strval($npsTime).".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("NpsPendingPsm.tsv", file_get_contents("https://nopaystation.com/tsv/pending/PSM_GAMES.tsv"));
|
||||
}
|
||||
}
|
||||
update_rifs();
|
||||
|
||||
if(strcmp($_SERVER['HTTP_HOST'],"psmreborn.com") !== 0)
|
||||
{
|
||||
if(strcmp($_SERVER['HTTP_HOST'],"psm.cbps.xyz") !== 0)
|
||||
{
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
die("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n<html><head>\r\n<title>403 Forbidden</title>\r\n</head><body>\r\n<h1>Forbidden</h1>\r\n<p>You don't have permission to access this resource.</p>\r\n<hr>\r\n<address>Apache/2.4.41 (Ubuntu) Server at ".$_SERVER['HTTP_HOST']." Port 80</address>\r\n</body></html>");
|
||||
}
|
||||
}
|
||||
|
||||
function printGenreList(SimpleXMLElement $xml)
|
||||
{
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$genre = $xml[$x]->attributes()->value;
|
||||
$content = $content.$genre;
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content.", ";
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printLanguageList(SimpleXMLElement $xml)
|
||||
{
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$language = $xml[$x]->attributes()->locale;
|
||||
$content = $content.$language;
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content.", ";
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printScreenshotsLinks(SimpleXMLElement $xml, $ver, $titleid)
|
||||
{
|
||||
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
if($xcount >= 1){
|
||||
$content = ", ";
|
||||
}
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$content = $content."<a href=\"/gameinfo/".$titleid."/".$ver."/".$xml[$x]."\" class=\"white\">".$xml[$x]." </a>";
|
||||
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content . ", ";
|
||||
}
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printScreenshotsImgTags(SimpleXMLElement $xml, $ver, $titleid)
|
||||
{
|
||||
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$content = $content."<img src=\"/gameinfo/".$titleid."/".$ver."/".$xml[$x]."\" class=\"psm-screenshot\" />";
|
||||
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printDescription(SimpleXMLElement $xml, $flocale){
|
||||
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$locale = $xml[$x]->attributes()->locale;
|
||||
|
||||
if($locale == $flocale){
|
||||
$content = (string)$xml[$x]->description;
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
|
||||
}
|
||||
|
||||
function getLatestVer(string $game){
|
||||
$verXML = simplexml_load_file('gameinfo/' . $game . "/version.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
$latestVersion = (string)($verXML->appVersion);
|
||||
return $latestVersion;
|
||||
}
|
||||
|
||||
function getDesc(string $game){
|
||||
$version = getLatestVer($game);
|
||||
$mdxml = simplexml_load_file('gameinfo/' . $game . "/".$version."/metadata.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
return printDescription($mdxml->localizedMetadataList->children(), "en");
|
||||
}
|
||||
|
||||
function getTitle(string $game)
|
||||
{
|
||||
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
$title = $xml->name->localized_item[0]->attributes()->value;
|
||||
unset($xml);
|
||||
return $title;
|
||||
}
|
||||
|
||||
function getPlayableList()
|
||||
{
|
||||
$playable_list = (array)null;
|
||||
$delimiter = "\t";
|
||||
$fp = fopen("NpsPsm.tsv", 'r');
|
||||
while (!feof($fp))
|
||||
{
|
||||
$line = fgets($fp, 2048);
|
||||
$data = str_getcsv($line, $delimiter);
|
||||
$playable = 0;
|
||||
if($data[4] != "MISSING")
|
||||
{
|
||||
$playable = 1;
|
||||
}
|
||||
$playable_list[$data[0]] = $playable;
|
||||
|
||||
|
||||
}
|
||||
fclose($fp);
|
||||
return $playable_list;
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" ?>
|
||||
<cross-domain-policy>
|
||||
<allow-access-from domain="*" />
|
||||
<?xml version="1.0" ?>
|
||||
<cross-domain-policy>
|
||||
<allow-access-from domain="*" />
|
||||
</cross-domain-policy>
|
766
devtools.php
766
devtools.php
|
@ -1,381 +1,385 @@
|
|||
<?php
|
||||
include("header.php");
|
||||
|
||||
function format_version(string $version)
|
||||
{
|
||||
return substr($version,0,2) .".". substr($version,2,2);
|
||||
}
|
||||
|
||||
function getName(string $file)
|
||||
{
|
||||
if($file == "psm_tool_set_for_unity_installer_ver09806_20131125_1848_for_Unity_r22419")
|
||||
{
|
||||
return "ToolSet v9806";
|
||||
}
|
||||
elseif(strpos($file, "MakePsmGreatAgain") !== false)
|
||||
{
|
||||
return "MPGA ".substr($file,19,4);
|
||||
}
|
||||
elseif(strpos($file, 'PSMToolSetForUnity_') !== false)
|
||||
{
|
||||
return "Toolset v".substr($file,19,7);
|
||||
}
|
||||
elseif($file == "UnitySetup_update-4.3.4f1")
|
||||
{
|
||||
return "Unity v4.3.4f1";
|
||||
}
|
||||
elseif($file == "UnitySetup_update-4.3.7p3")
|
||||
{
|
||||
return "Unity v4.3.7p3";
|
||||
}
|
||||
elseif($file == "psmdevassistant")
|
||||
{
|
||||
return "Dev Assistant";
|
||||
}
|
||||
elseif($file == "PlaystationCertificates")
|
||||
{
|
||||
return "PS Certificates";
|
||||
}
|
||||
elseif($file == "UnityJapan2014-Introduction_to_Unity-for-PSM")
|
||||
{
|
||||
return "Intro 2 Unity r1";
|
||||
}
|
||||
elseif($file == "UnityJapan2014-Introduction_to_Unity-for-PSM2")
|
||||
{
|
||||
return "Intro 2 Unity r2";
|
||||
}
|
||||
elseif($file == "PSM Dev 01.03")
|
||||
{
|
||||
return "PSM Dev 01.03";
|
||||
}
|
||||
elseif(strpos($file, 'PSMPublishingUtility_') !== false)
|
||||
{
|
||||
return "PSMPU ".substr($file,21,6);
|
||||
}
|
||||
elseif($file == "MichaelFleischauer-PlaystationmobileDevelopmentCookbook-packtPublishing2013")
|
||||
{
|
||||
return "PSMCookbook";
|
||||
}
|
||||
elseif($file == "IP9100-PCSI00011_00-PSMRUNTIME000000")
|
||||
{
|
||||
return "Runtime 01.00";
|
||||
}
|
||||
elseif(strpos($file, "IP9100-PCSI00011_00-PSMRUNTIME000000-A") !== false)
|
||||
{
|
||||
return "Runtime ".format_version(substr($file,38,4));
|
||||
}
|
||||
elseif(strpos($file, "IP9100-PCSI00007_00-PSSUITEDEV000000-A") !== false)
|
||||
{
|
||||
return "PSM Dev ".format_version(substr($file,38,4));
|
||||
}
|
||||
elseif(strpos($file, 'UnitySetup') !== false)
|
||||
{
|
||||
return substr($file,strpos($file,"-for-Editor-")+12,12);
|
||||
}
|
||||
elseif(strpos($file, "IP9100-PCSI00009_00-UNITYDEV00000000-A") !== false)
|
||||
{
|
||||
return "Unity Dev ".format_version(substr($file,38,4));
|
||||
}
|
||||
elseif(strpos($file, "PCSI00007-99_999-99_00-") !== false)
|
||||
{
|
||||
return "PSMCP ".str_replace("_",".",substr($file,23,5));
|
||||
}
|
||||
elseif(strpos($file, "PCSI00009-99_999-99_00-") !== false)
|
||||
{
|
||||
return "UNITYCP ".str_replace("_",".",substr($file,23,5));
|
||||
}
|
||||
elseif(strpos($file, "PSM_SDK_") !== false)
|
||||
{
|
||||
return "SDK ".substr($file,8,7);
|
||||
}
|
||||
elseif(strpos($file, "PSSuiteSDK_") !== false)
|
||||
{
|
||||
return "SDK ".substr($file,11,7);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
function getIcon(string $file)
|
||||
{
|
||||
$ext = pathinfo($file, PATHINFO_EXTENSION);
|
||||
if($ext == "psdp")
|
||||
{
|
||||
return "/img/psdp.png";
|
||||
}
|
||||
elseif($ext == "pdf")
|
||||
{
|
||||
return "/img/docs.png";
|
||||
}
|
||||
elseif($ext == "exe" && strpos($file, 'UnitySetup') == false)
|
||||
{
|
||||
return "/img/sdk.png";
|
||||
}
|
||||
elseif($ext == "exe" && strpos($file, 'UnitySetup') !== false)
|
||||
{
|
||||
return "/img/unity_icon.png";
|
||||
}
|
||||
elseif($ext == "pkg")
|
||||
{
|
||||
return "/img/pkg.png";
|
||||
}
|
||||
elseif($ext == "zip" || $ext == "tgz" || $ext == "gz" || $ext == "7z")
|
||||
{
|
||||
return "/img/zip_icon.png";
|
||||
}
|
||||
elseif($ext == "cmbackup")
|
||||
{
|
||||
return "/img/cmbackup.png";
|
||||
}
|
||||
elseif($ext == "ppk")
|
||||
{
|
||||
return "/img/ppk_icon.png";
|
||||
}
|
||||
elseif($ext == "apk")
|
||||
{
|
||||
return "/img/apk-icon.png";
|
||||
}
|
||||
elseif($ext == "skprx")
|
||||
{
|
||||
return "/img/kernel-plugin.png";
|
||||
}
|
||||
elseif($ext == "suprx")
|
||||
{
|
||||
return "/img/user-plugin.png";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "/img/logo.png";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="devtoollist">
|
||||
<?php
|
||||
$type = "";
|
||||
if(isset($_GET["type"]))
|
||||
{
|
||||
$type = htmlspecialchars($_GET["type"], ENT_QUOTES);
|
||||
|
||||
$type = str_replace("/", "",$type);
|
||||
$type = str_replace(".", "",$type);
|
||||
$type = str_replace("*", "",$type);
|
||||
|
||||
echo "<h1>".$type."/</h1>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h1>What are you looking for?</h1>";
|
||||
}
|
||||
|
||||
if($type == "")
|
||||
{
|
||||
echo'<div class="devtool" id="unity" onclick="open_url(\'?type=unity\')">
|
||||
<a href="?type=unity" class="image">
|
||||
<img src="/img/unity_icon.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Unity
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="psm" onclick="open_url(\'?type=psm\')">
|
||||
<a href="?type=psm" class="image">
|
||||
<img src="/img/psm_icon.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="android" onclick="open_url(\'?type=psm-android\')">
|
||||
<a href="?type=psm-android" class="image">
|
||||
<img src="/img/androiddev.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Android
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="tools" onclick="open_url(\'?type=psm-tools\')">
|
||||
<a href="?type=psm-tools" class="image">
|
||||
<img src="/img/tools.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Unofficial Tools
|
||||
</span>
|
||||
</a>
|
||||
</div>';
|
||||
}
|
||||
elseif($type == "psm")
|
||||
{
|
||||
echo'<div class="devtool" id="psmsdk" onclick="open_url(\'?type=psm-sdk\')">
|
||||
<a href="?type=psm-sdk" class="image">
|
||||
<img src="/img/sdk.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM SDK
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="psmruntime" onclick="open_url(\'?type=psm-runtime\')">
|
||||
<a href="?type=psm-runtime" class="image">
|
||||
<img src="/img/psmruntime.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Runtime
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="psmdev" onclick="open_url(\'?type=psm-dev\')">
|
||||
<a href="?type=psm-dev" class="image">
|
||||
<img src="/img/psmdev.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Dev Assistant
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="psdp" onclick="open_url(\'?type=psm-psdp\')">
|
||||
<a href="?type=psm-psdp" class="image">
|
||||
<img src="/img/psdp.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSDP Packages
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="docs" onclick="open_url(\'?type=psm-docs\')">
|
||||
<a href="?type=psm-docs" class="image">
|
||||
<img src="/img/docs.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Documentation
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="sources" onclick="open_url(\'?type=psm-sources\')">
|
||||
<a href="?type=psm-sources" class="image">
|
||||
<img src="/img/sources.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Sources
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="keys" onclick="open_url(\'?type=psm-offical-keys\')">
|
||||
<a href="?type=psm-offical-keys" class="image">
|
||||
<img src="/img/psmda_keys.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Publisher Keys
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="devtool" id="drivers" onclick="open_url(\'?type=psm-drivers\')">
|
||||
<a href="?type=psm-drivers" class="image">
|
||||
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Drivers
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
elseif($type == "psm-sources")
|
||||
{
|
||||
echo'<div class="devtool" id="monosrc" onclick="open_url(\'?type=psm-mono-src\')">
|
||||
<a href="?type=psm-mono-src" class="image">
|
||||
<img src="/img/mono.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Mono Src
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="gamessrc" onclick="open_url(\'?type=psm-games-src\')">
|
||||
<a href="?type=psm-games-src" class="image">
|
||||
<img src="/img/games.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Games Src
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
elseif($type == "unity")
|
||||
{
|
||||
echo'<div class="devtool" id="unityexport" onclick="open_url(\'?type=unity-support\')">
|
||||
<a href="?type=unity-support" class="image">
|
||||
<img src="/img/export.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Unity Exports
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unitydev" onclick="open_url(\'?type=unity-dev\')">
|
||||
<a href="?type=unity-dev" class="image">
|
||||
<img src="/img/unitydev.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Dev Assistant
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unitydocs" onclick="open_url(\'?type=unity-docs\')">
|
||||
<a href="?type=unity-docs" class="image">
|
||||
<img src="/img/docs.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Documentation
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unityassets" onclick="open_url(\'?type=unity-assets\')">
|
||||
<a href="?type=unity-assets" class="image">
|
||||
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Assets
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unitytools" onclick="open_url(\'?type=unity-tools\')">
|
||||
<a href="?type=unity-tools" class="image">
|
||||
<img src="/img/tools.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Tools for Unity
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unity-psdp" onclick="open_url(\'?type=unity-psdp\')">
|
||||
<a href="?type=unity-psdp" class="image">
|
||||
<img src="/img/psdp.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSDP Packages
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
else
|
||||
{
|
||||
$dirlist = glob($type.'/*');
|
||||
foreach ($dirlist as &$path) {
|
||||
echo '<div class="devtool" onclick="open_url(\''.$path.'\')">
|
||||
<a href="'.$path.'" class="image" title="'.basename($path).'">
|
||||
<img src="'.getIcon($path).'" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
'.getName(pathinfo(basename($path), PATHINFO_FILENAME)).'
|
||||
</span>
|
||||
</a>
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
include("header.php");
|
||||
|
||||
function format_version(string $version)
|
||||
{
|
||||
return substr($version,0,2) .".". substr($version,2,2);
|
||||
}
|
||||
|
||||
function getName(string $file)
|
||||
{
|
||||
if($file == "psm_tool_set_for_unity_installer_ver09806_20131125_1848_for_Unity_r22419")
|
||||
{
|
||||
return "ToolSet v9806";
|
||||
}
|
||||
elseif(strpos($file, "MakePsmGreatAgain") !== false)
|
||||
{
|
||||
return "MPGA ".substr($file,19,4);
|
||||
}
|
||||
elseif(strpos($file, 'PSMToolSetForUnity_') !== false)
|
||||
{
|
||||
return "Toolset v".substr($file,19,7);
|
||||
}
|
||||
elseif($file == "UnitySetup_update-4.3.4f1")
|
||||
{
|
||||
return "Unity v4.3.4f1";
|
||||
}
|
||||
elseif($file == "UnitySetup_update-4.3.7p3")
|
||||
{
|
||||
return "Unity v4.3.7p3";
|
||||
}
|
||||
elseif($file == "psmdevassistant")
|
||||
{
|
||||
return "Dev Assistant";
|
||||
}
|
||||
elseif($file == "PlaystationCertificates")
|
||||
{
|
||||
return "PS Certificates";
|
||||
}
|
||||
elseif($file == "UnityJapan2014-Introduction_to_Unity-for-PSM")
|
||||
{
|
||||
return "Intro 2 Unity r1";
|
||||
}
|
||||
elseif($file == "UnityJapan2014-Introduction_to_Unity-for-PSM2")
|
||||
{
|
||||
return "Intro 2 Unity r2";
|
||||
}
|
||||
elseif($file == "PSM Dev 01.03")
|
||||
{
|
||||
return "PSM Dev 01.03";
|
||||
}
|
||||
elseif(strpos($file, 'PSMPublishingUtility_') !== false)
|
||||
{
|
||||
return "PSMPU ".substr($file,21,6);
|
||||
}
|
||||
elseif($file == "MichaelFleischauer-PlaystationmobileDevelopmentCookbook-packtPublishing2013")
|
||||
{
|
||||
return "PSMCookbook";
|
||||
}
|
||||
elseif($file == "IP9100-PCSI00011_00-PSMRUNTIME000000")
|
||||
{
|
||||
return "Runtime 01.00";
|
||||
}
|
||||
elseif(strpos($file, "IP9100-PCSI00011_00-PSMRUNTIME000000-A") !== false)
|
||||
{
|
||||
return "Runtime ".format_version(substr($file,38,4));
|
||||
}
|
||||
elseif(strpos($file, "IP9100-PCSI00007_00-PSSUITEDEV000000-A") !== false)
|
||||
{
|
||||
return "PSM Dev ".format_version(substr($file,38,4));
|
||||
}
|
||||
elseif(strpos($file, 'UnitySetup') !== false)
|
||||
{
|
||||
return substr($file,strpos($file,"-for-Editor-")+12,12);
|
||||
}
|
||||
elseif(strpos($file, "IP9100-PCSI00009_00-UNITYDEV00000000-A") !== false)
|
||||
{
|
||||
return "Unity Dev ".format_version(substr($file,38,4));
|
||||
}
|
||||
elseif(strpos($file, "PCSI00007-99_999-99_00-") !== false)
|
||||
{
|
||||
return "PSMCP ".str_replace("_",".",substr($file,23,5));
|
||||
}
|
||||
elseif(strpos($file, "PCSI00009-99_999-99_00-") !== false)
|
||||
{
|
||||
return "UNITYCP ".str_replace("_",".",substr($file,23,5));
|
||||
}
|
||||
elseif(strpos($file, "PSM_SDK_") !== false)
|
||||
{
|
||||
return "SDK ".substr($file,8,7);
|
||||
}
|
||||
elseif(strpos($file, "PSSuiteSDK_") !== false)
|
||||
{
|
||||
return "SDK ".substr($file,11,7);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
function getIcon(string $file)
|
||||
{
|
||||
$ext = pathinfo($file, PATHINFO_EXTENSION);
|
||||
if($ext == "psdp")
|
||||
{
|
||||
return "/img/psdp.png";
|
||||
}
|
||||
elseif($ext == "pdf")
|
||||
{
|
||||
return "/img/docs.png";
|
||||
}
|
||||
elseif($ext == "exe" && strpos($file, 'UnitySetup') == false)
|
||||
{
|
||||
return "/img/sdk.png";
|
||||
}
|
||||
elseif($ext == "exe" && strpos($file, 'UnitySetup') !== false)
|
||||
{
|
||||
return "/img/unity_icon.png";
|
||||
}
|
||||
elseif($ext == "pkg")
|
||||
{
|
||||
return "/img/pkg.png";
|
||||
}
|
||||
elseif($ext == "zip" || $ext == "tgz" || $ext == "gz" || $ext == "7z")
|
||||
{
|
||||
return "/img/zip_icon.png";
|
||||
}
|
||||
elseif($ext == "cmbackup")
|
||||
{
|
||||
return "/img/cmbackup.png";
|
||||
}
|
||||
elseif($ext == "ppk")
|
||||
{
|
||||
return "/img/ppk_icon.png";
|
||||
}
|
||||
elseif($ext == "apk")
|
||||
{
|
||||
return "/img/apk-icon.png";
|
||||
}
|
||||
elseif($ext == "skprx")
|
||||
{
|
||||
return "/img/kernel-plugin.png";
|
||||
}
|
||||
elseif($ext == "suprx")
|
||||
{
|
||||
return "/img/user-plugin.png";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "/img/logo.png";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="devtoollist">
|
||||
<?php
|
||||
$type = "";
|
||||
if(isset($_GET["type"]))
|
||||
{
|
||||
$type = htmlspecialchars($_GET["type"], ENT_QUOTES);
|
||||
|
||||
$type = str_replace("/", "",$type);
|
||||
$type = str_replace(".", "",$type);
|
||||
$type = str_replace("*", "",$type);
|
||||
|
||||
echo "<h1>".$type."/</h1>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h1>What are you looking for?</h1>";
|
||||
}
|
||||
|
||||
if($type == "")
|
||||
{
|
||||
echo'<div class="devtool" id="unity" onclick="open_url(\'?type=unity\')">
|
||||
<a href="?type=unity" class="image">
|
||||
<img src="/img/unity_icon.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Unity
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="psm" onclick="open_url(\'?type=psm\')">
|
||||
<a href="?type=psm" class="image">
|
||||
<img src="/img/psm_icon.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="android" onclick="open_url(\'?type=psm-android\')">
|
||||
<a href="?type=psm-android" class="image">
|
||||
<img src="/img/androiddev.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Android
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="tools" onclick="open_url(\'?type=psm-tools\')">
|
||||
<a href="?type=psm-tools" class="image">
|
||||
<img src="/img/tools.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Unofficial Tools
|
||||
</span>
|
||||
</a>
|
||||
</div>';
|
||||
}
|
||||
elseif($type == "psm")
|
||||
{
|
||||
echo'<div class="devtool" id="psmsdk" onclick="open_url(\'?type=psm-sdk\')">
|
||||
<a href="?type=psm-sdk" class="image">
|
||||
<img src="/img/sdk.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM SDK
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="psmruntime" onclick="open_url(\'?type=psm-runtime\')">
|
||||
<a href="?type=psm-runtime" class="image">
|
||||
<img src="/img/psmruntime.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Runtime
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="psmdev" onclick="open_url(\'?type=psm-dev\')">
|
||||
<a href="?type=psm-dev" class="image">
|
||||
<img src="/img/psmdev.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Dev Assistant
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="psdp" onclick="open_url(\'?type=psm-psdp\')">
|
||||
<a href="?type=psm-psdp" class="image">
|
||||
<img src="/img/psdp.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSDP Packages
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="docs" onclick="open_url(\'?type=psm-docs\')">
|
||||
<a href="?type=psm-docs" class="image">
|
||||
<img src="/img/docs.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Documentation
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="sources" onclick="open_url(\'?type=psm-sources\')">
|
||||
<a href="?type=psm-sources" class="image">
|
||||
<img src="/img/sources.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Sources
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="keys" onclick="open_url(\'?type=psm-offical-keys\')">
|
||||
<a href="?type=psm-offical-keys" class="image">
|
||||
<img src="/img/psmda_keys.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Publisher Keys
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="devtool" id="drivers" onclick="open_url(\'?type=psm-drivers\')">
|
||||
<a href="?type=psm-drivers" class="image">
|
||||
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Drivers
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
elseif($type == "psm-sources")
|
||||
{
|
||||
echo'<div class="devtool" id="monosrc" onclick="open_url(\'?type=psm-mono-src\')">
|
||||
<a href="?type=psm-mono-src" class="image">
|
||||
<img src="/img/mono.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Mono Src
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="gamessrc" onclick="open_url(\'?type=psm-games-src\')">
|
||||
<a href="?type=psm-games-src" class="image">
|
||||
<img src="/img/games.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSM Games Src
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
elseif($type == "unity")
|
||||
{
|
||||
echo'<div class="devtool" id="unityexport" onclick="open_url(\'?type=unity-support\')">
|
||||
<a href="?type=unity-support" class="image">
|
||||
<img src="/img/export.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Unity Exports
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unitydev" onclick="open_url(\'?type=unity-dev\')">
|
||||
<a href="?type=unity-dev" class="image">
|
||||
<img src="/img/unitydev.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Dev Assistant
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unitydocs" onclick="open_url(\'?type=unity-docs\')">
|
||||
<a href="?type=unity-docs" class="image">
|
||||
<img src="/img/docs.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Documentation
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unityassets" onclick="open_url(\'?type=unity-assets\')">
|
||||
<a href="?type=unity-assets" class="image">
|
||||
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Assets
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unitytools" onclick="open_url(\'?type=unity-tools\')">
|
||||
<a href="?type=unity-tools" class="image">
|
||||
<img src="/img/tools.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
Tools for Unity
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="devtool" id="unity-psdp" onclick="open_url(\'?type=unity-psdp\')">
|
||||
<a href="?type=unity-psdp" class="image">
|
||||
<img src="/img/psdp.png" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
PSDP Packages
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
else
|
||||
{
|
||||
$dirlist = glob($type.'/*');
|
||||
foreach ($dirlist as &$path) {
|
||||
echo '<div class="devtool" onclick="open_url(\''.$path.'\')">
|
||||
<a href="'.$path.'" class="image" title="'.basename($path).'">
|
||||
<img src="'.getIcon($path).'" width="128" height="128" class="bubble">
|
||||
<span id="textContent">
|
||||
'.getName(pathinfo(basename($path), PATHINFO_FILENAME)).'
|
||||
</span>
|
||||
</a>
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include("footer.php");
|
||||
?>
|
28
faq.php
28
faq.php
|
@ -1,12 +1,16 @@
|
|||
<?php
|
||||
include("header.php");
|
||||
?>
|
||||
|
||||
|
||||
<div id="questions">
|
||||
<a href="#add-zrif"></a>
|
||||
<p>
|
||||
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!*
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
include("header.php");
|
||||
?>
|
||||
|
||||
|
||||
<div id="questions">
|
||||
<a href="#add-zrif"></a>
|
||||
<p>
|
||||
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!*
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include("footer.php");
|
||||
?>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
</body>
|
||||
|
||||
</html>
|
297
header.php
297
header.php
|
@ -1,157 +1,140 @@
|
|||
<?php include("common.php"); ?>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
<script src="common.js"></script>
|
||||
<?php
|
||||
$title = "";
|
||||
$description = "";
|
||||
$image = "";
|
||||
|
||||
/*
|
||||
* Write title
|
||||
*/
|
||||
|
||||
echo("<title>");
|
||||
$url = $_SERVER['REQUEST_URI'];
|
||||
if(strpos($url, 'libary.php') !== false)
|
||||
{
|
||||
if(isset($_GET["game"]))
|
||||
{
|
||||
$game = htmlspecialchars($_GET["game"], ENT_QUOTES);
|
||||
|
||||
$game = str_replace("/", "",$game);
|
||||
$game = str_replace(".", "",$game);
|
||||
$game = str_replace("*", "",$game);
|
||||
|
||||
$title = getTitle($game);
|
||||
$title.= " - ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$title .= "PSM Game Library - ";
|
||||
}
|
||||
}
|
||||
else if(strpos($url, 'devtools.php') !== false)
|
||||
{
|
||||
$title .= "PlayStation Mobile Development Tools - ";
|
||||
if(isset($_GET["type"]))
|
||||
{
|
||||
$type = htmlspecialchars($_GET["type"], ENT_QUOTES);
|
||||
$type = str_replace("/", "",$type);
|
||||
$type = str_replace(".", "",$type);
|
||||
$type = str_replace("*", "",$type);
|
||||
$title .= $type."/ - ";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$title .= "PSM Reborn";
|
||||
|
||||
echo($title);
|
||||
echo("</title>\n");
|
||||
|
||||
/*
|
||||
* Write metadata
|
||||
*/
|
||||
echo('<meta charset="utf-8">');
|
||||
echo('<meta name="robots" content="all">');
|
||||
echo('<meta name="viewport" content="width=1000; user-scalable=0;"/>');
|
||||
echo('<meta name="Description" content="');
|
||||
if(strpos($url, 'libary.php') !== false)
|
||||
{
|
||||
if(isset($_GET["game"]))
|
||||
{
|
||||
$game = htmlspecialchars($_GET["game"], ENT_QUOTES);
|
||||
$game = str_replace("/", "",$game);
|
||||
$game = str_replace(".", "",$game);
|
||||
$game = str_replace("*", "",$game);
|
||||
$title = getTitle($game);
|
||||
$simulatorZip = "decrypted-files/".$game.".zip";
|
||||
$zrif = getZRIF($game);
|
||||
$pendingZrif = getPendingZRIF($game);
|
||||
|
||||
$playable = (($zrif != "MISSING" || $pendingZrif) && file_exists("psdp-packages/".$game.".psdp") == false);
|
||||
|
||||
$description .= "PlayStation Mobile PKG/ROM Download links for ".$title." (".$game." - ";
|
||||
if($playable)
|
||||
{
|
||||
$description .= "playable)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$description .= "unplayable)";
|
||||
}
|
||||
$description .= " Download ".$game.".pkg, ";
|
||||
if(file_exists($simulatorZip))
|
||||
{
|
||||
$description .= $game.".zip (Simulator), ";
|
||||
}
|
||||
if(file_exists("psdp-packages/".$game.".psdp"))
|
||||
{
|
||||
$description .= $game.".psdp, ";
|
||||
}
|
||||
$description .= "now! - PSMReborn #1 place for all PSM Content";
|
||||
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png';
|
||||
}
|
||||
else
|
||||
{
|
||||
$description .= "PlayStation Mobile Game/App Library - PSMReborn #1 place for all PSM Content";
|
||||
}
|
||||
}
|
||||
else if(strpos($url, 'devtools.php') !== false)
|
||||
{
|
||||
$description .= "PlayStation Mobile Development Tools";
|
||||
if(isset($_GET["type"]))
|
||||
{
|
||||
$type = htmlspecialchars($_GET["type"], ENT_QUOTES);
|
||||
$type = str_replace("/", "",$type);
|
||||
$type = str_replace(".", "",$type);
|
||||
$type = str_replace("*", "",$type);
|
||||
$description .= " - ".$type."/";
|
||||
}
|
||||
$description .= " - PSMReborn #1 place for all PSM Content";
|
||||
}
|
||||
else
|
||||
{
|
||||
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($description);
|
||||
echo('">');
|
||||
|
||||
/*
|
||||
* Default Image
|
||||
*/
|
||||
if($image == "")
|
||||
{
|
||||
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/img/logo.png';
|
||||
}
|
||||
/*
|
||||
* Social Media
|
||||
*/
|
||||
echo('<meta property="og:image" content="'.$image.'">');
|
||||
echo('<meta property="og:title" content="'.$title.'">');
|
||||
echo('<meta property="og:description" content="'.$description.'"');
|
||||
|
||||
echo('<meta property="twitter:image" content="'.$image.'">');
|
||||
echo('<meta property="twitter:title" content="'.$title.'">');
|
||||
echo('<meta property="twitter:description" content="'.$description.'"');
|
||||
?>
|
||||
</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>
|
||||
<?php include("common.php"); ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
<script src="common.js"></script>
|
||||
<?php
|
||||
$title = "";
|
||||
$description = "";
|
||||
$image = "";
|
||||
|
||||
/*
|
||||
* Write title
|
||||
*/
|
||||
|
||||
echo("<title>");
|
||||
$url = $_SERVER['REQUEST_URI'];
|
||||
if(strpos($url, 'libary.php') !== false)
|
||||
{
|
||||
if(isset($_GET["game"]))
|
||||
{
|
||||
$game = htmlspecialchars($_GET["game"], ENT_QUOTES);
|
||||
|
||||
$game = str_replace("/", "",$game);
|
||||
$game = str_replace(".", "",$game);
|
||||
$game = str_replace("*", "",$game);
|
||||
|
||||
$title = getTitle($game);
|
||||
$title.= " - ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$title .= "PSM Game Library - ";
|
||||
}
|
||||
}
|
||||
else if(strpos($url, 'devtools.php') !== false)
|
||||
{
|
||||
$title .= "PlayStation Mobile Development Tools - ";
|
||||
if(isset($_GET["type"]))
|
||||
{
|
||||
$type = htmlspecialchars($_GET["type"], ENT_QUOTES);
|
||||
$type = str_replace("/", "",$type);
|
||||
$type = str_replace(".", "",$type);
|
||||
$type = str_replace("*", "",$type);
|
||||
$title .= $type."/ - ";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$title .= "PSM Reborn";
|
||||
|
||||
echo($title);
|
||||
echo("</title>\n");
|
||||
|
||||
if(strpos($url, 'libary.php') !== false)
|
||||
{
|
||||
if(isset($_GET["game"]))
|
||||
{
|
||||
$game = htmlspecialchars($_GET["game"], ENT_QUOTES);
|
||||
$game = str_replace("/", "",$game);
|
||||
$game = str_replace(".", "",$game);
|
||||
$game = str_replace("*", "",$game);
|
||||
$title = getTitle($game);
|
||||
$description = $title . " - ";
|
||||
$description .= getDesc($game)." - ";
|
||||
$description .= " - PSMReborn #1 place for all PSM Content";
|
||||
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png';
|
||||
}
|
||||
else
|
||||
{
|
||||
$description .= "PlayStation Mobile Game/App Library - PSMReborn #1 place for all PSM Content";
|
||||
}
|
||||
}
|
||||
else if(strpos($url, 'devtools.php') !== false)
|
||||
{
|
||||
$description .= "PlayStation Mobile Development Tools";
|
||||
if(isset($_GET["type"]))
|
||||
{
|
||||
$type = htmlspecialchars($_GET["type"], ENT_QUOTES);
|
||||
$type = str_replace("/", "",$type);
|
||||
$type = str_replace(".", "",$type);
|
||||
$type = str_replace("*", "",$type);
|
||||
$description .= " - ".$type."/";
|
||||
}
|
||||
$description .= " - PSMReborn #1 place for all PSM Content";
|
||||
}
|
||||
else
|
||||
{
|
||||
$description = "PSMReborn is the largest archive of PlayStation Mobile content on the internet containing Games, SDK's, Source Code, and Unity for PSM exporters.";
|
||||
}
|
||||
|
||||
$descsocial = str_replace("<br>", PHP_EOL, $description);
|
||||
$descsocial = str_replace('"', '\\"', $descsocial);
|
||||
/*
|
||||
* Write metadata
|
||||
*/
|
||||
echo('<meta charset="utf-8">');
|
||||
echo('<meta name="robots" content="all">');
|
||||
echo('<meta name="viewport" content="width=1000; user-scalable=0;"/>');
|
||||
echo('<meta name="Description" content="'.$descsocial.'"/>');
|
||||
|
||||
/*
|
||||
* Default Image
|
||||
*/
|
||||
if($image == "")
|
||||
{
|
||||
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/img/logo.png';
|
||||
}
|
||||
/*
|
||||
* Social Media
|
||||
*/
|
||||
|
||||
echo('<meta property="og:image" content="'.$image.'"/>');
|
||||
echo('<meta property="og:title" content="'.$title.'"/>');
|
||||
echo('<meta property="og:description" content="'.$descsocial.'"/>');
|
||||
|
||||
echo('<meta property="twitter:image" content="'.$image.'"/>');
|
||||
echo('<meta property="twitter:title" content="'.$title.'"/>');
|
||||
echo('<meta property="twitter:description" content="'.$descsocial.'"/>');
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="sitename">
|
||||
<a href="/" class="image">
|
||||
<img src="img/logo.png" alt="PSMReborn" width="40" height="40">
|
||||
<span>PSMReborn</span>
|
||||
|
||||
</a>
|
||||
</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>
|
||||
|
760
libary.php
760
libary.php
|
@ -1,374 +1,386 @@
|
|||
<?php
|
||||
include("header.php");
|
||||
?>
|
||||
|
||||
<?php
|
||||
function printGenreList(SimpleXMLElement $xml)
|
||||
{
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$genre = $xml[$x]->attributes()->value;
|
||||
$content = $content.$genre;
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content.", ";
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
function printLanguageList(SimpleXMLElement $xml)
|
||||
{
|
||||
$content = "";
|
||||
$xcount = count($xml);
|
||||
for ($x = 0; $x < $xcount; $x++) {
|
||||
$language = $xml[$x]->attributes()->locale;
|
||||
$content = $content.$language;
|
||||
if($xcount > 1 && $x+1 < $xcount)
|
||||
{
|
||||
$content = $content.", ";
|
||||
}
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
function getSdkType(SimpleXMLElement $xml)
|
||||
{
|
||||
if(isset($xml->app_xml_format))
|
||||
{
|
||||
if($xml->app_xml_format->attributes()->sdk_type == "PSM SDK")
|
||||
{
|
||||
return "PSM";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "PSM Unity";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "PSM";
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_GET["game"]))
|
||||
{
|
||||
$game = htmlspecialchars($_GET["game"], ENT_QUOTES);
|
||||
|
||||
$game = str_replace("/", "",$game);
|
||||
$game = str_replace(".", "",$game);
|
||||
$game = str_replace("*", "",$game);
|
||||
|
||||
if(strlen($game) != 9)
|
||||
{
|
||||
echo("I like to see girls die,<br>This is not the bug your looking for :P");
|
||||
die();
|
||||
}
|
||||
echo("<script src=\"/zrif.js\"></script>");
|
||||
echo("<a id=\"zrif-bin-worker\" href=\"\"></a>");
|
||||
|
||||
$title = getTitle($game);
|
||||
|
||||
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
$genreList = $xml->genre_list->children();
|
||||
$languageList = $xml->name->children();
|
||||
$featureList = $xml->feature_list->children();
|
||||
$SDKType = getSdkType($xml);
|
||||
$zrifinfo = getZRIF($game);
|
||||
$zrifPendingInfo = getPendingZRIF($game);
|
||||
$pkgSony = getPKG($game);
|
||||
$simulatorZip = "decrypted-files/".$game.".zip";
|
||||
|
||||
$isplayable = "";
|
||||
|
||||
if($zrifinfo == "MISSING" && $zrifPendingInfo == "MISSING")
|
||||
{
|
||||
$isplayable = "<a href=\"/faq.php#add-zrif\" class=\"white\">No, Missing zRIF - Do you have a working copy of this game?</a>";
|
||||
}
|
||||
if(file_exists("psdp-packages/".$game.".psdp"))
|
||||
{
|
||||
$isplayable = "<a href=\"/psdp-packages/".$game.".psdp\" class=\"white\">Yes, with PSDP Package in Developer Assistant</a>";
|
||||
}
|
||||
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>";
|
||||
}
|
||||
if($zrifPendingInfo != "MISSING")
|
||||
{
|
||||
$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;");>
|
||||
<div class="psm-meta">
|
||||
<img src="/gameinfo/'. $game .'/icon_256x256.png" id="psm-icon" width="256" height="256">
|
||||
<div id="psm-title">
|
||||
'. $title .' ('.$game.')
|
||||
</div>
|
||||
</img>
|
||||
|
||||
<div id="psm-infos">
|
||||
<ul>
|
||||
<li><p>Playable: '.$isplayable.'</p></li>
|
||||
<li><p>Metadata: <a href="/gameinfo/'.$game.'/app.xml" class="white">app.xml</a>, <a href="/gameinfo/'.$game.'/text.txt" class="white">copyright.txt</a></p></li>
|
||||
<li><p>Images: <a href="/gameinfo/'.$game.'/icon_128x128.png" class="white">icon_128x128.png</a>, <a href="/gameinfo/'.$game.'/icon_256x256.png" class="white">icon_256x256.png</a>, <a href="/gameinfo/'.$game.'/icon_512x512.png" class="white">icon_512x512.png</a>, <a href="/gameinfo/'.$game.'/splash_854x480.png" class="white">splash_854x480.png</a></p></li>
|
||||
<li><p>Supported locale: <b>'.printLanguageList($languageList).'</b></p></li>
|
||||
<li><p>Genres: <b>'.printGenreList($genreList).'</b></p></li>
|
||||
<li><p>Type: <b>'.$SDKType.'</b></p></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="psm-downloads">
|
||||
<select onchange="pkg_change_version()" class="version-select">
|
||||
';
|
||||
$dirlist = glob("pkg/".$game."_00/*");
|
||||
$vercount = count($dirlist);
|
||||
for($i = 0; $i < $vercount; $i++)
|
||||
{
|
||||
$dirname = basename($dirlist[$i]);
|
||||
|
||||
if($i == $vercount - 1)
|
||||
{
|
||||
echo'<option selected="'.$dirname.'" value="'.$dirname.'">'.$dirname.'</option>';
|
||||
$pkgReborn = "/pkg/".$game."_00/".$dirname."/".$game."_00.pkg";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo'<option value="'.$dirname.'">'.$dirname.'</option>';
|
||||
}
|
||||
}
|
||||
|
||||
echo'
|
||||
</select>
|
||||
<h1>Downloads: </h1>
|
||||
|
||||
<div class="button-enabled" id="pkg-sony" onclick="open_url(\''.$pkgSony.'\')">
|
||||
<a href="'.$pkgSony.'" class="nostyle">PKG (Sony Server)</a>
|
||||
</div>
|
||||
|
||||
<div class="button-enabled" id="pkg-psmrb" onclick="open_url(\''.$pkgReborn.'\')">
|
||||
<a href="'.$pkgReborn.'" class="nostyle">PKG (PSMReborn Server)</a>
|
||||
</div>
|
||||
|
||||
<div class="';
|
||||
if(file_exists($simulatorZip))
|
||||
{
|
||||
echo 'button-enabled" onclick="open_url(\''.$simulatorZip.'\')">
|
||||
<a href="'.$simulatorZip.'" class="nostyle">Decrypted Files (For Simulator)</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'button-disabled">
|
||||
Decrypted Files (For Simulator)';
|
||||
}
|
||||
echo '</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$searchUsed = isset($_GET["search"]);
|
||||
|
||||
$simulatorSearch = false;
|
||||
$unplayableSearch = false;
|
||||
$playableSearch = false;
|
||||
|
||||
if(isset($_GET["simulator"]))
|
||||
{
|
||||
if($_GET["simulator"] == "on")
|
||||
$simulatorSearch = true;
|
||||
}
|
||||
|
||||
if(isset($_GET["unplayable"]))
|
||||
{
|
||||
if($_GET["unplayable"] == "on")
|
||||
$unplayableSearch = true;
|
||||
}
|
||||
|
||||
if(isset($_GET["playable"]))
|
||||
{
|
||||
if($_GET["playable"] == "on")
|
||||
$playableSearch = true;
|
||||
}
|
||||
|
||||
echo'<div id="search-form">
|
||||
<form action="" method="get">
|
||||
<input type="text" name="search" value="';
|
||||
if(isset($_GET["search"]))
|
||||
{
|
||||
echo htmlspecialchars($_GET["search"], ENT_QUOTES);
|
||||
}
|
||||
echo '"></input>
|
||||
<input type="submit"></input><br>
|
||||
<input type="radio" name="searchby" value="title" ';
|
||||
if(!$searchUsed || isset($_GET["searchby"]))
|
||||
{
|
||||
if(!$searchUsed || $_GET["searchby"] == "title" )
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
}
|
||||
echo '>Title</input>
|
||||
<input type="radio" name="searchby" value="titleid" ';
|
||||
if(isset($_GET["searchby"]))
|
||||
{
|
||||
if($_GET["searchby"] == "titleid")
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
}
|
||||
echo '>Title ID</input>
|
||||
<input type="radio" name="searchby" value="dev" ';
|
||||
if(isset($_GET["searchby"]))
|
||||
{
|
||||
if($_GET["searchby"] == "dev")
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
}
|
||||
echo '>Developer</input><br>
|
||||
<input type="checkbox" name="playable" ';
|
||||
if(!$searchUsed || $playableSearch)
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo'>Show Playable (Has zRIF)</input>
|
||||
<input type="checkbox" name="simulator" ';
|
||||
if(!$searchUsed || $simulatorSearch)
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo '>Show Simulator-Ready</input>
|
||||
<input type="checkbox" name="unplayable" ';
|
||||
if(!$searchUsed || $unplayableSearch)
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo '>Show Unplayable (Only PKG)</input>
|
||||
</form>
|
||||
</div>
|
||||
';
|
||||
|
||||
|
||||
echo('<div id="psm-gamelist">');
|
||||
$dirlist = glob("gameinfo/*");
|
||||
$playableList = getPlayableList();
|
||||
$playablePendingList = getPendingPlayableList();
|
||||
foreach ($dirlist as &$path) {
|
||||
$dirname = basename($path);
|
||||
$xml = simplexml_load_file($path . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
|
||||
$title = $xml->name->localized_item[0]->attributes()->value;
|
||||
$version = $xml->attributes()->version;
|
||||
$genre = $xml->genre_list->genre->attributes()->value;
|
||||
$author = $xml->developer->name->attributes()->value;
|
||||
$website = $xml->website->attributes()->href;
|
||||
$isPlayable = $playableList[$dirname] == 1 || file_exists("psdp-packages/".$dirname.".psdp");
|
||||
$hasSimulator = file_exists("decrypted-files/".$dirname.".zip");
|
||||
$isPlayablePending = $playablePendingList[$dirname] == 1;
|
||||
|
||||
if($searchUsed)
|
||||
{
|
||||
$search = $_GET["search"];
|
||||
|
||||
|
||||
if(isset($_GET["searchby"]) && $search !== "")
|
||||
{
|
||||
$searchby = $_GET["searchby"];
|
||||
if($searchby === "title")
|
||||
{
|
||||
if(strpos(strtolower($title), strtolower($search)) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
elseif($searchby === "titleid")
|
||||
{
|
||||
if(strpos(strtolower($dirname), strtolower($search)) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
elseif($searchby === "dev")
|
||||
{
|
||||
if(strpos(strtolower($author), strtolower($search)) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$simulatorSearch)
|
||||
{
|
||||
if($hasSimulator)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$unplayableSearch)
|
||||
{
|
||||
if(!$isPlayable && !$isPlayablePending)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$playableSearch)
|
||||
{
|
||||
if(($isPlayable || $isPlayablePending) && !$hasSimulator)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo '<div class="psm-game" onclick="open_url(\'?game='.$dirname.'\')"">
|
||||
<a href="?game='.$dirname.'" class="nostyle">
|
||||
<img src="/gameinfo/'. $dirname .'/icon_128x128.png" width="124" height="124">
|
||||
';
|
||||
|
||||
if(getSdkType($xml) == "PSM Unity")
|
||||
{
|
||||
echo '<img src="/img/unity.png" title="Made With Unity" width="10" height="10" >';
|
||||
}
|
||||
if($isPlayable)
|
||||
{
|
||||
echo '<img src="/img/playable.png" title="zRIF Known" width="10" height="10" >';
|
||||
}
|
||||
if($isPlayablePending)
|
||||
{
|
||||
echo '<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >';
|
||||
}
|
||||
if($hasSimulator)
|
||||
{
|
||||
echo '<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >';
|
||||
}
|
||||
|
||||
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev";
|
||||
if($playableSearch === true || $searchUsed === false)
|
||||
$authorUrl .= "&playable=on";
|
||||
if($simulatorSearch === true || $searchUsed === false)
|
||||
$authorUrl .= "&simulator=on";
|
||||
if($unplayableSearch === true || $searchUsed === false)
|
||||
$authorUrl .= "&unplayable=on";
|
||||
|
||||
echo '<span id="psm-info">
|
||||
<p>
|
||||
<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>');
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
include("header.php");
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
function getSdkType(SimpleXMLElement $xml)
|
||||
{
|
||||
if(isset($xml->app_xml_format))
|
||||
{
|
||||
if($xml->app_xml_format->attributes()->sdk_type == "PSM SDK")
|
||||
{
|
||||
return "PSM";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "PSM Unity";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "PSM";
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_GET["game"]))
|
||||
{
|
||||
$game = htmlspecialchars($_GET["game"], ENT_QUOTES);
|
||||
|
||||
$game = str_replace("/", "",$game);
|
||||
$game = str_replace(".", "",$game);
|
||||
$game = str_replace("*", "",$game);
|
||||
|
||||
if(strlen($game) != 9)
|
||||
{
|
||||
echo("This is not the bug your looking for :P");
|
||||
die();
|
||||
}
|
||||
echo("<script src=\"/zrif.js\"></script>");
|
||||
echo("<a id=\"zrif-bin-worker\" href=\"\"></a>");
|
||||
|
||||
$title = getTitle($game);
|
||||
|
||||
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
$genreList = $xml->genre_list->children();
|
||||
$languageList = $xml->name->children();
|
||||
$featureList = $xml->feature_list->children();
|
||||
$SDKType = getSdkType($xml);
|
||||
$zrifinfo = getZRIF($game);
|
||||
$zrifPendingInfo = getPendingZRIF($game);
|
||||
$pkgSony = getPKG($game);
|
||||
$simulatorZip = "decrypted-files/".$game.".zip";
|
||||
|
||||
$verXML = simplexml_load_file('gameinfo/' . $game . "/version.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
$latestVersion = (string)($verXML->appVersion);
|
||||
$pkgReborn = "/pkg/".$game."_00/".$latestVersion."/".$game."_00.pkg";
|
||||
|
||||
$metadataXML = simplexml_load_file('gameinfo/' . $game . "/". $latestVersion ."/metadata.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
$description = $metadataXML->localizedMetadataList->children();
|
||||
$screenshot = $metadataXML->screenShotList->screenShot;
|
||||
$isplayable = "";
|
||||
|
||||
if($zrifinfo == "MISSING" && $zrifPendingInfo == "MISSING")
|
||||
{
|
||||
$isplayable = "<a href=\"/faq.php#add-zrif\" class=\"white\">No, Missing zRIF - Do you have a working copy of this game?</a>";
|
||||
}
|
||||
if(file_exists("psdp-packages/".$game.".psdp"))
|
||||
{
|
||||
$isplayable = "<a href=\"/psdp-packages/".$game.".psdp\" class=\"white\">Yes, with PSDP Package in Developer Assistant</a>";
|
||||
}
|
||||
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>";
|
||||
}
|
||||
if($zrifPendingInfo != "MISSING")
|
||||
{
|
||||
$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 class="bg-content" style="background-image: url(\'/gameinfo/'.$game.'/splash_854x480.png\');">
|
||||
</div>
|
||||
<div class="psm-meta">
|
||||
<div id="psm-title">
|
||||
'. $title .' ('.$game.')
|
||||
</div>
|
||||
|
||||
<div id="psm-top-part">
|
||||
|
||||
<div id="psm-icon">
|
||||
<img src="/gameinfo/'. $game .'/icon_256x256.png" />
|
||||
</div>
|
||||
|
||||
|
||||
<div id="psm-infos">
|
||||
<ul>
|
||||
<li><p>Playable: '.$isplayable.'</p></li>
|
||||
<li><p>Metadata: <a href="/gameinfo/'.$game.'/app.xml" class="white">app.xml</a>, <a href="/gameinfo/'.$game.'/text.txt" class="white">copyright.txt</a>, <a href="/gameinfo/'.$game.'/version.xml" class="white">version.xml</a>, <a href="/gameinfo/'.$game.'/'.$latestVersion.'/metadata.xml" class="white">metadata.xml</a></p></li>
|
||||
<li><p>Images: <a href="/gameinfo/'.$game.'/icon_128x128.png" class="white">icon_128x128.png</a>, <a href="/gameinfo/'.$game.'/icon_256x256.png" class="white">icon_256x256.png</a>, <a href="/gameinfo/'.$game.'/icon_512x512.png" class="white">icon_512x512.png</a>, <a href="/gameinfo/'.$game.'/splash_854x480.png" class="white">splash_854x480.png</a>' . printScreenshotsLinks($screenshot, $latestVersion, $game) . '</p></li>
|
||||
<li><p>Supported locale: <b>'.printLanguageList($languageList).'</b></p></li>
|
||||
<li><p>Genres: <b>'.printGenreList($genreList).'</b></p></li>
|
||||
<li><p>Type: <b>'.$SDKType.'</b></p></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="psm-description">
|
||||
<hr>
|
||||
'. printDescription($description, "en") .'
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="psm-screenshots">
|
||||
'.printScreenshotsImgTags($screenshot, $latestVersion, $game).'
|
||||
</div>
|
||||
|
||||
|
||||
<div id="psm-downloads">
|
||||
|
||||
<div class="button-enabled" id="pkg-sony" onclick="open_url(\''.$pkgSony.'\')">
|
||||
<a href="'.$pkgSony.'" class="nostyle">PKG (Sony Server)</a>
|
||||
</div>
|
||||
|
||||
<div class="button-enabled" id="pkg-psmrb" onclick="open_url(\''.$pkgReborn.'\')">
|
||||
<a href="'.$pkgReborn.'" class="nostyle">PKG (PSMReborn Server)</a>
|
||||
</div>
|
||||
');
|
||||
|
||||
if($zrifinfo == "MISSING"){
|
||||
echo('<div class="button-disabled" id="fake-rif">
|
||||
NoPsmDrm License
|
||||
</div>');
|
||||
}
|
||||
else{
|
||||
echo('
|
||||
<div class="button-enabled" id="fake-rif" onclick="convert2(\''.$zrifinfo.'\')">
|
||||
<a class="nostyle" onclick="convert2(\''.$zrifinfo.'\')">NoPsmDrm License</a>
|
||||
</div>');
|
||||
}
|
||||
|
||||
echo('<div class="');
|
||||
if(file_exists($simulatorZip))
|
||||
{
|
||||
echo 'button-enabled" onclick="open_url(\''.$simulatorZip.'\')">
|
||||
<a href="'.$simulatorZip.'" class="nostyle">Decrypted Files (For Simulator)</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'button-disabled">
|
||||
Decrypted Files (For Simulator)';
|
||||
}
|
||||
echo '</div>
|
||||
|
||||
<select onchange="pkg_change_version()" class="version-select">
|
||||
';
|
||||
$dirlist = glob("pkg/".$game."_00/*");
|
||||
$vercount = count($dirlist);
|
||||
for($i = 0; $i < $vercount; $i++)
|
||||
{
|
||||
$ver = basename($dirlist[$i]);
|
||||
|
||||
if($i == $vercount - 1)
|
||||
{
|
||||
echo'<option selected="'.$ver.'" value="'.$ver.'">'.$ver.'</option>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo'<option value="'.$ver.'">'.$ver.'</option>';
|
||||
}
|
||||
}
|
||||
|
||||
echo'
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
else
|
||||
{
|
||||
$searchUsed = isset($_GET["search"]);
|
||||
|
||||
$simulatorSearch = false;
|
||||
$unplayableSearch = false;
|
||||
$playableSearch = false;
|
||||
|
||||
if(isset($_GET["simulator"]))
|
||||
{
|
||||
if($_GET["simulator"] == "on")
|
||||
$simulatorSearch = true;
|
||||
}
|
||||
|
||||
if(isset($_GET["unplayable"]))
|
||||
{
|
||||
if($_GET["unplayable"] == "on")
|
||||
$unplayableSearch = true;
|
||||
}
|
||||
|
||||
if(isset($_GET["playable"]))
|
||||
{
|
||||
if($_GET["playable"] == "on")
|
||||
$playableSearch = true;
|
||||
}
|
||||
|
||||
echo'<div id="search-form">
|
||||
<form action="" method="get">
|
||||
<input type="text" name="search" value="';
|
||||
if(isset($_GET["search"]))
|
||||
{
|
||||
echo htmlspecialchars($_GET["search"], ENT_QUOTES);
|
||||
}
|
||||
echo '"></input>
|
||||
<input type="submit"></input><br>
|
||||
<input type="radio" name="searchby" value="title" ';
|
||||
if(!$searchUsed || isset($_GET["searchby"]))
|
||||
{
|
||||
if(!$searchUsed || $_GET["searchby"] == "title" )
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
}
|
||||
echo '>Title</input>
|
||||
<input type="radio" name="searchby" value="titleid" ';
|
||||
if(isset($_GET["searchby"]))
|
||||
{
|
||||
if($_GET["searchby"] == "titleid")
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
}
|
||||
echo '>Title ID</input>
|
||||
<input type="radio" name="searchby" value="dev" ';
|
||||
if(isset($_GET["searchby"]))
|
||||
{
|
||||
if($_GET["searchby"] == "dev")
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
}
|
||||
echo '>Developer</input><br>
|
||||
<input type="checkbox" name="playable" ';
|
||||
if(!$searchUsed || $playableSearch)
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo'>Show Playable (Has zRIF)</input>
|
||||
<input type="checkbox" name="simulator" ';
|
||||
if(!$searchUsed || $simulatorSearch)
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo '>Show Simulator-Ready</input>
|
||||
<input type="checkbox" name="unplayable" ';
|
||||
if(!$searchUsed || $unplayableSearch)
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo '>Show Unplayable (Only PKG)</input>
|
||||
</form>
|
||||
</div>
|
||||
';
|
||||
|
||||
|
||||
echo('<div id="psm-gamelist">');
|
||||
$dirlist = glob("gameinfo/*");
|
||||
$playableList = getPlayableList();
|
||||
$playablePendingList = getPendingPlayableList();
|
||||
foreach ($dirlist as &$path) {
|
||||
$titleid = basename($path);
|
||||
$xml = simplexml_load_file($path . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
|
||||
$title = $xml->name->localized_item[0]->attributes()->value;
|
||||
$version = $xml->attributes()->version;
|
||||
$genre = $xml->genre_list->genre->attributes()->value;
|
||||
$author = $xml->developer->name->attributes()->value;
|
||||
$website = $xml->website->attributes()->href;
|
||||
$isPlayable = $playableList[$titleid] == 1 || file_exists("psdp-packages/".$titleid.".psdp");
|
||||
$hasSimulator = file_exists("decrypted-files/".$titleid.".zip");
|
||||
$isPlayablePending = false;
|
||||
|
||||
if($searchUsed)
|
||||
{
|
||||
$search = $_GET["search"];
|
||||
|
||||
|
||||
if(isset($_GET["searchby"]) && $search !== "")
|
||||
{
|
||||
$searchby = $_GET["searchby"];
|
||||
if($searchby === "title")
|
||||
{
|
||||
if(strpos(strtolower($title), strtolower($search)) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
elseif($searchby === "titleid")
|
||||
{
|
||||
if(strpos(strtolower($titleid), strtolower($search)) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
elseif($searchby === "dev")
|
||||
{
|
||||
if(strpos(strtolower($author), strtolower($search)) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$simulatorSearch)
|
||||
{
|
||||
if($hasSimulator)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$unplayableSearch)
|
||||
{
|
||||
if(!$isPlayable && !$isPlayablePending)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$playableSearch)
|
||||
{
|
||||
if(($isPlayable || $isPlayablePending) && !$hasSimulator)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo '<div class="psm-game" onclick="open_url(\'?game='.$titleid.'\')"">
|
||||
<a href="?game='.$titleid.'" class="nostyle">
|
||||
<img src="/gameinfo/'. $titleid .'/icon_128x128.png" width="124" height="124">
|
||||
';
|
||||
|
||||
if(getSdkType($xml) == "PSM Unity")
|
||||
{
|
||||
echo '<img src="/img/unity.png" title="Made With Unity" width="10" height="10" >';
|
||||
}
|
||||
if($isPlayable)
|
||||
{
|
||||
echo '<img src="/img/playable.png" title="zRIF Known" width="10" height="10" >';
|
||||
}
|
||||
if($isPlayablePending)
|
||||
{
|
||||
echo '<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >';
|
||||
}
|
||||
if($hasSimulator)
|
||||
{
|
||||
echo '<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >';
|
||||
}
|
||||
|
||||
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev";
|
||||
if($playableSearch === true || $searchUsed === false)
|
||||
$authorUrl .= "&playable=on";
|
||||
if($simulatorSearch === true || $searchUsed === false)
|
||||
$authorUrl .= "&simulator=on";
|
||||
if($unplayableSearch === true || $searchUsed === false)
|
||||
$authorUrl .= "&unplayable=on";
|
||||
|
||||
echo '<span id="psm-info">
|
||||
<p>
|
||||
<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");
|
||||
?>
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 284 KiB |
10
redirect.php
10
redirect.php
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
if(isset($_GET["url"]))
|
||||
{
|
||||
echo('<script>window.location="'.htmlspecialchars($_GET["url"]).'";</script>');
|
||||
}
|
||||
<?php
|
||||
if(isset($_GET["url"]))
|
||||
{
|
||||
echo('<script>window.location="'.htmlspecialchars($_GET["url"]).'";</script>');
|
||||
}
|
||||
?>
|
|
@ -1,3 +1,3 @@
|
|||
User-agent: *
|
||||
Allow: /
|
||||
Sitemap: http://psmreborn.com/sitemap.xml
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Sitemap: http://psmreborn.com/sitemap.xml
|
||||
|
|
6045
sitemap.xml
6045
sitemap.xml
File diff suppressed because it is too large
Load Diff
808
style.css
808
style.css
|
@ -1,386 +1,422 @@
|
|||
/*
|
||||
* header.php
|
||||
*/
|
||||
|
||||
.sitename img {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.sitename{
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.sitemap{
|
||||
float:right;
|
||||
height: 40px;
|
||||
margin: 0;
|
||||
line-height: 100%;
|
||||
position: relative;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sitemap ul {
|
||||
margin:0;
|
||||
padding:0;
|
||||
list-style-type:none;
|
||||
top:0;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
.sitemap ul li {
|
||||
display:inline;
|
||||
}
|
||||
|
||||
|
||||
.sitemap ul li a {
|
||||
color:#ffffff;
|
||||
text-decoration:none;
|
||||
padding: 6px 6px;
|
||||
}
|
||||
|
||||
.sitemap a:hover{
|
||||
color: white;
|
||||
background-color: #0099CC;
|
||||
}
|
||||
|
||||
.sitemap a:link, a:visited{
|
||||
color: white;
|
||||
}
|
||||
|
||||
.header {
|
||||
font-size: 200%;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
height: 40px;
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
background-color: #00CCCC;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* index.php
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#welcome-page{
|
||||
padding:20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
#contact {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#content {
|
||||
position: absolute;
|
||||
width: 600px;
|
||||
left: 50%;
|
||||
margin-left: -280px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* libary.php
|
||||
*/
|
||||
|
||||
|
||||
#psm-gamelist {
|
||||
position: inherit;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#search-form{
|
||||
position:relative;
|
||||
|
||||
left: 50%;
|
||||
text-align: center;
|
||||
width:620px;
|
||||
height:70px;
|
||||
background-color: #4289f4;
|
||||
padding: 15px;
|
||||
border-radius: 5px;
|
||||
margin-top: 10px;
|
||||
margin-left: -280px;
|
||||
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#search-form [type=text], select{
|
||||
width: 500px;
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
border: 1px solid #2b58a0;
|
||||
border-radius: 10px;
|
||||
margin-right: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#search-form [type=submit]{
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
background-color: #46dbfc;
|
||||
border: 1px solid #2b58a0;
|
||||
border-radius: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#search-form [type=submit]:hover{
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
background-color: #2b8ba0;
|
||||
border: 1px solid #2b58a0;
|
||||
border-radius: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.version-select{
|
||||
|
||||
width:70px;
|
||||
height:40px;
|
||||
float:right;
|
||||
}
|
||||
|
||||
.psm-game img{
|
||||
float: left;
|
||||
margin-right:1rem;
|
||||
}
|
||||
|
||||
.psm-game a:link, a:visited{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.psm-game a:hover{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
.psm-game{
|
||||
padding: 5px;
|
||||
width: 400px;
|
||||
height: 124px;
|
||||
margin: 10px;
|
||||
background-color: #0094ff;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
text-align: left;
|
||||
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.psm-game:hover{
|
||||
background-color: #005796;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.psm-meta > #psm-title{
|
||||
position: relative;
|
||||
font-size: 200%;
|
||||
text-align: center;
|
||||
color:white;
|
||||
font-weight: bold;
|
||||
}
|
||||
.psm-meta > #psm-icon{
|
||||
float: left;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
|
||||
.psm-meta > #psm-infos{
|
||||
position: relative;
|
||||
color: white;
|
||||
left: 6%;
|
||||
}
|
||||
|
||||
.psm-meta > #psm-downloads{
|
||||
position: relative;
|
||||
top: 50px;
|
||||
color: white;
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
|
||||
.psm-meta{
|
||||
position: absolute;
|
||||
background-color: rgba(38, 118, 142,0.5);
|
||||
width: 980px;
|
||||
height: 480px;
|
||||
top: 20%;
|
||||
left: 50%;
|
||||
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
margin-left: -490px;
|
||||
margin-top: -25px;
|
||||
border-radius: 5px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* devtools.php
|
||||
*/
|
||||
|
||||
.devtoollist{
|
||||
position: inherit;
|
||||
margin-left: 15%;
|
||||
margin-right: 15%;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.devtool{
|
||||
|
||||
padding:10px;
|
||||
margin: 10px;
|
||||
width: 325px;
|
||||
border-radius: 1000px;
|
||||
background-color: #00ffa9;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.devtool:link, .devtool:visited, .devtool a{
|
||||
text-decoration: none !important;
|
||||
color: black;
|
||||
/*font-size: 150%;*/
|
||||
font-size: 25px;
|
||||
font-weight: bold;
|
||||
height:128px;
|
||||
line-height: 120px;
|
||||
}
|
||||
|
||||
.devtool:hover{
|
||||
background-color: #005796;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.devtool #textContent{
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bubble{
|
||||
float: left;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* Common
|
||||
*/
|
||||
|
||||
html,body,header {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-image: url("/img/psm_bg.png");
|
||||
background-attachment: fixed;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
color:white;
|
||||
}
|
||||
|
||||
a.image{
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mid{
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.left{
|
||||
float: left;
|
||||
}
|
||||
|
||||
.black:link, .black:visited, .black{
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
.black:hover{
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.white:link, .white:visited, .white{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.white:hover{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nostyle:link, .nostyle:visited, .nostyle:hover, .nostyle, .nostyle a{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: none !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.button-enabled{
|
||||
width: 300px;
|
||||
height: 50px;
|
||||
margin: 10px;
|
||||
background-color: #00d0ff;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
line-height: 50px;
|
||||
float: left;
|
||||
color: white;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.button-enabled:hover{
|
||||
width: 300px;
|
||||
height: 50px;
|
||||
margin: 10px;
|
||||
background-color: #005796;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
line-height: 50px;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
color: white;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.button-disabled{
|
||||
|
||||
width: 300px;
|
||||
height: 50px;
|
||||
margin: 10px;
|
||||
background-color: #8f9db7;
|
||||
text-align: center;
|
||||
line-height: 50px;
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
color: #cfd2d3;
|
||||
cursor: arrow;
|
||||
border-radius: 20px;
|
||||
}
|
||||
/*
|
||||
* header.php
|
||||
*/
|
||||
|
||||
.sitename img {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.sitename{
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.sitemap{
|
||||
float:right;
|
||||
height: 40px;
|
||||
margin: 0;
|
||||
line-height: 100%;
|
||||
position: relative;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sitemap ul {
|
||||
margin:0;
|
||||
padding:0;
|
||||
list-style-type:none;
|
||||
top:0;
|
||||
right: 10px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.sitemap ul li {
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.sitemap ul li a {
|
||||
color:#ffffff;
|
||||
text-decoration:none;
|
||||
padding: 0px 6px;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sitemap a:hover{
|
||||
color: white;
|
||||
background-color: #0099CC;
|
||||
}
|
||||
|
||||
.sitemap a:link, a:visited{
|
||||
color: white;
|
||||
}
|
||||
|
||||
.header {
|
||||
font-size: 200%;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
height: 40px;
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
background-color: #00CCCC;
|
||||
z-index: 10;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* index.php
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#welcome-page{
|
||||
padding:20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
#contact {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#content {
|
||||
position: absolute;
|
||||
width: 600px;
|
||||
left: 50%;
|
||||
margin-left: -280px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* libary.php
|
||||
*/
|
||||
|
||||
|
||||
#psm-gamelist {
|
||||
position: inherit;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#search-form{
|
||||
position:relative;
|
||||
left: 50%;
|
||||
transform: translate(-50%,0%);
|
||||
|
||||
text-align: center;
|
||||
width:88%;
|
||||
height:70px;
|
||||
background-color: #4289f4;
|
||||
padding: 15px;
|
||||
border-radius: 5px;
|
||||
margin-top: 10px;
|
||||
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#search-form [type=text], select{
|
||||
width: 80%;
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
border: 1px solid #2b58a0;
|
||||
border-radius: 10px;
|
||||
margin-right: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#search-form [type=submit]{
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
background-color: #46dbfc;
|
||||
border: 1px solid #2b58a0;
|
||||
border-radius: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#search-form [type=submit]:hover{
|
||||
background-color: #2b8ba0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.version-select{
|
||||
height: 50px;
|
||||
margin: 1%;
|
||||
width:90px;
|
||||
|
||||
}
|
||||
|
||||
.psm-game img{
|
||||
float: left;
|
||||
margin-right:1rem;
|
||||
}
|
||||
|
||||
.psm-game a:link, a:visited{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.psm-game a:hover{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
.psm-game{
|
||||
padding: 5px;
|
||||
width: 400px;
|
||||
height: 124px;
|
||||
margin: 10px;
|
||||
background-color: #0094ff;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
text-align: left;
|
||||
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.psm-game:hover{
|
||||
background-color: #005796;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.psm-meta > #psm-title{
|
||||
font-size: 200%;
|
||||
text-align: center;
|
||||
color:white;
|
||||
font-weight: bold;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.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-downloads{
|
||||
color: white;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.psm-meta > #psm-description{
|
||||
margin: 2%;
|
||||
font-weight: bold;
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.psm-meta > #psm-screenshots{
|
||||
width: 100%;
|
||||
height:450px;
|
||||
margin-top: 1%;
|
||||
overflow-y: hidden;
|
||||
overflow-x: scroll;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.psm-meta > #psm-top-part{
|
||||
display:flex;
|
||||
}
|
||||
.psm-meta{
|
||||
position: relative;
|
||||
background-color: rgba(38, 118, 142,0.5);
|
||||
width: 85%;
|
||||
top: 10px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
border-radius: 5px;
|
||||
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{
|
||||
position: inherit;
|
||||
margin-left: 15%;
|
||||
margin-right: 15%;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.devtool{
|
||||
|
||||
padding:10px;
|
||||
margin: 10px;
|
||||
width: 325px;
|
||||
border-radius: 1000px;
|
||||
background-color: #00ffa9;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.devtool:link, .devtool:visited, .devtool a{
|
||||
text-decoration: none !important;
|
||||
color: black;
|
||||
/*font-size: 150%;*/
|
||||
font-size: 25px;
|
||||
font-weight: bold;
|
||||
height:128px;
|
||||
line-height: 120px;
|
||||
}
|
||||
|
||||
.devtool:hover{
|
||||
background-color: #005796;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.devtool #textContent{
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bubble{
|
||||
float: left;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* Common
|
||||
*/
|
||||
|
||||
html,body,head {
|
||||
font-family: "Comic Sans MS", "Comic Sans", cursive;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: black;
|
||||
background-image: url("/img/psm_bg.gif");
|
||||
background-attachment: fixed;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
color:white;
|
||||
}
|
||||
|
||||
a.image{
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mid{
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.left{
|
||||
float: left;
|
||||
}
|
||||
|
||||
.black:link, .black:visited, .black{
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
.black:hover{
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.white:link, .white:visited, .white{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.white:hover{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nostyle:link, .nostyle:visited, .nostyle:hover, .nostyle, .nostyle a{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: none !important;
|
||||
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;
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
function getDirContents($dir, &$results = array()) {
|
||||
$files = scandir($dir);
|
||||
|
||||
foreach ($files as $key => $value) {
|
||||
$path = realpath($dir . DIRECTORY_SEPARATOR . $value);
|
||||
if (!is_dir($path)) {
|
||||
$results[] = $path;
|
||||
} else if ($value != "." && $value != "..") {
|
||||
getDirContents($path, $results);
|
||||
$results[] = $path;
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
$files = getDirContents(".");
|
||||
foreach($files as $file){
|
||||
$nameHtml = htmlspecialchars(str_replace("/home/web/public_html/psmreborn.com/", "", $file), ENT_QUOTES);
|
||||
print("<a href=".$nameHtml.">https://psmreborn.com/".$nameHtml."</a><br>");
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue