Après, voici le début de mon code de la page Validate.php
class ValidateCore
{
public static function isIp2Long($ip)
{
return preg_match('#^-?[0-9]+$#', (string)$ip);
}
public static function isAnything()
{
return true;
}
/**
* Check for SPAM // CODE DOEKIA
*
*/
public static function isCustomerName($name)
{
if (preg_match(Tools::cleanNonUnicodeSupport('/www|http/ui'),$name))
return false;
return preg_match(Tools::cleanNonUnicodeSupport('/^[^0-9!\[\]<>,;?=+()@#"°{}_$%:\/\\\*\^]*$/u'), $name);
}
/**
* Check for e-mail validity
......