41 lines
1.5 KiB
PHP
41 lines
1.5 KiB
PHP
<?php
|
|
if(isset($_SERVER['QUERY_STRING'])){
|
|
$JDB = json_decode(file_get_contents("./lzdb.json"));
|
|
foreach($JDB->TileData as $Entry)
|
|
{
|
|
if($Entry->UUID == $_SERVER['QUERY_STRING'])
|
|
{
|
|
$CurrentEntry = $Entry;
|
|
}
|
|
}
|
|
echo("i$CurrentEntry->Title\niTags: ");
|
|
foreach($CurrentEntry->Tags as $Tag) {echo("$Tag");}
|
|
echo(" | Platforms:");
|
|
foreach($CurrentEntry->Platforms as $Platform) {echo(" $Platform");}
|
|
echo("\n");
|
|
echo("i------------------------------------------------\n");
|
|
echo("i$CurrentEntry->Description\n");
|
|
foreach($CurrentEntry->Artifacts as $Artifact)
|
|
{
|
|
if(isset($Artifact->MultiPart) && $Artifact->MultiPart == true)
|
|
{
|
|
$Parts = $Artifact->Parts;
|
|
$PartCount = 0;
|
|
foreach($Parts as $Part)
|
|
{
|
|
$CurrentPart = $Artifact->Parts[$PartCount];
|
|
++$PartCount;
|
|
$ArtifactURI = basename($CurrentPart);
|
|
echo("9Download Version $Artifact->Version | Part #$PartCount For $Artifact->Platform\tsoftware/$ArtifactURI\n");
|
|
}
|
|
}
|
|
else {
|
|
$ArtifactURI = basename($Artifact->URI);
|
|
if(!isset($Artifact->Version)) { echo("9Download For $Artifact->Platform\tsoftware/$ArtifactURI\n"); }
|
|
else { echo("9Download Version $Artifact->Version for $Artifact->Platform\tsoftware/$ArtifactURI\n"); }
|
|
}
|
|
}
|
|
echo("\n1Go back to listing..\t../atonix9x");
|
|
}
|
|
else{die("iYou must select a file to download..");}
|
|
?>
|