Commit 9fa6882d authored by Laurence Sebastian Bowes's avatar Laurence Sebastian Bowes
Browse files

Make signup send one email, and fix some grammar that has been annoying me since I joined

parent 7ab02831
Loading
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ if (isset($_REQUEST['signupid']) && isset($_REQUEST['signuppw'])) {
                                mail(
                                    $error_email,
                                    "Signup Error",
                                    "User " . $fields['username'] . " already exists in the databse, THIS SHOULD NEVER HAPPEN\n Love the signup system.\n\nP.S. the signup id is: " . $signupid,
                                    "User " . $fields['username'] . " already exists in the database, THIS SHOULD NEVER HAPPEN\n Love, the signup system.\n\nP.S. the signup id is: " . $signupid,
                                    "From: \"SUCS Admin\" <admin@sucs.org>"
                                );
                                $failed = true;
@@ -251,16 +251,10 @@ if (isset($_REQUEST['signupid']) && isset($_REQUEST['signuppw'])) {
                                    if ($override) {
                                        $logsmessage .= "User " . $session->username . " overrode validation.\n";
                                    }
                                    $logsmessage .= "Love The Signup System";
                                    $logsmessage .= "Love, The Signup System";
                                    // DEV: CHANGE THIS EMAIL ADDRESS
                                    mail(
                                        "logs@sucs.org",
                                        "User '" . $fields['username'] . "' Created on SUCS",
                                        $logsmessage,
                                        "From: \"SUCS Admin\" <admin@sucs.org>"
                                    );
                                    mail(
                                        "treasurer@sucs.org",
                                        "logs@sucs.org,treasurer@sucs.org",
                                        "User '" . $fields['username'] . "' Created on SUCS",
                                        $logsmessage,
                                        "From: \"SUCS Admin\" <admin@sucs.org>"
@@ -335,7 +329,7 @@ if (isset($_REQUEST['signupid']) && isset($_REQUEST['signuppw'])) {
                        foreach ($errorreparray as $key => $value) {
                            $errorreport .= $key . ": " . $value . "\n";
                        }
                        $errorreport .= "\nLove from the Signup System";
                        $errorreport .= "\nLove, the Signup System";
                        mail(
                            $error_email,
                            "Signup system error report",