diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-02-26 17:52:04 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-02-26 17:52:04 +0100 |
commit | 8c5c4577125e8bfacb937eb1ed1fa122b76358ac (patch) | |
tree | 8cc14aeadb01a4d538abb489917245cdacc42e04 /form.cgi | |
parent | 97b06666b03a090904a9d7e74536cc466ecf43f7 (diff) |
Isolate build_path, and rename webroot_url → webroot.
Diffstat (limited to 'form.cgi')
-rwxr-xr-x | form.cgi | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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( |