Working SMS activation form

This commit is contained in:
nikolark committed 2014-08-11 15:50:16 +02:00
1 parent 929a64e428
commit 9c85464303
6 files changed
+69 -39

No files matched your search

+5
View File
@@ -1720,6 +1720,11 @@ function clean_date($date) {
// returns a DateTime object
return date_create_from_format('Y-m-d', $date);
}
// MySQL TIMESTAMP Y-m-d H:i:s
function clean_timestamp($date) {
// returns a DateTime object
return date_create_from_format('Y-m-d H:i:s', $date);
}
// E.164
function valid_phonenumber($phone) {
return preg_match('/^\+?\d{8,15}$/i', $phone);