Add information page, fix parsing.
This commit is contained in:
@@ -0,0 +1,98 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>Atonix9X - Developer Tools Archive</title>
|
||||||
|
<meta name="description" content="Download classic compilers, IDEs, and SDKs for vintage Windows development.">
|
||||||
|
<meta name="keywords"
|
||||||
|
content="visual studio 6, win32 development, legacy compilers, old ides, windows 9x development">
|
||||||
|
<meta name="author" content="Atonix9X">
|
||||||
|
<meta name="robots" content="index, follow">
|
||||||
|
<meta name="theme-color" content="#1a1a1a">
|
||||||
|
<link rel="icon" href="favicon.ico" sizes="any">
|
||||||
|
</head>
|
||||||
|
<?php
|
||||||
|
ini_set('display_errors', '1');
|
||||||
|
ini_set('display_startup_errors', '1');
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
if(!isset($_GET['u']))
|
||||||
|
{
|
||||||
|
Header('Location: /');
|
||||||
|
}
|
||||||
|
$JDB = json_decode(file_get_contents("./lzdb.json"));
|
||||||
|
$CurrentEntry = $_GET['u'];
|
||||||
|
foreach($JDB->TileData as $Entry)
|
||||||
|
{
|
||||||
|
if($Entry->UUID == $_GET['u'])
|
||||||
|
{
|
||||||
|
$CurrentEntry = $Entry;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<body bgcolor="#fff5f5" text="#451a1a" link="#dc2626" vlink="#991b1b" alink="#991b1b"
|
||||||
|
style="margin:10px; border:2px solid;height:100%;">
|
||||||
|
<table cellspacing="0" cellpadding="10" style="width:100%;">
|
||||||
|
<tr style="background-color:#311010;">
|
||||||
|
<td align="left">
|
||||||
|
<font size="5" color="#ffffff" face="Courier New, Courier, monospace"><b>ATONIX9X::ARCHIVE_SYSTEM</b>
|
||||||
|
</font>
|
||||||
|
<font size="2" face="Courier New, Courier, monospace" style="float:right; margin-top:5px;">
|
||||||
|
<a href="index.html">
|
||||||
|
<font color="#ffffff"><b>[HOME]</b></font>
|
||||||
|
</a>
|
||||||
|
<a href="categories.html">
|
||||||
|
<font color="#ffffff"><b>[CATEGORIES]</b></font>
|
||||||
|
</a>
|
||||||
|
<a href="contact.html">
|
||||||
|
<font color="#ffffff"><b>[CONTACT]</b></font>
|
||||||
|
</a>
|
||||||
|
<a href="blog.html">
|
||||||
|
<font color="#ffffff"><b>[BLOG]</b></font>
|
||||||
|
</a>
|
||||||
|
</font>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td>
|
||||||
|
<?php
|
||||||
|
if(isset($CurrentEntry->Image))
|
||||||
|
{
|
||||||
|
echo("<img style='width:100px; height:100px;float:left; margin-right:10px; border-radius:2.5px;' src='$CurrentEntry->Image'/>");
|
||||||
|
}
|
||||||
|
$ReqCategory = $CurrentEntry->Category;
|
||||||
|
$NiceCategory = $JDB->CategoryData->$ReqCategory->NiceName;
|
||||||
|
|
||||||
|
?>
|
||||||
|
<font color='#dc2626' size='3' face='Courier New, Courier, monospace'><b><?php echo($CurrentEntry->Title); ?></b></font><br>
|
||||||
|
<font color='#dc2626' size='3' face='Courier New, Courier, monospace'><b>Tags: <?php echo(implode(', ',$CurrentEntry->Tags)." [$NiceCategory]"); ?></b></font><br>
|
||||||
|
<font color='#dc2626' size='3' face='Courier New, Courier, monospace'><b>Platforms: <?php echo(implode(', ',$CurrentEntry->Platforms)); ?></b></font>
|
||||||
|
<hr noshade style='border: dashed 1.5px #991b1b; background-color:transparent;'>
|
||||||
|
<font color='#dc2626' size='3' face='Courier New, Courier, monospace'><b><?php echo($CurrentEntry->Description); ?></b></font><br><br>
|
||||||
|
<ul>
|
||||||
|
<?php
|
||||||
|
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;
|
||||||
|
echo("<a href='$CurrentPart'><li>Download Version $Artifact->Version | Part #$PartCount For $Artifact->Platform</li></a>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if(!isset($Artifact->Version)) { echo("<a href='$Artifact->URI'><li>Download For $Artifact->Platform</li></a>"); }
|
||||||
|
else { echo("<a href='$Artifact->URI'><li>Download Version $Artifact->Version | $Artifact->Platform</li></a>"); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
Reference in New Issue
Block a user