moved to /static to be deployed with the website
This commit is contained in:
parent
a219040cf0
commit
0203015048
84 changed files with 11727 additions and 24 deletions
|
|
@ -21,32 +21,11 @@ try {
|
|||
// Construct the message using the function from message.php
|
||||
$message = constructMessage();
|
||||
|
||||
$bot = false;
|
||||
|
||||
if (!empty(filter_input(INPUT_POST, 'verify_email'))) {
|
||||
// Es handelt sich wahrscheinlich um einen Bot
|
||||
$bot = true;
|
||||
}
|
||||
|
||||
// Überprüfe die Zeit, die für das Ausfüllen des Formulars benötigt wurde
|
||||
$timeSpent = filter_input(INPUT_POST, 'age', FILTER_VALIDATE_FLOAT);
|
||||
|
||||
// Setze plausiblen Mindestwert für die Zeit auf der Seite
|
||||
$minimumTime = 5.0;
|
||||
|
||||
if ($timeSpent !== null && $timeSpent < $minimumTime) {
|
||||
$subject = '$time: ' . $timeSpent . ' ' . $subject;
|
||||
$bot = true;
|
||||
}
|
||||
$bot = $_POST['tra'] ;
|
||||
|
||||
// Überprüfe, ob der Nutzer mit der Seite interagiert hat
|
||||
$userInteracted = filter_input(INPUT_POST, 'userInteracted');
|
||||
|
||||
if ($userInteracted === 'false') {
|
||||
$subject = '$userInteracted: ' . $userInteracted . ' ' . $subject;
|
||||
$bot = true;
|
||||
}
|
||||
|
||||
if ($bot) {
|
||||
// Es handelt sich wahrscheinlich um einen Bot
|
||||
$subject = 'Botverdacht - ' . $subject;
|
||||
|
|
@ -70,8 +49,8 @@ try {
|
|||
// Recipients
|
||||
$mail->setFrom($email, $name); // Sender address
|
||||
$mail->addAddress('ah@mediendesign-hnida.de', 'Andreas Hnida'); // Add recipient
|
||||
$mail->addAddress('bettina.rasberger@rabe-web.ch', 'Bettina Rasberger'); // Add another recipient
|
||||
$mail->addAddress('norbert.wagner@verua.ch'); // Add another recipient
|
||||
// $mail->addAddress('bettina.rasberger@rabe-web.ch', 'Bettina Rasberger'); // Add another recipient
|
||||
// $mail->addAddress('norbert.wagner@verua.ch'); // Add another recipient
|
||||
$mail->addReplyTo($email, $name); // Set reply address
|
||||
$mail->addBCC('ah@mediendesign-hnida.de'); // Add bounce email address as BCC
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue