$tmp_array[$j]->tmp_file = $_SESSION['attach_array'][$i]->tmp_file; $tmp_array[$j]->file_size = $_SESSION['attach_array'][$i]->file_size; $tmp_array[$j]->file_mime = $_SESSION['attach_array'][$i]->file_mime; $tmp_array[$j]->content_id = $_SESSION['attach_array'][$i]->content_id; $tmp_array[$j]->disposition = $_SESSION['attach_array'][$i]->disposition; $j++; } } // Removing the attachments array from the current session unset($_SESSION['num_attach']); unset($_SESSION['attach_array']); $_SESSION['attach_array'] = $tmp_array; $_SESSION['num_attach'] = $j > 1 ? $j - 1 : 0; break; case 'change_format': $email->save_send_format($GO_SECURITY->user_id, $content_type); break; } //check for the templates plugin //if a template id is given then process it $template_id = isset($_REQUEST['template_id']) ? $_REQUEST['template_id'] : 0; $contact_id = isset($_REQUEST['contact_id']) ? $_REQUEST['contact_id'] : 0; if ($mailing_group_id > 0 && $tp->get_contacts_from_mailing_group($mailing_group_id) == 0 && $tp->get_companies_from_mailing_group($mailing_group_id) == 0) { require $GO_THEME->theme_path . "header.inc"; $tabtable = new tabtable('templates_tab', $ml_attention, '600', '120'); $tabtable->print_head(); echo '<p>' . $ml_no_contacts_in_mailing_group . '</p><br />'; $button = new button($cmdClose, "javascript:window.close();"); $tabtable->print_foot(); require $GO_THEME->theme_path . "footer.inc"; exit;