Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
f951aa99
Commit
f951aa99
authored
Sep 11, 2012
by
Jerome Mariette
Browse files
send an email when a user is added to the system
parent
183cd847
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/nG6/class.tx_nG6_eid.php
View file @
f951aa99
...
...
@@ -484,6 +484,7 @@ class tx_nG6_eid {
$clearpassword
=
trim
(
t3lib_div
::
_GP
(
'clearpassword'
));
$from_email
=
trim
(
t3lib_div
::
_GP
(
'from_email'
));
$pid
=
trim
(
t3lib_div
::
_GP
(
'pid'
));
$project_url
=
trim
(
t3lib_div
::
_GP
(
'project_url'
));
// if group not exists, create group
$group_id
=
tx_nG6_db
::
get_group_id
(
$group_name
);
...
...
@@ -540,7 +541,7 @@ class tx_nG6_eid {
$message
=
str_replace
(
"###USER_LAST_NAME###"
,
$last_name
,
$message
);
$message
=
str_replace
(
"###PROJECT_NAME###"
,
$project
[
"name"
],
$message
);
$message
=
str_replace
(
"###PROJECT_DESCRIPTION###"
,
$project
[
"description"
],
$message
);
$message
=
str_replace
(
"###PROJECT_LINK###"
,
"http://lemonde.fr"
,
$message
);
$message
=
str_replace
(
"###PROJECT_LINK###"
,
$project_url
,
$message
);
$msg_table
=
explode
(
'\n'
,
$message
);
$message
=
implode
(
"
\n
"
,
$msg_table
);
mail
(
$email
,
$add_user_title
,
$message
,
"From: <"
.
$from_email
.
">"
);
...
...
ui/nG6/res/js/tx_nG6_pi1.js
View file @
f951aa99
...
...
@@ -701,7 +701,7 @@ $(function () {
$
(
"
#user_information_dialog
"
).
dialog
(
'
option
'
,
'
buttons
'
,
buttons
);
}
});
});
/* add user to project option */
$
(
"
:button[id=add_user]
"
).
click
(
function
(){
...
...
@@ -1115,6 +1115,7 @@ $(function () {
val_url
+=
"
&create_user_email=
"
+
escape
(
$
(
"
#create_user_email
"
).
val
());
val_url
+=
"
&create_user_title=
"
+
$
(
"
#create_user_title
"
).
val
();
val_url
+=
"
&from_email=
"
+
$
(
"
#from_email
"
).
val
();
val_url
+=
"
&project_url=
"
+
escape
(
location
.
href
);
$
.
ajax
({
url
:
val_url
,
...
...
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