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 |
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"; |