Subversion Repositories oidplus

Rev

Rev 277 | Rev 386 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 277 Rev 360
Line 69... Line 69...
69
                </span>
69
                </span>
70
                */
70
                */
71
       
71
 
72
                if ($level == 3) {
72
                if ($level == 3) {
73
                        list($user, $domain) = explode('@', $email);
73
                        list($user, $domain) = explode('@', $email);
74
                        $domain = str_replace('.', ' [dot] ', $domain);
74
                        $domain = str_replace('.', ' '._L('[dot]').' ', $domain);
75
                        return '<span class="spamspan"><span class="u">'.htmlentities($user).'</span> [at] <span class="d">'.htmlentities($domain).'</span></span>';
75
                        return '<span class="spamspan"><span class="u">'.htmlentities($user).'</span> '._L('[at]').' <span class="d">'.htmlentities($domain).'</span></span>';
76
                }
76
                }
77
       
77
 
78
                return null;
78
                return null;
79
       
79
 
80
       
80
 
Line 141... Line 141...
141
                $h->addHeader('MIME-Version', '1.0');
141
                $h->addHeader('MIME-Version', '1.0');
142
                $h->addHeader('Content-Type', 'text/plain; charset=ISO-8859-1');
142
                $h->addHeader('Content-Type', 'text/plain; charset=ISO-8859-1');
143
       
143
 
144
                $sent = $h->sendMail($to, $title, $msg);
144
                $sent = $h->sendMail($to, $title, $msg);
145
                if (!$sent) {
145
                if (!$sent) {
146
                        throw new OIDplusMailException('Sending mail failed');
146
                        throw new OIDplusMailException(_L('Sending mail failed'));
147
                }
147
                }
148
        }
148
        }
149
 
149
 
150
}
150
}