$ADDRESS->markRecheck(0, 1, $search); if ($status == 0) { $_MAIN_MESSAGE .= "<br>" . sprintf(___("%s Einträge aus der Gruppe %s wurden zur Prüfung vorgemerkt."), "<b>" . $ac . "</b>", "<b>" . $GRP[0]['name'] . "</b>"); } if ($status > 0) { $_MAIN_MESSAGE .= "<br>" . sprintf(___("%s Einträge aus der Gruppe %s mit dem Status %s wurden zur Prüfung vorgemerkt."), "<b>" . $ac . "</b>", "<b>" . $GRP[0]['name'] . "</b>", "<b>" . display($STATUS['adr']['status'][$search['status']]) . "</b>"); } } if ($remove_duplicates == 1) { $_MAIN_MESSAGE .= "<br>" . sprintf(___("Duplikate aus ALLEN Gruppen werden ermittelt und geloescht")); if ($remove_duplicates_limit > 0) { $_MAIN_MESSAGE .= "<br>" . ___("Limit") . ": " . $remove_duplicates_limit; } //if not exporting,just use delete dups method if ($remove_duplicates_export != 1) { $ADDRESS->remove_duplicates(array('method' => $remove_duplicates_method, 'limit' => $remove_duplicates_limit)); } //otherwise, if we want to export addresses first, we have to fetch, export and delete the adr ourselv if ($remove_duplicates_export == 1) { $created = date("Y-m-d H:i:s"); $CSV_Filename = "duplicates_" . date_convert_to_string($created) . ""; //extension .csv $CSV_Filename = $CSV_Filename . ".csv"; $delimiter = ","; $fp = fopen($tm_datapath . "/" . $CSV_Filename, "a"); if ($fp) { $CSV = $ADDRESS->genCSVHeader($delimiter); if (!DEMO) { fputs($fp, $CSV, strlen($CSV)); } $ADDRESS->fetch_duplicates(array('method' => $remove_duplicates_method, 'limit' => $remove_duplicates_limit));