format a bit

This commit is contained in:
olebeck 2022-09-19 18:53:17 +02:00
parent fced59ec00
commit 11bf55db84
1 changed files with 37 additions and 44 deletions

View File

@ -114,44 +114,47 @@ include("header.php");
<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
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 } ?>
<select onchange="pkg_change_version()" class="version-select">
<?php
$dirlist = glob("pkg/".$game."_00/*");
$vercount = count($dirlist);
for($i = 0; $i < $vercount; $i++)
<?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)
{
$ver = basename($dirlist[$i]);
if($i == $vercount - 1)
{
echo'<option selected="'.$ver.'" value="'.$ver.'">'.$ver.'</option>';
}
else
{
echo'<option value="'.$ver.'">'.$ver.'</option>';
}
echo'<option selected="'.$ver.'" value="'.$ver.'">'.$ver.'</option>';
}
?>
</select>
else
{
echo'<option value="'.$ver.'">'.$ver.'</option>';
}
}
?></select>
</div>
</div>
<?php } else {
<?php
} else {
$searchUsed = isset($_GET["search"]);
$simulatorSearch = false;
@ -176,7 +179,6 @@ include("header.php");
$playableSearch = true;
}
?>
<div id="search-form">
<form action="" method="get">
<input type="text" name="search" value="<?php
@ -184,9 +186,7 @@ include("header.php");
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" ) {
@ -194,7 +194,6 @@ include("header.php");
}
}
?>>Title</input>
<input type="radio" name="searchby" value="titleid" <?php
if(isset($_GET["searchby"])) {
if($_GET["searchby"] == "titleid") {
@ -202,7 +201,6 @@ include("header.php");
}
}
?>>Title ID</input>
<input type="radio" name="searchby" value="dev" <?php
if(isset($_GET["searchby"])) {
if($_GET["searchby"] == "dev") {
@ -210,19 +208,16 @@ include("header.php");
}
}
?>>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"';
@ -312,7 +307,6 @@ include("header.php");
<img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" width="124" height="124">
<div class="psm-game-info">
<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) { ?>
@ -322,6 +316,7 @@ include("header.php");
<?php } if($hasSimulator) { ?>
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
<?php }
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev";
if($playableSearch === true || $searchUsed === false)
$authorUrl .= "&playable=on";
@ -329,9 +324,7 @@ include("header.php");
$authorUrl .= "&simulator=on";
if($unplayableSearch === true || $searchUsed === false)
$authorUrl .= "&unplayable=on";
?>
<table>
?><table>
<tbody>
<tr>
<td>Genre:</td>