<commit_before><?php
if(isset($_POST['tbSignUp'])){
	
		$tbEmail = get_option('tb_email_email');

        $sendingError = FALSE;
		
        if (empty($_POST['email']) || !preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", trim($_POST['email'])))  {
            $sendingError = TRUE;
            echo '<div class="sendingError">Email address seems invalid.</div>';
			exit;
        } else {
            $tbFirstName = trim($_POST['fname']);
            $tbLastName = trim($_POST['lname']);
            $tbSenderEmail = trim($_POST['email']);
        }
        
        if (!$sendingError) {


			$subject = "Newsletter Sign-Up";
			$message = '';
			if ($tbFirstName) $message .= "First Name: $tbFirstName \r\n";
			if ($tbLastName) $message .= "Last Name: $tbLastName \r\n";
            $message .= "Email: $tbSenderEmail \r\n";
			
			$additionalHeaders = "From: $tbSenderEmail\r\nReply-To: $tbSenderEmail\r\nReturn-Path: $tbSenderEmail\r\n";

         	$sendingConf = mail( $tbEmail, $subject, $message, $additionalHeaders);
            
			
			if ($sendingConf) {
				echo '<div class="infoBox greenBox">';
				echo "<h4>Success!!!</h4>";
				echo "</div>";
			} else {
				echo '<div class="infoBox redBox">';
				echo "<h4>Failure!!!</h4>";
				echo "</div>";
			}
			
			exit;
			}
        }
?><commit_msg>Change header 'from' to send from webmaster - http://dhurl.org/20b<commit_after><?php

if( isset( $_POST['tbSignUp'] ) ) {

	$tbEmail = get_option('tb_email_email');

  $sendingError = FALSE;
  if (empty($_POST['email']) || !preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", trim($_POST['email'])))  {
    $sendingError = TRUE;
    echo '<div class="sendingError">Email address seems invalid.</div>';
		exit;
  } else {
    $tbFirstName = trim($_POST['fname']);
    $tbLastName = trim($_POST['lname']);
    $tbSenderEmail = trim($_POST['email']);
	}

  if ( !$sendingError ) {
		$subject = "Newsletter Sign-Up";
		$message = '';
		if ($tbFirstName) $message .= "First Name: $tbFirstName \r\n";
		if ($tbLastName) $message .= "Last Name: $tbLastName \r\n";
    $message .= "Email: $tbSenderEmail \r\n";
		$additionalHeaders = "From: $tbEmail\r\nReply-To: $tbSenderEmail\r\nReturn-Path: $tbSenderEmail\r\n";
    $sendingConf = mail( $tbEmail, $subject, $message, $additionalHeaders);

		if ( $sendingConf ) {
			echo '<div class="infoBox greenBox">';
			echo "<h4>Success!!!</h4>";
			echo "</div>";
		} else {
			echo '<div class="infoBox redBox">';
			echo "<h4>Failure!!!</h4>";
			echo "</div>";
		}
		exit;
	}
}
?>
{'fraction_non_alphanumeric': 0.2211910286156226, 'fraction_numerical': 0.010054137664346482, 'mean_word_length': 3.048513302034429, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, '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': '6420361', 'n_tokens_mistral': 1039, 'n_tokens_neox': 945, 'n_words': 171}