From 8c5c4577125e8bfacb937eb1ed1fa122b76358ac Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 26 Feb 2015 17:52:04 +0100 Subject: Isolate build_path, and rename webroot_url → webroot. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- form.cgi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/form.cgi b/form.cgi index d4d7c4e..09de324 100755 --- a/form.cgi +++ b/form.cgi @@ -3,11 +3,12 @@ use CGI::FormBuilder; use utf8::all; +my $build_path = '../build'; + # TODO: check if protocol-agnostic URL works -my $webroot_url = 'http://byvandring.nu/feedback/'; -my $webroot_path = '/home/bynu/public_websites/byvandring.nu/feedback'; -my $req_path = $webroot_path . '/index.html'; -my $ack_path = $webroot_path . '/tak/index.html'; +my $webroot = 'http://byvandring.nu/feedback/'; +my $req_path = $build_path . '/html/feedback/index.html'; +my $ack_path = $build_path . '/html/feedback/tak/index.html'; # Set this to 1 for a separate confirmation page my ($confirm) = 1; @@ -34,7 +35,7 @@ my $form = CGI::FormBuilder->new( # /], messages => ':da_DK', submit => ['Send oplysningerne'], - action => $webroot_url, #avoids loosing submitted values when redirected from other site + action => $webroot, #avoids loosing submitted values when redirected from other site ); $form->field( -- cgit v1.2.3