Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00
Open sidebar
genotoul-bioinfo
ng6
Commits
953b8d40
Commit
953b8d40
authored
Sep 06, 2019
by
Romain Therville
☕
Browse files
Update for the analyzes list that appears in the purge mail.
parent
5645d27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi6/class.tx_nG6_pi6.php
View file @
953b8d40
...
...
@@ -164,8 +164,10 @@ class tx_nG6_pi6 extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
$run_info
[]
=
'<a href="'
.
str_replace
(
$search
,
$replace
,
$GLOBALS
[
'TSFE'
]
->
tmpl
->
setup
[
"plugin."
][
"tx_nG6_pi6."
][
"run_link_url"
])
.
'">'
.
$run
[
"name"
]
.
' ('
.
$run_id
.
')</a>'
;
}
foreach
(
$all_purgeable_analysis
as
$analysis_id
){
$analysis
=
tx_nG6_db
::
select_analyse
(
$analysis_id
);
$analysis_name
=
$analysis
[
"name"
];
$replace
=
array
(
"analyze_id"
,
$analysis_id
,
$project_id
);
$analyses_info
[]
=
'<a href="'
.
str_replace
(
$search
,
$replace
,
$GLOBALS
[
'TSFE'
]
->
tmpl
->
setup
[
"plugin."
][
"tx_nG6_pi6."
][
"run_link_url"
])
.
'">'
.
$analysis_id
.
'</a>'
;
$analyses_info
[]
=
'<a href="'
.
str_replace
(
$search
,
$replace
,
$GLOBALS
[
'TSFE'
]
->
tmpl
->
setup
[
"plugin."
][
"tx_nG6_pi6."
][
"run_link_url"
])
.
'">'
.
$analysis_
name
.
' ('
.
$analysis_
id
.
'
)
</a>'
;
}
if
(
!
$GLOBALS
[
'TSFE'
]
->
fe_user
->
user
[
'uid'
]){
http_response_code
(
401
);
...
...
@@ -183,7 +185,8 @@ class tx_nG6_pi6 extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
$GLOBALS
[
'TSFE'
]
->
tmpl
->
setup
[
"plugin."
][
"tx_nG6_pi6."
][
"extension_url_price"
],
$GLOBALS
[
'TSFE'
]
->
tmpl
->
setup
[
"plugin."
][
"tx_nG6_pi6."
][
"min_extension_duration"
],
$GLOBALS
[
'TSFE'
]
->
tmpl
->
setup
[
"plugin."
][
"tx_nG6_pi6."
][
"min_extension_size"
],
$email_warn
,
join
(
', '
,
$run_info
),
join
(
', '
,
$analyses_info
));
$to
=
$purge_email_to
;
//$to = $purge_email_to;
$to
=
"romain.therville@inra.fr"
;
$subject
=
'[nG6 purge] No '
.
$purge_demand_id
.
' - Project '
.
$p
[
$project_id
][
"project_name"
];
$headers
[]
=
'From: '
.
$GLOBALS
[
'TSFE'
]
->
tmpl
->
setup
[
"plugin."
][
"tx_nG6_pi6."
][
"email_from"
];
//$headers[] = 'From: gerald.salin@inra.fr';
...
...
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