svnno****@sourc*****
svnno****@sourc*****
2008年 7月 22日 (火) 16:58:07 JST
Revision: 716 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=716 Author: tach Date: 2008-07-22 16:58:07 +0900 (Tue, 22 Jul 2008) Log Message: ----------- Redirect topics.pl to topics.shtml internally when when AC access Modified Paths: -------------- slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm slashjp/branches/2.5.0.192/debian/changelog -------------- next part -------------- Modified: slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm =================================================================== --- slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm 2008-07-22 07:50:05 UTC (rev 715) +++ slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm 2008-07-22 07:58:07 UTC (rev 716) @@ -481,6 +481,15 @@ return OK; } + if ($uri eq '/topics.pl') { + if (!$is_user && $r->the_request !~ /\bop=\w+\b/) { + $r->uri('/topics.shtml'); + $r->filename("$constants->{basedir}/topics.shtml"); + writeLog('shtml'); + return OK; + } + } + # redirect to static if # * not a user, nor a daypass holder, # and Modified: slashjp/branches/2.5.0.192/debian/changelog =================================================================== --- slashjp/branches/2.5.0.192/debian/changelog 2008-07-22 07:50:05 UTC (rev 715) +++ slashjp/branches/2.5.0.192/debian/changelog 2008-07-22 07:58:07 UTC (rev 716) @@ -28,8 +28,9 @@ - cache creating task is not included in slash distribution * Allow firehose.pl for AC when the "id" is specified * move createMenu() into hierarchy and listTopics templates + * Redirect topics.pl to topics.shtml internally when when AC access - -- Taku YASUI <tach****@osdn*****> Tue, 22 Jul 2008 07:47:47 +0000 + -- Taku YASUI <tach****@osdn*****> Tue, 22 Jul 2008 07:57:22 +0000 slash (2.5.0.192-15) unstable; urgency=low