From 8d52251fd3f35d813fda090845fdfaa9ce2b5377 Mon Sep 17 00:00:00 2001 From: ahriman Date: Sun, 2 Dec 2018 15:09:20 -0500 Subject: Fixed user submit error, cleaned up code --- submit.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'submit.php') 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 '

'; - } else { - echo '

'; - } - */ - $newuserfile = fopen("newusers.dat", "a"); + + $newuserfile = fopen("newusers.dat", "a"); fwrite($newuserfile, "$username $email \"$sshkey\"\n\n"); fclose($newuserfile); $fuzzyfile = fopen("fuzzies.log", "a"); -- cgit 1.4.1-2-gfad0