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);
        }
    }
}
 $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
Ejemplo n.º 3
0
     }
     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'];
                 }