tilde.team signup
< back
so you wanna join the tilde.team?
hi there. fill out this form and i'll get back to you with your account info.
please fill in your desired username"; if (strlen($name) > 32) $message .= "
username too long (32 character max)
"; if (preg_match("/([a-z_][a-z0-9_]{0,30})/", $name) != 1) $message .= "
username contains invalid characters (lowercase only)
"; if (posix_getpwnam($name)) $message .= "
sorry, the username $name is unavailable
"; // Check the e-mail address. $email = trim($_REQUEST["email"]); if ($email == "") $message .= "
please fill in your email address
"; else { $result = SMTP::MakeValidEmailAddress($_REQUEST["email"]); if (!$result["success"]) $message .= "
invalid email address: " . htmlspecialchars($result["error"]) . "
"; elseif ($result["email"] != $email) $message .= "
invalid email address. did you mean: " . htmlspecialchars($result["email"]) . "
"; } if ($message == "") { $headers = "From: {$_REQUEST["username"]} <{$_REQUEST["email"]}>\n"; $headers .= "Sender: www-data@tilde.team\n"; $headers .= "To: admin@tilde.team\n"; $headers .= "Reply-To: {$_REQUEST["email"]}\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $forwardmail = $_REQUEST["forward_email"] == "on" ? '
yes
' : "no"; $msgbody = "
New tilde.team signup
Desired username:
{$_REQUEST["username"]}
Contact email:
{$_REQUEST["email"]}
Reason:
{$_REQUEST["interest"]}
Forward mail?:
$forwardmail
SSH Key:
{$_REQUEST["sshkey"]}
"; if (mail('bharrismac@gmail.com', 'tilde.team signup', $msgbody, $headers)) { echo '
email sent! i\'ll get back to you soon with login instructions!
back to tilde.team home
'; } else { echo 'The email has failed! Send me a message manually at
ben@tilde.team
'; } } else { ?>
please correct the following errors:
=$message?>
your desired username (numbers and lowercase letters only, no spaces)
" type="text" required>
email to contact you with account info
" type="text" required>
name="forward_email"> forward mail sent to {{ username || 'username' }}@tilde.team to {{ email || 'this address' }}?
what interests you about tilde.team?
=$_REQUEST["interest"] ?? ""?>
SSH public key (optional)
=$_REQUEST["sshkey"] ?? ""?>
submit