/[dolibarr]/dolibarr/htdocs/lib/functions.inc.php
ViewVC logotype

Diff of /dolibarr/htdocs/lib/functions.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.134 by eldy, Sat Aug 20 14:36:34 2005 UTC revision 1.135 by rodolphe, Tue Aug 23 21:43:33 2005 UTC
# Line 49  function ValidEmail($address) Line 49  function ValidEmail($address)
49    if (ereg( ".*<(.+)>", $address, $regs)) {    if (ereg( ".*<(.+)>", $address, $regs)) {
50      $address = $regs[1];      $address = $regs[1];
51    }    }
52    if (ereg( "^[^@  ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)\$",$address))    if (ereg( "^[^@  ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|info|name|int)\$",$address))
53      {      {
54        return true;        return true;
55      }      }

Legend:
Removed from v.1.134  
changed lines
  Added in v.1.135

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26