1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 15:22:19 +01:00
Files
archived-web-php/archive/index.php
2007-06-07 10:33:39 +00:00

16 lines
296 B
PHP

<?php
// $Id$
include_once $_SERVER['DOCUMENT_ROOT'] . '/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 $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc';
error_noservice();