From c40d983397b844cdc37cb039e64360952460e864 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Wed, 7 Oct 2009 23:18:26 +0200 Subject: mv jetzt aus ftools.rb --- remove_poll.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'remove_poll.rb') 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 += < The poll was deleted successfully! -- cgit v1.2.3