]> git.ipfire.org Git - ipfire.org.git/blame - index.pl
Imported the download handler for the source code.
[ipfire.org.git] / index.pl
CommitLineData
01885878 1#!/usr/bin/perl
2
8afb2498 3my $lang = "en";
795d46bd 4my @error;
8afb2498 5
6# Set language to german, else use english site
7if ($ENV{'HTTP_ACCEPT_LANGUAGE'} =~ /^de(.*)/) {
8 $lang = "de";
9}
10
01885878 11print "Status: 302 Moved\n";
3ff59c7c 12print "Pragma: no-cache\n";
13
42aff73b 14if ($ENV{'SERVER_NAME'} eq "source.ipfire.org") {
15 print "Location: /$lang/source.shtml\n";
3ff59c7c 16} else {
42aff73b 17 print "Location: /$lang/index.shtml\n";
3ff59c7c 18}
19
20# End http header...
21print "\n";