/*Line 1230*/ public function valid_email($str)
/*Line 1231*/ {
/*Line 1232*/ if (function_exists('idn_to_ascii') && preg_match('#\A([^@]+)@(.+)\z#', $str, $matches))
/*Line 1233*/ {
/*Line 1234*/ $domain = is_php('5.4')
/*Line 1235*/ ? idn_to_ascii($matches[2], 0, INTL_IDNA_VARIANT_UTS46)
/*Line 1236*/ : idn_to_ascii($matches[2]);
/*Line 1237*/ $str = $matches[1].'@'.$domain;
/*Line 1238*/ }
/*Line 1239*/
/*Line 1240*/ return (bool) filter_var($str, FILTER_VALIDATE_EMAIL);
/*Line 1241*/ }