Merge branch 'stable-3.1'
| | |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i', |
| | | 'errmsg'=> 'email_error_isemail'), |
| | | 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'email_error_isemail'), |
| | | 1 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'email_error_empty'), |
| | | ), |
| | |
| | | 2 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i', |
| | | 'errmsg'=> 'paypal_email_error_isemail'), |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'email_error_isemail'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | 2 => array( 'event' => 'SAVE','type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i', |
| | | 'errmsg'=> 'email_error_isemail'), |
| | | 1 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'email_error_empty'), |
| | | ), |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\w+\.[a-zA-Z0-9\-]{2,30}$/i', |
| | | 'errmsg'=> 'email_error_isemail'), |
| | | 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'email_error_isemail'), |
| | | 1 => array ( 'type' => 'NOTEMPTY', 'errmsg'=> 'email_error_empty'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | 2 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i', |
| | | 'errmsg'=> 'paypal_email_error_isemail'), |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'paypal_email_error_isemail'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | 2 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | //'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\w+\.[a-z\-]{2,10}){0,1}$/i', |
| | | 'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}(,\s*\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,}$/i', |
| | | 'errmsg'=> 'cc_error_isemail'), |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'cc_error_isemail'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | } |
| | | |
| | | //* Send the welcome email message |
| | | if(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt')) { |
| | | $domain = explode('@', $data["new"]["email"])[1]; |
| | | if(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt')) { |
| | | $lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt'); |
| | | } elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt')) { |
| | | $lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt'); |
| | | } elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_en.txt')) { |
| | | $lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_en.txt'); |