diff options
author | ahriman <ahriman@falte.red> | 2018-12-02 15:09:20 -0500 |
---|---|---|
committer | ahriman <ahriman@falte.red> | 2018-12-02 15:09:20 -0500 |
commit | 8d52251fd3f35d813fda090845fdfaa9ce2b5377 (patch) | |
tree | 2798d59a8f581ddd4913ba3d6c31510677361729 /submit.php | |
parent | 5b5afb12176437e977f210ee0bd1ed188f390611 (diff) | |
download | site-8d52251fd3f35d813fda090845fdfaa9ce2b5377.tar.gz |
Fixed user submit error, cleaned up code
Diffstat (limited to 'submit.php')
-rwxr-xr-x | submit.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/submit.php b/submit.php index b964d62..6a37e29 100755 --- a/submit.php +++ b/submit.php @@ -114,18 +114,8 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) { $email = $_REQUEST["email"]; $interest = $_REQUEST["interest"]; $sshkey = $_REQUEST["sshkey"]; -/* $data = sprintf("%s,%s,%s,%s\n", $_REQUEST["username"], $_REQUEST["email"], $_REQUEST["sshkey"], $_REQUEST["interest"]); - if (file_put_contents('newusers.csv', $data, FILE_APPEND) >= 1) { - echo '<br /><br /><div class="alert alert-success" role="alert"> - Success! I\'ll get back to you soon with login instructions. <a href="/">Back to tilde.institute home.</a> - </div>'; - } else { - echo '<br /><br /><div class="alert alert-danger" role="alert"> - Something went wrong. Please send an email to <a href="mailto:tilde.institute@protonmail.com">tilde.institute@protonmail.com</a> with details of what happened. - </div>'; - } - */ - $newuserfile = fopen("newusers.dat", "a"); + + $newuserfile = fopen("newusers.dat", "a"); fwrite($newuserfile, "$username $email \"$sshkey\"\n\n"); fclose($newuserfile); $fuzzyfile = fopen("fuzzies.log", "a"); |