From 47988b9d4bccb0b6145e1d2cf7462879576f6521 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Fri, 20 Nov 2009 10:31:24 +0100 Subject: changed interface to many tabs --- index.cgi | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'index.cgi') diff --git a/index.cgi b/index.cgi index eedba17..d19bd74 100755 --- a/index.cgi +++ b/index.cgi @@ -40,11 +40,10 @@ if $cgi.include?("create_poll") Dir.chdir(SITE) VCS.init File.symlink("../participate.rb","index.cgi") - File.symlink("../atom.rb","atom.cgi") - File.symlink("../config_poll.rb","config.cgi") - File.symlink("../remove_poll.rb","remove.cgi") - ["index.cgi","atom.cgi","config.cgi","remove.cgi"].each{|f| - VCS.add(f) + VCS.add("index.cgi") + ["atom","customize", "history", "edit_columns","access_control", "delete_poll"].each{|f| + File.symlink("../#{f}.rb","#{f}.cgi") + VCS.add("#{f}.cgi") } ["data.yaml",".htaccess",".htdigest"].each{|f| File.open(f,"w").close @@ -61,13 +60,6 @@ if $cgi.include?("create_poll") end unless $html.header["status"] == "REDIRECT" - $html << < -
Config -#{UTFASCII} -
- -CHARSET $html << <Create New Poll -- cgit v1.2.3