Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
1bb82f5e
Commit
1bb82f5e
authored
Dec 22, 2008
by
fantu
Browse files
replace ereg (deprecated in php 5.3)
parent
923fafc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tform_actions.inc.php
View file @
1bb82f5e
...
...
@@ -418,11 +418,11 @@ class tform_actions {
$headers
.
=
"Content-type: text/html; charset=iso-8859-1
\n
"
;
$headers
.
=
"From:
$sender
\n
"
;
if
(
!
e
reg
(
'^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'
.
'@'
.
'([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+'
.
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$'
,
$sender
))
{
if
(
!
p
reg
_match
(
'
/
^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'
.
'@'
.
'([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+'
.
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$
/
'
,
$sender
))
{
$sender
=
'noreply@iprguard.de'
;
}
if
(
e
reg
(
'^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'
.
'@'
.
'([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+'
.
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$'
,
$email
))
{
if
(
p
reg
_match
(
'
/
^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'
.
'@'
.
'([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+'
.
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$
/
'
,
$email
))
{
mail
(
$email
,
'Domainrecherche Statement '
.
$record
[
"domain"
],
$email_message
,
$headers
);
}
echo
"<p> </p><p>Email wurde versand.</p>"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment