xref: /web-php/archive/index.php (revision 59c070f5)
1<?php
2
3include_once __DIR__ . '/../include/prepend.inc';
4$i = 0;
5do {
6    $y = date("Y") - $i;
7    if (file_exists("./$y.php")) {
8        mirror_redirect("/archive/$y.php");
9        break;
10    }
11} while (++$i < 3);
12
13include_once __DIR__ . '/../include/errors.inc';
14error_noservice();
15