diff --git a/layouts/partials/page-template.html b/layouts/partials/page-template.html index cb188f6..7bdf8eb 100644 --- a/layouts/partials/page-template.html +++ b/layouts/partials/page-template.html @@ -6,7 +6,7 @@
:BODY1:
-:BODY2:
+ :BODY2: Back diff --git a/static/cgi/sign.php b/static/cgi/sign.php index 36839c9..da66d77 100644 --- a/static/cgi/sign.php +++ b/static/cgi/sign.php @@ -9,7 +9,7 @@ $db = "../../signatures.json"; // Signature database path $action = isset($_GET['action']) ? $_GET['action'] : false; $honeypot = isset($_GET['url']) ? $_GET['url'] : false; -if (! empty($honeypot)) { +if (! empty($honeypot)) { // honeypot input field isn't empty $output .= "Invalid input. Error code: 5|°4m"; show_page($output, 1); } @@ -81,7 +81,7 @@ if ($action === "sign") { $codeid = $id + $codemod; // this is to obfuscate the real ID of the user if we don't want to publish this number // Append new signature to array - $newsig = array("id" => $id, + $$data[] = array("id" => $id, "name" => $name, "email" => $email, "country" => $country, @@ -91,7 +91,6 @@ if ($action === "sign") { "permPub" => $permPub, "code" => $code, "confirmed" => "no"); - $data[] = $newsig; // newsig is a separated variable for debugging purposes // Encode to JSON again and write to file $allsig = json_encode($data, JSON_PRETTY_PRINT); @@ -101,13 +100,14 @@ if ($action === "sign") { // Send email asking for confirmation $to = $email; $subject = "One step left to sign the \"Public Money - Public Code\" letter"; - $message = "Thank you for signing the open \"Public Money - Public Code\" letter! \r\n\r\n" . + $message = "Dear $name, \r\n\r\n" . + "Thank you for signing the open \"Public Money - Public Code\" letter! \r\n\r\n" . "In order to confirm your signature, please visit following link:\r\n" . "$selfurl?action=confirm&id=$codeid&code=$code \r\n\r\n" . "If your confirmation succeeds, your signature will appear on the website within the next few hours."; - $headers = "From: noreply@fsfe.org" . "\r\n" . - "Message-ID:This error could have happened because one or more fields contained invalid information. Please try again. If you think that you see this error by mistake, please contact us.
"; } else { $headline = "Thank you"; }