tdiary 3.2.2.20130507
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +16 -0
- data/.travis.yml +29 -0
- data/Capfile +2 -0
- data/ChangeLog +3173 -0
- data/Gemfile +58 -0
- data/Gemfile.lock +201 -0
- data/LICENSE +340 -0
- data/Procfile +1 -0
- data/README.md +33 -0
- data/Rakefile +26 -0
- data/bin/tdiary +7 -0
- data/config.ru +61 -0
- data/data/.htaccess +2 -0
- data/doc/HOWTO-authenticate-in-rack.md +89 -0
- data/doc/HOWTO-make-io.md +305 -0
- data/doc/HOWTO-make-plugin.md +279 -0
- data/doc/HOWTO-make-theme.md +67 -0
- data/doc/HOWTO-testing-tDiary.md +44 -0
- data/doc/HOWTO-use-plugin.md +148 -0
- data/doc/HOWTO-write-tDiary.en.md +131 -0
- data/doc/HOWTO-write-tDiary.md +136 -0
- data/doc/INSTALL-paas.md +202 -0
- data/doc/INSTALL.md +160 -0
- data/doc/README.en.md +174 -0
- data/doc/README.md +56 -0
- data/doc/UPGRADE.md +164 -0
- data/doc/doc.css +115 -0
- data/dot.htaccess +27 -0
- data/index.fcgi +45 -0
- data/index.rb +57 -0
- data/js/00default.js +60 -0
- data/js/01conf.js +62 -0
- data/js/02edit.coffee +5 -0
- data/js/02edit.js +15 -0
- data/js/amazon.js +43 -0
- data/js/calendar3.js +130 -0
- data/js/caretposition.js +170 -0
- data/js/category.js +29 -0
- data/js/category_autocomplete.js +96 -0
- data/js/comment_ajax.js +27 -0
- data/js/draft.js +149 -0
- data/js/highlight.js +36 -0
- data/js/image.js +181 -0
- data/misc/convert2.rb +123 -0
- data/misc/filter/antispamservice.rb +101 -0
- data/misc/filter/limitdays.rb +40 -0
- data/misc/filter/linkcheck.rb +81 -0
- data/misc/filter/plugin/antispamservice.rb +82 -0
- data/misc/filter/plugin/en/antispamservice.rb +21 -0
- data/misc/filter/plugin/ja/antispamservice.rb +20 -0
- data/misc/lib/README +4 -0
- data/misc/lib/compatible.rb +1 -0
- data/misc/lib/fcgi_patch.rb +90 -0
- data/misc/migrate.rb +157 -0
- data/misc/paas/cloudfoundry/Gemfile +26 -0
- data/misc/paas/cloudfoundry/Gemfile.lock +85 -0
- data/misc/paas/heroku/Gemfile +22 -0
- data/misc/paas/heroku/Gemfile.lock +85 -0
- data/misc/paas/sqale/Gemfile +19 -0
- data/misc/paas/sqale/Gemfile.lock +85 -0
- data/misc/paas/sqale/Procfile +1 -0
- data/misc/paas/sqale/dot.env +1 -0
- data/misc/plugin/ChangeLog.DO_NOT_UPDATE +2333 -0
- data/misc/plugin/a.rb +211 -0
- data/misc/plugin/amazon.rb +403 -0
- data/misc/plugin/amazon/README.en +17 -0
- data/misc/plugin/amazon/README.ja +29 -0
- data/misc/plugin/amazon/amazonimg.rb +113 -0
- data/misc/plugin/amazon/large.png +0 -0
- data/misc/plugin/amazon/medium.png +0 -0
- data/misc/plugin/amazon/small.png +0 -0
- data/misc/plugin/append-css.rb +51 -0
- data/misc/plugin/bq.rb +48 -0
- data/misc/plugin/calendar2.rb +184 -0
- data/misc/plugin/calendar3.rb +256 -0
- data/misc/plugin/category.rb +779 -0
- data/misc/plugin/category_autocomplete.rb +33 -0
- data/misc/plugin/comment_ajax.rb +11 -0
- data/misc/plugin/comment_mail-qmail.rb +57 -0
- data/misc/plugin/comment_mail-sendmail.rb +56 -0
- data/misc/plugin/comment_mail-smtp.rb +59 -0
- data/misc/plugin/comment_rank.rb +36 -0
- data/misc/plugin/counter.rb +631 -0
- data/misc/plugin/daily_theme.rb +55 -0
- data/misc/plugin/disp_referrer.rb +1486 -0
- data/misc/plugin/doctype-html401tr.rb +16 -0
- data/misc/plugin/draft.rb +20 -0
- data/misc/plugin/dropdown_calendar.rb +32 -0
- data/misc/plugin/edit_today.rb +50 -0
- data/misc/plugin/en/a.rb +10 -0
- data/misc/plugin/en/amazon.rb +71 -0
- data/misc/plugin/en/append-css.rb +17 -0
- data/misc/plugin/en/bq.rb +12 -0
- data/misc/plugin/en/calendar2.rb +12 -0
- data/misc/plugin/en/category.rb +204 -0
- data/misc/plugin/en/counter.rb +48 -0
- data/misc/plugin/en/daily_theme.rb +14 -0
- data/misc/plugin/en/disp_referrer.rb +387 -0
- data/misc/plugin/en/dropdown_calendar.rb +14 -0
- data/misc/plugin/en/edit_today.rb +22 -0
- data/misc/plugin/en/hide-mail-field.rb +19 -0
- data/misc/plugin/en/highlight.rb +29 -0
- data/misc/plugin/en/image.rb +54 -0
- data/misc/plugin/en/kw.rb +22 -0
- data/misc/plugin/en/makerss.rb +47 -0
- data/misc/plugin/en/pb-show.rb +21 -0
- data/misc/plugin/en/ping.rb +16 -0
- data/misc/plugin/en/recent_comment.rb +44 -0
- data/misc/plugin/en/recent_comment3.rb +56 -0
- data/misc/plugin/en/recent_rss.rb +33 -0
- data/misc/plugin/en/referer_scheme.rb +48 -0
- data/misc/plugin/en/search_control.rb +74 -0
- data/misc/plugin/en/search_form.rb +22 -0
- data/misc/plugin/en/speed_comment.rb +19 -0
- data/misc/plugin/en/tb-show.rb +37 -0
- data/misc/plugin/en/todo.rb +43 -0
- data/misc/plugin/en/weather.rb +185 -0
- data/misc/plugin/en/xmlrpc.rb +14 -0
- data/misc/plugin/footnote.rb +92 -0
- data/misc/plugin/gradation.rb +39 -0
- data/misc/plugin/gradient.rb +36 -0
- data/misc/plugin/hide-mail-field.rb +50 -0
- data/misc/plugin/highlight.rb +22 -0
- data/misc/plugin/html_anchor.rb +34 -0
- data/misc/plugin/image.rb +290 -0
- data/misc/plugin/ja/amazon.rb +89 -0
- data/misc/plugin/ja/bq.rb +13 -0
- data/misc/plugin/ja/calendar2.rb +12 -0
- data/misc/plugin/ja/category.rb +212 -0
- data/misc/plugin/ja/daily_theme.rb +15 -0
- data/misc/plugin/ja/disp_referrer.rb +644 -0
- data/misc/plugin/ja/edit_today.rb +23 -0
- data/misc/plugin/ja/hide-mail-field.rb +20 -0
- data/misc/plugin/ja/highlight.rb +30 -0
- data/misc/plugin/ja/makerss.rb +44 -0
- data/misc/plugin/ja/my-sequel.rb +52 -0
- data/misc/plugin/ja/pb-show.rb +23 -0
- data/misc/plugin/ja/ping.rb +17 -0
- data/misc/plugin/ja/recent_comment.rb +45 -0
- data/misc/plugin/ja/recent_comment3.rb +57 -0
- data/misc/plugin/ja/recent_rss.rb +34 -0
- data/misc/plugin/ja/referer_scheme.rb +86 -0
- data/misc/plugin/ja/search_control.rb +75 -0
- data/misc/plugin/ja/search_form.rb +32 -0
- data/misc/plugin/ja/tb-show.rb +38 -0
- data/misc/plugin/ja/todo.rb +46 -0
- data/misc/plugin/ja/weather.rb +402 -0
- data/misc/plugin/ja/xmlrpc.rb +15 -0
- data/misc/plugin/kw.rb +150 -0
- data/misc/plugin/list.rb +40 -0
- data/misc/plugin/makelirs.rb +89 -0
- data/misc/plugin/makerss.rb +744 -0
- data/misc/plugin/my-ex.rb +68 -0
- data/misc/plugin/my-sequel.rb +539 -0
- data/misc/plugin/navi_user.rb +19 -0
- data/misc/plugin/number_anchor.rb +47 -0
- data/misc/plugin/pb-show.rb +165 -0
- data/misc/plugin/ping.rb +99 -0
- data/misc/plugin/pre_wrap.rb +19 -0
- data/misc/plugin/random_google.rb +165 -0
- data/misc/plugin/recent_comment.rb +82 -0
- data/misc/plugin/recent_comment3.rb +192 -0
- data/misc/plugin/recent_list.rb +91 -0
- data/misc/plugin/recent_namazu.rb +50 -0
- data/misc/plugin/recent_rss.rb +305 -0
- data/misc/plugin/referer-antibot.rb +53 -0
- data/misc/plugin/referer-utf8.rb +12 -0
- data/misc/plugin/referer_scheme.rb +87 -0
- data/misc/plugin/search_control.rb +227 -0
- data/misc/plugin/search_form.rb +53 -0
- data/misc/plugin/sn.rb +107 -0
- data/misc/plugin/speed_comment.rb +68 -0
- data/misc/plugin/squeeze.rb +272 -0
- data/misc/plugin/src.rb +30 -0
- data/misc/plugin/tb-show.rb +212 -0
- data/misc/plugin/title_list.rb +41 -0
- data/misc/plugin/title_tag.rb +80 -0
- data/misc/plugin/tlink.rb +163 -0
- data/misc/plugin/todo.rb +182 -0
- data/misc/plugin/weather.rb +505 -0
- data/misc/plugin/whatsnew.rb +100 -0
- data/misc/plugin/xmlrpc.rb +80 -0
- data/misc/plugin/xmlrpc/README +20 -0
- data/misc/plugin/xmlrpc/xmlrpc.rb +575 -0
- data/misc/style/emptdiary/README.rd +83 -0
- data/misc/style/emptdiary/README.rd.en +78 -0
- data/misc/style/emptdiary/emptdiary_style.rb +199 -0
- data/misc/style/etdiary/README.rd +83 -0
- data/misc/style/etdiary/etdiary_style.rb +446 -0
- data/misc/style/gfm/gfm_style.rb +194 -0
- data/misc/style/rd/README.rd +71 -0
- data/misc/style/rd/rd_style.rb +366 -0
- data/misc/style/wiki/README +116 -0
- data/misc/style/wiki/README.en +101 -0
- data/misc/style/wiki/wiki_parser.rb +273 -0
- data/misc/style/wiki/wiki_style.rb +478 -0
- data/misc/theme_convert/Readme.rd +21 -0
- data/misc/theme_convert/append.rcss +150 -0
- data/misc/theme_convert/theme_convert.rb +453 -0
- data/plugin/00default.rb +1015 -0
- data/plugin/05referer.rb +298 -0
- data/plugin/10spamfilter.rb +183 -0
- data/plugin/50sp.rb +146 -0
- data/plugin/60sf.rb +152 -0
- data/plugin/90migrate.rb +109 -0
- data/plugin/en/00default.rb +390 -0
- data/plugin/en/05referer.rb +49 -0
- data/plugin/en/10spamfilter.rb +81 -0
- data/plugin/en/50sp.rb +56 -0
- data/plugin/en/60sf.rb +60 -0
- data/plugin/ja/00default.rb +401 -0
- data/plugin/ja/05referer.rb +47 -0
- data/plugin/ja/10spamfilter.rb +79 -0
- data/plugin/ja/50sp.rb +66 -0
- data/plugin/ja/60sf.rb +73 -0
- data/public/.gitkeep +0 -0
- data/public/images/.gitkeep +0 -0
- data/public/javascripts/.gitkeep +0 -0
- data/public/stylesheets/.gitkeep +0 -0
- data/skel/category.rhtml +9 -0
- data/skel/conf.rhtml +23 -0
- data/skel/day.rhtml +33 -0
- data/skel/diary.rhtml +83 -0
- data/skel/footer.rhtml +8 -0
- data/skel/header.rhtml +10 -0
- data/skel/i.category.rhtml +6 -0
- data/skel/i.conf.rhtml +14 -0
- data/skel/i.day.rhtml +28 -0
- data/skel/i.diary.rhtml +17 -0
- data/skel/i.footer.rhtml +2 -0
- data/skel/i.header.rhtml +3 -0
- data/skel/i.latest.rhtml +24 -0
- data/skel/i.month.rhtml +39 -0
- data/skel/i.search.rhtml +5 -0
- data/skel/i.update.rhtml +40 -0
- data/skel/i.update.rhtml.en +40 -0
- data/skel/latest.rhtml +27 -0
- data/skel/mail.rtxt +18 -0
- data/skel/mail.rtxt.en +18 -0
- data/skel/month.rhtml +27 -0
- data/skel/plugin_error.rhtml +27 -0
- data/skel/preview.rhtml +85 -0
- data/skel/preview.rhtml.en +72 -0
- data/skel/referer.rhtml +24 -0
- data/skel/search.rhtml +14 -0
- data/skel/tdiary.rconf +76 -0
- data/skel/update.rhtml +103 -0
- data/skel/update.rhtml.en +83 -0
- data/spec/acceptance/append_comment_spec.rb +94 -0
- data/spec/acceptance/append_diary_spec.rb +98 -0
- data/spec/acceptance/bugfix/encoding_error_spec.rb +27 -0
- data/spec/acceptance/save_conf_comment_spec.rb +87 -0
- data/spec/acceptance/save_conf_default_spec.rb +169 -0
- data/spec/acceptance/save_conf_dnsbl_spec.rb +152 -0
- data/spec/acceptance/save_conf_filter_spec.rb +50 -0
- data/spec/acceptance/save_conf_plugin_spec.rb +69 -0
- data/spec/acceptance/save_conf_referer_spec.rb +60 -0
- data/spec/acceptance/save_conf_security_spec.rb +280 -0
- data/spec/acceptance/support/helpers.rb +49 -0
- data/spec/acceptance/support/paths.rb +7 -0
- data/spec/acceptance/update_diary_spec.rb +113 -0
- data/spec/acceptance/view_category_spec.rb +38 -0
- data/spec/acceptance/view_comment_spec.rb +67 -0
- data/spec/acceptance/view_diary_spec.rb +126 -0
- data/spec/acceptance/view_referer_spec.rb +31 -0
- data/spec/acceptance_helper.rb +101 -0
- data/spec/core/compatible_spec.rb +54 -0
- data/spec/core/core_ext_spec.rb +59 -0
- data/spec/core/plugin_spec.rb +389 -0
- data/spec/core/rack/assets/precompile_spec.rb +76 -0
- data/spec/core/rack/html_anchor_spec.rb +57 -0
- data/spec/core/rack/valid_request_path_spec.rb +67 -0
- data/spec/core/style/emptdiary_style_spec.rb +165 -0
- data/spec/core/style/etdiary_style_spec.rb +512 -0
- data/spec/core/style/gfm_style_spec.rb +334 -0
- data/spec/core/style/rd_style_spec.rb +202 -0
- data/spec/core/style/tdiary_style_spec.rb +240 -0
- data/spec/core/style/wiki_style_spec.rb +441 -0
- data/spec/fixtures/ascii8bit-pstore.db +0 -0
- data/spec/fixtures/invalid-sequence-volatile.tdr +9 -0
- data/spec/fixtures/just_installed.conf +1 -0
- data/spec/fixtures/plugin/ja/sample.rb +4 -0
- data/spec/fixtures/plugin/sample.rb +6 -0
- data/spec/fixtures/sample.rb +12 -0
- data/spec/fixtures/tdiary.conf.gem +212 -0
- data/spec/fixtures/tdiary.conf.rack +212 -0
- data/spec/fixtures/tdiary.conf.rdb +227 -0
- data/spec/fixtures/tdiary.conf.secure +204 -0
- data/spec/fixtures/tdiary.conf.webrick +212 -0
- data/spec/javascripts/00default_spec.js +35 -0
- data/spec/javascripts/fixtures/00default.html +1 -0
- data/spec/javascripts/support/jasmine.yml +76 -0
- data/spec/plugin/bq_spec.rb +24 -0
- data/spec/plugin/plugin_helper.rb +203 -0
- data/spec/spec_helper.rb +32 -0
- data/tdiary.conf.beginner +244 -0
- data/tdiary.conf.sample +345 -0
- data/tdiary.conf.sample-en +333 -0
- data/tdiary.gemspec +26 -0
- data/tdiary.rb +151 -0
- data/tdiary/admin.rb +236 -0
- data/tdiary/application.rb +57 -0
- data/tdiary/author_only_base.rb +171 -0
- data/tdiary/base.rb +220 -0
- data/tdiary/cli.rb +116 -0
- data/tdiary/comment.rb +40 -0
- data/tdiary/comment_manager.rb +94 -0
- data/tdiary/compatible.rb +72 -0
- data/tdiary/config.rb +270 -0
- data/tdiary/core_ext.rb +122 -0
- data/tdiary/deploy.rb +50 -0
- data/tdiary/dispatcher.rb +77 -0
- data/tdiary/dispatcher/index_main.rb +122 -0
- data/tdiary/dispatcher/update_main.rb +101 -0
- data/tdiary/environment.rb +15 -0
- data/tdiary/filter.rb +48 -0
- data/tdiary/filter/default.rb +54 -0
- data/tdiary/filter/spam.rb +304 -0
- data/tdiary/io/base.rb +70 -0
- data/tdiary/io/cache/file.rb +123 -0
- data/tdiary/io/cache/memcached.rb +88 -0
- data/tdiary/io/cache/redis.rb +100 -0
- data/tdiary/io/default.rb +297 -0
- data/tdiary/io/pstore.rb +252 -0
- data/tdiary/io/rdb.rb +213 -0
- data/tdiary/lang/en.rb +79 -0
- data/tdiary/lang/ja.rb +72 -0
- data/tdiary/plugin.rb +375 -0
- data/tdiary/rack/assets/precompile.rb +37 -0
- data/tdiary/rack/auth/basic.rb +38 -0
- data/tdiary/rack/auth/omniauth.rb +51 -0
- data/tdiary/rack/html_anchor.rb +31 -0
- data/tdiary/rack/valid_request_path.rb +36 -0
- data/tdiary/referer_manager.rb +80 -0
- data/tdiary/request.rb +217 -0
- data/tdiary/response.rb +29 -0
- data/tdiary/server.rb +85 -0
- data/tdiary/style.rb +194 -0
- data/tdiary/style/tdiary_style.rb +198 -0
- data/tdiary/style/wiki_style.rb +213 -0
- data/tdiary/tasks.rb +1 -0
- data/tdiary/tasks/assets.rake +31 -0
- data/tdiary/tasks/auth.rake +28 -0
- data/tdiary/tasks/db.rake +110 -0
- data/tdiary/tasks/doc.rake +31 -0
- data/tdiary/tasks/heroku.rake +37 -0
- data/tdiary/tasks/jasmine.rake +16 -0
- data/tdiary/tasks/rdoc.rake +24 -0
- data/tdiary/tasks/release.rake +122 -0
- data/tdiary/tasks/rspec.rake +51 -0
- data/tdiary/tasks/server.rake +33 -0
- data/tdiary/tasks/test.rake +17 -0
- data/tdiary/version.rb +3 -0
- data/tdiary/view.rb +468 -0
- data/tdiary/view_helper.rb +15 -0
- data/test/disp_referrer_test.rb +93 -0
- data/test/my-sequel_test.rb +238 -0
- data/test/test_helper.rb +7 -0
- data/test/test_plugin_helper.rb +64 -0
- data/test/test_plugin_helper_test.rb +28 -0
- data/test/weather_test.rb +33 -0
- data/theme/base.css +268 -0
- data/theme/conf.block.png +0 -0
- data/theme/conf.css +254 -0
- data/theme/default/README +11 -0
- data/theme/default/body.png +0 -0
- data/theme/default/default.css +743 -0
- data/theme/help.png +0 -0
- data/theme/loading.gif +0 -0
- data/theme/tdiary1/README +7 -0
- data/theme/tdiary1/tdiary1.css +394 -0
- data/theme/tdiary2/README +19 -0
- data/theme/tdiary2/tdiary2.css +624 -0
- data/update.fcgi +45 -0
- data/update.rb +57 -0
- data/vendor/hikidoc-0.0.6/COPYING +28 -0
- data/vendor/hikidoc-0.0.6/NEWS +30 -0
- data/vendor/hikidoc-0.0.6/NEWS.ja +30 -0
- data/vendor/hikidoc-0.0.6/README +86 -0
- data/vendor/hikidoc-0.0.6/README.ja +83 -0
- data/vendor/hikidoc-0.0.6/Rakefile +68 -0
- data/vendor/hikidoc-0.0.6/TextFormattingRules +320 -0
- data/vendor/hikidoc-0.0.6/TextFormattingRules.ja +318 -0
- data/vendor/hikidoc-0.0.6/bin/hikidoc +66 -0
- data/vendor/hikidoc-0.0.6/lib/hikidoc.rb +914 -0
- data/vendor/hikidoc-0.0.6/setup.rb +1360 -0
- data/vendor/hikidoc-0.0.6/test/run-test.rb +13 -0
- data/vendor/hikidoc-0.0.6/test/test_hikidoc.rb +506 -0
- data/vendor/imagesize-0.1.1/Manifest.txt +19 -0
- data/vendor/imagesize-0.1.1/README.txt +49 -0
- data/vendor/imagesize-0.1.1/lib/image_size.rb +305 -0
- data/vendor/imagesize-0.1.1/lib/image_size/version.rb +9 -0
- data/vendor/imagesize-0.1.1/setup.rb +1585 -0
- data/vendor/imagesize-0.1.1/test/2-4-7.png +0 -0
- data/vendor/imagesize-0.1.1/test/4_1_2.gif +0 -0
- data/vendor/imagesize-0.1.1/test/bmp.bmp +0 -0
- data/vendor/imagesize-0.1.1/test/cursor.xbm +6 -0
- data/vendor/imagesize-0.1.1/test/detect.swf +0 -0
- data/vendor/imagesize-0.1.1/test/pbm.pbm +0 -0
- data/vendor/imagesize-0.1.1/test/pcx.pcx +0 -0
- data/vendor/imagesize-0.1.1/test/pgm.pgm +5 -0
- data/vendor/imagesize-0.1.1/test/test.xpm +38 -0
- data/vendor/imagesize-0.1.1/test/test_helper.rb +2 -0
- data/vendor/imagesize-0.1.1/test/test_image_size.rb +71 -0
- data/vendor/imagesize-0.1.1/test/tiff.tiff +0 -0
- data/vendor/imagesize-0.1.1/test/tokyo_tower.jpg +0 -0
- data/vendor/imagesize-0.1.1/test/tower_e.gif.psd +0 -0
- data/vendor/jasmine-jquery-1.4.2/jasmine-jquery.js +548 -0
- data/vendor/jquery-1.8/jquery.js +9227 -0
- data/vendor/rdtool-0.6.38/COPYING.txt +339 -0
- data/vendor/rdtool-0.6.38/Gemfile +3 -0
- data/vendor/rdtool-0.6.38/HISTORY +318 -0
- data/vendor/rdtool-0.6.38/LGPL-2.1 +502 -0
- data/vendor/rdtool-0.6.38/LICENSE.txt +58 -0
- data/vendor/rdtool-0.6.38/README.html +66 -0
- data/vendor/rdtool-0.6.38/README.ja.html +73 -0
- data/vendor/rdtool-0.6.38/README.rd +76 -0
- data/vendor/rdtool-0.6.38/README.rd.ja +85 -0
- data/vendor/rdtool-0.6.38/Rakefile +152 -0
- data/vendor/rdtool-0.6.38/TODO +22 -0
- data/vendor/rdtool-0.6.38/bin/rd2 +283 -0
- data/vendor/rdtool-0.6.38/bin/rdswap.rb +207 -0
- data/vendor/rdtool-0.6.38/doc/rd-draft.html +456 -0
- data/vendor/rdtool-0.6.38/doc/rd-draft.ja.html +466 -0
- data/vendor/rdtool-0.6.38/doc/rd-draft.rd +479 -0
- data/vendor/rdtool-0.6.38/doc/rd-draft.rd.ja +487 -0
- data/vendor/rdtool-0.6.38/lib/rd/block-element.rb +114 -0
- data/vendor/rdtool-0.6.38/lib/rd/complex-list-item.rb +65 -0
- data/vendor/rdtool-0.6.38/lib/rd/desclist.rb +55 -0
- data/vendor/rdtool-0.6.38/lib/rd/document-struct.rb +46 -0
- data/vendor/rdtool-0.6.38/lib/rd/dot.rd2rc +18 -0
- data/vendor/rdtool-0.6.38/lib/rd/element.rb +160 -0
- data/vendor/rdtool-0.6.38/lib/rd/filter.rb +255 -0
- data/vendor/rdtool-0.6.38/lib/rd/head-filter.rb +14 -0
- data/vendor/rdtool-0.6.38/lib/rd/inline-element.rb +233 -0
- data/vendor/rdtool-0.6.38/lib/rd/labeled-element.rb +14 -0
- data/vendor/rdtool-0.6.38/lib/rd/list.rb +57 -0
- data/vendor/rdtool-0.6.38/lib/rd/loose-struct.rb +11 -0
- data/vendor/rdtool-0.6.38/lib/rd/methodlist.rb +57 -0
- data/vendor/rdtool-0.6.38/lib/rd/output-format-visitor.rb +30 -0
- data/vendor/rdtool-0.6.38/lib/rd/package.rb +4 -0
- data/vendor/rdtool-0.6.38/lib/rd/parser-util.rb +14 -0
- data/vendor/rdtool-0.6.38/lib/rd/post-install +1 -0
- data/vendor/rdtool-0.6.38/lib/rd/pre-setup.rb +18 -0
- data/vendor/rdtool-0.6.38/lib/rd/rbl-file.rb +69 -0
- data/vendor/rdtool-0.6.38/lib/rd/rbl-suite.rb +37 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd-struct.rb +86 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2html-ext-lib.rb +266 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2html-ext-opt.rb +34 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2html-lib.rb +490 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2html-opt.rb +67 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2man-lib.rb +251 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2rdo-lib.rb +19 -0
- data/vendor/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb +32 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdblockparser.ry +518 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdblockparser.tab.rb +1061 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdfmt.rb +15 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdinlineparser.ry +503 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdinlineparser.tab.rb +1243 -0
- data/vendor/rdtool-0.6.38/lib/rd/rdvisitor.rb +214 -0
- data/vendor/rdtool-0.6.38/lib/rd/reference-resolver.rb +114 -0
- data/vendor/rdtool-0.6.38/lib/rd/search-file.rb +14 -0
- data/vendor/rdtool-0.6.38/lib/rd/tree.rb +103 -0
- data/vendor/rdtool-0.6.38/lib/rd/version.rb +41 -0
- data/vendor/rdtool-0.6.38/lib/rd/visitor.rb +86 -0
- data/vendor/rdtool-0.6.38/rdtool.gemspec +125 -0
- data/vendor/rdtool-0.6.38/setup.rb +1596 -0
- data/vendor/rdtool-0.6.38/test/data/includee1.html +1 -0
- data/vendor/rdtool-0.6.38/test/data/includee2.html +1 -0
- data/vendor/rdtool-0.6.38/test/data/includee3.nothtml +1 -0
- data/vendor/rdtool-0.6.38/test/data/includee4.xhtml +0 -0
- data/vendor/rdtool-0.6.38/test/data/label.rbl +2 -0
- data/vendor/rdtool-0.6.38/test/data/label2.rbl +2 -0
- data/vendor/rdtool-0.6.38/test/data/sub/includee2.html +1 -0
- data/vendor/rdtool-0.6.38/test/data/sub/includee4.html +0 -0
- data/vendor/rdtool-0.6.38/test/dummy-observer.rb +6 -0
- data/vendor/rdtool-0.6.38/test/dummy.rb +33 -0
- data/vendor/rdtool-0.6.38/test/temp-dir.rb +19 -0
- data/vendor/rdtool-0.6.38/test/test-block-parser.rb +46 -0
- data/vendor/rdtool-0.6.38/test/test-desclist-item.rb +219 -0
- data/vendor/rdtool-0.6.38/test/test-document-element.rb +46 -0
- data/vendor/rdtool-0.6.38/test/test-document-struct.rb +66 -0
- data/vendor/rdtool-0.6.38/test/test-element.rb +46 -0
- data/vendor/rdtool-0.6.38/test/test-headline.rb +80 -0
- data/vendor/rdtool-0.6.38/test/test-inline-parser.rb +46 -0
- data/vendor/rdtool-0.6.38/test/test-list-item.rb +54 -0
- data/vendor/rdtool-0.6.38/test/test-list.rb +53 -0
- data/vendor/rdtool-0.6.38/test/test-methodlist-item.rb +73 -0
- data/vendor/rdtool-0.6.38/test/test-nonterminal-element.rb +170 -0
- data/vendor/rdtool-0.6.38/test/test-nonterminal-inline.rb +33 -0
- data/vendor/rdtool-0.6.38/test/test-output-format-visitor.rb +48 -0
- data/vendor/rdtool-0.6.38/test/test-parser-util.rb +41 -0
- data/vendor/rdtool-0.6.38/test/test-rbl-file.rb +156 -0
- data/vendor/rdtool-0.6.38/test/test-rbl-suite.rb +43 -0
- data/vendor/rdtool-0.6.38/test/test-rd2html-lib.rb +496 -0
- data/vendor/rdtool-0.6.38/test/test-rdtree.rb +17 -0
- data/vendor/rdtool-0.6.38/test/test-rdvisitor.rb +29 -0
- data/vendor/rdtool-0.6.38/test/test-reference-resolver.rb +202 -0
- data/vendor/rdtool-0.6.38/test/test-reference.rb +132 -0
- data/vendor/rdtool-0.6.38/test/test-search-file.rb +22 -0
- data/vendor/rdtool-0.6.38/test/test-terminal-inline.rb +41 -0
- data/vendor/rdtool-0.6.38/test/test-textblock.rb +44 -0
- data/vendor/rdtool-0.6.38/test/test-tree.rb +82 -0
- data/vendor/rdtool-0.6.38/test/test-version.rb +57 -0
- data/vendor/rdtool-0.6.38/test/test-visitor.rb +230 -0
- data/vendor/rdtool-0.6.38/utils/rd-mode.el +464 -0
- metadata +666 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
# -*- coding: utf-8; -*-
|
2
|
+
#
|
3
|
+
# 05referer.rb: English resource of referer plugin
|
4
|
+
#
|
5
|
+
# Copyright (C) 2006, TADA Tadashi <t@tdtds.jp>
|
6
|
+
# You can redistribute it and/or modify it under GPL2.
|
7
|
+
#
|
8
|
+
|
9
|
+
def referer_today; "Today's Links"; end
|
10
|
+
def volatile_referer; "Links to old diaries"; end
|
11
|
+
|
12
|
+
def label_no_referer; "Today's Links Excluding List"; end
|
13
|
+
def label_only_volatile; "Volatile Links List"; end
|
14
|
+
def label_referer_table; "Today's Links Conversion Rule"; end
|
15
|
+
|
16
|
+
def nyear_diary_label(date, years); "my old days"; end
|
17
|
+
def nyear_diary_title(date, years); "same days in past"; end
|
18
|
+
|
19
|
+
add_conf_proc( 'referer', "Today's Link", 'referer' ) do
|
20
|
+
saveconf_referer
|
21
|
+
|
22
|
+
<<-HTML
|
23
|
+
<h3 class="subtitle">Show links</h3>
|
24
|
+
#{"<p>Select show or hide about Today's Link</p>" unless @cgi.mobile_agent?}
|
25
|
+
<p><select name="show_referer">
|
26
|
+
<option value="true"#{" selected" if @conf.show_referer}>Show</option>
|
27
|
+
<option value="false"#{" selected" unless @conf.show_referer}>Hide</option>
|
28
|
+
</select></p>
|
29
|
+
<h3 class="subtitle">#{label_no_referer}</h3>
|
30
|
+
#{"<p>List of excluding URL that is not recorded to Today's Link. Specify it in regular expression, and a URL into a line.</p>" unless @cgi.mobile_agent?}
|
31
|
+
<p>See <a href="#{h @conf.update}?referer=no" target="referer">Default configuration is here</a>.</p>
|
32
|
+
<p><textarea name="no_referer" cols="60" rows="10">#{h @conf.no_referer2.join( "\n" )}</textarea></p>
|
33
|
+
<h3 class="subtitle">#{label_only_volatile}</h3>
|
34
|
+
#{"<p>List of URLs recorded to only volatile lists. This list will be clear when update diary in new day. Specify it in regular expression, and a URL into a line.</p>" unless @cgi.mobile_agent?}
|
35
|
+
<p>See <a href="#{h @conf.update}?referer=volatile" target="referer">Default configuration is here</a>.</p>
|
36
|
+
<p><textarea name="only_volatile" cols="60" rows="10">#{h @conf.only_volatile2.join( "\n" )}</textarea></p>
|
37
|
+
<h3 class="subtitle">#{label_referer_table}</h3>
|
38
|
+
#{"<p>A table to convert URL to words in Today's Link. Specify it in regular expression, and a URL into a line.<p>" unless @cgi.mobile_agent?}
|
39
|
+
<p>See <a href="#{h @conf.update}?referer=table" target="referer">Default configurations</a>.</p>
|
40
|
+
<p><textarea name="referer_table" cols="60" rows="10">#{h @conf.referer_table2.collect{|a|a.join( " " )}.join( "\n" )}</textarea></p>
|
41
|
+
HTML
|
42
|
+
end
|
43
|
+
|
44
|
+
# Local Variables:
|
45
|
+
# mode: ruby
|
46
|
+
# indent-tabs-mode: t
|
47
|
+
# tab-width: 3
|
48
|
+
# ruby-indent-level: 3
|
49
|
+
# End:
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# -*- coding: utf-8; -*-
|
2
|
+
#
|
3
|
+
# en/10spamfilter.rb: resource of en
|
4
|
+
#
|
5
|
+
|
6
|
+
@spamfilter_label_conf = 'spam filter'
|
7
|
+
@dnsblfilter_label_conf = 'DNSBL filter'
|
8
|
+
|
9
|
+
def spamfilter_conf_html
|
10
|
+
r = <<-HTML
|
11
|
+
<h3>Basic filters</h3>
|
12
|
+
<p>Which dou you want to do spam TSUKKOMI finally?<br>
|
13
|
+
<select name="spamfilter.filter_mode">
|
14
|
+
<option value="true"#{" selected" if @conf['spamfilter.filter_mode']}>hide</option>
|
15
|
+
<option value="false"#{" selected" unless @conf['spamfilter.filter_mode']}>dispose</option>
|
16
|
+
</select>
|
17
|
+
</p>
|
18
|
+
<p>It is spam when TSUKKOMI body has URIs over this value.<br>
|
19
|
+
<input type="text" name="spamfilter.max_uris" value="#{h @conf['spamfilter.max_uris']}" size="5"></p>
|
20
|
+
<p>It is spam when percentage of URI charctors in TSUKKOMI body is over this value.<br>
|
21
|
+
<input type="text" name="spamfilter.max_rate" value="#{h @conf['spamfilter.max_rate']}" size="5"></p>
|
22
|
+
<p>It is spam when TSUKKOMI body has URIs match with these patterns.<br>
|
23
|
+
<textarea name="spamfilter.bad_uri_patts" cols="60" rows="8">#{h( @conf['spamfilter.bad_uri_patts'] || '' )}</textarea></p>
|
24
|
+
<p>It is spam when TSUKKOMI body matches with these patterns.<br>
|
25
|
+
<textarea name="spamfilter.bad_comment_patts" cols="60" rows="8">#{h( @conf['spamfilter.bad_comment_patts'] || '' )}</textarea></p>
|
26
|
+
<p>It is spam when mail address matches with these patterns.<br>
|
27
|
+
<textarea name="spamfilter.bad_mail_patts" cols="60" rows="8">#{h( @conf['spamfilter.bad_mail_patts'] || '' )}</textarea></p>
|
28
|
+
<p>Use patterns of URI for checking mail address.<br>
|
29
|
+
<select name="spamfilter.bad_uri_patts_for_mails">
|
30
|
+
<option value="true"#{" selected" if @conf['spamfilter.bad_uri_patts_for_mails']}>ON</option>
|
31
|
+
<option value="false"#{" selected" unless @conf['spamfilter.bad_uri_patts_for_mails']}>OFF</option>
|
32
|
+
</select></p>
|
33
|
+
|
34
|
+
<h3>Date</h3>
|
35
|
+
<p>Javascript is used to display TSUKKOMI from into<br>
|
36
|
+
<input type="text" name="spamfilter.date_limit" value="#{h @conf['spamfilter.date_limit']}" size="5">days before (null: no limit, 0: only today)
|
37
|
+
</p>
|
38
|
+
|
39
|
+
<h3>IP address filters</h3>
|
40
|
+
<p>It is spam when sender IP address matches these patterns. You have to specify complete IP address or part of IP address ends by '.'.<br>
|
41
|
+
<textarea name="spamfilter.bad_ip_addrs" cols="60" rows="8">#{h( @conf['spamfilter.bad_ip_addrs'] || '' )}</textarea></p>
|
42
|
+
</p>
|
43
|
+
<h3>Description of TSUKKOMI</h3>
|
44
|
+
<p>Show messeges and spam conditions for your subscribers.<br><textarea name="comment_description" cols="70" rows="5">#{h comment_description}</textarea></p>
|
45
|
+
HTML
|
46
|
+
|
47
|
+
unless @conf.secure then
|
48
|
+
r << <<-HTML
|
49
|
+
<h3>for Debug</h3>
|
50
|
+
<p>Debug mode.<br>
|
51
|
+
<select name="filter.debug_mode">
|
52
|
+
<option value="0"#{" selected" if @conf['filter.debug_mode'] == 0}>OFF</option>
|
53
|
+
<option value="1"#{" selected" if @conf['filter.debug_mode'] == 1}>Only spam</option>
|
54
|
+
<option value="2"#{" selected" if @conf['filter.debug_mode'] == 2}>Full</option>
|
55
|
+
</select></p>
|
56
|
+
HTML
|
57
|
+
end
|
58
|
+
|
59
|
+
r
|
60
|
+
end
|
61
|
+
|
62
|
+
def dnsblfilter_conf_html
|
63
|
+
r = <<-HTML
|
64
|
+
<h3>Domain Blacklist Services</h3>
|
65
|
+
<p>List of IP based Domain Blacklist Services</p>
|
66
|
+
<p><textarea name="spamlookup.ip.list" cols="70" rows="5">#{h @conf['spamlookup.ip.list']}</textarea></p>
|
67
|
+
<p>List of Domain Blacklist Services</p>
|
68
|
+
<p><textarea name="spamlookup.domain.list" cols="70" rows="5">#{h @conf['spamlookup.domain.list']}</textarea></p>
|
69
|
+
<p>List of Safe Domain. Example for search engine.</p>
|
70
|
+
<p><textarea name="spamlookup.safe_domain.list" cols="70" rows="10">#{h @conf['spamlookup.safe_domain.list']}</textarea></p>
|
71
|
+
HTML
|
72
|
+
|
73
|
+
r
|
74
|
+
end
|
75
|
+
|
76
|
+
# Local Variables:
|
77
|
+
# mode: ruby
|
78
|
+
# indent-tabs-mode: t
|
79
|
+
# tab-width: 3
|
80
|
+
# ruby-indent-level: 3
|
81
|
+
# End:
|
data/plugin/en/50sp.rb
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# -*- coding: utf-8; -*-
|
2
|
+
# English resources of 50sp.rb
|
3
|
+
|
4
|
+
=begin
|
5
|
+
= Select-plugin plugin
|
6
|
+
|
7
|
+
== Abstract
|
8
|
+
Selects which plugin to be actually used.
|
9
|
+
|
10
|
+
== Usage
|
11
|
+
Put this file into the plugin/ directory.
|
12
|
+
|
13
|
+
Next, move the plugins you want to be optional into another directory.
|
14
|
+
In the example below, these plugins are assumed to be in
|
15
|
+
plugin/selectable directory.
|
16
|
+
|
17
|
+
Finally, edit the tdiary.conf file in the same directory as tdiary.rb
|
18
|
+
and add the following line:
|
19
|
+
@conf.options['sp.path'] = 'misc/plugin'
|
20
|
+
to indicate the directory you have put the optional plugins. It can be
|
21
|
+
an absolute path.
|
22
|
+
|
23
|
+
You can use this plugin in a secure diary.
|
24
|
+
|
25
|
+
== Options
|
26
|
+
:@conf.options['sp.path']
|
27
|
+
Directory name where the optional plugins are, relative from the
|
28
|
+
directory where tdiary.rb is or absolute.
|
29
|
+
|
30
|
+
:@conf.options['sp.usenew']
|
31
|
+
Define true if you want to the users to try a newly installed plugin.
|
32
|
+
Newly installed plugins are detected next time when the user configures
|
33
|
+
this plugin.
|
34
|
+
|
35
|
+
== Copyright notice
|
36
|
+
Copyright (C) 2003 zunda <zunda at freeshell.org>
|
37
|
+
|
38
|
+
Permission is granted for use, copying, modification, distribution, and
|
39
|
+
distribution of modified versions of this work under the terms of GPL
|
40
|
+
version 2 or later.
|
41
|
+
=end
|
42
|
+
|
43
|
+
@sp_label = 'Plugin selection'
|
44
|
+
@sp_label_description = '<p>Selects which plugins you want to use.</p>'
|
45
|
+
@sp_label_please_select = '<p>Please check the plugins you want to use. Each plugin filename is linked to its document. Please create or improve the document!</p>'
|
46
|
+
@sp_label_new = '<h3>New! Give it a try.</h3>'
|
47
|
+
@sp_label_used = '<h3>Being used</h3>'
|
48
|
+
@sp_label_notused = '<h3>Currently not used</h3>'
|
49
|
+
@sp_label_noplugin = '<p>There is no optional plugins.</p>'
|
50
|
+
|
51
|
+
# Local Variables:
|
52
|
+
# mode: ruby
|
53
|
+
# indent-tabs-mode: t
|
54
|
+
# tab-width: 3
|
55
|
+
# ruby-indent-level: 3
|
56
|
+
# End:
|
data/plugin/en/60sf.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# -*- coding: utf-8; -*-
|
2
|
+
# English resources of 60sf.rb
|
3
|
+
# Based on English resources of 50sp.rb Revision: 1.2
|
4
|
+
# Modified by KURODA Hiraku
|
5
|
+
|
6
|
+
=begin
|
7
|
+
= Select-spamfilter plugin
|
8
|
+
|
9
|
+
== Abstract
|
10
|
+
Selects which filter to be actually used.
|
11
|
+
|
12
|
+
== Usage
|
13
|
+
Put this file into the plugin/ directory.
|
14
|
+
|
15
|
+
Next, move the filterss you want to be optional into another directory.
|
16
|
+
In the example below, these filters are assumed to be in
|
17
|
+
filter/selectable directory.
|
18
|
+
|
19
|
+
Finally, edit the tdiary.conf file in the same directory as tdiary.rb
|
20
|
+
and add the following line:
|
21
|
+
@conf.options['sf.path'] = 'misc/filter'
|
22
|
+
to indicate the directory you have put the optional filters. It can be
|
23
|
+
an absolute path.
|
24
|
+
|
25
|
+
== Options
|
26
|
+
:@conf.options['sf.path']
|
27
|
+
Directory name where the optional filters are, relative from the
|
28
|
+
directory where tdiary.rb is or absolute.
|
29
|
+
|
30
|
+
:@conf.options['sf.usenew']
|
31
|
+
Define true if you want to the users to try a newly installed filter.
|
32
|
+
Newly installed filters are detected next time when the user configures
|
33
|
+
this plugin.
|
34
|
+
|
35
|
+
== Copyright notice
|
36
|
+
Copyright (C) 2003 zunda <zunda at freeshell.org>
|
37
|
+
|
38
|
+
Permission is granted for use, copying, modification, distribution, and
|
39
|
+
distribution of modified versions of this work under the terms of GPL
|
40
|
+
version 2 or later.
|
41
|
+
|
42
|
+
Original version of these files is for selecting plugins.
|
43
|
+
Modifying for selecting filters is by KURODA Hiraku <hiraku at hinet.mydns.jp>
|
44
|
+
Feb. 2008
|
45
|
+
=end
|
46
|
+
|
47
|
+
@sf_label = 'Filter selection'
|
48
|
+
@sf_label_description = '<p>Selects which filters you want to use.</p>'
|
49
|
+
@sf_label_please_select = '<p>Please check the filters you want to use. Each filter filename is linked to its document. Please create or improve the document!</p>'
|
50
|
+
@sf_label_new = '<h3>New! Give it a try.</h3>'
|
51
|
+
@sf_label_used = '<h3>Being used</h3>'
|
52
|
+
@sf_label_notused = '<h3>Currently not used</h3>'
|
53
|
+
@sf_label_nofilter = '<p>There is no optional filters.</p>'
|
54
|
+
|
55
|
+
# Local Variables:
|
56
|
+
# mode: ruby
|
57
|
+
# indent-tabs-mode: t
|
58
|
+
# tab-width: 3
|
59
|
+
# ruby-indent-level: 3
|
60
|
+
# End:
|
@@ -0,0 +1,401 @@
|
|
1
|
+
# -*- coding: utf-8; -*-
|
2
|
+
#
|
3
|
+
# ja/00default.rb: Japanese resources of 00default.rb.
|
4
|
+
#
|
5
|
+
# Copyright (C) 2001-2005, TADA Tadashi <t@tdtds.jp>
|
6
|
+
# You can redistribute it and/or modify it under GPL2.
|
7
|
+
#
|
8
|
+
|
9
|
+
#
|
10
|
+
# header
|
11
|
+
#
|
12
|
+
def title_tag
|
13
|
+
r = "<title>#{h @conf.html_title}"
|
14
|
+
case @mode
|
15
|
+
when 'day', 'comment'
|
16
|
+
r << "(#{@date.strftime( '%Y-%m-%d' )})" if @date
|
17
|
+
when 'month'
|
18
|
+
r << "(#{@date.strftime( '%Y-%m' )})" if @date
|
19
|
+
when 'form'
|
20
|
+
r << '(追記)'
|
21
|
+
when 'edit'
|
22
|
+
r << '(編集)'
|
23
|
+
when 'preview'
|
24
|
+
r << '(プレビュー)'
|
25
|
+
when 'showcomment'
|
26
|
+
r << '(変更完了)'
|
27
|
+
when 'conf'
|
28
|
+
r << '(設定)'
|
29
|
+
when 'saveconf'
|
30
|
+
r << '(設定完了)'
|
31
|
+
when 'nyear'
|
32
|
+
years = @diaries.keys.map {|ymd| ymd.sub(/^\d{4}/, "")}
|
33
|
+
r << "(#{h @cgi.params['date'][0].sub( /^(\d\d)/, '\1-')}[#{nyear_diary_label @date, years}])" if @date
|
34
|
+
end
|
35
|
+
r << '</title>'
|
36
|
+
end
|
37
|
+
|
38
|
+
#
|
39
|
+
# TSUKKOMI mail
|
40
|
+
#
|
41
|
+
def comment_mail_mime( str )
|
42
|
+
require 'nkf'
|
43
|
+
NKF::nkf( "-j -m0 -f50", str ).lines.collect do |s|
|
44
|
+
%Q|=?ISO-2022-JP?B?#{[s.chomp].pack( 'm' ).gsub( /\n/, '' )}?=|
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def comment_mail_conf_label; 'ツッコミメール'; end
|
49
|
+
|
50
|
+
def comment_mail_basic_html
|
51
|
+
@conf['comment_mail.header'] = '' unless @conf['comment_mail.header']
|
52
|
+
@conf['comment_mail.receivers'] = '' unless @conf['comment_mail.receivers']
|
53
|
+
@conf['comment_mail.sendhidden'] = false unless @conf['comment_mail.sendhidden']
|
54
|
+
|
55
|
+
<<-HTML
|
56
|
+
<h3 class="subtitle">ツッコミメールを送る</h3>
|
57
|
+
#{"<p>ツッコミがあった時に、メールを送るかどうかを選択します。</p>" unless @cgi.mobile_agent?}
|
58
|
+
<p><select name="comment_mail.enable">
|
59
|
+
<option value="true"#{" selected" if @conf['comment_mail.enable']}>送る</option>
|
60
|
+
<option value="false"#{" selected" unless @conf['comment_mail.enable']}>送らない</option>
|
61
|
+
</select></p>
|
62
|
+
<h3 class="subtitle">送付先</h3>
|
63
|
+
#{"<p>メールの送付先を指定します。1行に1メールアドレスの形で、複数指定可能です。指定のない場合には、あなたのメールアドレスに送られます。</p>" unless @cgi.mobile_agent?}
|
64
|
+
<p><textarea name="comment_mail.receivers" cols="40" rows="3">#{h( @conf['comment_mail.receivers'].gsub( /[, ]+/, "\n") )}</textarea></p>
|
65
|
+
<h3 class="subtitle">メールヘッダ</h3>
|
66
|
+
#{"<p>メールのSubjectにつけるヘッダ文字列を指定します。振り分け等に便利なように指定します。実際のSubjectには「指定文字列:日付-1」のように、日付とコメント番号が付きます。ただし指定文字列中に、%に続く英字があった場合、それを日付フォーマット指定を見なします。つまり「日付」の部分は自動的に付加されなくなります(コメント番号は付加されます)。</p>" unless @cgi.mobile_agent?}
|
67
|
+
<p><input name="comment_mail.header" value="#{h @conf['comment_mail.header']}"></p>
|
68
|
+
<h3 class="subtitle">非表示ツッコミの扱い</h3>
|
69
|
+
#{"<p>フィルタの結果、最初から非表示にされたツッコミが記録されることがあります。この非表示のツッコミが来たときにもメールを発信するかどうかを選択します。</p>" unless @cgi.mobile_agent?}
|
70
|
+
<p><label for="comment_mail.sendhidden"><input type="checkbox" id="comment_mail.sendhidden" name="comment_mail.sendhidden" value="true"#{" checked" if @conf['comment_mail.sendhidden']}>非表示のツッコミでもメールを送る</label></p>
|
71
|
+
HTML
|
72
|
+
end
|
73
|
+
|
74
|
+
#
|
75
|
+
# link to HOWTO write diary
|
76
|
+
#
|
77
|
+
def style_howto
|
78
|
+
%Q|/<a href="http://docs.tdiary.org/ja/?#{h @conf.style}%A5%B9%A5%BF%A5%A4%A5%EB">書き方</a>|
|
79
|
+
end
|
80
|
+
|
81
|
+
#
|
82
|
+
# labels (normal)
|
83
|
+
#
|
84
|
+
def no_diary; "#{@date.strftime( @conf.date_format )}の日記はありません。"; end
|
85
|
+
def comment_today; '本日のツッコミ'; end
|
86
|
+
def comment_total( total ); "(全#{total}件)"; end
|
87
|
+
def comment_new; 'ツッコミを入れる'; end
|
88
|
+
def comment_description_default; 'ツッコミ・コメントがあればどうぞ! E-mailアドレスは公開されません。'; end
|
89
|
+
def comment_limit_label; '本日の日記はツッコミ数の制限を越えています。'; end
|
90
|
+
def comment_description_short; 'ツッコミ!!'; end
|
91
|
+
def comment_name_label; 'お名前'; end
|
92
|
+
def comment_name_label_short; '名前'; end
|
93
|
+
def comment_mail_label; 'E-mail'; end
|
94
|
+
def comment_mail_label_short; 'Mail'; end
|
95
|
+
def comment_body_label; 'コメント'; end
|
96
|
+
def comment_body_label_short; '本文'; end
|
97
|
+
def comment_submit_label; '投稿'; end
|
98
|
+
def comment_submit_label_short; '投稿'; end
|
99
|
+
def comment_date( time ); time.strftime( "(#{@conf.date_format} %H:%M)" ); end
|
100
|
+
def trackback_today; '本日のTrackBacks'; end
|
101
|
+
def trackback_total( total ); "(全#{total}件)"; end
|
102
|
+
|
103
|
+
def navi_index; 'トップ'; end
|
104
|
+
def navi_latest; '最新'; end
|
105
|
+
def navi_oldest; '最古'; end
|
106
|
+
def navi_update; "追記"; end
|
107
|
+
def navi_edit; "編集"; end
|
108
|
+
def navi_preference; "設定"; end
|
109
|
+
def navi_prev_diary(date); "前の日記(#{date.strftime(@conf.date_format)})"; end
|
110
|
+
def navi_next_diary(date); "次の日記(#{date.strftime(@conf.date_format)})"; end
|
111
|
+
def navi_prev_month; "前月"; end
|
112
|
+
def navi_next_month; "翌月"; end
|
113
|
+
def navi_prev_nyear(date); "前の日(#{date.strftime('%m-%d')})"; end
|
114
|
+
def navi_next_nyear(date); "次の日(#{date.strftime('%m-%d')})"; end
|
115
|
+
def navi_prev_ndays; "前#{@conf.latest_limit}日分"; end
|
116
|
+
def navi_next_ndays; "次#{@conf.latest_limit}日分"; end
|
117
|
+
|
118
|
+
def submit_label
|
119
|
+
if @mode == 'form' or @cgi.valid?( 'appendpreview' ) then
|
120
|
+
'追記'
|
121
|
+
else
|
122
|
+
'登録'
|
123
|
+
end
|
124
|
+
end
|
125
|
+
def preview_label; 'プレビュー'; end
|
126
|
+
|
127
|
+
def nyear_diary_label(date, years); "長年日記"; end
|
128
|
+
def nyear_diary_title(date, years); "長年日記"; end
|
129
|
+
|
130
|
+
#
|
131
|
+
# labels (for mobile)
|
132
|
+
#
|
133
|
+
def mobile_navi_latest; '最新'; end
|
134
|
+
def mobile_navi_update; "追記"; end
|
135
|
+
def mobile_navi_edit; "編集"; end
|
136
|
+
def mobile_navi_preference; "設定"; end
|
137
|
+
def mobile_navi_prev_diary; "前"; end
|
138
|
+
def mobile_navi_next_diary; "次"; end
|
139
|
+
def mobile_label_hidden_diary; 'この日は【非表示】です'; end
|
140
|
+
|
141
|
+
#
|
142
|
+
# category
|
143
|
+
#
|
144
|
+
def category_anchor(c); "[#{c}]"; end
|
145
|
+
|
146
|
+
#
|
147
|
+
# preferences (resources)
|
148
|
+
#
|
149
|
+
@conf_saving = '保存中……'
|
150
|
+
|
151
|
+
# genre labels
|
152
|
+
@conf_genre_label['basic'] = '基本'
|
153
|
+
@conf_genre_label['update'] = '更新'
|
154
|
+
@conf_genre_label['theme'] = 'テーマ'
|
155
|
+
@conf_genre_label['tsukkomi'] = 'ツッコミ'
|
156
|
+
@conf_genre_label['referer'] = 'リンク元'
|
157
|
+
@conf_genre_label['security'] = 'セキュリティ'
|
158
|
+
@conf_genre_label['etc'] = 'その他'
|
159
|
+
|
160
|
+
|
161
|
+
add_conf_proc( 'default', 'サイトの情報', 'basic' ) do
|
162
|
+
saveconf_default
|
163
|
+
@conf.description ||= ''
|
164
|
+
@conf.icon ||= ''
|
165
|
+
@conf.banner ||= ''
|
166
|
+
<<-HTML
|
167
|
+
<h3 class="subtitle">タイトル</h3>
|
168
|
+
#{"<p>HTMLの<title>タグ中および、モバイル端末からの参照時に使われるタイトルです。HTMLタグは使えません。</p>" unless @cgi.mobile_agent?}
|
169
|
+
<p><input name="html_title" value="#{h @conf.html_title}" size="50"></p>
|
170
|
+
|
171
|
+
<h3 class="subtitle">著者名</h3>
|
172
|
+
#{"<p>あなたの名前を指定します。HTMLヘッダ中に展開されます。</p>" unless @cgi.mobile_agent?}
|
173
|
+
<p><input name="author_name" value="#{h @conf.author_name}" size="40"></p>
|
174
|
+
|
175
|
+
<h3 class="subtitle">メールアドレス</h3>
|
176
|
+
#{"<p>あなたのメールアドレスを指定します。HTMLヘッダ中に展開されます。</p>" unless @cgi.mobile_agent?}
|
177
|
+
<p><input name="author_mail" value="#{h @conf.author_mail}" size="40"></p>
|
178
|
+
|
179
|
+
<h3 class="subtitle">トップページURL</h3>
|
180
|
+
#{"<p>日記よりも上位のコンテンツがあれば指定します。存在しない場合は何も入力しなくてかまいません。</p>" unless @cgi.mobile_agent?}
|
181
|
+
<p><input name="index_page" value="#{h @conf.index_page}" size="70"></p>
|
182
|
+
|
183
|
+
<h3 class="subtitle">日記のURL</h3>
|
184
|
+
#{"<p>日記のURLを指定します。このURLは、さまざまなプラグインで日記を指し示すために利用されるので、正しく一意なものを指定しましょう。</p>" unless @cgi.mobile_agent?}
|
185
|
+
#{"<p><strong>指定してある値と、現在アクセス中のURLが異なります。注意してください。</strong></p>" unless base_url == @cgi.base_url}
|
186
|
+
<p><input name="base_url" value="#{h base_url}" size="70"></p>
|
187
|
+
|
188
|
+
<h3 class="subtitle">日記の説明</h3>
|
189
|
+
#{"<p>この日記の簡単な説明を指定します。HTMLヘッダ中に展開されます。何も入力しなくてもかまいません。</p>" unless @cgi.mobile_agent?}
|
190
|
+
<p><input name="description" value="#{h @conf.description}" size="70"></p>
|
191
|
+
|
192
|
+
<h3 class="subtitle">サイトアイコン(favicon)</h3>
|
193
|
+
#{"<p>この日記を表す小さなアイコン画像(favicon)があればそのURLを指定します。HTMLヘッダ中に展開されます。何も入力しなくてもかまいません。</p>" unless @cgi.mobile_agent?}
|
194
|
+
<p><input name="icon" value="#{h @conf.icon}" size="70"></p>
|
195
|
+
|
196
|
+
<h3 class="subtitle">バナー画像</h3>
|
197
|
+
#{"<p>この日記を表す画像(バナー)があればそのURLを指定します。makerssプラグインなどでRSSを出力する場合などに使われます。何も入力しなくてもかまいません。</p>" unless @cgi.mobile_agent?}
|
198
|
+
<p><input name="banner" value="#{h @conf.banner}" size="70"></p>
|
199
|
+
|
200
|
+
<h3 class="subtitle">フレーム内表示</h3>
|
201
|
+
#{"<p>日記全体をフレーム内にくるんで表示することを許可します。</p>" unless @cgi.mobile_agent?}
|
202
|
+
<p><select name="x_frame_options">
|
203
|
+
<option value=""#{" selected" unless @conf.x_frame_options}>許可する</option>
|
204
|
+
<option value="SAMEORIGIN"#{" selected" if @conf.x_frame_options == 'SAMEORIGIN'}>同一ドメインなら許可する</option>
|
205
|
+
<option value="DENY"#{" selected" if @conf.x_frame_options == 'DENY'}>禁止する</option>
|
206
|
+
</select></p>
|
207
|
+
HTML
|
208
|
+
end
|
209
|
+
|
210
|
+
add_conf_proc( 'header', 'ヘッダ・フッタ', 'basic' ) do
|
211
|
+
saveconf_header
|
212
|
+
|
213
|
+
<<-HTML
|
214
|
+
<h3 class="subtitle">ヘッダ</h3>
|
215
|
+
#{"<p>日記の先頭に挿入される文章を指定します。HTMLタグが使えます。「<%=navi%>」で、ナビゲーションボタンを挿入できます(これがないと更新ができなくなるので削除しないようにしてください)。また、「<%=calendar%>」でカレンダーを挿入できます。その他、各種プラグインを記述できます。</p>" unless @cgi.mobile_agent?}
|
216
|
+
<p><textarea name="header" cols="70" rows="10">#{h @conf.header}</textarea></p>
|
217
|
+
<h3 class="subtitle">フッタ</h3>
|
218
|
+
#{"<p>日記の最後に挿入される文章を指定します。ヘッダと同様に指定できます。</p>" unless @cgi.mobile_agent?}
|
219
|
+
<p><textarea name="footer" cols="70" rows="10">#{h @conf.footer}</textarea></p>
|
220
|
+
HTML
|
221
|
+
end
|
222
|
+
|
223
|
+
add_conf_proc( 'display', '表示一般', 'basic' ) do
|
224
|
+
saveconf_display
|
225
|
+
|
226
|
+
<<-HTML
|
227
|
+
<h3 class="subtitle">セクションアンカー</h3>
|
228
|
+
#{"<p>日記のセクションの先頭(サブタイトルの行頭)に挿入される、リンク用のアンカー文字列を指定します。なお「<span class=\"sanchor\">_</span>」を指定すると、テーマによっては自動的に画像アンカーがつくようになります。</p>" unless @cgi.mobile_agent?}
|
229
|
+
<p><input name="section_anchor" value="#{h @conf.section_anchor}" size="40"></p>
|
230
|
+
<h3 class="subtitle">ツッコミアンカー</h3>
|
231
|
+
#{"<p>読者からのツッコミの先頭に挿入される、リンク用のアンカー文字列を指定します。なお「<span class=\"canchor\">_</span>」を指定すると、テーマによっては自動的に画像アンカーがつくようになります。</p>" unless @cgi.mobile_agent?}
|
232
|
+
<p><input name="comment_anchor" value="#{h @conf.comment_anchor}" size="40"></p>
|
233
|
+
<h3 class="subtitle">日付フォーマット</h3>
|
234
|
+
#{"<p>日付の表示部分に使われるフォーマットを指定します。任意の文字が使えますが、「%」で始まる英字には次のような特殊な意味があります。「%Y」(西暦年)、「%m」(月数値)、「%b」(短月名)、「%B」(長月名)、「%d」(日)、「%a」(短曜日名)、「%A」(長曜日名)。</p>" unless @cgi.mobile_agent?}
|
235
|
+
<p><input name="date_format" value="#{h @conf.date_format}" size="30"></p>
|
236
|
+
<h3 class="subtitle">最新表示の最大日数</h3>
|
237
|
+
#{"<p>最新の日記を表示するときに、そのページ内に何日分の日記を表示するかを指定します。</p>" unless @cgi.mobile_agent?}
|
238
|
+
<p>最大<input name="latest_limit" value="#{h @conf.latest_limit}" size="2">日分</p>
|
239
|
+
<h3 class="subtitle">長年日記の表示</h3>
|
240
|
+
#{"<p>長年日記を表示するためのリンクを表示するかどうかを指定します。</p>" unless @cgi.mobile_agent?}
|
241
|
+
<p><select name="show_nyear">
|
242
|
+
<option value="true"#{" selected" if @conf.show_nyear}>表示</option>
|
243
|
+
<option value="false"#{" selected" unless @conf.show_nyear}>非表示</option>
|
244
|
+
</select></p>
|
245
|
+
HTML
|
246
|
+
end
|
247
|
+
|
248
|
+
add_conf_proc( 'timezone', '時差調整', 'update' ) do
|
249
|
+
saveconf_timezone
|
250
|
+
|
251
|
+
<<-HTML
|
252
|
+
<h3 class="subtitle">時差調整</h3>
|
253
|
+
#{"<p>更新時、フォームに挿入される日付を時間単位で調整できます。例えば午前2時までは前日として扱いたい場合には「-2」のように指定することで、2時間分引かれた日付が挿入されるようになります。また、この日付はWebサーバ上の時刻になっているので、海外のサーバで運営している場合の時差調整にも利用できます。</p>" unless @cgi.mobile_agent?}
|
254
|
+
<p><input name="hour_offset" value="#{h @conf.hour_offset}" size="5"></p>
|
255
|
+
HTML
|
256
|
+
end
|
257
|
+
|
258
|
+
@theme_location_comment = "<p>ここにないテーマは<a href=\"http://www.tdiary.org/20021001.html\">テーマ・ギャラリー</a>から入手できます。</p>"
|
259
|
+
@theme_thumbnail_label = "サムネイル"
|
260
|
+
|
261
|
+
add_conf_proc( 'theme', 'テーマ選択', 'theme' ) do
|
262
|
+
saveconf_theme
|
263
|
+
|
264
|
+
r = <<-HTML
|
265
|
+
<h3 class="subtitle">テーマの指定</h3>
|
266
|
+
#{"<p>日記のデザインをテーマ、もしくはCSSの直接入力で指定します。ドロップダウンメニューから「CSS指定→」を選択した場合には、右の欄にCSSのURLを入力してください。</p>" unless @cgi.mobile_agent?}
|
267
|
+
<p>
|
268
|
+
<select name="theme" onChange="changeTheme( theme_thumbnail, this )">
|
269
|
+
<option value="">CSS指定→</option>
|
270
|
+
HTML
|
271
|
+
r << conf_theme_list
|
272
|
+
end
|
273
|
+
|
274
|
+
add_conf_proc( 'comment', 'ツッコミ', 'tsukkomi' ) do
|
275
|
+
saveconf_comment
|
276
|
+
|
277
|
+
<<-HTML
|
278
|
+
<h3 class="subtitle">ツッコミの表示</h3>
|
279
|
+
#{"<p>読者からのツッコミを表示するかどうかを指定します。</p>" unless @cgi.mobile_agent?}
|
280
|
+
<p><select name="show_comment">
|
281
|
+
<option value="true"#{" selected" if @conf.show_comment}>表示</option>
|
282
|
+
<option value="false"#{" selected" unless @conf.show_comment}>非表示</option>
|
283
|
+
</select></p>
|
284
|
+
<h3 class="subtitle">ツッコミリスト表示数</h3>
|
285
|
+
#{"<p>最新もしくは月別表示時に表示する、ツッコミの最大件数を指定します。なお、日別表示時にはここの指定にかかわらずすべてのツッコミが表示されます。</p>" unless @cgi.mobile_agent?}
|
286
|
+
<p>最大<input name="comment_limit" value="#{h @conf.comment_limit}" size="3">件</p>
|
287
|
+
<h3 class="subtitle">1日あたりのツッコミ最大数</h3>
|
288
|
+
#{"<p>1日に書き込めるツッコミの最大数を指定します。この数を超えると、ツッコミ用のフォームが非表示になります。なお、TrackBackプラグインを入れている場合には、ツッコミとTrackBackの合計がこの制限を受けます。</p>" unless @cgi.mobile_agent?}
|
289
|
+
<p>最大<input name="comment_limit_per_day" value="#{h @conf.comment_limit_per_day}" size="3">件</p>
|
290
|
+
HTML
|
291
|
+
end
|
292
|
+
|
293
|
+
add_conf_proc( 'csrf_protection', 'CSRF(乗っ取り)対策', 'security' ) do
|
294
|
+
err = saveconf_csrf_protection
|
295
|
+
errstr = ''
|
296
|
+
case err
|
297
|
+
when :param
|
298
|
+
errstr = '<p class="message">不正な組み合わせです。変更されませんでした。</p>'
|
299
|
+
when :key
|
300
|
+
errstr = '<p class="message">鍵が空です。変更されませんでした。</p>'
|
301
|
+
end
|
302
|
+
csrf_protection_method = @conf.options['csrf_protection_method'] || 1
|
303
|
+
csrf_protection_key = @conf.options['csrf_protection_key'] || ''
|
304
|
+
<<-HTML
|
305
|
+
#{errstr}
|
306
|
+
<p>クロスサイト・リクエストフォージェリ(CSRF)の対策手法を設定します。</p>
|
307
|
+
<p>CSRF攻撃は、悪意のある人間がWebページに罠を仕掛けます。
|
308
|
+
その罠を仕掛けたページをあなたが閲覧すると、あなたのブラウザは
|
309
|
+
tDiaryに偽の書き込み要求を送出してしまいます。あなたのブラウザが
|
310
|
+
偽要求を送出してしまうため、暗号化・パスワード保護だけでは対策になりません。
|
311
|
+
tDiaryでは、この種の攻撃に対して、「Refererチェック」と「CSRFキー」という
|
312
|
+
2種類の防衛手段を用意しています。</p>
|
313
|
+
<div class="section">
|
314
|
+
<h3 class="subtitle">Refererチェックによる防衛</h3>
|
315
|
+
<h4>Refererの正当性の検査</h4>
|
316
|
+
<p>#{if [0,1,2,3].include?(csrf_protection_method) then
|
317
|
+
'<input type="checkbox" name="check_enabled2" value="true" checked disabled>
|
318
|
+
<input type="hidden" name="check_enabled" value="true">'
|
319
|
+
else
|
320
|
+
'<input type="checkbox" name="check_enabled" value="true">'
|
321
|
+
end}する(標準)
|
322
|
+
</p>
|
323
|
+
#{"<p>あなたのブラウザが送出するReferer(リンク元情報)を検査します。
|
324
|
+
書き込み要求が正しいページから送出されたことを確認することで、
|
325
|
+
偽ページからの要求を防ぎます。不正なページからの要求を検出した場合、
|
326
|
+
更新リクエストを拒否します。
|
327
|
+
この設定画面では、無効にすることは出来ません。</p>
|
328
|
+
" unless @cgi.mobile_agent?}
|
329
|
+
<h4>Refererを送出しないブラウザを拒否</h4>
|
330
|
+
<p><input type="radio" name="check_referer" value="true" #{if [1,3].include?(csrf_protection_method) then " checked" end}>する(標準)
|
331
|
+
<input type="radio" name="check_referer" value="false" #{if [0,2].include?(csrf_protection_method) then " checked" end}>しない
|
332
|
+
</p>
|
333
|
+
#{"<p>ブラウザからRefererが送られてこなかった場合の動作を指定します。</p>
|
334
|
+
<p>標準では、Refererが送出されない場合、不正なリクエストを
|
335
|
+
判別できないため、書き込み・設定変更を拒否します。
|
336
|
+
あなたのブラウザがRefererを送出しない設定の場合、
|
337
|
+
この設定が「する」になっていると、正規の書き込み要求も拒否してしまいます。
|
338
|
+
ブラウザを設定を変更しRefererを送出するようにしてください。
|
339
|
+
どうしてもRefererを送出する設定に出来ない場合、「しない」にしてください。
|
340
|
+
この場合、Refererが全く送出されなかった場合にも、
|
341
|
+
書き込み・設定変更を許すようになりますが、
|
342
|
+
CSRFによる攻撃と区別できなくなりますので、必ず次の「CSRF防止キー」の
|
343
|
+
設定と併用して下さい。</p>
|
344
|
+
</div>
|
345
|
+
" unless @cgi.mobile_agent?}
|
346
|
+
<div class="section">
|
347
|
+
<h3 class="subtitle">CSRF防止キーによる防衛</h3>
|
348
|
+
<h4>CSRF防止キーの検査</h4>
|
349
|
+
<p><input type="radio" name="check_key" value="true" #{if [2,3].include?(csrf_protection_method) then " checked" end}>する
|
350
|
+
<input type="radio" name="check_key" value="false" #{if [0,1].include?(csrf_protection_method) then " checked" end}>しない(標準)
|
351
|
+
</p>
|
352
|
+
#{"<p>書き込みフォームに偽装書き込み防止のためのキーを設定し、CSRFを防ぎます。
|
353
|
+
偽ページが秘密のキーを知らない限り、
|
354
|
+
偽の書き込み要求を生成することができなくなります。
|
355
|
+
この検査を「する」にすると、システムが鍵を自動的に生成、設定します。
|
356
|
+
上の設定と両方「しない」にすることはできません。</p>
|
357
|
+
<p>この設定を「する」にした場合、この機構に対応していない一部の
|
358
|
+
プラグインが動作しなくなることがあります。</p>
|
359
|
+
" unless @cgi.mobile_agent?}
|
360
|
+
#{"<p class=\"message\">注意:
|
361
|
+
あなたのブラウザは現在Refererを送出していないようです。
|
362
|
+
<a href=\"#{h @conf.update}?conf=csrf_protection\">このリンクからもう一回
|
363
|
+
このページを開いてみて下さい</a>。
|
364
|
+
それでもこのメッセージが出る状況では、この設定を変える場合、
|
365
|
+
一時的にRefererを送出する設定にするか、
|
366
|
+
直接tdiary.confを編集して下さい。</p>
|
367
|
+
" if [1,3].include?(csrf_protection_method) && ! @cgi.referer && !@cgi.valid?('referer_exists')}
|
368
|
+
</div>
|
369
|
+
HTML
|
370
|
+
end
|
371
|
+
|
372
|
+
add_conf_proc( 'logger', 'ログレベル選択', 'basic' ) do
|
373
|
+
saveconf_logger
|
374
|
+
|
375
|
+
r = <<-HTML
|
376
|
+
<h3 class="subtitle">ログレベルの設定</h3>
|
377
|
+
<p>tDiaryが出力するログレベルを指定します。spam フィルタのログ記録を利用する場合は INFO または DEBUG に指定して下さい。</p>
|
378
|
+
<p><select name="log_level">
|
379
|
+
HTML
|
380
|
+
r << conf_logger_list
|
381
|
+
end
|
382
|
+
|
383
|
+
add_conf_proc( 'recommendfilter', 'おすすめフィルタ', 'basic' ) do
|
384
|
+
saveconf_recommendfilter
|
385
|
+
|
386
|
+
<<-HTML
|
387
|
+
<h3>おすすめフィルタの利用</h3>
|
388
|
+
<p>spam 対策をtDiaryおすすめの設定に変更します。現在、設定されている内容を全て変更するので注意してください。</p>
|
389
|
+
<p>
|
390
|
+
<input type="checkbox" id="recommend.filter" name="recommend.filter" value="true">
|
391
|
+
<label for="recommend.filter">おすすめフィルタ設定にする</label>
|
392
|
+
</p>
|
393
|
+
HTML
|
394
|
+
end
|
395
|
+
|
396
|
+
# Local Variables:
|
397
|
+
# mode: ruby
|
398
|
+
# indent-tabs-mode: t
|
399
|
+
# tab-width: 3
|
400
|
+
# ruby-indent-level: 3
|
401
|
+
# End:
|