/[cvs]/nfo/php/libs/org.netfrag.flib/utils/helper.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.flib/utils/helper.php

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

revision 1.9 by jonen, Tue Sep 7 18:52:01 2004 UTC revision 1.10 by jonen, Wed Nov 3 14:13:45 2004 UTC
# Line 3  Line 3 
3  //    $Id$  //    $Id$
4  //    -----------------------------------------------------------------------------  //    -----------------------------------------------------------------------------
5  //    $Log$  //    $Log$
6    //    Revision 1.10  2004/11/03 14:13:45  jonen
7    //    minor changes related to check mail-address
8    //
9  //    Revision 1.9  2004/09/07 18:52:01  jonen  //    Revision 1.9  2004/09/07 18:52:01  jonen
10  //    added function 'format_amount'  //     added function 'format_amount'
11  //  //
12  //    Revision 1.8  2003/03/03 21:21:43  joko  //    Revision 1.8  2003/03/03 21:21:43  joko
13  //    refactored most reusable code to org.netfrag.glib/php_extensions.php  //    refactored most reusable code to org.netfrag.glib/php_extensions.php
# Line 88  function isvalidemailaddress($mail) { Line 91  function isvalidemailaddress($mail) {
91    if( !eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*"."@([a-z0-9]+([\.-][a-z0-9]+))*$",$mail, $regs) ) {    if( !eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*"."@([a-z0-9]+([\.-][a-z0-9]+))*$",$mail, $regs) ) {
92          return "format";          return "format";
93    }    }
94    elseif( gethostbynamel($regs[2]) == $regs[2] ) {    elseif( gethostbyname($regs[2]) == $regs[2] ) {
95      return "host";      return "host";
96    }    }
97    return "valid";    return "valid";

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed