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']}
{$lang['nl_empf']} |
{$row['count']} |
{$lang['nl_type']} |
{$type_send} |
|
HTML;
$message = stripslashes($message);
echo <<
|
|
|
|
{$title}
{$message}
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 "";
}
elseif ($action=="message") {
echoheader("newsletter", "");
echo "
";
echo "
";
echo <<
{$lang['ajax_info']}
HTML;
echofooter();
}
else {
echoheader("newsletter", "");
$group_list = get_groups ();
echo <<
HTML;
echofooter();
}
?>