Author: mdomsch Update of /cvs/fedora/web/html/Download/mirrors In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28610/Download/mirrors Modified Files: index.php Log Message: redirect f.r.c/[Dd]ownload/mirrors/ index page to mirrors.fp.o/publiclist/ Index: index.php =================================================================== RCS file: /cvs/fedora/web/html/Download/mirrors/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.php 29 Nov 2005 17:32:41 -0000 1.1 +++ index.php 10 Jun 2007 22:32:17 -0000 1.2 @@ -1,27 +1,10 @@ -<? -include("site.inc"); +<?php +// +// Easily-changeable template for redirection. +// -$template = new Page; -$template->initCommon(); +$NEWURL="http://mirrors.fedoraproject.org/publiclist/"; -$template->displayHeader(); - - -# I stole this from php.net, I no speak da php -$the_array = Array(); -$handle = opendir('.'); - -while (false !== ($file = readdir($handle))) { - if ($file != "." && $file != ".." && $file != "index.php" && $file != "index.html" ) { /* as descripted below: these "files" will not be added to the array */ - $the_array[] = $file; - } -} -closedir($handle); - -foreach ($the_array as $element) { - echo "<a href=\"$element\">$element</a><br>\n"; -} - -$template->displayFooter('$Date$'); +include("redirect.inc"); ?>