$Capped_IP = sizeof($matches[0]) - 1;
 $MailCaptured_IPaddy = $matches[0][$Capped_IP];
 $IPaddy = "{$MailCaptured_IPaddy} (Email guess)";
 if ($DB_DeleteYN == 1) {
     imap_delete($conn, $i);
 }
 $spam_filtered = 0;
 if (!isEmpty($DB_SpamHeader)) {
     $pos = strpos($subject, $DB_SpamHeader);
     if ($pos === false) {
         $spam_filtered = 0;
     } else {
         $spam_filtered = 1;
     }
 }
 if (!UserIsSubscribed($Responder_ID, $Email_Address) && !isInBlacklist($Email_Address) && $spam_filtered == 0 && isEmail($Email_Address)) {
     if ($DB_HTML_YN == 1) {
         $Set_HTML = 1;
     } else {
         $Set_HTML = 0;
     }
     # Get responder info
     # MOD for updated GetResponder function
     if (!ResponderExists($Responder_ID)) {
         admin_redirect();
     }
     $ResponderInfo = GetResponderInfo($Responder_ID);
     // $DB_OptMethod = $ResponderInfo['OptinMethod'];
     // if ($DB_OptMethod == "Double") {$DB_Confirm_Join = '1'}
     // else {$DB_Confirm_Join = '0';}
     # Setup the data
if ($_REQUEST["infinitycode"]) {
    exit;
}
if ($_REQUEST["source"]) {
    exit;
}
if ($_REQUEST["responder"]) {
    exit;
}
$ip_number = $_SERVER['REMOTE_ADDR'];
if ($name) {
    $names = explode(" ", $name);
}
if (empty($firstname)) {
    $firstname = $names[0];
}
if (empty($lastname)) {
    $lastname = $names[1];
}
// Add the subscriber if the variables are set...
if ($infinitycode == $config['site_code'] && !empty($email) && !empty($responder) && !empty($firstname)) {
    $Email_Address = $email;
    if (!UserIsSubscribed($responder, $email)) {
        if (!isInBlacklist($email)) {
            $uniq_code = generate_unique_code();
            $Timestamper = time();
            $query = "INSERT INTO " . infrespsubscribers . " (ResponderID, SentMsgs, EmailAddress, TimeJoined, Real_TimeJoined, CanReceiveHTML, LastActivity, FirstName, LastName, IP_Addy, ReferralSource, UniqueCode, Confirmed) VALUES('{$responder}','', '{$email}', '{$Timestamper}', '{$Timestamper}', '{$html}', '{$Timestamper}', '{$firstname}', '{$lastname}', '{$ip_number}', '{$source}', '{$uniq_code}', '1')";
            $DB_result = @mysql_query($query);
        }
    }
}
示例#3
0
         if ($_REQUEST['output'] == 'text') {
             echo "<html><head>" . $messagestyle . "</head><body>";
             echo "<div id='submessage' class='error'>";
             include 'templates/subhandlers/invalid_email.php';
             echo "</div></body></html>";
         } else {
             include 'templates/open.page.php';
             include 'templates/subhandlers/invalid_email.php';
             copyright();
             include 'templates/close.page.php';
         }
     }
     die;
 }
 # Is the email address blacklisted?
 if (isInBlacklist($Email_Address)) {
     if ($SilentMode != 1) {
         if ($_REQUEST['output'] == 'text') {
             echo "<html><head>" . $messagestyle . "</head><body>";
             echo "<div id='submessage' class='error'>";
             include 'templates/subhandlers/blacklisted.php';
             echo "</div></body></html>";
         } else {
             include 'templates/open.page.php';
             include 'templates/subhandlers/blacklisted.php';
             copyright();
             include 'templates/close.page.php';
         }
     }
     die;
 }
            $passed['LAST'] = $Space_List[$Space_MaxIndex - 1];
        }
        if (empty($passed['FIRST'])) {
            $passed['FIRST'] = '';
            for ($k = 0; $k <= $Space_MaxIndex - 2; $k++) {
                $passed['FIRST'] = $passed['FIRST'] . ' ' . $Space_List[$k];
            }
            $passed['FIRST'] = trim($passed['FIRST']);
        }
    }
}
# Create the safe data array
foreach ($passed as $key => $value) {
    $safe[$key] = MakeSafe($value);
}
if (!isInBlacklist($safe['EMAIL'])) {
    # Get old responder info
    $got_custom_fields = FALSE;
    $user_data = array();
    $custom_fields = array();
    $resp_list = "";
    foreach ($responder_list as $idx => $resp_num) {
        $resp_list = $resp_list . "'" . $resp_num . "',";
    }
    $resp_list = trim($resp_list, ",");
    $query = "SELECT * FROM " . $infrespsubscribers . " WHERE (EmailAddress = '" . $safe['EMAIL'] . "') AND ResponderID IN (" . $resp_list . ")";
    # echo $query . "<br>\n";
    $result = mysql_query($query) or die("Invalid query: " . mysql_error());
    if (mysql_num_rows($result) > 0) {
        # Get current data
        $user_data = mysql_fetch_assoc($result);
示例#5
0
         $TimeJoined = trim($ListPartArray[9]);
     }
     if (count($ListPartArray) > 10) {
         $Real_TimeJoined = trim($ListPartArray[10]);
     }
     if (count($ListPartArray) > 11) {
         $LastActivity = trim($ListPartArray[11]);
     }
 } else {
     $Email_Address = trim($ListPart);
 }
 if (count($ListPartArray) > 12) {
     $Email_Address = $AddList_Array[$i];
     print "<strong>Too many data fields!</strong> Not Added: {$Email_Address} <br>\n";
 } else {
     if ($Email_Address != "" and $Email_Address != NULL and !isInBlacklist($Email_Address)) {
         if (UserIsSubscribed($Responder_ID, $Email_Address)) {
             if ($_REQUEST['overwrite'] == 'yes') {
                 $Subscriber = GetSubscriberID($Responder_ID, $Email_Address);
                 $SubscriberInfo = GetSubscriberInfo($Subscriber);
                 $SubscriberID = $SubscriberInfo['SubscriberID'];
                 // print_r($SubscriberInfo);
                 if (!isset($First_Name)) {
                     $First_Name = $SubscriberInfo['FirstName'];
                 }
                 if (!isset($Last_Name)) {
                     $Last_Name = $SubscriberInfo['LastName'];
                 }
                 // if (!isset($CanReceiveHTML)) {$CanReceiveHTML = $SubscriberInfo['CanReceiveHTML'];}
                 if (!isset($Confirmed)) {
                     $Confirmed = $SubscriberInfo['Confirmed'];