Zeile 184 | Zeile 184 |
---|
"htmlmessage" => $db->escape_string($mybb->input['htmlmessage']), "format" => intval($mybb->input['format']), "type" => intval($mybb->input['type']),
|
"htmlmessage" => $db->escape_string($mybb->input['htmlmessage']), "format" => intval($mybb->input['format']), "type" => intval($mybb->input['type']),
|
| "perpage" => intval($mybb->input['perpage'])
|
); $db->update_query("massemails", $updated_email, "mid='{$email['mid']}'");
| ); $db->update_query("massemails", $updated_email, "mid='{$email['mid']}'");
|
Zeile 661 | Zeile 662 |
---|
} else {
|
} else {
|
| $input = array();
|
if($email['senddate'] != 0) {
|
if($email['senddate'] != 0) {
|
$input = array();
| |
if($email['senddate'] <= TIME_NOW) { $input['delivery_type'] = "now";
| if($email['senddate'] <= TIME_NOW) { $input['delivery_type'] = "now";
|
Zeile 932 | Zeile 933 |
---|
"conditions" => unserialize($email['conditions']) ); }
|
"conditions" => unserialize($email['conditions']) ); }
|
}
$form_container = new FormContainer("{$lang->send_mass_mail}: {$lang->step_three} - {$lang->define_the_recipients}");
| else { $input = array(); } }
$options = array( 'username', 'email', 'postnum_dir', 'numposts' );
foreach($options as $option) { if(!isset($input['conditions'][$option])) { $input['conditions'][$option] = ''; } } if(!isset($input['conditions']['usergroup']) || !is_array($input['conditions']['usergroup'])) { $input['conditions']['usergroup'] = array(); }
$form_container = new FormContainer("{$lang->send_mass_mail}: {$lang->step_three} - {$lang->define_the_recipients}");
|
$form_container->output_row($lang->username_contains, "", $form->generate_text_box('conditions[username]', $input['conditions']['username'], array('id' => 'username')), 'username'); $form_container->output_row($lang->email_addr_contains, "", $form->generate_text_box('conditions[email]', $input['conditions']['email'], array('id' => 'email')), 'email');
|
$form_container->output_row($lang->username_contains, "", $form->generate_text_box('conditions[username]', $input['conditions']['username'], array('id' => 'username')), 'username'); $form_container->output_row($lang->email_addr_contains, "", $form->generate_text_box('conditions[email]', $input['conditions']['email'], array('id' => 'email')), 'email');
|
| $options = array();
|
$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title')); while($usergroup = $db->fetch_array($query)) { $options[$usergroup['gid']] = $usergroup['title']; }
|
$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title')); while($usergroup = $db->fetch_array($query)) { $options[$usergroup['gid']] = $usergroup['title']; }
|
|
|
$form_container->output_row($lang->members_of, $lang->additional_user_groups_desc, $form->generate_select_box('conditions[usergroup][]', $options, $input['conditions']['usergroup'], array('id' => 'usergroups', 'multiple' => true, 'size' => 5)), 'usergroups');
$greater_options = array(
| $form_container->output_row($lang->members_of, $lang->additional_user_groups_desc, $form->generate_select_box('conditions[usergroup][]', $options, $input['conditions']['usergroup'], array('id' => 'usergroups', 'multiple' => true, 'size' => 5)), 'usergroups');
$greater_options = array(
|
Zeile 956 | Zeile 978 |
---|
// Need to do reg date & last visit periods. FIGURE OUT HOW TO HANDLE/DISPLAY (Do the same as StoreSuite)
|
// Need to do reg date & last visit periods. FIGURE OUT HOW TO HANDLE/DISPLAY (Do the same as StoreSuite)
|
$form_container->end();
| $form_container->end();
|
$buttons[] = $form->generate_submit_button($lang->next_step); $form->output_submit_wrapper($buttons);
| $buttons[] = $form->generate_submit_button($lang->next_step); $form->output_submit_wrapper($buttons);
|
Zeile 1151 | Zeile 1173 |
---|
$form_container->output_row("{$lang->subject}: <em>*</em>", $lang->subject_desc, $form->generate_text_box('subject', $input['subject'], array('id' => 'subject')), 'subject');
if($mybb->input['type'] == 0)
|
$form_container->output_row("{$lang->subject}: <em>*</em>", $lang->subject_desc, $form->generate_text_box('subject', $input['subject'], array('id' => 'subject')), 'subject');
if($mybb->input['type'] == 0)
|
{
| {
|
$type_email_checked = true; $type_pm_checked = false; }
| $type_email_checked = true; $type_pm_checked = false; }
|
Zeile 1344 | Zeile 1366 |
---|
{ flash_message($lang->success_mass_mail_deleted, 'success'); admin_redirect("index.php?module=user-mass_mail");
|
{ flash_message($lang->success_mass_mail_deleted, 'success'); admin_redirect("index.php?module=user-mass_mail");
|
} } else {
| } } else {
|
if($mybb->input['archive'] == 1)
|
if($mybb->input['archive'] == 1)
|
{
| {
|
$page->output_confirm_action("index.php?module=user-mass_mail&action=delete&mid={$mass_email['mid']}&archive=1", $lang->mass_mail_deletion_confirmation);
|
$page->output_confirm_action("index.php?module=user-mass_mail&action=delete&mid={$mass_email['mid']}&archive=1", $lang->mass_mail_deletion_confirmation);
|
}
| }
|
else { $page->output_confirm_action("index.php?module=user-mass_mail&action=delete&mid={$mass_email['mid']}", $lang->mass_mail_deletion_confirmation);
| else { $page->output_confirm_action("index.php?module=user-mass_mail&action=delete&mid={$mass_email['mid']}", $lang->mass_mail_deletion_confirmation);
|
Zeile 1360 | Zeile 1382 |
---|
}
if($mybb->input['action'] == "preview")
|
}
if($mybb->input['action'] == "preview")
|
{
| {
|
$query = $db->simple_select("massemails", "*", "mid='".intval($mybb->input['mid'])."'"); $mass_email = $db->fetch_array($query);
| $query = $db->simple_select("massemails", "*", "mid='".intval($mybb->input['mid'])."'"); $mass_email = $db->fetch_array($query);
|
Zeile 1373 | Zeile 1395 |
---|
?> <html xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://gmpg.org/xfn/1">
|
?> <html xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://gmpg.org/xfn/1">
|
<title>Mass Email Preview</title>
| <title><?php echo $lang->mass_mail_preview; ?></title>
|
<link rel="stylesheet" href="styles/<?php echo $page->style; ?>/main.css" type="text/css" /> <link rel="stylesheet" href="styles/<?php echo $page->style; ?>/popup.css" type="text/css" /> </head> <body id="popup"> <div id="popup_container">
|
<link rel="stylesheet" href="styles/<?php echo $page->style; ?>/main.css" type="text/css" /> <link rel="stylesheet" href="styles/<?php echo $page->style; ?>/popup.css" type="text/css" /> </head> <body id="popup"> <div id="popup_container">
|
<div class="popup_title"><a href="#" onClick="window.close();" class="close_link"><?php echo $lang->close_window; ?></a> Mass Email Preview</div>
| <div class="popup_title"><a href="#" onClick="window.close();" class="close_link"><?php echo $lang->close_window; ?></a> <?php echo $lang->mass_mail_preview; ?></div>
|
<div id="content"> <?php
| <div id="content"> <?php
|
Zeile 1447 | Zeile 1469 |
---|
if($mybb->input['action'] == "cancel") {
|
if($mybb->input['action'] == "cancel") {
|
| if(!verify_post_check($mybb->input['my_post_key'])) { flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=user-users"); }
|
// Cancel the delivery of a mass-email. $query = $db->simple_select("massemails", "*", "mid='".intval($mybb->input['mid'])."'"); $mass_email = $db->fetch_array($query);
| // Cancel the delivery of a mass-email. $query = $db->simple_select("massemails", "*", "mid='".intval($mybb->input['mid'])."'"); $mass_email = $db->fetch_array($query);
|