tilde/cgi-bin/index.php

30 lines
855 B
PHP

<!DOCTYPE html>
<html>
<head>
<title>cgi-bin</title>
<link rel="stylesheet" href="https://tilde.team/~ben/gruvbox/gruvbox.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body id="top">
<main>
<h1>cgi-bin</h1>
<p>here are some scripts i've been playing with</p>
<ul>
<?php foreach (glob("*") as $cgi) {
$cgi = basename($cgi);
if ($cgi === "index.php") continue; ?>
<li>
<a href="<?=$cgi?>"><?=$cgi?></a>
</li>
<?php } ?>
</ul>
<p>sources available on <a href="https://tildegit.org/ben/tilde/src/branch/master/cgi-bin">tildegit</a></p>
</main>
</body>
</html>