aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-03-28 21:26:15 -0400
committerThedro Neely <thedroneely@gmail.com>2019-03-28 21:26:15 -0400
commitb0d69c99d668c61f87b24b2891ca50c6eda7a37a (patch)
tree35ba5f20552faa3799ab2caf60673f655331c26e /app/controllers
parentd79ee71389f9160f4cd82845917c4c41e7fde3f6 (diff)
downloadthedroneely.com-b0d69c99d668c61f87b24b2891ca50c6eda7a37a.tar.gz
thedroneely.com-b0d69c99d668c61f87b24b2891ca50c6eda7a37a.tar.bz2
thedroneely.com-b0d69c99d668c61f87b24b2891ca50c6eda7a37a.zip
app/controllers|views: Remove old controllers and views
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/mail.controller.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/app/controllers/mail.controller.php b/app/controllers/mail.controller.php
deleted file mode 100644
index ce593d6..0000000
--- a/app/controllers/mail.controller.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-use PHPMailer\PHPMailer\PHPMailer;
-use PHPMailer\PHPMailer\Exception;
-
-$form = new Form(
- $name = $_POST['26471'] ?? null,
- $email = $_POST['26472'] ?? null,
- $message = $_POST['26478'] ?? null
-);
-
-$validEmail = PHPMailer::validateAddress($email, 'auto');
-
-if ($validEmail === false ) {
- $mailError = 'Invalid email' . "\r" . '<em>'. $email . '</em>';
- include '../app/views/mail-error.view.php';
- return;
-}
-
-require '../app/views/mail-sent.view.php';
-
-fastcgi_finish_request();
-$form->isSubmit();
-
-$contact['database']->insert(
- 'contactform', [
- 'name' => $form->name,
- 'email' => $form->email,
- 'message' => $form->message,
- ]
-);