/[suikacvs]/okuchuu/blue-oceans/katsudou/current.html.cgi
Suika

Contents of /okuchuu/blue-oceans/katsudou/current.html.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Aug 17 06:03:16 2003 UTC (21 years, 3 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +8 -2 lines
Some modifications for new server environment

1 wakaba 1.2 #!/usr/bin/perl
2    
3 wakaba 1.4 #(undef, undef, undef, undef, $m, $y) = localtime; $m++;
4     my $m = 4;
5     my $y = 2002;
6 wakaba 1.2
7     $y += 1900 if $y < 1000;
8     $m = sprintf('%02d', $m);
9    
10     my $myuri = 'http://'.$main::ENV{SERVER_NAME}.':'.$main::ENV{SERVER_PORT}.
11     '/okuchuu/blue-oceans/';
12     my $localpart;
13    
14     if ($main::ENV{QUERY_STRING} eq 'year') {
15     $localpart = $y.'/';
16     } elsif ($main::ENV{QUERY_STRING} eq 'theme') {
17 wakaba 1.4 $y = 2001;
18 wakaba 1.2 $localpart = $y.'/theme';
19     } elsif ($main::ENV{QUERY_STRING} eq 'taikai') {
20 wakaba 1.4 $y = 2001;
21 wakaba 1.2 $localpart = $y.'/taikai';
22     } elsif ($main::ENV{QUERY_STRING} eq 'part') {
23 wakaba 1.4 $y = 2001;
24     $localpart = $y.'/part/latest';
25 wakaba 1.2 } elsif ($main::ENV{QUERY_STRING} eq 'newmember') {
26 wakaba 1.4 $y = 2001;
27 wakaba 1.2 $localpart = $y.'/newmember';
28     } else {
29     $localpart = $y.'/'.$m;
30     }
31    
32     print "Location: ${myuri}${localpart}\n\n";

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24