diff --git a/signup/index.php b/signup/index.php index 59110be..61fa5e0 100644 --- a/signup/index.php +++ b/signup/index.php @@ -2,6 +2,43 @@ $title = "sign up for the tilde.club!"; include __DIR__."/../header.php"; -

Sorry Signups are currently closed.

+function esc($v) { + return isset($_REQUEST[$v]) ? htmlspecialchars($_REQUEST[$v]) : ""; +} + +function isGmail($email) { + return substr(strrchr($email, "@"), 1) === 'gmail.com'; +} + +$gmailError = false; +if ($_SERVER['REQUEST_METHOD'] === 'POST') { + if (isGmail($_REQUEST['email'])) { + $gmailError = true; + } else { + // Process the form here only if the email is not a Gmail address + include 'signup-handler.php'; + } +} +?> + +
+ We don't accept Gmail addresses due to Google not allowing emails to go through due to a recent spam issue.
+ + +

sign up to join tilde.club

+ +
+
+
+ + +

Sorry Signups are currently closed. Come back soon!

+ + + + + +
+