1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00
Files
archived-web-php/archive/index.php

15 lines
284 B
PHP

<?php
include_once __DIR__ . '/../include/prepend.inc';
$i = 0;
do {
$y = date("Y") - $i;
if (file_exists("./$y.php")) {
mirror_redirect("/archive/$y.php");
break;
}
} while (++$i < 3);
include_once __DIR__ . '/../include/errors.inc';
error_noservice();