Work on SMS features

This commit is contained in:
Laurent Destailleur
2011-03-05 16:27:26 +00:00
parent 537d0b62e4
commit 9ff348dfb5
13 changed files with 433 additions and 47 deletions

View File

@@ -1056,7 +1056,7 @@ function dol_print_ip($ip,$mode=0)
/**
* Return true if email syntax is ok.
* @param address email (Ex: "toto@titi.com", "John Do <johndo@titi.com>")
* @return boolean true if email syntax is OK, false if KO or empty string/
* @return boolean true if email syntax is OK, false if KO or empty string
*/
function isValidEmail($address)
{
@@ -1075,6 +1075,16 @@ function isValidEmail($address)
}
}
/**
* Return true if phone number syntax is ok.
* @param address phone (Ex: "0601010101")
* @return boolean true if phone syntax is OK, false if KO or empty string
*/
function isValidPhone($address)
{
return true;
}
/**
* Make a strlen call. Works even if mbstring module not enabled.