Parašė Scarletas· 2012 Bal. 5 19:04:49
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("&", "\"", "'", "\\", '\"', "\'", "<", ">", " ");
$replace = array("&", """, "'", "\", """, "'", "<", ">", " ");
$text = preg_replace("/(&)+(?=\#([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";