@@ -174,6 +174,15 @@ class Utils | |||
return $truncate; | |||
} | |||
function stripAccents($stripAccents) | |||
{ | |||
return strtr($stripAccents,'àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ','aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); | |||
} | |||
function cleanStringToCompare($string) | |||
{ | |||
return $this->stripAccents(trim(strtolower($string))) ; | |||
} | |||
public function isBot() | |||
{ |