'.__("Activation state updated", "alo-easymail").'.
'; } else { print ''.__("Error during operation.", "alo-easymail") ." ". __("Not updated", "alo-easymail").'.
'.__("Subscriber deleted", "alo-easymail").'.
'.__("Error during operation.", "alo-easymail") ." ". __("Not deleted", "alo-easymail").'.
'.__("Error during operation.", "alo-easymail"); if ( !isset($_REQUEST['subscribers']) || $_REQUEST['subscribers'] == "" ) echo " ". __("No subscriber selected", "alo-easymail") ."."; if ( !isset($_REQUEST['check_list']) || count ($_REQUEST['check_list']) == 0 ) echo " ". __("No list selected", "alo-easymail") ."."; echo '
:
'. __('There are no available lists', 'alo-easymail') .'.
'.__("Error during operation.", "alo-easymail"); if ( !isset($_REQUEST['subscribers']) || $_REQUEST['subscribers'] == "" ) echo " ". __("No subscriber selected", "alo-easymail") ."."; if ( !isset($_REQUEST['check_lang']) || count ($_REQUEST['check_lang']) == 0 ) echo " ". __("No language option selected", "alo-easymail") ."."; echo '
:
'. __('No language available', 'alo-easymail') .'.
'; break; } case "delete": if ( !isset($_REQUEST['subscribers'] ) || $_REQUEST['subscribers'] == "" ) { echo ''.__("Error during operation.", "alo-easymail"); echo " ". __("No subscriber selected", "alo-easymail") ."."; echo '
'.__("Subscribers deleted", "alo-easymail").'.
'.__("Error during operation.", "alo-easymail"); echo " ". __("No subscriber selected", "alo-easymail") ."."; echo '
'.__("Subscribers activated", "alo-easymail").'.
'.__("Error during operation.", "alo-easymail"); echo " ". __("No subscriber selected", "alo-easymail") ."."; echo '
'.__("Subscribers deactivated", "alo-easymail").'.
.
· :
· :
". __('You can list only languages available in the blog', 'alo-easymail') .": ". __('you can set them up in Settings > Newsletter', 'alo-easymail'). ". (". __('Language codes', 'alo-easymail') .": ". sprintf( '%s', __('iso 639-1 codes', 'alo-easymail') ). ") " ?>
email_address1@domain.ltd;name1 surname1;en $value ){
echo ';'.$value['humans_name'].'';
}
}
?>email_address2@domain.ltd;name2 surname2;itemail_address3@domain.ltd;name3email_address4@domain.ltd;;en
.
'.__("Error during operation.", "alo-easymail"); if ( !isset($_REQUEST['action']) || $_REQUEST['action'] == "" ) echo " ". __("No action selected", "alo-easymail") ."."; if ( !isset($_REQUEST['subscribers'] )) echo " ". __("No subscriber selected", "alo-easymail") ."."; echo '
'; } } /** * Bulk action: Step #2/2 */ if ( isset($_REQUEST['doaction_step2']) ) { //if($wp_version >= '2.6.5') check_admin_referer('alo-easymail_subscribers'); if ( isset($_REQUEST['action']) && $_REQUEST['action'] != "" ) { switch ( $_REQUEST['action'] ) { // Add a subscriber with simple form case "addsingle_step2": if ( !isset($_REQUEST['addsingle_email']) || !is_email( $_REQUEST['addsingle_email']) ) { echo ''.__("Error during operation.", "alo-easymail");
echo "
". __("The e-email address is not correct", "alo-easymail") .".";
echo '
'. __("Back", "alo-easymail"). '
'; exit; } else if ( alo_em_check_email_in_unsubscribed( $_REQUEST['addsingle_email']) ) { echo ''.__("Error during operation.", "alo-easymail");
echo "
". __("The owner of the e-email address unsubscribed the newsletter", "alo-easymail");
echo " (". sprintf( __( "%s ago", "alo-easymail" ), human_time_diff( strtotime(alo_em_when_email_unsubscribed($_REQUEST['addsingle_email'])), current_time('timestamp') ) ).")";
echo '
'. __("Back", "alo-easymail"). '
'; exit; } $email = stripslashes ( $wpdb->escape ( trim( $_REQUEST['addsingle_email'] ) ) ); $name = ( isset( $_REQUEST['addsingle_name'] ) ) ? stripslashes ( $wpdb->escape ( trim( $_REQUEST['addsingle_name'] ) ) ) : ""; //edit : added all this foreach if( $alo_em_cf ) { foreach( $alo_em_cf as $key => $value ){ $fields[$key] = ( isset( $_REQUEST['addsingle_'.$key] ) ) ? stripslashes ( $wpdb->escape ( trim( $_REQUEST['addsingle_'.$key] ) ) ) : ""; } } $lang = ( isset( $_REQUEST['addsingle_name'] ) ) ? stripslashes ( $wpdb->escape ( trim( $_REQUEST['addsingle_lang'] ) ) ) : ""; $fields['email'] = $email; //edit : added all this line $fields['name'] = $name; //edit : added all this line if ( $email && alo_em_add_subscriber( $fields, 1, $lang ) == "OK" ) { //edit : orig : if ( $email && alo_em_add_subscriber( $email , $name , 1, $lang ) == "OK" ) { if ( isset($_REQUEST['check_list']) ) { $subscriber_id = alo_em_is_subscriber( $email ); foreach ( $_REQUEST['check_list'] as $list ) { alo_em_add_subscriber_to_list ( $subscriber_id, $list ); } } print ''.__("New subscriber added", "alo-easymail").'.
'.__("Error during operation.", "alo-easymail"); if ( !isset($_REQUEST['subscribers']) || $_REQUEST['subscribers'] == "" ) echo " ". __("No subscriber selected", "alo-easymail") ."."; if ( !isset($_REQUEST['check_list']) || count ($_REQUEST['check_list']) == 0 ) echo " ". __("No list selected", "alo-easymail") ."."; echo '
'.__("Updated", "alo-easymail").'.
'.__("Error during operation.", "alo-easymail"); if ( !isset($_REQUEST['subscribers']) || $_REQUEST['subscribers'] == "" ) echo " ". __("No subscriber selected", "alo-easymail") ."."; if ( !isset($_REQUEST['check_lang']) ) echo " ". __("No language option selected", "alo-easymail") ."."; echo '
'.__("Updated", "alo-easymail").'.
'. __("Back", "alo-easymail"). '
'; $html .= '| '.__("E-mail", "alo-easymail").' | '.__("Name", "alo-easymail").' | '.__("Language", "alo-easymail").' | '; //edit : splitted in two parts : orig : $html .= '||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| '.__("E-mail", "alo-easymail").' | '.__("Name", "alo-easymail").' | '.__("Language", "alo-easymail").' | '.__("Error", "alo-easymail").' | '.$value['humans_name'].' | '; } } $html .= ''.__("Error", "alo-easymail").' | |||||
| '.__("E-mail", "alo-easymail").' | '.__("Name", "alo-easymail").' | '.__("Language", "alo-easymail").' | '.__("Error", "alo-easymail").' | |||||||
| $row: | "; $html .= "". $span_email ." | ".$name." | ".alo_em_get_lang_flag($lang, 'name')." | "; //edit : added all this foreach foreach( $fields as $key => $value ){ $html .= "". $value ." | "; } $html .= "". ( ( isset($not_imported[$data[0]]) ) ? $not_imported[$data[0]] : "") ." |
'. sprintf(__("Found %d records", "alo-easymail"), $row ) .'.
'; if ( count($not_imported) ) echo ''. __("Check the Error column to modify records that otherwise will not be imported", "alo-easymail"). '.
'; echo $html; // print table echo ''. __("Back", "alo-easymail"). '
'; exit(); } else { // import report echo ''. sprintf(__("Successfully import: %d records out of %d total", "alo-easymail"), $success, $row ) .'.'; if ( count($not_imported) ) { echo '
'.__("Some records have not been imported", "alo-easymail").':
'; echo ''; echo '| '.$email.' | '; echo ''.$error.' |
|---|
'.__("Not valid CSV file uploaded", "alo-easymail") . '.
'. sprintf(__("%d new subscribers successfully added from blog members", "alo-easymail"), $add ) .'.
'. __("No subscribers added from blog members", "alo-easymail") .'.
'. __("Back", "alo-easymail"). '
'; echo "\r\n";
foreach ( $all_subs as $sub ) {
echo $sub->email . ";" . $sub->name . ";" . $sub->lang; //edit : splitted in two parts : orig : echo $sub->email . ";" . $sub->name . ";" . $sub->lang. "\r\n";
//edit : added all this foreach
if( $alo_em_cf ) {
foreach( $alo_em_cf as $key => $value ){
echo ";".$sub->{$key};
}
}
echo "\r\n"; //edit : splitted in two parts : orig : echo $sub->email . ";" . $sub->name . ";" . $sub->lang. "\r\n";
}
echo "\r\n";
} else {
echo ''. __("No subscribers", "alo-easymail") . '.
'. __("Back", "alo-easymail"). '
'; exit(); break; } // end switch action } else { echo ''. __("No action selected", "alo-easymail") .'.
'. sprintf( __('Maybe you would like to import subscribers from your blog registered members or an external archive (using CSV). Click the '%s' button', 'alo-easymail'), $impexp_butt) .'.
'; echo "(". __('Do not show it again', 'alo-easymail') .")
"; echo ''; } ?>