forked from Li/psmreborn
format a bit
This commit is contained in:
parent
fced59ec00
commit
11bf55db84
81
libary.php
81
libary.php
|
@ -114,44 +114,47 @@ include("header.php");
|
||||||
<a href="<?php echo $pkgReborn ?>" class="nostyle">PKG (PSMReborn Server)</a>
|
<a href="<?php echo $pkgReborn ?>" class="nostyle">PKG (PSMReborn Server)</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if($zrifinfo == "MISSING"){ ?>
|
<?php
|
||||||
<div class="button-disabled" id="fake-rif">NoPsmDrm License</div>
|
if($zrifinfo == "MISSING"){
|
||||||
<?php } else { ?>
|
?><div class="button-disabled" id="fake-rif">NoPsmDrm License</div>
|
||||||
<div class="button-enabled" id="fake-rif" onclick="convert2('<?php echo $zrifinfo ?>')">
|
<?php
|
||||||
<a class="nostyle" onclick="convert2('<?php echo $zrifinfo ?>')">NoPsmDrm License</a>
|
} else {
|
||||||
</div>
|
?><div class="button-enabled" id="fake-rif" onclick="convert2('<?php echo $zrifinfo ?>')">
|
||||||
<?php } ?>
|
<a class="nostyle" onclick="convert2('<?php echo $zrifinfo ?>')">NoPsmDrm License</a>
|
||||||
|
</div>
|
||||||
<?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 } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<select onchange="pkg_change_version()" class="version-select">
|
<?php
|
||||||
<?php
|
if(file_exists($simulatorZip)) {
|
||||||
$dirlist = glob("pkg/".$game."_00/*");
|
?><div class="button-enabled" onclick="open_url('<?php echo $simulatorZip ?>')">
|
||||||
$vercount = count($dirlist);
|
<a href="<?php echo $simulatorZip ?>" class="nostyle">Decrypted Files (For Simulator)</a>
|
||||||
for($i = 0; $i < $vercount; $i++)
|
</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)
|
||||||
{
|
{
|
||||||
$ver = basename($dirlist[$i]);
|
echo'<option selected="'.$ver.'" value="'.$ver.'">'.$ver.'</option>';
|
||||||
|
|
||||||
if($i == $vercount - 1)
|
|
||||||
{
|
|
||||||
echo'<option selected="'.$ver.'" value="'.$ver.'">'.$ver.'</option>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo'<option value="'.$ver.'">'.$ver.'</option>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
else
|
||||||
</select>
|
{
|
||||||
|
echo'<option value="'.$ver.'">'.$ver.'</option>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?></select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php } else {
|
<?php
|
||||||
|
} else {
|
||||||
$searchUsed = isset($_GET["search"]);
|
$searchUsed = isset($_GET["search"]);
|
||||||
|
|
||||||
$simulatorSearch = false;
|
$simulatorSearch = false;
|
||||||
|
@ -176,7 +179,6 @@ include("header.php");
|
||||||
$playableSearch = true;
|
$playableSearch = true;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="search-form">
|
<div id="search-form">
|
||||||
<form action="" method="get">
|
<form action="" method="get">
|
||||||
<input type="text" name="search" value="<?php
|
<input type="text" name="search" value="<?php
|
||||||
|
@ -184,9 +186,7 @@ include("header.php");
|
||||||
echo htmlspecialchars($_GET["search"], ENT_QUOTES);
|
echo htmlspecialchars($_GET["search"], ENT_QUOTES);
|
||||||
}
|
}
|
||||||
?>"/>
|
?>"/>
|
||||||
|
|
||||||
<input type="submit"/><br>
|
<input type="submit"/><br>
|
||||||
|
|
||||||
<input type="radio" name="searchby" value="title" <?php
|
<input type="radio" name="searchby" value="title" <?php
|
||||||
if(!$searchUsed || isset($_GET["searchby"])) {
|
if(!$searchUsed || isset($_GET["searchby"])) {
|
||||||
if(!$searchUsed || $_GET["searchby"] == "title" ) {
|
if(!$searchUsed || $_GET["searchby"] == "title" ) {
|
||||||
|
@ -194,7 +194,6 @@ include("header.php");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>>Title</input>
|
?>>Title</input>
|
||||||
|
|
||||||
<input type="radio" name="searchby" value="titleid" <?php
|
<input type="radio" name="searchby" value="titleid" <?php
|
||||||
if(isset($_GET["searchby"])) {
|
if(isset($_GET["searchby"])) {
|
||||||
if($_GET["searchby"] == "titleid") {
|
if($_GET["searchby"] == "titleid") {
|
||||||
|
@ -202,7 +201,6 @@ include("header.php");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>>Title ID</input>
|
?>>Title ID</input>
|
||||||
|
|
||||||
<input type="radio" name="searchby" value="dev" <?php
|
<input type="radio" name="searchby" value="dev" <?php
|
||||||
if(isset($_GET["searchby"])) {
|
if(isset($_GET["searchby"])) {
|
||||||
if($_GET["searchby"] == "dev") {
|
if($_GET["searchby"] == "dev") {
|
||||||
|
@ -210,19 +208,16 @@ include("header.php");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>>Developer</input><br>
|
?>>Developer</input><br>
|
||||||
|
|
||||||
<input type="checkbox" name="playable" <?php
|
<input type="checkbox" name="playable" <?php
|
||||||
if(!$searchUsed || $playableSearch) {
|
if(!$searchUsed || $playableSearch) {
|
||||||
echo 'checked="checked"';
|
echo 'checked="checked"';
|
||||||
}
|
}
|
||||||
?>>Show Playable (Has zRIF)</input>
|
?>>Show Playable (Has zRIF)</input>
|
||||||
|
|
||||||
<input type="checkbox" name="simulator" <?php
|
<input type="checkbox" name="simulator" <?php
|
||||||
if(!$searchUsed || $simulatorSearch) {
|
if(!$searchUsed || $simulatorSearch) {
|
||||||
echo 'checked="checked"';
|
echo 'checked="checked"';
|
||||||
}
|
}
|
||||||
?>>Show Simulator-Ready</input>
|
?>>Show Simulator-Ready</input>
|
||||||
|
|
||||||
<input type="checkbox" name="unplayable" <?php
|
<input type="checkbox" name="unplayable" <?php
|
||||||
if(!$searchUsed || $unplayableSearch) {
|
if(!$searchUsed || $unplayableSearch) {
|
||||||
echo 'checked="checked"';
|
echo 'checked="checked"';
|
||||||
|
@ -312,7 +307,6 @@ include("header.php");
|
||||||
<img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" width="124" height="124">
|
<img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" width="124" height="124">
|
||||||
<div class="psm-game-info">
|
<div class="psm-game-info">
|
||||||
<span><?php echo $title ?></span>
|
<span><?php echo $title ?></span>
|
||||||
|
|
||||||
<?php if(getSdkType($xml) == "PSM Unity") { ?>
|
<?php if(getSdkType($xml) == "PSM Unity") { ?>
|
||||||
<img src="/img/unity.png" title="Made With Unity" width="10" height="10">
|
<img src="/img/unity.png" title="Made With Unity" width="10" height="10">
|
||||||
<?php } if($isPlayable) { ?>
|
<?php } if($isPlayable) { ?>
|
||||||
|
@ -322,6 +316,7 @@ include("header.php");
|
||||||
<?php } if($hasSimulator) { ?>
|
<?php } if($hasSimulator) { ?>
|
||||||
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
|
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev";
|
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev";
|
||||||
if($playableSearch === true || $searchUsed === false)
|
if($playableSearch === true || $searchUsed === false)
|
||||||
$authorUrl .= "&playable=on";
|
$authorUrl .= "&playable=on";
|
||||||
|
@ -329,9 +324,7 @@ include("header.php");
|
||||||
$authorUrl .= "&simulator=on";
|
$authorUrl .= "&simulator=on";
|
||||||
if($unplayableSearch === true || $searchUsed === false)
|
if($unplayableSearch === true || $searchUsed === false)
|
||||||
$authorUrl .= "&unplayable=on";
|
$authorUrl .= "&unplayable=on";
|
||||||
?>
|
?><table>
|
||||||
|
|
||||||
<table>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Genre:</td>
|
<td>Genre:</td>
|
||||||
|
|
Loading…
Reference in New Issue