Parašė SwesH· 2010 Sau. 30 21:01:42
#3
// Strip Input Function for Members, prevents HTML in unwanted places
function superinput($text) {
if (QUOTES_GPC) $text = stripslashes($text);
$search = array("<script", "script>", "/script", "<?", "?>", "document.cookie", "+document", "cookie;", "Cookie:", "Image()", "_GET", "REMOTE_ADDR", "HTTP_REFERER");
$replace = array("-script-", "-script-", "-script-", "<.?", "?.>", "-document-", "-document-", "-cookie-", "-cookie-", "-Image-", "-get-", "-remote-addr-", "-http-referer-");
$text = str_replace($search, $replace, $text);
return $text;
}
Neranda man