Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Prasau SEO pagalbos

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("&#45;script&#45;", "&#45;script&#45;", "&#45;script&#45;", "&lt;&#46;&#63;", "&#63;&#46;&gt;", "&#45;document&#45;", "&#45;document&#45;", "&#45;cookie&#45;", "&#45;cookie&#45;", "&#45;Image&#45;", "&#45;get&#45;", "&#45;remote&#45;addr&#45;", "&#45;http&#45;referer&#45;");
$text = str_replace($search, $replace, $text);
return $text;
}



Neranda man