¤¤¤¤Ê¤êÂÌ¥¹¥ì¡© blosxom ¥æ¡¼¥¶¡¼¤«¤éžºÜ¡£
¤Ä¤¤¤Ç¤Ëblosxom of blosxom.¤µ¤ó¤ËºÜ¤Ã¤Æ¤¤¤¿blosxom¤Î½¤Àµ¤âžµ
hail2u.net¡§blosxom¤È404¤«¤éžºÜ¡£
hail2u.net¡§blosxom¤È404 #2¤«¤éžºÜ¡£
ÀÅŪÀ¸À®¥â¡¼¥É¤ÇÆüÊ̤Υ¤¥ó¥Ç¥Ã¥¯¥¹YYYY/MM/DD/index.html¤¬¤¦¤¶¤¤¤Î¤Ç¥Ï¥Ã¥¯
--- entries_index.orig Mon Feb 9 15:59:09 2004
+++ entries_index Mon Feb 9 15:59:27 2004@@ -56,7 +56,7 @@
or stat("$blosxom::static_dir/$1/index." . $blosxom::static_flavours[0])->mtime< stat($Fi le::Find::name)->mtime
)
and $indexes{$1} = 1
- and $d = join('/', (blosxom::nice_date($files{$File::Find::name}))[5,2,3])
+ and $d = join('/', (blosxom::nice_date($files{$File::Find::name}))[5,2])
and $indexes{$d} = $d
and $blosxom::static_entries and $indexes{ ($1 ? "$1/" : '') . "$2.$blosxom::file_extensio n" } = 1;
}, $blosxom::datadir
¤Ä¤¤¤Ç¤Ëblosxom of blosxom.¤µ¤ó¤ËºÜ¤Ã¤Æ¤¤¤¿blosxom¤Î½¤Àµ¤âžµ
182¹ÔÌÜ¡£
and $2 ne 'index' and $2 !~ /^\./ and (-r $node)
188¹ÔÌÜ¡£
or stat($node)->mtime< time
192¹ÔÌÜ¡£
and $files{$File::Find::name} = stat($node)->mtime
198¹ÔÌÜ¡£
or stat("$static_dir/$1/index." . $static_flavours[0])->mtime< stat($node)->mtime
208¹ÔÌÜ¡£
!-d $node and -r $node and $others{$File::Find::name} = stat($node)->mtime
¤½¤Î¸å¤Ç¡¢174¹ÔÌܤ˰ʲ¼¤Î1¹Ô¤òÄɲá£
my $node = $_;
¤³¤ì¤Ï¤Á¤ç¤Ã¤È¥¤¥ì¥®¥å¥é¡¼¤Ê¼ê½ç¤Ç¤¹¤·¡¢¤·¤Ê¤¯¤Æ¤âÆ°¤¯¤³¤È¤â¤¢¤ë¤è¤¦¤Ç¤¹¡£
ɬ¿Ü¤Ê¤Î¤«¤¤¤Þ¤¤¤Á³Î¿®¤¬¤â¤Æ¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤¦¤âFile::Find::find¥ë¡¼¥Á¥ó¤Î»È¤¤Êý¤«¤é¤¹¤ì¤Ð¤³¤Á¤é¤¬Àµ¤·¤¤¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¡£
¤¯¤ï¤¨¤Æ¡¢¼ê¸µ¤ÎWindows¥Ñ¥½¥³¥ó¤È¡¢¤³¤ÎQUE::NETWORK¤Ç¤Ï¤³¤Î½¤Àµ¤¬¤Ê¤¤¤È¥¨¥ó¥È¥ê¤¬É½¼¨¤µ¤ì¤Ê¤«¤Ã¤¿¤Î¤Ç¡¢°ì±þ¼ê½ç¤ËÁȤ߹þ¤ó¤Ç¤ª¤¤Þ¤¹¡£
hail2u.net¡§blosxom¤È404¤«¤éžºÜ¡£
¥µ¥¤¥È¤Î404¤ÈƱ¤¸¤ÎÊý¤¬µ¤Ê¬¤¬Îɤ¤¤Î¤Ç¡¢¤³¤¦¤·¤Æ¤ß¤Þ¤·¤¿¡£if ($ne eq $num_entries) { print("Location: /404.html\r\n\r\n"); exit; }
hail2u.net¡§blosxom¤È404 #2¤«¤éžºÜ¡£
²þ¤¤¹¤ë¤È¤³¤í¤Ïblosxom¤È404¤Ç²þ¤¤·¤¿¤È¤³¤í¤ÈƱ¤¸¤Ç¡¢¥ª¥ê¥¸¥Ê¥ë¤Î¤Þ¤Þ¤À¤È394¹ÔÌÜÊդꡣ¤½¤³¤Ë°Ê²¼¤Î¥³¡¼¥É¤òÁÞÆþ¤·¤Þ¤¹¡£# No matching entries treated as a 404 Not Found if ($ne eq $num_entries) { if (open(FH, "/www_root/john/public_html/404.html")) { print header( -type => 'text/html', -charset => 'UTF-8', -status => '404 Not Found', );
foreach (<FH>) { print $_; }
close(FH); } else { print redirect("http://example.com/john/404.html"); }
exit; }