process($_POST['title']))); $message = stripslashes($parse->process($_POST['message'])); $start_from = intval($_GET['start_from']); $limit = intval($_GET['limit']); $interval = intval($_GET['interval']) * 1000; if ($limit < 1) { $limit = 20; } $message = $parse->BB_Parse($message, false); $where = array(); if ($empfanger != "all") $where[] = "user_group = '{$empfanger}'"; if ($a_mail) $where[] = "allow_mail = '1'"; if (count($where)) $where = " WHERE ".implode (" AND ", $where); else $where = ""; $row = $db->super_query("SELECT COUNT(*) as count FROM " . USERPREFIX . "_users".$where); if ($start_from > $row['count'] OR $start_from < 0) $start_from = 0; if ($type == "email") $type_send = $lang['bb_b_mail']; else $type_send = $lang['nl_pm']; echo << {$lang['nl_seng']}
HTML; echo <<
{$lang['nl_empf']} {$row['count']}
{$lang['nl_type']} {$type_send}
{$lang['nl_sendet']} {$start_from} {$lang['mass_i']} {$row['count']} {$lang['nl_status']}

HTML; $message = stripslashes($message); echo << HTML; } elseif ($action=="preview") { include_once SYSTEM_DIR.'/classes/parse.class.php'; $parse = new ParseFilter(Array(), Array(), 1, 1); $title = strip_tags(stripslashes($parse->process($_POST['title']))); $message = stripslashes($parse->process($_POST['message'])); $message = $parse->BB_Parse($message, false); echo <<{$title} HTML; echo "
{$title} {$message}
"; } elseif ($action=="message") { echoheader("newsletter", ""); echo " "; echo " "; echo <<
HTML; include(SYSTEM_DIR.'/inc/include/inserttag.php'); echo << HTML; $start_from = intval($_GET['start_from']); echo <<
{$lang['edit_title']}
{$lang['nl_message']}
{$bb_code}

{$lang['nl_info_1']} {$lang['nl_info_2']}
 
 
HTML; echofooter(); } else { echoheader("newsletter", ""); $group_list = get_groups (); echo <<
{$lang['nl_empf']}
{$lang['nl_type']}
{$lang['nl_startfrom']} {$lang['nl_user']}
{$lang['nl_n_mail']}
{$lang['nl_interval']}
{$lang['nl_amail']}
 
HTML; echofooter(); } ?>