/** * 2024-04-22 created by Wario : stopper les spams clients (faux comptes) * ref : https://www.arnaud-merigeau.fr/comment-proteger-prestashop-des-comptes-clients-spams/ */ class Validate extends ValidateCore { 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); } }
Fatal error: Uncaught Error: Class 'Validate' not found in /home/lemasreyeb/www/classes/shop/Shop.php:694 Stack trace: #0 /home/lemasreyeb/www/classes/shop/Shop.php(770): ShopCore::cacheShops() #1 /home/lemasreyeb/www/classes/Configuration.php(294): ShopCore::getShops(false, NULL, true) #2 /home/lemasreyeb/www/classes/shop/Shop.php(384): ConfigurationCore::getMultiShopValues('PS_MEDIA_SERVER...') #3 /home/lemasreyeb/www/config/config.inc.php(128): ShopCore::initialize() #4 /home/lemasreyeb/www/index.php(27): require('/home/lemasreye...') #5 {main} thrown in /home/lemasreyeb/www/classes/shop/Shop.php on line 694