seems email wasnt broken xD
This commit is contained in:
parent
3e6bf0a6e3
commit
e20a397678
|
@ -7,7 +7,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<!--#include file="nav" -->
|
||||
<b>ALL REGISTRATIONS ARE DISABLED UNTIL FURTHER NOTICE DUE TO MIGRATION OF EMAIL SERVER. PLEASE CONTACT AN <a href=/admins>ADMIN</a> FOR MORE INFORMATION</b>
|
||||
<!--<b>ALL REGISTRATIONS ARE DISABLED UNTIL FURTHER NOTICE DUE TO MIGRATION OF EMAIL SERVER. PLEASE CONTACT AN <a href=/admins>ADMIN</a> FOR MORE INFORMATION</b> -->
|
||||
<?php
|
||||
function sanitize($str) {
|
||||
$str = trim($str);
|
||||
|
@ -175,7 +175,7 @@
|
|||
if ($use_jitsi) $contents .= "~/bin/mkxuser " . escapeshellarg($username) . ' ' . escapeshellarg($password0) . " jitsi.vern.cc\n";
|
||||
if ($use_xmpp) $contents .= "~/bin/mkxuser " . escapeshellarg($username) . ' ' . escapeshellarg($password0) . " vern.cc\n";
|
||||
// if ($use_nextcloud) $contents .= "~/bin/mknuser " . escapeshellarg($username) . "\n";
|
||||
$contents .= "s-nail -vr 'www-data@vern.cc' -c cobra@vern.cc -c neopenk@vern.cc -c aryak@vern.cc -s 'Your ~vern account has been created' -M text/plain " . escapeshellarg($email) . " < <(printf 'Hello %s,\\nYour membership request on ~vern has been accepted.\\nYou can now SSH into vern.cc using the public key(s) that you supplied to ~vern.\\n\\nThank you for being a part of ~vern!' " . escapeshellarg($username) . ")\n";
|
||||
$contents .= "s-nail -vr 'register@vern.cc' -c cobra@vern.cc -c neopenk@vern.cc -c aryak@vern.cc -s 'Your ~vern account has been created' -M text/plain " . escapeshellarg($email) . " < <(printf 'Hello %s,\\nYour membership request on ~vern has been accepted.\\nYou can now SSH into vern.cc using the public key(s) that you supplied to ~vern.\\n\\nThank you for being a part of ~vern!' " . escapeshellarg($username) . ")\n";
|
||||
$contents .= "rm -f $0\n";
|
||||
|
||||
$filename = "/var/tmp/register/" . $username;
|
||||
|
@ -185,7 +185,7 @@
|
|||
fwrite($handle, $contents);
|
||||
fclose($handle);
|
||||
|
||||
$from = "www-data@vern.cc";
|
||||
$from = "register@vern.cc";
|
||||
$headers = "From: " . $from . "\n";
|
||||
$headers .= "MIME-Version: 1.0\n";
|
||||
$headers .= "Content-type: text/plain\n";
|
||||
|
|
Loading…
Reference in New Issue