'. __("To enable the plugin work better you should increase the wp_cron and php timeouts", "alo-easymail") .". ";
echo __("For more info you can use the Help button or visit the FAQ of the site", "alo-easymail");
echo ' »
'. __("Debug mode is activated", "alo-easymail") .": ";
if ( get_option('ALO_em_debug_newsletters') == "to_author" ) _e("all messages will be sent to the newsletter author", "alo-easymail");
if ( get_option('ALO_em_debug_newsletters') == "to_file" ) _e("all messages will be recorded into a log file", "alo-easymail");
echo ".
";print_r($num_rec);echo "";exit; /* //--------- // DEBUG //--------- echo "HEADERS: ".$headers."
" . ALO_em_html2plain($updated_content) ."
";print_r ($rec);echo ""; } // echo $wpdb->last_query; //echo "
";print_r ($_REQUEST);echo ""; */ // add the newsletter to db if ( ALO_em_add_new_batch ( $user_ID, $subject, $updated_content, serialize($num_rec), $tracking, $pID ) == true) { $fbk_msg = "success"; $_REQUEST['tab'] = "reports"; // show report } else { $fbk_msg = "nosending"; } } // end if $error_on_submit == false } /******************************************************************************* * Submit template ******************************************************************************/ if(isset($_REQUEST['submit_tpl'])) { if ( !current_user_can('send_easymail_newsletters') ) wp_die(__('Cheatin’ uh?')); check_admin_referer('alo-easymail_main'); // Subject $subject = stripslashes($wpdb->escape($_POST['title'])); // Main content $main_content = stripslashes($_POST['content']); // Check for errors $error_on_submit = false; if ($subject == "" || $main_content == "") { $fbk_msg = "tpl_error"; $error_on_submit = true; } // If no errors let's go! if ( $error_on_submit == false ) { // UPDATE the template to db if ( isset($_POST['task']) && $_POST['task'] == "update_tpl" && isset($_POST['tpl_id']) && is_numeric($_POST['tpl_id']) ) { if ( ALO_em_update_template ( $_POST['tpl_id'], $user_ID, $subject, $main_content ) == true) { $fbk_msg = "tpl_saved"; } else { $fbk_msg = "tpl_nosaved"; } } else { // ADD the template to db if ( ALO_em_add_new_template ( $user_ID, $subject, $main_content ) == true) { $fbk_msg = "tpl_saved"; } else { $fbk_msg = "tpl_nosaved"; } } unset($_POST); } // end if $error_on_submit == false } /** * Set Tabs */ if ( empty($active_tab) ) { if ( isset( $_REQUEST['tab']) ) { if ( $_REQUEST['tab'] == "reports") { $active_tab = "reports"; $reports_tab_active = $sel_active_class; } else if ( $_REQUEST['tab'] == "templates") { $active_tab = "templates"; $templates_tab_active = $sel_active_class; } else { $active_tab = "send"; $send_tab_active = $sel_active_class; } } else { $active_tab = "send"; $send_tab_active = $sel_active_class; } } // Reset base url (cut message vars...) $clean_url = remove_query_arg( array('tab', 'message', 'task', 'id') ); ?>
'.__("Newsletter successfully deleted", "alo-easymail").'
'.__("Impossible to delete the selected newsletter", "alo-easymail").'
'.__("Template successfully deleted", "alo-easymail").'
'.__("Impossible to delete the selected template", "alo-easymail").'
';
$fbk_msg .= ''.__("New sending added with success!", "alo-easymail").'
'.__("Template saved", "alo-easymail").'.
'; $fbk_msg .= "
';
$fbk_msg .= ''.__("Inputs are incompled or wrong. Please check and try again.", "alo-easymail").'
'.__("Template saved", "alo-easymail").'.
'; $fbk_msg .= "
';
$fbk_msg .= ''.__("No recipients selected.", "alo-easymail").'
';
$fbk_msg .= ''.__("Impossible to send. Please try again.", "alo-easymail").'
';
$fbk_msg .= ''.__("Template saved", "alo-easymail").'
';
$fbk_msg .= ''.__("Impossible to save the template. Please try again.", "alo-easymail").'
';
$fbk_msg .= ''.__("Inputs are incompled or wrong. Please check and try again.", "alo-easymail").'
";print_r($news_on_queue);echo ""; if (count($news_on_queue)) { ?>
| '; } else { echo $row_count; } ?> | user == $user_ID) { echo "".__("you", "alo-easymail").""; } else { if ( $can_edit_all ) { echo get_user_meta($q->user, 'nickname', true); } else { echo"".__("another user", "alo-easymail").""; } } ?> | start_at))." h.".date("H:i", strtotime($q->start_at)) ?> | user == $user_ID || $can_edit_all ) { $qsubject = $q->subject; if ( $q->tag ) { $obj_post = get_post( $q->tag ); $qpost_title = stripslashes ( ALO_em___ ( $obj_post->post_title ) ); $qsubject = str_replace('[POST-TITLE]', $qpost_title, $qsubject); } echo stripslashes ( ALO_em___( $qsubject ) ); } ?> | recipients ); $q_tot = count($q_recipients); $n_sent = 0; foreach ($q_recipients as $qr) { if ( isset($qr['result']) ) $n_sent ++; } echo round($n_sent*100/ $q_tot ) . " %" ; ?> | user == $user_ID && $can_edit_own ) || $can_edit_all ) { echo ""; echo __("Cancel", "alo-easymail"). ""; } ?> | "; $row_count++; } echo "
|---|
"; } ?> get_results("SELECT * FROM {$wpdb->prefix}easymail_sendings WHERE sent = 1 {$where_user} ORDER BY ID DESC"); //echo "
";print_r($news_on_queue);echo ""; if (count($news_done)) { ?>
# |
'.__("Scheduled by", "alo-easymail").''; ?>
". ( ($q->user == $user_ID)? "".__("you", "alo-easymail")."": get_user_meta($q->user, 'nickname', true) ). ""; } ?> | start_at))." h.".date("H:i", strtotime($q->start_at)) ?> | last_at))." h.".date("H:i", strtotime($q->last_at)) ?> | user == $user_ID || $can_edit_all ) { $qsubject = $q->subject; if ( $q->tag ) { $obj_post = get_post( $q->tag ); $qpost_title = stripslashes ( ALO_em___ ( $obj_post->post_title ) ); $qsubject = str_replace('[POST-TITLE]', $qpost_title, $qsubject); } echo stripslashes ( ALO_em___( $qsubject ) ); } ?> | user == $user_ID && $can_edit_own ) || $can_edit_all ) { echo ""; echo __("Delete", "alo-easymail"). " - "; echo "ID})\">"; echo __("View", "alo-easymail"). ""; } ?> | "; $row_count++; } echo "
|---|
"; } ?> ". __('There are no available reports', 'alo-easymail') .""; ?> get_results("SELECT ID, start_at, last_at, user, subject, content, sent FROM {$wpdb->prefix}easymail_sendings WHERE sent = 9 AND user={$user_ID} ORDER BY last_at DESC"); //echo "
";print_r($templates);echo ""; if (count($templates)) { ?>
| last_at))." h.".date("H:i", strtotime($t->last_at)) ?> | start_at))." h.".date("H:i", strtotime($t->start_at)) ?> | user == $user_ID )? stripslashes ( ALO_em___( $t->subject ) ) /*stripslashes ( $t->subject )*/ : "" ?> | user == $user_ID /* && $can_edit_own */ ) { echo ""; echo __("Delete", "alo-easymail"). " - "; echo "". __("Edit", "alo-easymail"). " - "; echo "". __("Send", "alo-easymail"). ""; } ?> | "; $row_count++; } echo "
"; } else { echo "
". __("There are no templates yet", "alo-easymail") .".
"; } ?>