diff options
Diffstat (limited to 'index.cgi')
-rwxr-xr-x | index.cgi | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2,14 +2,12 @@ require "yaml" require "cgi" +load "config.rb" + if __FILE__ == $0 $cgi = CGI.new -TYPE = "text/html" -CHARSET = "utf-8" -#CONTENTTYPE = "application/xhtml+xml; charset=utf-8" - utfcookie = CGI::Cookie.new("utf", "true") utfcookie.path = "/" if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") @@ -54,6 +52,9 @@ else load "overview.rb" end +TYPE = "text/html" +#TYPE = "application/xhtml+xml" +CHARSET = "utf-8" $cgi.out("type" => TYPE ,"charset" => CHARSET,"cookie" => utfcookie, "Cache-Control" => "no-cache"){$htmlout} end |