Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gnu-fm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
16
Issues
16
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gnu.io
gnu-fm
Commits
aa1424a3
Commit
aa1424a3
authored
May 18, 2014
by
Matt Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass the host to sendEmail()
parent
b5d26fd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
register.php
nixtape/register.php
+2
-3
No files found.
nixtape/register.php
View file @
aa1424a3
...
@@ -32,10 +32,9 @@ if ($registration_disabled == true) {
...
@@ -32,10 +32,9 @@ if ($registration_disabled == true) {
displayError
(
"Registration disabled"
,
"Registration has been disabled by the site owner, sorry!"
);
displayError
(
"Registration disabled"
,
"Registration has been disabled by the site owner, sorry!"
);
}
}
function
sendEmail
(
$to
,
$subject
,
$message
)
{
function
sendEmail
(
$to
,
$subject
,
$message
,
$base_url
)
{
$foo
=
parse_url
(
$base_url
);
$foo
=
parse_url
(
$base_url
);
$domain
=
$foo
[
'host'
];
$domain
=
$foo
[
'host'
];
$headers
=
'From: do-not-reply@'
.
$domain
.
"
\r\n
"
.
$headers
=
'From: do-not-reply@'
.
$domain
.
"
\r\n
"
.
...
@@ -142,7 +141,7 @@ if (isset($_POST['register'])) {
...
@@ -142,7 +141,7 @@ if (isset($_POST['register'])) {
.
"your activation code will be permanently deleted from our database. If you do not want to activate your account, "
.
"your activation code will be permanently deleted from our database. If you do not want to activate your account, "
.
"please disregard this email.
\n\n
"
.
$url
.
"
\n\n
- The "
.
$site_name
.
" Team"
;
.
"please disregard this email.
\n\n
"
.
$url
.
"
\n\n
- The "
.
$site_name
.
" Team"
;
$subject
=
$site_name
.
' Account Activation - Action needed!'
;
$subject
=
$site_name
.
' Account Activation - Action needed!'
;
sendEmail
(
$email
,
$subject
,
$content
);
sendEmail
(
$email
,
$subject
,
$content
,
$base_url
);
$smarty
->
assign
(
'registered'
,
true
);
$smarty
->
assign
(
'registered'
,
true
);
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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