Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: lukyzas klausimai

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("&#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;
}



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("\"", "'", "\\", '\"', "\'", "<", ">", "&nbsp;");
   $replace = array("&quot;", "&#39;", "&#92;", "&quot;", "&#39;", "&lt;", "&gt;", " ");
   $text = str_replace($search, $replace, $text);
   return $text;
}




nes noriu SEO pasidaryt :D

Redagavo lukyzas· 2010 Vas. 14 10:02:34