diff options
-rwxr-xr-x | index.cgi | 2 | ||||
-rwxr-xr-x | participate.rb | 27 |
2 files changed, 3 insertions, 26 deletions
@@ -64,7 +64,7 @@ if $cgi.include?("create_poll") } Poll.new(SITE,$cgi["poll_type"]) Dir.chdir("..") - escapedsite = SITEURL + CGI.escapeHTML(CGI.escape(SITE)) + "/" + escapedsite = SITEURL + CGI.escapeHTML(CGI.escape(SITE)) + "/edit_columns.cgi" escapedsite.gsub!("+"," ") $html.header["status"] = "REDIRECT" $html.header["Location"] = escapedsite diff --git a/participate.rb b/participate.rb index 50150b6..6efca03 100755 --- a/participate.rb +++ b/participate.rb @@ -72,29 +72,7 @@ $html << <<HEAD HEAD # TABLE -if VCS.revno == 1 - $html << <<HINT -<h1>#{table.name}</h1> -<pre id='configwarning'> - . - .:;:. -.:;;;;;:. - ;;;;; - ;;;;; - ;;;;; - ;;;;; Please configure this poll - ;:;;; within the config tab! - ;;; : - ;:; - ;.: . - : . - . . - - . -</pre> -HINT -else - $html << <<TABLE +$html << <<TABLE <h1>#{table.name}</h1> <div id='polltable'> <form method='post' action='.'> @@ -103,8 +81,7 @@ else </div> TABLE - $html << table.comment_to_html -end +$html << table.comment_to_html $html << "</div></body>" |