2
@data_path = Dir.tmpdir
4
psql_service = CFRuntime::CloudApp.service_names_of_type('postgresql')
5
psql_options = CFRuntime::PGClient.options_for_svc(names[0])
6
@database_url = "postgres://#{psql_options[:user]}:#{psql_options[:password]}@#{psql_options[:host]}:#{psql_options[:port]}/#{psql_options[:dbname]}"
10
require 'tdiary/io/cache/memcached'
11
require 'tdiary/io/rdb'
12
@io_class = TDiary::RdbIO
16
@logger = Logger.new($stderr)
18
@accesskey_enabled = false
28
@options['apply_plugin'] = true
29
@options['sp.path'] = ['misc/plugin']
30
@options['style.path'] = ['misc/style/gfm', 'tdiary/style']
31
@options['sp.selected'] =
44
@options['dropdown_calendar.label'] = ''
45
@options['spamfilter.bad_comment_patts'] = "(href=|casino|gambling|betting|fastsearch\\.eu\\.com|ganzao|poker|holdem|hold.em|roulette|drug|tramadol|viagra|fioricet|oxycontin|biaxin|aldara|business cards|home depot|slot.?machine|insurance|getblog2|video-game|Good site|internet-all\\.com|deai|tdfms|comu2|omaha)\r\n"
46
@options['spamfilter.bad_ip_addrs'] = ""
47
@options['spamfilter.bad_mail_patts'] = "(mu@alloha\\.info|mumu2004@mail\\.com|zhongleibo|dfd@12\\.com|anonimous|aol\\.|yahoo\\.|google\\.|hotmail\\.|msn\\.|leroy\\.|ablare\\.|gmx\\.|lorazepam|\\.co$)"
48
@options['spamfilter.bad_uri_patts'] = ""
49
@options['spamfilter.bad_uri_patts_for_mails'] = false
50
@options['spamfilter.debug_file'] = ""
51
@options['spamfilter.debug_mode'] = false
52
@options['spamfilter.filter_mode'] = true
53
@options['spamfilter.max_uris'] = "2"
54
@options['spamfilter.resolv_check'] = false
55
@options['spamfilter.resolv_check_mode'] = false
56
@options['spamlookup.domain.list'] = "bsb.spamlookup.net\r\nsc.surbl.org\r\nrbl.bulkfeeds.jp"
57
@options['spamlookup.safe_domain.list'] = "search.yahoo.co.jp\r\nwww.google.com\r\nwww.google.co.jp\r\nsearch.msn.co.jp"
59
@html_title = %Q[【日記のタイトル】]
62
<h1><%= @html_title %></h1>
68
<div style="text-align: center">
75
@date_format = '%Y年%m月%d日'
76
@section_anchor = '<span class="sanchor">_</span>'
77
@comment_anchor = '<span class="canchor">_</span>'
83
@referer_day_only = true