aboutsummaryrefslogtreecommitdiff
path: root/access_control.rb
diff options
context:
space:
mode:
Diffstat (limited to 'access_control.rb')
-rwxr-xr-xaccess_control.rb4
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"