diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-20 10:31:24 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-20 10:31:24 +0100 |
commit | 47988b9d4bccb0b6145e1d2cf7462879576f6521 (patch) | |
tree | ecef7de7aaf995f544a3e711524c36ac1a2bfe46 /charset.rb | |
parent | c3d97c3944186d3ad08bcd50b496f3e64ebd8c3b (diff) |
changed interface to many tabs
Diffstat (limited to 'charset.rb')
-rw-r--r-- | charset.rb | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,7 +6,6 @@ if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") expiretime = Time.now+1*60*60*24*365 - UTFASCII = "<a href='?ascii' style='text-decoration:none'>Change Charset to plain ASCII</a>" YES = CGI.escapeHTML('✔') NO = CGI.escapeHTML('✘') @@ -22,7 +21,6 @@ if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") DELETE = CGI.escapeHTML("⌧") else expiretime = Time.now-1*60*60*24*36 - UTFASCII = "<a href='?utf' style='text-decoration:none'>If you see all these characters: #{CGI.escapeHTML('✔✘?–↞←→↠✍⌧')} you can safely change the charset to UTF-8</a>" YES = CGI.escapeHTML('OK') NO = CGI.escapeHTML('NO') @@ -37,4 +35,7 @@ else EDIT = CGI.escapeHTML("edit") DELETE = CGI.escapeHTML("delete") end + +UTFCHARS = [YES,NO,MAYBE,UNKNOWN,YEARBACK,MONTHBACK,MONTHFORWARD,YEARFORWARD,EDIT,DELETE] + $html.add_cookie("utf","true","/",expiretime) |