aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-04-18 08:52:02 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-04-18 08:52:02 +0200
commit451383433d842f4a6734573a37aaf9098dd245c7 (patch)
tree5c0f3fab84181c700cdebffe8b6251ec030bf033 /index.cgi
parente8a6206719edc70b0ce7257da5b34471f7f8e71f (diff)
complete change of configuration
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi16
1 files changed, 8 insertions, 8 deletions
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 => "<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