Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: php-f Seo

Parašė Scarletas· 2012 Bal. 5 19:04:49
#2

Ji niekur nėra pradingusi ir ji yra pas tave tik kitaip užkoduota.
Štai kodas: ( 332-346 eil. )
// Strip Input Function, prevents HTML in unwanted places
function stripinput($text) {
if (!is_array($text)) {
$text = stripslash(trim($text));
//$text = preg_replace("/&[^#0-9]/", "&", $text)
$search = array("&", "\"", "'", "\\", '\"', "\'", "<", ">", "&nbsp;");
$replace = array("&amp;", "&quot;", "'", "\", "&quot;", "'", "&lt;", "&gt;", " ");
$text = preg_replace("/(&amp;)+(?=\#([0-9]{2,3});)/i", "&", str_replace($search, $replace, $text));
} else {
foreach ($text as $key => $value) {
$text[$key] = stripinput($value);
}
}
return $text;
}


Po:
return $text;
}

Įterpk kodą:
require_once INCLUDES."seoname.php";