<?php
$urls = [
    "http://download.opensuse.org/repositories/devel:/languages:/crystal/xUbuntu_22.04/",
    "https://deb.nodesource.com/node_16.x/dists/jammy/",
    "https://rspamd.com/apt-stable/dists/jammy/",
];
foreach ($urls as $url) {
    $headers = get_headers($url);
    $found[] = substr($headers[0], 9, 3);
}
?>
<!DOCTYPE html>
<html>
    <head>
        <title>stuff we need before 22.04</title>
        <link rel="stylesheet" href="../gruvbox/gruvbox.min.css">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    </head>
    <body id="top">
        <main>
            <h1>jammy updates</h1>

            <ul>
            <?php for ($i = 0; $i < count($urls); $i++): ?>
                <li><?=$urls[$i]?>: <a href="<?=$urls[$i]?>"><?=$found[$i]?></a></li>
            <?php endfor; ?>
            </ul>
        </main>
    </body>
</html>

