Show
Ignore:
Timestamp:
05/25/08 13:49:52 (6 months ago)
Author:
hsbt
Message:

add security category in configuration setting.

Location:
platform/tdiary/filter/plugin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/filter/plugin/antirefspam.rb

    r10806 r12319  
    77# 
    88 
    9 add_conf_proc( 'antirefspam', 'Anti Referer Spam' ) do 
     9add_conf_proc( 'antirefspam', 'Anti Referer Spam',  'security') do 
    1010        if @mode == 'saveconf' 
    1111                @conf['antirefspam.disable'] = @cgi.params['antirefspam.disable'][0] 
  • platform/tdiary/filter/plugin/commentsize.rb

    r10856 r12319  
    1 add_conf_proc( 'comment_size' , @comment_size_conf) do 
    2   size_conf_proc 
     1add_conf_proc( 'comment_size' , @comment_size_conf, 'security') do 
     2        if @mode == 'saveconf' then 
     3                @conf['comment.size'] = @cgi.params['comment.size'][0] 
     4        end 
     5        @conf['comment.size'] = 0 unless @conf['comment.size'] 
     6         
     7        result = <<-HTML 
     8        <h3>#{@comment_size}</h3> 
     9        <p>#{@comment_size_desc}</p> 
     10        <p><input name="comment.size" value="#{@conf['comment.size']}">Bytes</p> 
     11        HTML 
    312end 
    4 def size_conf_proc 
    5   if @mode == 'saveconf' then 
    6     @conf['comment.size'] = @cgi.params['comment.size'][0] 
    7   end 
    8   @conf['comment.size'] = 0 unless @conf['comment.size'] 
    9    
    10   result = <<-HTML 
    11   <h3>#{@comment_size}</h3> 
    12   <p>#{@comment_size_desc}</p> 
    13   <p><input name="comment.size" value="#{@conf['comment.size']}">Bytes</p> 
    14   HTML 
    15 end