‘ƒXƒŒƒbƒhƒŠƒXƒg‚֖߂遑 ‘S•” 1- 101- 201- 301- 401- 501- 601- 701- 801- 901- ΕV50

yƒXƒŒƒbƒhz2chŒ^ŒfŽ¦”Β 14 yƒtƒ[ƒgŒ^z

616 Fnobody‚³‚ρ F2006/09/28(–Ψ) 08:36:06 ID:???
my $ims = !$ENV{HTTP_IF_MODIFIED_SINCE}
          ? 0
          : $ENV{HTTP_IF_MODIFIED_SINCE} =~ /^\w{3,}, {1,2}(\d{1,2})[ -](Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[ -](\d{2,4}) {1,2}(\d{1,2}):(\d{2}):(\d{2}) GMT$/
            ? timegm($6, $5, $4, $1, index('JanFebMarAprMayJunJulAugSepOctNovDec', $2) / 3, $3)
            : $ENV{HTTP_IF_MODIFIED_SINCE} =~ /^\w{3} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) {1,2}(\d{1,2}) {1,2}(\d{1,2}):(\d{2}):(\d{2}) (\d{4})$/
              ? timegm($5, $4, $3, $2, index('JanFebMarAprMayJunJulAugSepOctNovDec', $1) / 3, $6)
              : 0;
if ($ims ge $st->mtime) {
    print "Status: 304 Not Modified\n\n";
    exit;
}
my $mtime = strftime('%a, %d %b %Y %T GMT', gmtime($st->mtime));

print <<EOT;
Content-Type: application/xml; charset=Shift_JIS
Last-Modified: $mtime
Cache-Control: max-age=5

<?xml version="1.0" encoding="Shift_JIS"?>
<text><![CDATA[
EOT
if (open(DAT, $fname)) {
    while (<DAT>) {
        print;
    }
    close(DAT);
}
print "]]></text>\n";

226KB
V’…ƒŒƒX‚Μ•\Ž¦

ƒXƒŒƒbƒhƒŠƒXƒg‚Φ–ί‚ι ‘S•” ‘O100 ŽŸ100 ΕV50

0ch BBS 2004-10-30