<commit_before><?php include "base.php"; ?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
        <title>Gonzaga Small Talk</title>

        <!-- Bootstrap -->
        <link href="css/bootstrap.css" rel="stylesheet">
        
        <!-- Header File -->
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
        <script>
            $(function(){
                $("#header").load("header.html");
            });
        </script>
    </head>
    
    <body>
        <div id="main">
            <?php
                if(!empty($_POST['email']))
                {
                    $email = $_POST['email'];
                    
                        $subject = "Gonzaga Smalltalk ELC Password Reset";
                        $message = "<html>
                            <head>
                            <title>Password Reset</title>
                            </head>
                            <body>
                            <p>This email has been sent because you requested to have your password reset on the Gonzaga Smalltalk site. If you did not request to have your password changed, please disregard and delete this email.</p>
                            <p>Link to password reset form</p>
                            </body>
                            </html>";
                        $headers  = 'MIME-Version: 1.0' . "\r\n";
                        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
                        $headers .= 'To: ' . $email . "\r\n";
                        $headers .= 'From: <EMAIL>' . "\r\n";
                        if(mail($email, $subject, $message, $headers))
                        {
                            echo "<h1>Reset Email Sent</h1>";
                            echo "<p>A confirmation email has been sent to " . $email . ".  Please follow the instructions in the email to reset your password.</p>";
                        }
                        else
                        {
                            echo "<h1>Email Failed</h1>";
                            echo "<p>The confirmation email failed to send. <a href=\"resetpassword.php\">Please try again</a>.</p>";
                        }
                }
                else
                {
                    ?>             
                    <h1>Forgot Your Password?</h1>
                    <p>Please enter your email address.  An email will be sent with a link to reset your password.</p>
                    <form method="post" action="resetpassword.php" name="resetform" id="resetform">
                    <fieldset>
                        <label for="email">Email Address:</label><input type="text" name="email" id="email" /><br />
                        <input type="submit" name="reset" id="reset" id="reset" value="Send Email" />
                    </fieldset>
                    </form>         
                    <?php
                }
            ?>
        </div>
    </body>
</html><commit_msg>fixing whoopsie in test file redirects<commit_after><?php include "base.php"; ?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
        <title>Gonzaga Small Talk</title>

        <!-- Bootstrap -->
        <link href="css/bootstrap.css" rel="stylesheet">
        
        <!-- Header File -->
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
        <script>
            $(function(){
                $("#header").load("header.html");
            });
        </script>
    </head>
    
    <body>
        <div id="main">
            <?php
                if(!empty($_POST['email']))
                {
                    $email = $_POST['email'];
                    
                        $subject = "Gonzaga Smalltalk ELC Password Reset";
                        $message = "<html>
                            <head>
                            <title>Password Reset</title>
                            </head>
                            <body>
                            <p>This email has been sent because you requested to have your password reset on the Gonzaga Smalltalk site. If you did not request to have your password changed, please disregard and delete this email.</p>
                            <p>Link to password reset form</p>
                            </body>
                            </html>";
                        $headers  = 'MIME-Version: 1.0' . "\r\n";
                        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
                        $headers .= 'To: ' . $email . "\r\n";
                        $headers .= 'From: <EMAIL>' . "\r\n";
                        if(mail($email, $subject, $message, $headers))
                        {
                            echo "<h1>Reset Email Sent</h1>";
                            echo "<p>A confirmation email has been sent to " . $email . ".  Please follow the instructions in the email to reset your password.</p>";
                        }
                        else
                        {
                            echo "<h1>Email Failed</h1>";
                            echo "<p>The confirmation email failed to send. <a href=\"sendemailtest.php\">Please try again</a>.</p>";
                        }
                }
                else
                {
                    ?>             
                    <h1>Forgot Your Password?</h1>
                    <p>Please enter your email address.  An email will be sent with a link to reset your password.</p>
                    <form method="post" action="sendemailtest.php" name="resetform" id="resetform">
                    <fieldset>
                        <label for="email">Email Address:</label><input type="text" name="email" id="email" /><br />
                        <input type="submit" name="reset" id="reset" id="reset" value="Send Email" />
                    </fieldset>
                    </form>         
                    <?php
                }
            ?>
        </div>
    </body>
</html>
{'fraction_non_alphanumeric': 0.1316221459483659, 'fraction_numerical': 0.005670795403671094, 'mean_word_length': 1.157759175788796, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2801448', 'n_tokens_mistral': 1709, 'n_tokens_neox': 1602, 'n_words': 448}