aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-11-17 11:42:55 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-11-17 11:42:55 +0100
commitcb09cd55424b21904d42c2bf2157907ad981e532 (patch)
tree3d36667fc3c52df960a529bdb5e108e3add36e4d /index.cgi
parent5ec5ec180cfdae140f459c167741dabcd94f755a (diff)
added possibility to configure the system and outsourced bazaar specific things
Diffstat (limited to '')
-rwxr-xr-xindex.cgi9
1 files changed, 5 insertions, 4 deletions
diff --git a/index.cgi b/index.cgi
index b3591ba..f8e67fe 100755
--- a/index.cgi
+++ b/index.cgi
@@ -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