function espControll($str,$encode=0)
{
if($encode==1)
{
if (!get_magic_quotes_gpc()) {
$str = addslashes(htmlentities($str,ENT_QUOTES,’cp1252′));
}
else
$str = htmlentities($str,ENT_QUOTES,’cp1252′);
}
else
{
if (!get_magic_quotes_gpc()) {
$str = addslashes($str);
}
}
return $str;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.