summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-02-26 17:52:04 +0100
committerJonas Smedegaard <dr@jones.dk>2015-02-26 17:52:04 +0100
commit8c5c4577125e8bfacb937eb1ed1fa122b76358ac (patch)
tree8cc14aeadb01a4d538abb489917245cdacc42e04
parent97b06666b03a090904a9d7e74536cc466ecf43f7 (diff)
Isolate build_path, and rename webroot_url → webroot.
-rwxr-xr-xform.cgi11
1 files 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(