#!/usr/bin/env ruby -Ke # Copyright(c) 2004 URABE, Shyouhei. # Modifyed by Takuya Ono 2004/5/9 # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this code, to deal in the code without restriction, including without # limitation the rights to use, copy, modify, merge, publish, distribute, # sublicense, and/or sell copies of the code, and to permit persons to whom the # code is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the code. # # THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHOR OR COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE CODE OR THE USE OR OTHER DEALINGS IN THE # CODE. # amazon_search: Simirality Amazon search unless @conf.mobile_agent? then def permlink_url(date) a = [@conf.base_url, @conf.index, anchor(date.strftime('%Y%m%d'))] # a << '#p01' if @plugin_files.grep(/blog_style.rb\z/).empty? a.join.sub(%r|/\./|, '/') end add_body_leave_proc do |date| if @mode == 'day' uri = permlink_url(date).split(//n).map {|i| '%%%X' % i[0] }.join aid = @conf['amazon.aid'] || 'onekopage-22' num = @conf['amazon_search.no'] || 5 noheader = @conf['amazon_search.noheader'] || false %Q!\n! else '' end end add_conf_proc('amazon_search', 'Similarity Amazon Search') do if @mode == 'saveconf' then @conf['amazon.aid'] = @cgi.params['amazon.aid'][0] @conf['amazon_search.devt'] = @cgi.params['amazon_search.devt'][0] @conf['amazon_search.no'] = @cgi.params['amazon_search.no'][0].to_i @conf['amazon_search.noheader'] = !!(@cgi.params['amazon_search.noheader'][0] == 'true') end <

* About Similarity Amazon Search

Amazon Search is a tool to search items in Amazon.

For more info see Drk7jp Amazon Search.


* Settings

Whether to show header line:

HTML end end # of @conf.mobile_agent? # Local Variables: # mode: ruby # code: euc-jp-unix # End: