diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-25 09:54:56 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-25 09:54:56 +0100 |
commit | a885e4d8b3842709c71e077ea991342c7f4aa814 (patch) | |
tree | a9910749064f8f3294d45f912c6f7093b31be480 /access_control.rb | |
parent | d36cdabf0a200fd774ec631e2374191443788f99 (diff) |
distinguish between title and url
Diffstat (limited to 'access_control.rb')
-rwxr-xr-x | access_control.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/access_control.rb b/access_control.rb index 65589b7..c1aea8a 100755 --- a/access_control.rb +++ b/access_control.rb @@ -29,9 +29,11 @@ olddir = File.expand_path(".") Dir.chdir("..") load "html.rb" load "config.rb" +require "poll" +require "yaml" Dir.chdir(olddir) -POLL = File.basename(File.expand_path(".")) +POLL = YAML::load_file("data.yaml").name $html = HTML.new("dudle - #{POLL} - Access Control Settings") $html.header["Cache-Control"] = "no-cache" |