diff options
author | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-20 01:15:15 +0200 |
---|---|---|
committer | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-20 01:15:15 +0200 |
commit | af9e5ef458b93ef2003905e1ccc5665e7266c242 (patch) | |
tree | 989ac25a8b75578788cd7157308f37b9b83cf8f5 /includes/archive/main.php | |
download | main-af9e5ef458b93ef2003905e1ccc5665e7266c242.tar.gz main-af9e5ef458b93ef2003905e1ccc5665e7266c242.tar.bz2 main-af9e5ef458b93ef2003905e1ccc5665e7266c242.zip |
Commit
Diffstat (limited to 'includes/archive/main.php')
-rw-r--r-- | includes/archive/main.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/includes/archive/main.php b/includes/archive/main.php new file mode 100644 index 0000000..4bd2cf7 --- /dev/null +++ b/includes/archive/main.php @@ -0,0 +1,22 @@ +<p>Download the old of the oldest software I made. Some of this software is <u>proprietary</u> and you can't change or distribute it without my consent. Active projects are not listed here and can be downloaded from their respective page.</p> + +<div class="list-group"> + <?php + + $files = scandir($_SERVER['DOCUMENT_ROOT'] . "/archive/get"); + + foreach ($files as $file) { + if (substr($file, -5) === ".json" && file_exists($_SERVER['DOCUMENT_ROOT'] . "/archive/get/" . substr($file, 0, -5) . ".zip")) { + $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/archive/get/" . $file), true); + echo('<a href="/archive/get/'.substr($file, 0, -5).'.zip" class="list-group-item list-group-item-action"><span class="badge bg-secondary rounded-pill">'.$data['date'].'</span> '.$data['title']); + if ($data['unreleased']) { + echo(' <span class="badge bg-warning">Unreleased</span>'); + } + echo('</a>'); + } + } + + ?> +</div> +<br> +<small><p class="text-muted">Project start dates are estimated and cannot always be accurate</p></small>
\ No newline at end of file |