| | |
| | | } |
| | | |
| | | if(is_array($wb_global)) { |
| | | $wb = array_merge($wb_global, $wb); |
| | | $wb = $app->functions->array_merge($wb_global, $wb); |
| | | } |
| | | if(isset($wb_global)) unset($wb_global); |
| | | |
| | |
| | | } |
| | | } |
| | | break; |
| | | case 'ISASCII': |
| | | if(preg_match("/[^\x20-\x7F]/", $field_value)) { |
| | | $errmsg = $validator['errmsg']; |
| | | if(isset($this->wordbook[$errmsg])) { |
| | | $this->errorMessage .= $this->wordbook[$errmsg]."<br />\r\n"; |
| | | } else { |
| | | $this->errorMessage .= $errmsg."<br />\r\n"; |
| | | } |
| | | } |
| | | case 'ISEMAIL': |
| | | if(function_exists('filter_var')) { |
| | | if(filter_var($field_value, FILTER_VALIDATE_EMAIL) === false) { |
| | |
| | | $perm = $app->db->quote($perm); |
| | | $table = $app->db->quote($table); |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] == 'admin') { |
| | | if($_SESSION["s"]["user"]["typ"] == 'admin' || $_SESSION['s']['user']['mailuser_id'] > 0) { |
| | | return '1'; |
| | | } else { |
| | | if ($table != ''){ |