|
From: Benjamin C. <bc...@us...> - 2001-07-26 17:22:26
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv4522 Modified Files: include.php newaccount.php Log Message: Fixed problems with valid_email not being defined in admin/user.php by moving it to include.php Index: include.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/include.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- include.php 2001/07/21 19:05:29 1.12 +++ include.php 2001/07/26 17:22:23 1.13 @@ -363,4 +363,11 @@ else return ''; } +/// +/// Check the validity of an email address +/// (From zend.com) +function valid_email($email) { + return eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$', $email); +} + ?> Index: newaccount.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- newaccount.php 2001/07/21 03:03:05 1.4 +++ newaccount.php 2001/07/26 17:22:23 1.5 @@ -4,13 +4,6 @@ include 'include.php'; -/// -/// Check the validity of an email address -/// (From zend.com) -function valid_email($email) { - return eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$', $email); -} - function do_form() { global $q, $t, $email, $firstname, $lastname, $STRING; |