************************************************************************/
// 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()
{
}
// Now replace the URL against anchor container and pray...
- $text = substr($text, 0, strpos($text, $check2))."<A href=\"".DEREFERER($check)."\" target=\"_blank\">".$check."</A>".substr($text, strpos($text, $check2) + strlen($check));
+ $text = substr($text, 0, strpos($text, $check2))."<a href=\"".DEREFERER($check)."\" target=\"_blank\">".$check."</a>".substr($text, strpos($text, $check2) + strlen($check));
// Finally remove the url from testing string (or we have a loop and maybe server overload!)
$test = substr($test, strpos($test, $check) + strlen($check));
}
// Now replace the email against anchor with mailto and pray...
- $PARTS[] = $check2."<A href=\"mailto:".$check."\">".$check."</A>";
+ $PARTS[] = $check2."<a href=\"mailto:".$check."\">".$check."</a>";
// Remove email from testing string (see above why...)
$test = substr($test, strlen($check));
$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);
}
}
//