--- skel/diary.rhtml 2 Aug 2004 13:34:39 -0000 1.3 +++ skel/diary.rhtml 18 Sep 2004 02:35:42 -0000 1.4 @@ -69,8 +69,10 @@ <%%=comment_body_label%>:
+

<%%= comment_spamwarn() %>

+
<% end %> --- index.rb 2 Aug 2004 14:06:33 -0000 1.2 +++ index.rb 18 Sep 2004 02:35:42 -0000 1.3 @@ -28,7 +28,11 @@ begin if @cgi.valid?( 'comment' ) then - tdiary = TDiary::TDiaryComment::new( @cgi, "day.rhtml", conf ) + if @cgi.valid?('ishuman') and @cgi.params['ishuman'] + tdiary = TDiary::TDiaryComment::new( @cgi, "day.rhtml", conf ) + else + raise TDiary::ForceRedirect.new('spamwarn.html') + end elsif @cgi.valid?( 'date' ) date = @cgi.params['date'][0] if /^\d{8}$/ =~ date then --- plugin/ja/00default.rb 2 Aug 2004 12:33:15 -0000 1.1 +++ plugin/ja/00default.rb 18 Sep 2004 02:35:42 -0000 1.2 @@ -88,6 +88,7 @@ def comment_submit_label; '投稿'; end def comment_submit_label_short; '投稿'; end def comment_date( time ); time.strftime( "(#{@date_format} %H:%M)" ); end +def comment_spamwarn() '投稿する前にチェックボックスをチェックしてください' end def referer_today; '本日のリンク元'; end def trackback_today; '本日のTrackBacks'; end def trackback_total( total ); "(全#{total}件)"; end