Upload files.
|
@ -0,0 +1 @@
|
|||
lol you really thought that would work?
|
|
@ -0,0 +1,9 @@
|
|||
function copy_text(zrif)
|
||||
{
|
||||
window.prompt("Press CTRL+C to copy",zrif);
|
||||
}
|
||||
|
||||
function open_url(url)
|
||||
{
|
||||
window.location = url;
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
function update_rifs()
|
||||
{
|
||||
|
||||
if(time() + 86400 < filemtime("NpsPsm.tsv"))
|
||||
{
|
||||
file_put_contents("NpsPsm.tsv", file_get_contents("http://beta.nopaystation.com/tsv/PSM_GAMES.tsv"));
|
||||
}
|
||||
}
|
||||
update_rifs();
|
||||
|
||||
|
||||
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 getZRIF(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[4]);
|
||||
}
|
||||
}
|
||||
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
?>
|
|
@ -0,0 +1,341 @@
|
|||
<?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, '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 substr($file,0,12);
|
||||
}
|
||||
}
|
||||
|
||||
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")
|
||||
{
|
||||
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">
|
||||
Unoffical 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>
|
||||
';
|
||||
}
|
||||
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="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>
|
||||
';
|
||||
}
|
||||
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>
|
|
@ -0,0 +1,12 @@
|
|||
<?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>
|
After Width: | Height: | Size: 91 KiB |
|
@ -0,0 +1,24 @@
|
|||
<?php include("common.php"); ?>
|
||||
<head>
|
||||
<title>PSM Reborn</title>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
<div class="header">
|
||||
<p>
|
||||
<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>
|
||||
</p>
|
||||
</div>
|
||||
<script src="common.js"></script>
|
||||
</head>
|
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 54 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 247 KiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 159 KiB |
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
include("header.php");
|
||||
?>
|
||||
<body>
|
||||
<div id="welcome-page">
|
||||
<img src="img/logo.png" width="144" height="144">
|
||||
<h1>Welcome to PSM Reborn!</h1>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
<p>The collective efforts of.. like uh two people xD to archive all things related to PSM<br>
|
||||
That said, there arent really that many people interested in PSM so it cant be helped..<br>
|
||||
Have a look around though, i got stuff for end-users and developers alike!<br>
|
||||
Under "<a href="/libary.php" class="black">Library</a>" section you can find info on every PSM Game ever made. and<br>
|
||||
Under "<a href="/devtools.php" class="black">Development Tools</a>" section you can find SDK's and Unity Builds, as well as Homebrew PSDP Packages</p>
|
||||
</div>
|
||||
|
||||
<div id="contact">
|
||||
<span id="twitter">
|
||||
<a href="https://twitter.com/silicadevs" class="image">
|
||||
<img src="/img/twitter.png" width="30" height="30" class="mid" alt="Twitter">
|
||||
</a>
|
||||
<a href="https://twitter.com/silicadevs" class="black">@SilicaDevs</a>
|
||||
</span>
|
||||
<span id="youtube">
|
||||
<a href="https://youtube.com/c/silicasan" class="image">
|
||||
<img src="/img/youtube.png" width="30" height="30" class="mid" alt="YouTube">
|
||||
</a>
|
||||
<a href="https://youtube.com/c/silicasan" class="black">/c/SilicaSan</a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</body>
|
|
@ -0,0 +1,315 @@
|
|||
<?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();
|
||||
}
|
||||
|
||||
|
||||
$xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
|
||||
|
||||
$title = $xml->name->localized_item[0]->attributes()->value;
|
||||
|
||||
$genreList = $xml->genre_list->children();
|
||||
$languageList = $xml->name->children();
|
||||
$featureList = $xml->feature_list->children();
|
||||
$SDKType = getSdkType($xml);
|
||||
$zrifinfo = getZRIF($game);
|
||||
$pkgSony = getPKG($game);
|
||||
$pkgReborn = "/pkg/".$game."_00.pkg";
|
||||
$simulatorZip = "decrypted-files/".$game.".zip";
|
||||
|
||||
$isplayable = "";
|
||||
|
||||
|
||||
if(file_exists("psdp-packages/".$game.".psdp"))
|
||||
{
|
||||
$isplayable = "<a href=\"/psdp-packages/".$game.".psdp\" class=\"white\">Yes, with PSDP Package in Developer Assistant</a>";
|
||||
}
|
||||
elseif($zrifinfo == "MISSING")
|
||||
{
|
||||
$isplayable = "<a href=\"/faq.php#add-zrif\" class=\"white\">No, Missing zRIF - Do you have a working copy of this game?</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$isplayable = "<a class=\"white\" onclick=\"copy_text('".$zrifinfo."')\">Yes! get zRIF.</a>";
|
||||
}
|
||||
|
||||
|
||||
echo'<div id="bg-content" style="background-image: url(\'/gameinfo/'.$game.'/splash_854x480.png\');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>'.substr(printLanguageList($languageList),0,80).'</b></p></li>
|
||||
<li><p>Genres: <b>'. substr(printGenreList($genreList),0,80) .'</b></p></li>
|
||||
<li><p>Type: <b>'.$SDKType.'</b></p></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="psm-downloads">
|
||||
<h1>Downloads: </h1>
|
||||
|
||||
<div class="button-enabled" onclick="open_url(\''.$pkgSony.'\')">
|
||||
<a href="'.$pkgSony.'" class="nostyle">PKG (Sony Server)</a>
|
||||
</div>
|
||||
|
||||
<div class="button-enabled" 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"]);
|
||||
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 || isset($_GET["playable"]))
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo'>Show Playable (Has zRIF)</input>
|
||||
<input type="checkbox" name="simulator" ';
|
||||
if(!$searchUsed || isset($_GET["simulator"]))
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo '>Show Simulator-Ready</input>
|
||||
<input type="checkbox" name="unplayable" ';
|
||||
if(!$searchUsed || isset($_GET["unplayable"]))
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
echo '>Show Unplayable (Only PKG)</input>
|
||||
</form>
|
||||
</div>
|
||||
';
|
||||
|
||||
|
||||
echo('<div id="psm-gamelist">');
|
||||
$dirlist = glob("gameinfo/*");
|
||||
$playableList = getPlayableList();
|
||||
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");
|
||||
|
||||
|
||||
if(isset($_GET["search"]))
|
||||
{
|
||||
$search = $_GET["search"];
|
||||
|
||||
if(isset($_GET["searchby"]) && $search != "")
|
||||
{
|
||||
$searchby = $_GET["searchby"];
|
||||
if($searchby == "title")
|
||||
{
|
||||
if(strpos($title, $search) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
elseif($searchby == "titleid")
|
||||
{
|
||||
if(strpos($dirname, $search) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
elseif($searchby == "dev")
|
||||
{
|
||||
if(strpos($author, $search) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(!isset($_GET["simulator"]))
|
||||
{
|
||||
if($hasSimulator)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!isset($_GET["unplayable"]))
|
||||
{
|
||||
if(!$isPlayable)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!isset($_GET["playable"]))
|
||||
{
|
||||
if($isPlayable && !$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($hasSimulator)
|
||||
{
|
||||
echo '<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >';
|
||||
}
|
||||
|
||||
echo '<span id="psm-info">
|
||||
<p>
|
||||
<b>'.$title.'</b><br>
|
||||
Genre: <b>'.$genre.'</b><br>
|
||||
Version: <b>'.$version.'</b><br>
|
||||
Author: <b>'.substr($author,0,25).'</b><br>
|
||||
Website: <a class="white" href="'.$website.'">'.substr($website,0,25).'</a><br>
|
||||
</p>
|
||||
</span>
|
||||
</a>
|
||||
</div>';
|
||||
}
|
||||
echo('</div>');
|
||||
}
|
||||
?>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
User-agent: yellowafterlife
|
||||
Disallow: /
|
|
@ -0,0 +1,385 @@
|
|||
/*
|
||||
* 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;
|
||||
}
|
||||
|
||||
.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;
|
||||
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.psm-game:hover{
|
||||
padding:5px;
|
||||
width: 400px;
|
||||
height: 124px;
|
||||
margin: 10px;
|
||||
background-color: #005796;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
|
||||
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%;
|
||||
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;
|
||||
|
||||
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{
|
||||
padding:10px;
|
||||
margin: 10px;
|
||||
width:325px;
|
||||
height:128px;
|
||||
border-radius: 1000px;
|
||||
background-color: #005796;
|
||||
cursor: pointer;
|
||||
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.devtool #textContent{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bubble{
|
||||
float: left;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* Common
|
||||
*/
|
||||
|
||||
html,body,header {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|