aboutsummaryrefslogtreecommitdiff
path: root/remove_poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-10-07 23:18:26 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-10-07 23:18:26 +0200
commitc40d983397b844cdc37cb039e64360952460e864 (patch)
treeec16e1096d15cb20d5cd48b63dbe140ca84adc9c /remove_poll.rb
parentc527ee80f868e9652921d3c8155d0165bf3f1df4 (diff)
mv jetzt aus ftools.rb
Diffstat (limited to 'remove_poll.rb')
-rwxr-xr-xremove_poll.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/remove_poll.rb b/remove_poll.rb
index ea0b6ee..3938c69 100755
--- a/remove_poll.rb
+++ b/remove_poll.rb
@@ -14,6 +14,7 @@ QUESTIONS = ["Yes, I know what I am doing!",
CONFIRM = rand(QUESTIONS.size)
require "cgi"
+require "ftools"
if __FILE__ == $0
@@ -41,7 +42,7 @@ HEAD
if $cgi.include?("confirmnumber")
if $cgi["confirm"] == QUESTIONS[$cgi["confirmnumber"].to_i]
Dir.chdir("..")
- `mv #{POLL} /tmp/#{POLL}.#{rand(9999999)}`
+ File.move(POLL, "/tmp/#{POLL}.#{rand(9999999)}")
$htmlout += <<SUCCESS
<div>
The poll was deleted successfully!