************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
+
//
function HTML_ADD_VALID_TAGS()
{
$text .= $part;
}
- // Replace new-lines agains <BR>-s and finally compile possible own HTML tags out...
- return COMPILE_CODE(str_replace("\n", "<BR>\n", $text));
+ // Replace new-lines agains <br />-s and finally compile possible own HTML tags out...
+ return COMPILE_CODE(str_replace("\n", "<br />\n", $text));
}
//
function SEND_HTML_EMAIL($TO, $SUBJECT, $MSG, $FROM)
{
// Send mail away as HTML
$FROM = "Content-Type: text/html\n".$FROM;
- SEND_EMAIL($TO, $SUBJECT, $MSG, "N", $FROM);
+ SEND_EMAIL($TO, $SUBJECT, $MSG, 'N', $FROM);
}
}
//