t-r.de/content/php/unsubscribe.php

18 lines
369 B
PHP

<?php
function RemoveMemberfromDB($subscriberAddress) {
//FIXME
}
require("settings.php");
$email = isset($_GET['email']) ? SanitizeInputs($_GET['email']) : NULL;
if (isset($email)) {
$r = RemoveMemberfromDB($email);
if ($r) {
header('Location: /newsletter/unsubscribed.html');
} else {
header('Location: /newsletter/unsubscribe-error.html')
}
}
?>