archive/index.php

33 lines
1.1 KiB
PHP

<!doctype html>
<html>
<head>
<title>tilderadio archives</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://tilde.team/css/hacker.css">
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
</head>
<body>
<div class="container">
<h1>tilderadio archive</h1>
<p><a href="https://tilderadio.org">back to tilderadio.org</a> - <a href="https://radio.tildeverse.org/radio/8000/radio.ogg">listen now</a></p>
<p>here's the archive as an <a href="rss.php">rss feed</a>. source for this archive <a href="https://tildegit.org/tilderadio/archive">here</a></p>
<hr>
<?php
foreach (glob("/var/www/archive/*") as $dir) {
$name = basename($dir);
if ($name == "webhook" || $name == "log" || !is_dir($dir)) continue;
?>
<div class="list-group">
<a href="<?=$name?>/" class="list-group-item">
<p class="list-group-item-text"><?=$name?></p>
</a>
</div>
<?php } ?>
</div>
</body>
</html>