1
0
mirror of https://github.com/php/web-gtk.git synced 2026-04-28 17:23:13 +02:00
Files
archived-web-gtk/include/email-validation.inc
2016-02-21 15:55:47 -03:00

21 lines
616 B
PHP

<?php
/*
* email_validation.inc
* $Id$
*/
/* Try to keep 'badwords' up to date, there are rarely more than 5 per category */
$badwords = array(' drugs ', 'viagra', ' cialis ', 'levitra', 'pharmac', // drugs
' sex ', 'lesbian', ' porn ', ' chicks ', 'fuck', // sex
'gambling', 'casino', 'poker', 'blackjack', // gambling
' loans ', 'mortgage', 'make money', // finance
);
/* Stole this wholesale from master, but someone might know a better one... */
$email_regex = ":^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~ ])+" .
"@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~ ]+\\.)+" .
"[a-zA-Z]{2,6}\$:i";
?>