Merge branch 'stable-3.1'
| | |
| | | Mail module |
| | | -------------------------------------- |
| | | |
| | | - Show mail statistics in the interface. The mail statistics are stored |
| | | in the database table mail_traffic and are collected by the file |
| | | server/cron_daily.php |
| | | -- For Courier this works but not Dovecot. Maybe the intention needs |
| | | reviewed as some clients think this should be the number of emails |
| | | and not the size of the emails. (I agree that size is important) |
| | | lathama |
| | | |
| | | Administration module |
| | | -------------------------------------- |
| | |
| | | } |
| | | } |
| | | case 'ISEMAIL': |
| | | if($validator['allowempty'] != 'y') $validator['allowempty'] = 'n'; |
| | | if($validator['allowempty'] == 'y' && $field_value == '') { |
| | | //* Do nothing |
| | | } else { |
| | | if(function_exists('filter_var')) { |
| | | if(filter_var($field_value, FILTER_VALIDATE_EMAIL) === false) { |
| | | $errmsg = $validator['errmsg']; |
| | |
| | | } |
| | | } |
| | | } else $this->errorMessage .= "function filter_var missing <br />\r\n"; |
| | | } |
| | | break; |
| | | case 'ISINT': |
| | | if(function_exists('filter_var') && $field_value < 2147483647) { |
| | |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'email_error_isemail'), |
| | | 0 => array ( 'type' => 'ISEMAIL', 'allowempty' => 'y', 'errmsg'=> 'email_error_isemail'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'paypal_email_error_isemail'), |
| | | 0 => array ( 'type' => 'ISEMAIL', 'allowempty' => 'y', 'errmsg'=> 'paypal_email_error_isemail'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | function onInstall() { |
| | | global $conf; |
| | | |
| | | if($conf['services']['db'] == true && class_exists('MongoClient')) { |
| | | /*if($conf['services']['db'] == true && class_exists('MongoClient')) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | }*/ |
| | | |
| | | // Disable mongodb plugin in ISPConfig 3.1 |
| | | return false; |
| | | } |
| | | |
| | | |