diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-04-18 08:52:02 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-04-18 08:52:02 +0200 |
commit | 451383433d842f4a6734573a37aaf9098dd245c7 (patch) | |
tree | 5c0f3fab84181c700cdebffe8b6251ec030bf033 /index.cgi | |
parent | e8a6206719edc70b0ce7257da5b34471f7f8e71f (diff) |
complete change of configuration
Diffstat (limited to '')
-rwxr-xr-x | index.cgi | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 => "<br /><a href=\"#{POLLURL}\">#{POLLURL}</a>"} end end @@ -114,7 +114,7 @@ unless $d.html.header["status"] == "REDIRECT" <span class='hint'>#{customaddrhintstr}</span></td> </tr> <tr> - <td colspan='2'><label for="poll_url">#{SITEURL}</label><input id="poll_url" size='16' type='text' name='poll_url' value="#{CGI.escapeHTML($cgi["poll_url"])}" /> + <td colspan='2'><label for="poll_url">#{$conf.siteurl}</label><input id="poll_url" size='16' type='text' name='poll_url' value="#{CGI.escapeHTML($cgi["poll_url"])}" /> </td> </tr> CREATE @@ -133,7 +133,7 @@ NOTICE CREATE - $d << INDEXNOTICE + $d << $conf.indexnotice end $d.out |