Parašė lukyzas· 2010 Vas. 14 10:02:10
#1
taigi sukuriau sia tema kad nereiktu vis kiekviena karta vis nauja tema kurt del 1 klausimao...
1. klausimas:
// 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;
}
yra tas pats kaip ir cia ?
// Strip Input Function, prevents HTML in unwanted places
function stripinput($text) {
if (QUOTES_GPC) $text = stripslashes($text);
$search = array("\"", "'", "\\", '\"', "\'", "<", ">", " ");
$replace = array(""", "'", "\", """, "'", "<", ">", " ");
$text = str_replace($search, $replace, $text);
return $text;
}
nes noriu SEO pasidaryt :D
Redagavo lukyzas· 2010 Vas. 14 10:02:34