diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-11-17 11:42:55 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-11-17 11:42:55 +0100 |
commit | cb09cd55424b21904d42c2bf2157907ad981e532 (patch) | |
tree | 3d36667fc3c52df960a529bdb5e108e3add36e4d /index.cgi | |
parent | 5ec5ec180cfdae140f459c167741dabcd94f755a (diff) |
added possibility to configure the system and outsourced bazaar specific things
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 |