Compare commits

...

9 Commits

Author SHA1 Message Date
olebeck 83fcbbe08f make devtoollist properly center itself 2022-10-10 02:41:11 +02:00
Li 32e8c5816b fix language 2022-10-10 13:27:35 +13:00
Li 563f7fd900 Indent 2022-10-10 13:24:53 +13:00
Li 79f3121985 Fix sdk doc names 2022-10-10 13:23:47 +13:00
Li fa4b445e50 Update gitignore 2022-10-10 13:22:44 +13:00
Li d35725081b update devtools.php 2022-10-10 13:22:15 +13:00
Li 8a0632b298 fix downloads 2022-09-22 23:45:19 +00:00
Li 5c768e7a03 YES 2022-09-21 22:16:57 +00:00
Li 17a328dc94 Merge pull request 'redesign some stuff and made html in php better' (#1) from olebeck/psmreborn:master into master
Reviewed-on: SilicaAndPina/psmreborn#1
2022-09-21 21:23:27 +00:00
4 changed files with 732 additions and 700 deletions

1
.gitignore vendored
View File

@ -14,6 +14,7 @@ psm-psdp/*
psm-offical-keys/*
psm-mono-src/*
psm-games-src/*
psm-sdk-doc/*
psm-drivers/*
psm-docs/*
psm-dev/*

View File

@ -1,344 +1,373 @@
<?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 == "") { ?>
<a href="?type=unity" class="devtool" id="unity">
<img src="/img/unity_icon.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Unity
</span>
</a>
<a href="?type=psm" class="devtool" id="psm">
<img src="/img/psm_icon.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM
</span>
</a>
<a href="?type=psm-android" class="devtool" id="android" >
<img src="/img/androiddev.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Android
</span>
</a>
<a href="?type=psm-tools" class="devtool" id="tools">
<img src="/img/tools.png" width="128" height="128" class="bubble">
<span id="textContent">
Unofficial Tools
</span>
</a>
<?php
}
elseif($type == "psm")
{
?>
<a href="?type=psm-sdk" class="devtool" id="psmsdk">
<img src="/img/sdk.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM SDK
</span>
</a>
<a href="?type=psm-runtime" class="devtool" id="psmruntime">
<img src="/img/psmruntime.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Runtime
</span>
</a>
<a href="?type=psm-dev" class="devtool" id="psmdev">
<img src="/img/psmdev.png" width="128" height="128" class="bubble">
<span id="textContent">
Dev Assistant
</span>
</a>
<a href="?type=psm-psdp" class="devtool" id="psdp">
<img src="/img/psdp.png" width="128" height="128" class="bubble">
<span id="textContent">
PSDP Packages
</span>
</a>
<a href="?type=psm-docs" class="devtool" id="docs">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
Documentation
</span>
</a>
<a href="?type=psm-sources" class="devtool" id="sources">
<img src="/img/sources.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Sources
</span>
</a>
<a href="?type=psm-offical-keys" class="devtool" id="keys">
<img src="/img/psmda_keys.png" width="128" height="128" class="bubble">
<span id="textContent">
Publisher Keys
</span>
</a>
<a href="?type=psm-drivers" class="devtool" id="drivers">
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Drivers
</span>
</a>
<?php
}
elseif($type == "psm-sources")
{
?>
<a href="?type=psm-mono-src" class="devtool" id="monosrc">
<img src="/img/mono.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Mono Src
</span>
</a>
<a href="?type=psm-games-src" class="devtool" id="gamessrc">
<img src="/img/games.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Games Src
</span>
</a>
<?php
}
elseif($type == "unity")
{
?>
<a href="?type=unity-support" class="devtool" id="unityexport">
<img src="/img/export.png" width="128" height="128" class="bubble">
<span id="textContent">
Unity Exports
</span>
</a>
<a href="?type=unity-dev" class="devtool" id="unitydev">
<img src="/img/unitydev.png" width="128" height="128" class="bubble">
<span id="textContent">
Dev Assistant
</span>
</a>
<a href="?type=unity-docs" class="devtool" id="unitydocs">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
Documentation
</span>
</a>
<a href="?type=unity-assets" class="devtool" id="unityassets">
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
<span id="textContent">
Assets
</span>
</a>
<a href="?type=unity-tools" class="devtool" id="unitytools">
<img src="/img/tools.png" width="128" height="128" class="bubble">
<span id="textContent">
Tools for Unity
</span>
</a>
<a href="?type=unity-psdp" class="devtool" id="unity-psdp">
<img src="/img/psdp.png" width="128" height="128" class="bubble">
<span id="textContent">
PSDP Packages
</span>
</a>
<?php
}
else
{
$dirlist = glob($type.'/*');
foreach ($dirlist as &$path) { ?>
<a href="'.$path.'" class="devtool" title="<?php echo basename($path) ?>">
<img src="<?php echo getIcon($path) ?>" width="128" height="128" class="bubble">
<span id="textContent">
<?php echo getName(pathinfo(basename($path), PATHINFO_FILENAME)) ?>
</span>
</a>
<?php }
}
?>
</div>
<?php
include("footer.php");
<?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 == "") { ?>
<a href="?type=unity" class="devtool" id="unity">
<img src="/img/unity_icon.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Unity
</span>
</a>
<a href="?type=psm" class="devtool" id="psm">
<img src="/img/psm_icon.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM
</span>
</a>
<a href="?type=psm-android" class="devtool" id="android" >
<img src="/img/androiddev.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Android
</span>
</a>
<a href="?type=psm-tools" class="devtool" id="tools">
<img src="/img/tools.png" width="128" height="128" class="bubble">
<span id="textContent">
Unofficial Tools
</span>
</a>
<?php
}
elseif($type == "psm")
{
?>
<a href="?type=psm-sdk" class="devtool" id="psmsdk">
<img src="/img/sdk.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM SDK
</span>
</a>
<a href="?type=psm-runtime" class="devtool" id="psmruntime">
<img src="/img/psmruntime.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Runtime
</span>
</a>
<a href="?type=psm-dev" class="devtool" id="psmdev">
<img src="/img/psmdev.png" width="128" height="128" class="bubble">
<span id="textContent">
Dev Assistant
</span>
</a>
<a href="?type=psm-psdp" class="devtool" id="psdp">
<img src="/img/psdp.png" width="128" height="128" class="bubble">
<span id="textContent">
PSDP Packages
</span>
</a>
<a href="?type=psm-docs" class="devtool" id="docs">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
Documentation
</span>
</a>
<a href="?type=psm-sources" class="devtool" id="sources">
<img src="/img/sources.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Sources
</span>
</a>
<a href="?type=psm-offical-keys" class="devtool" id="keys">
<img src="/img/psmda_keys.png" width="128" height="128" class="bubble">
<span id="textContent">
Publisher Keys
</span>
</a>
<a href="?type=psm-drivers" class="devtool" id="drivers">
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Drivers
</span>
</a>
<?php
}
elseif($type == "psm-sources")
{
?>
<a href="?type=psm-mono-src" class="devtool" id="monosrc">
<img src="/img/mono.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Mono Src
</span>
</a>
<a href="?type=psm-games-src" class="devtool" id="gamessrc">
<img src="/img/games.png" width="128" height="128" class="bubble">
<span id="textContent">
PSM Games Src
</span>
</a>
<?php
}
elseif($type == "unity")
{
?>
<a href="?type=unity-support" class="devtool" id="unityexport">
<img src="/img/export.png" width="128" height="128" class="bubble">
<span id="textContent">
Unity Exports
</span>
</a>
<a href="?type=unity-dev" class="devtool" id="unitydev">
<img src="/img/unitydev.png" width="128" height="128" class="bubble">
<span id="textContent">
Dev Assistant
</span>
</a>
<a href="?type=unity-docs" class="devtool" id="unitydocs">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
Documentation
</span>
</a>
<a href="?type=unity-assets" class="devtool" id="unityassets">
<img src="/img/psm-drivers.png" width="128" height="128" class="bubble">
<span id="textContent">
Assets
</span>
</a>
<a href="?type=unity-tools" class="devtool" id="unitytools">
<img src="/img/tools.png" width="128" height="128" class="bubble">
<span id="textContent">
Tools for Unity
</span>
</a>
<a href="?type=unity-psdp" class="devtool" id="unity-psdp">
<img src="/img/psdp.png" width="128" height="128" class="bubble">
<span id="textContent">
PSDP Packages
</span>
</a>
<?php
}
elseif($type == "psm-sdk-doc")
{
?>
<a href="/psm-sdk-doc/en" class="devtool" id="sdkdocen">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
English Docs
</span>
</a>
<a href="/psm-sdk-doc/ja" class="devtool" id="sdkdocjp">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
Japanese Docs
</span>
</a>
<?php
}
else
{
$dirlist = glob($type.'/*');
foreach ($dirlist as &$path) { ?>
<a href="<?php echo $path ?>" class="devtool" title="<?php echo basename($path) ?>">
<img src="<?php echo getIcon($path) ?>" width="128" height="128" class="bubble">
<span id="textContent">
<?php echo getName(pathinfo(basename($path), PATHINFO_FILENAME)) ?>
</span>
</a>
<?php }
if($type == "psm-docs"){ // append psm-sdk-doc to result
?>
<a href="?type=psm-sdk-doc" class="devtool" id="sdkdoc">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
SDK Docs
</span>
</a>
<?php
}
}
?>
</div>
<?php
include("footer.php");
?>

View File

@ -1,356 +1,356 @@
<?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();
}
?>
<script src="zrif.js"></script>
<a id="zrif-bin-worker" href=""></a>
<?php
$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>";
}
?>
<div class="bg-content" style="background-image: url('/gameinfo/<?php echo $game ?>/splash_854x480.png');"></div>
<div class="psm-meta">
<div id="psm-title"><?php echo($title.' ('.$game.')') ?></div>
<div id="psm-top-part">
<div id="psm-icon">
<img src="/gameinfo/<?php echo $game ?>/icon_256x256.png" />
</div>
<div id="psm-infos">
<ul>
<li><p>Playable: <?php echo $isplayable ?></p></li>
<li><p>Metadata: <a href="/gameinfo/<?php echo $game ?>/app.xml" class="white">app.xml</a>, <a href="/gameinfo/<?php echo $game ?>/text.txt" class="white">copyright.txt</a>, <a href="/gameinfo/<?php echo $game ?>/version.xml" class="white">version.xml</a>, <a href="/gameinfo/<?php echo $game ?>/<?php echo $latestVersion ?>/metadata.xml" class="white">metadata.xml</a></p></li>
<li><p>Images: <a href="/gameinfo/<?php echo $game ?>/icon_128x128.png" class="white">icon_128x128.png</a>, <a href="/gameinfo/<?php echo $game ?>/icon_256x256.png" class="white">icon_256x256.png</a>, <a href="/gameinfo/<?php echo $game ?>/icon_512x512.png" class="white">icon_512x512.png</a>, <a href="/gameinfo/<?php echo $game ?>/splash_854x480.png" class="white">splash_854x480.png</a><?php echo printScreenshotsLinks($screenshot, $latestVersion, $game) ?></p></li>
<li><p>Supported locale: <b><?php echo printLanguageList($languageList) ?></b></p></li>
<li><p>Genres: <b><?php echo printGenreList($genreList) ?></b></p></li>
<li><p>Type: <b><?php echo $SDKType ?></b></p></li>
</ul>
</div>
</div>
<div id="psm-description">
<hr><?php echo printDescription($description, "en") ?><hr>
</div>
<div id="psm-screenshots" class="blue-scrollbar">
<?php echo printScreenshotsImgTags($screenshot, $latestVersion, $game) ?>
</div>
<div id="psm-downloads">
<div class="button-enabled" id="pkg-sony" onclick="open_url('<?php echo $pkgSony ?>')">
<a href="<?php echo($pkgSony) ?>" class="nostyle">PKG (Sony Server)</a>
</div>
<div class="button-enabled" id="pkg-psmrb" onclick="open_url('<?php echo $pkgReborn ?>')">
<a href="<?php echo $pkgReborn ?>" class="nostyle">PKG (PSMReborn Server)</a>
</div>
<?php
if($zrifinfo == "MISSING"){
?><div class="button-disabled" id="fake-rif">NoPsmDrm License</div>
<?php
} else {
?><div class="button-enabled" id="fake-rif" onclick="convert2('<?php echo $zrifinfo ?>')">
<a class="nostyle" onclick="convert2('<?php echo $zrifinfo ?>')">NoPsmDrm License</a>
</div>
<?php } ?>
<?php
if(file_exists($simulatorZip)) {
?><div class="button-enabled" onclick="open_url('<?php echo $simulatorZip ?>')">
<a href="<?php echo $simulatorZip ?>" class="nostyle">Decrypted Files (For Simulator)</a>
</div>
<?php
} else {
?><div class="button-disabled">Decrypted Files (For Simulator)</div>
<?php } ?>
<select onchange="pkg_change_version()" class="version-select"><?php
$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>';
}
}
?></select>
</div>
</div>
<?php
} 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;
}
?>
<div id="search-form">
<form action="" method="get">
<input type="text" name="search" value="<?php
if(isset($_GET["search"])) {
echo htmlspecialchars($_GET["search"], ENT_QUOTES);
}
?>"/>
<input type="submit"/><br>
<input type="radio" name="searchby" value="title" <?php
if(!$searchUsed || isset($_GET["searchby"])) {
if(!$searchUsed || $_GET["searchby"] == "title" ) {
echo 'checked="checked"';
}
}
?>>Title</input>
<input type="radio" name="searchby" value="titleid" <?php
if(isset($_GET["searchby"])) {
if($_GET["searchby"] == "titleid") {
echo 'checked="checked"';
}
}
?>>Title ID</input>
<input type="radio" name="searchby" value="dev" <?php
if(isset($_GET["searchby"])) {
if($_GET["searchby"] == "dev") {
echo 'checked="checked"';
}
}
?>>Developer</input><br>
<input type="checkbox" name="playable" <?php
if(!$searchUsed || $playableSearch) {
echo 'checked="checked"';
}
?>>Show Playable (Has zRIF)</input>
<input type="checkbox" name="simulator" <?php
if(!$searchUsed || $simulatorSearch) {
echo 'checked="checked"';
}
?>>Show Simulator-Ready</input>
<input type="checkbox" name="unplayable" <?php
if(!$searchUsed || $unplayableSearch) {
echo 'checked="checked"';
}
?>>Show Unplayable (Only PKG)</input>
</form>
</div>
<div id="psm-gamelist">
<?php
$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;
preg_match('/https?:\/\/(?:www\.)?(.+[^\/])/', $website, $website_array);
$websitePretty = $website_array[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($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;
}
}
}
$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";
?>
<a class="psm-game" href="?game=<?php echo $titleid ?>">
<img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" loading="lazy" width="124" height="124">
<div class="psm-game-info">
<div class="psm-game-title">
<span><?php echo $title ?></span>
<?php if(getSdkType($xml) == "PSM Unity") { ?>
<img src="/img/unity.png" title="Made With Unity" width="10" height="10">
<?php } if($isPlayable) { ?>
<img src="/img/playable.png" title="zRIF Known" width="10" height="10">
<?php } if($isPlayablePending) { ?>
<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >
<?php } if($hasSimulator) { ?>
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
<?php } ?>
</div>
<table>
<tbody>
<tr>
<td>Genre:</td>
<td><?php echo $genre ?></td>
</tr>
<tr>
<td>Version:</td>
<td><?php echo $version ?></td>
</tr>
<tr>
<td>Author:</td>
<td><a class="white" href="<?php echo $authorUrl ?>"><?php echo $author ?></a></td>
</tr>
</tbody>
</table>
<object>
<a class="white" href="<?php echo $website ?>"><?php echo $websitePretty ?></a>
</object>
</div>
</a>
<?php
}
}
include("footer.php");
?>
<?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();
}
?>
<script src="zrif.js"></script>
<a id="zrif-bin-worker" href=""></a>
<?php
$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>";
}
?>
<div class="bg-content" style="background-image: url('/gameinfo/<?php echo $game ?>/splash_854x480.png');"></div>
<div class="psm-meta">
<div id="psm-title"><?php echo($title.' ('.$game.')') ?></div>
<div id="psm-top-part">
<div id="psm-icon">
<img src="/gameinfo/<?php echo $game ?>/icon_256x256.png" />
</div>
<div id="psm-infos">
<ul>
<li><p>Playable: <?php echo $isplayable ?></p></li>
<li><p>Metadata: <a href="/gameinfo/<?php echo $game ?>/app.xml" class="white">app.xml</a>, <a href="/gameinfo/<?php echo $game ?>/text.txt" class="white">copyright.txt</a>, <a href="/gameinfo/<?php echo $game ?>/version.xml" class="white">version.xml</a>, <a href="/gameinfo/<?php echo $game ?>/<?php echo $latestVersion ?>/metadata.xml" class="white">metadata.xml</a></p></li>
<li><p>Images: <a href="/gameinfo/<?php echo $game ?>/icon_128x128.png" class="white">icon_128x128.png</a>, <a href="/gameinfo/<?php echo $game ?>/icon_256x256.png" class="white">icon_256x256.png</a>, <a href="/gameinfo/<?php echo $game ?>/icon_512x512.png" class="white">icon_512x512.png</a>, <a href="/gameinfo/<?php echo $game ?>/splash_854x480.png" class="white">splash_854x480.png</a><?php echo printScreenshotsLinks($screenshot, $latestVersion, $game) ?></p></li>
<li><p>Supported locale: <b><?php echo printLanguageList($languageList) ?></b></p></li>
<li><p>Genres: <b><?php echo printGenreList($genreList) ?></b></p></li>
<li><p>Type: <b><?php echo $SDKType ?></b></p></li>
</ul>
</div>
</div>
<div id="psm-description">
<hr><?php echo printDescription($description, "en") ?><hr>
</div>
<div id="psm-screenshots" class="blue-scrollbar">
<?php echo printScreenshotsImgTags($screenshot, $latestVersion, $game) ?>
</div>
<div id="psm-downloads">
<div class="button-enabled" id="pkg-sony" onclick="open_url('<?php echo $pkgSony ?>')">
<a href="<?php echo($pkgSony) ?>" class="nostyle">PKG (Sony Server)</a>
</div>
<div class="button-enabled" id="pkg-psmrb" onclick="open_url('<?php echo $pkgReborn ?>')">
<a href="<?php echo $pkgReborn ?>" class="nostyle">PKG (PSMReborn Server)</a>
</div>
<?php
if($zrifinfo == "MISSING"){
?><div class="button-disabled" id="fake-rif">NoPsmDrm License</div>
<?php
} else {
?><div class="button-enabled" id="fake-rif" onclick="convert2('<?php echo $zrifinfo ?>')">
<a class="nostyle" onclick="convert2('<?php echo $zrifinfo ?>')">NoPsmDrm License</a>
</div>
<?php } ?>
<?php
if(file_exists($simulatorZip)) {
?><div class="button-enabled" onclick="open_url('<?php echo $simulatorZip ?>')">
<a href="<?php echo $simulatorZip ?>" class="nostyle">Decrypted Files (For Simulator)</a>
</div>
<?php
} else {
?><div class="button-disabled">Decrypted Files (For Simulator)</div>
<?php } ?>
<select onchange="pkg_change_version()" class="version-select"><?php
$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>';
}
}
?></select>
</div>
</div>
<?php
} 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;
}
?>
<div id="search-form">
<form action="" method="get">
<input type="text" name="search" value="<?php
if(isset($_GET["search"])) {
echo htmlspecialchars($_GET["search"], ENT_QUOTES);
}
?>"/>
<input type="submit"/><br>
<input type="radio" name="searchby" value="title" <?php
if(!$searchUsed || isset($_GET["searchby"])) {
if(!$searchUsed || $_GET["searchby"] == "title" ) {
echo 'checked="checked"';
}
}
?>>Title</input>
<input type="radio" name="searchby" value="titleid" <?php
if(isset($_GET["searchby"])) {
if($_GET["searchby"] == "titleid") {
echo 'checked="checked"';
}
}
?>>Title ID</input>
<input type="radio" name="searchby" value="dev" <?php
if(isset($_GET["searchby"])) {
if($_GET["searchby"] == "dev") {
echo 'checked="checked"';
}
}
?>>Developer</input><br>
<input type="checkbox" name="playable" <?php
if(!$searchUsed || $playableSearch) {
echo 'checked="checked"';
}
?>>Show Playable (Has zRIF)</input>
<input type="checkbox" name="simulator" <?php
if(!$searchUsed || $simulatorSearch) {
echo 'checked="checked"';
}
?>>Show Simulator-Ready</input>
<input type="checkbox" name="unplayable" <?php
if(!$searchUsed || $unplayableSearch) {
echo 'checked="checked"';
}
?>>Show Unplayable (Only PKG)</input>
</form>
</div>
<div id="psm-gamelist">
<?php
$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;
preg_match('/https?:\/\/(?:www\.)?(.+[^\/])/', $website, $website_array);
$websitePretty = $website_array[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($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;
}
}
}
$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";
?>
<a class="psm-game" href="?game=<?php echo $titleid ?>">
<img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" loading="lazy" width="124" height="124">
<div class="psm-game-info">
<div class="psm-game-title">
<span><?php echo $title ?></span>
<?php if(getSdkType($xml) == "PSM Unity") { ?>
<img src="/img/unity.png" title="Made With Unity" width="10" height="10">
<?php } if($isPlayable) { ?>
<img src="/img/playable.png" title="zRIF Known" width="10" height="10">
<?php } if($isPlayablePending) { ?>
<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >
<?php } if($hasSimulator) { ?>
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
<?php } ?>
</div>
<table>
<tbody>
<tr>
<td>Genre:</td>
<td><?php echo $genre ?></td>
</tr>
<tr>
<td>Version:</td>
<td><?php echo $version ?></td>
</tr>
<tr>
<td>Author:</td>
<td><a class="white" href="<?php echo $authorUrl ?>"><?php echo $author ?></a></td>
</tr>
</tbody>
</table>
<object>
<marquee><a class="white" href="<?php echo $website ?>"><?php echo $websitePretty ?></a></marquee>
</object>
</div>
</a>
<?php
}
}
include("footer.php");
?>

View File

@ -318,7 +318,9 @@
*/
.devtoollist{
position: inherit;
margin-left: auto;
margin-right: auto;
position: relative;
margin-left: 15%;
margin-right: 15%;
text-align:center;