Пример #1
0
$ADDRESS = new tm_ADR();
$QUEUE = new tm_Q();
$BLACKLIST = new tm_BLACKLIST();
$adr_grp_id = getVar("adr_grp_id");
$adr_id = getVar("adr_id");
$set = getVar("set");
$val = getVar("val");
$doit = getVar("doit");
//wird per js an url angefuegt!!! confirm()
if (!isset($search)) {
    $search = array();
}
require_once TM_INCLUDEPATH . "/adr_search.inc.php";
if ($no_list != 1) {
    if ($set == "aktiv") {
        $ADDRESS->setAktiv($adr_id, $val);
        if ($val == 1) {
            $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wurde aktiviert.");
        } else {
            $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wurde de-aktiviert.");
        }
    }
    //aktiv single
    if ($set == "delete" && $doit == 1) {
        if (!DEMO) {
            $ADDRESS->delAdr($adr_id);
        }
        $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wurde gelöscht.");
    }
    //del single
    if ($set == "check") {
Пример #2
0
     $QUEUE->setHStatus($h_id, 7);
     //unsubscribe!
 }
 $created = date("Y-m-d H:i:s");
 //im memo speichern wir den namen des newsletter etc.
 $memo = "unsubscribed";
 $NEWSLETTER = new tm_NL();
 $NL = $NEWSLETTER->getNL($nl_id);
 if (count($NL) > 0) {
     $memo .= " (" . $NL[0]['subject'] . ")";
 }
 //set status adresse, set editor...
 $author = "unsubscribe";
 //always unsubscribe ...
 if ($ADDRESS->unsubscribe($ADR[0]['id'], $author)) {
     $ADDRESS->setAktiv($ADR[0]['id'], 0);
     $ADDRESS->addMemo($ADR[0]['id'], $memo);
     //unsubscribed
     if ($C[0]['unsubscribe_action'] == "blacklist" || $C[0]['unsubscribe_action'] == "blacklist_delete") {
         //add adr to blacklist
         if (!$BLACKLIST->isBlacklisted($ADR[0]['email'], "email", 0)) {
             //only_active=0, also alle, nicht nur aktive, was default waere
             $BLACKLIST->addBL(array("siteid" => TM_SITEID, "expr" => $ADR[0]['email'], "aktiv" => 1, "type" => "email"));
         }
     }
     if ($C[0]['unsubscribe_action'] == "delete" || $C[0]['unsubscribe_action'] == "blacklist_delete") {
         $ADDRESS->delAdr($ADR[0]['id']);
     }
     if ($C[0]['notify_unsubscribe'] == 1) {
         //email bei subscrption an admin....
         $SubscriptionMail_Subject = "Tellmatic: Abmeldung / Unsubscribe";