Commit 39a5a728 authored by S. Zeid's avatar S. Zeid

GDPR

parent 1fe2abd4
......@@ -9,7 +9,7 @@ author:
url:
full-url: //s.zeid.me
default-scheme: https # only needed with protocol-relative {full-,}url
ganalytics: UA-382238-6 # Optional; uncomment to enable
ganalytics: # Optional; uncomment to enable
freecomment: # Free/libre comment system <https://code.s.zeid.me/freecomment>
enabled: True # Uncomment to enable
......
......@@ -9,20 +9,24 @@ require("config.php"); // hidden from directory listing
$result = array();
$show_form = false;
$coppa_checked = ($_POST["coppa"] == 1) ? ' checked="checked"' : "";
$gdpr_age_checked = ($_POST["gdpr-age"] == 1) ? ' checked="checked"' : "";
$consent_checked = ($_POST["consent"] == 1) ? ' checked="checked"' : "";
require("super-mailer-bros.php");
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (!$coppa_checked) {
if (!$gdpr_age_checked) {
?>
<p>
<strong>
You must be at least 13 years old to use this contact form.&nbsp;
You must be at least 16 years old to use this contact form.&nbsp;
</strong>
(<a href="https://en.wikipedia.org/wiki/COPPA" target="_blank">Why?</a>)
(<a href="https://gdpr-info.eu/art-8-gdpr/" target="_blank">Why?</a>)
</p>
<?php
} elseif (!$consent_checked) {
$result[] = "consent";
$show_form = true;
} else {
$subject = ($_POST["subject"]) ? $subject_prefix.$_POST["subject"] : "";
......
......@@ -2,7 +2,7 @@
layout: page
title: Contact
nav:
sort-key: /zzz/contact
sort-key: /yyy/contact
---
<?php
......@@ -11,6 +11,9 @@ require("form.php");
if ($show_form) {
?>
<a id="form"></a>
<blockquote>
<strong>
<a href="{% root %}/projects/appbackup/#ios-8-notice">
......@@ -26,15 +29,6 @@ if ($show_form) {
<strong>AppBackupGUI_</strong>, if there is one.
</p>
<p style="font-size: smaller;">
<b>Privacy policy:</b>&nbsp; I will not share your info with anyone
unless I need to in order to fulfill your request (or to receive it),
if I am required to by law, or if you tell me I can.&nbsp; I will see
everything you enter into this form, as well as your IP address, what
Web browser you're using, the address of the page from which you came,
and the date and time of your visit and of your message.
</p>
<p>All fields except the attachments field are required.</p>
<form action="{% root %}/contact/" method="post"
......@@ -64,6 +58,7 @@ if ($show_form) {
<option value="AppBackup">AppBackup (other)</option>
<option value="Other project">Other project</option>
<option value="Security issue">Security issue</option>
<option value="Personal information">Personal information</option>
<option value="General">General</option>
</select>
<?php if (in_array("subject", $result)) { ?>
......@@ -100,13 +95,30 @@ if ($show_form) {
</section>
<section>
<span></span>
<input type="checkbox" name="coppa" id="coppa" value="1"<?php
echo $coppa_checked; ?> />
<label for="coppa">
I am at least 13 years of age.
(<a href="https://en.wikipedia.org/wiki/COPPA" target="_blank">Why?</a>)
<input type="checkbox" name="gdpr-age" id="gdpr-age" value="1"<?php
echo $gdpr_age_checked; ?> />
<label for="gdpr-age">
I am at least 16 years of age.
(<a href="https://gdpr-info.eu/art-8-gdpr/" target="_blank">Why?</a>)
</label>
</section>
<section>
<span></span>
<input type="checkbox" name="consent" id="consent" value="1"<?php
echo $consent_checked; ?> />
<label for="consent">
I understand <a href="{% root %}/legal/privacy-policy/">the privacy
policy</a>, and I consent to you using my information to receive and answer
my message and for other reasons listed in the privacy policy.
</label>
<?php if (in_array("consent", $result)) { ?>
<p><strong>
You need to consent before I can receive your message or do
anything with it. Please read <a href="{% root %}/legal/privacy-policy/">the
privacy policy</a> before consenting.
</strong></p>
<?php } ?>
</section>
<section>
<span></span>
<input type="submit" name="submit" value="Send message" />
......
---
layout: subpage-list
title: Legal
nav:
sort-key: /zzz/legal
---
This diff is collapsed.
......@@ -5,7 +5,7 @@ nav:
url: http://more.s.zeid.me/
menu-title: More<script type="text/javascript" src="/more.js"></script>
target: _blank
sort-key: /zzz/more
sort-key: /yyy/more
---
menu entry for more.s.zeid.me
......@@ -2,7 +2,7 @@
layout: subpage-list
title: Source
nav:
sort-key: /zzz/source
sort-key: /yyy/source
---
This Web site is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment