$test = stripslashes($html);
while (ereg("<", $test) && ereg(">", $test)) {
$check = strtolower(substr($test, strpos($test, "<") + 1, strpos($test, ">") - strpos($test, "<") - 1));
- $check = str_replace("/", '', $check);
+ $check = str_replace('/', '', $check);
if (!in_array($check, $GLOBALS['html_tags'])) {
// Invalid tag found!
return "";
// Automatically insert URLs into newsletter
if ((EXT_IS_ACTIVE('html_mail')) && ($mode == 'html')) {
// Send HTML mail
- SEND_EMAIL($to, $subject, HTML_INSERT_URLS($message), "Y");
+ sendEmail($to, $subject, HTML_INSERT_URLS($message), 'Y');
} else {
// Send normal mail
- SEND_EMAIL($to, $subject, NL_INSERT_URLS($message), "N");
+ sendEmail($to, $subject, NL_INSERT_URLS($message), 'N');
}
} else {
// Regular send-out
if ((EXT_IS_ACTIVE('html_mail')) && ($mode == 'html')) {
- SEND_EMAIL($to, $subject, $message, "Y");
+ sendEmail($to, $subject, $message, 'Y');
} else {
- SEND_EMAIL($to, $subject, $message, "N");
+ sendEmail($to, $subject, $message, 'N');
}
}
}