diff options
author | unknown <Benjamin.Kellermann@gmx.de> | 2008-10-16 00:40:44 +0200 |
---|---|---|
committer | unknown <Benjamin.Kellermann@gmx.de> | 2008-10-16 00:40:44 +0200 |
commit | 5ed4f1b514b7f8f29714fcc7846a03237bf21ace (patch) | |
tree | d063decc2be4412edda5d605641946a349611fee /index.cgi | |
parent | 444946ec9b0f57bc7f85a6332076c4e4b75d8212 (diff) |
removed utf by default -> use __utf or utf cookie
Diffstat (limited to 'index.cgi')
-rwxr-xr-x | index.cgi | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -280,10 +280,6 @@ end if __FILE__ == $0 -YES = CGI.escapeHTML('✔') -NO = CGI.escapeHTML('✘') -MAYBE = CGI.escapeHTML('?') - CONTENTTYPE = "text/html; charset=utf-8" #CONTENTTYPE = "application/xhtml+xml; charset=utf-8" @@ -307,6 +303,19 @@ $cgi.params.each{|k,v| end } +if $cgi.include?("__utf") || $cgi.cookies["utf"][0] + YES = CGI.escapeHTML('✔') + NO = CGI.escapeHTML('✘') + MAYBE = CGI.escapeHTML('?') + BACK = CGI.escapeHTML("↩") +else + YES = CGI.escapeHTML('OK') + NO = CGI.escapeHTML('-') + MAYBE = CGI.escapeHTML('?') + BACK = CGI.escapeHTML("<-") +end + + if defined?(SITE) and File.exist?(SITE + ".yaml" ) and table = YAML::load_file(SITE + ".yaml") puts <<HEAD <head> @@ -317,7 +326,7 @@ if defined?(SITE) and File.exist?(SITE + ".yaml" ) and table = YAML::load_file(S </head> <body> <div> - <a href='.' style='text-decoration:none'>#{CGI.escapeHTML("↩")}</a> + <a href='.' style='text-decoration:none'>#{BACK}</a> </div> <h1>#{SITE}</h1> HEAD |