From 451383433d842f4a6734573a37aaf9098dd245c7 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Mon, 18 Apr 2011 08:52:02 +0200 Subject: complete change of configuration --- index.cgi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'index.cgi') diff --git a/index.cgi b/index.cgi index c519d5d..72e7f26 100755 --- a/index.cgi +++ b/index.cgi @@ -22,12 +22,12 @@ if __FILE__ == $0 -if File.exists?("config.rb") +# if File.exists?("config.rb") require "dudle" -else - puts "\nPlease configure me in the file config.rb" - exit -end +# else +# puts "\nPlease configure me in the file config.rb" +# exit +# end $d = Dudle.new @@ -70,7 +70,7 @@ if $cgi.include?("create_poll") && $cgi.include?("poll_url") Dir.chdir("..") $d.html.header["status"] = "REDIRECT" $d.html.header["Cache-Control"] = "no-cache" - $d.html.header["Location"] = SITEURL + POLLURL + "/edit_columns.cgi" + $d.html.header["Location"] = $conf.siteurl + POLLURL + "/edit_columns.cgi" $d << _("The poll was created successfully. The link to your new poll is: %{link}") % {:link => "
#{POLLURL}"} end end @@ -114,7 +114,7 @@ unless $d.html.header["status"] == "REDIRECT" #{customaddrhintstr} - + CREATE @@ -133,7 +133,7 @@ NOTICE CREATE - $d << INDEXNOTICE + $d << $conf.indexnotice end $d.out -- cgit v1.2.3