X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.test_email.php;h=932c998b62461a396a51316718b64ce447927019;hb=cf81c359b80ad4280a0b3719e0a32c8adba2549d;hp=d9e68ff6718f19b2656e53b2896cec8bab2ba063;hpb=5f30b30e8b2657ade5c727e98de286386ee002d8;p=platal.git diff --git a/plugins/function.test_email.php b/plugins/function.test_email.php index d9e68ff..932c998 100644 --- a/plugins/function.test_email.php +++ b/plugins/function.test_email.php @@ -20,11 +20,13 @@ ***************************************************************************/ function smarty_function_test_email($params, &$smarty) { - $label = isset($params['title']) ? $params['title'] : 'Envoyer un mail de test'; - $forlife = isset($params['forlife']) ? "'" . $params['forlife'] . "'" : ''; + $label = isset($params['title']) ? $params['title'] : 'Envoyer un email de test'; + $token = "'" . S::v('xsrf_token') . (isset($params['hruid']) ? "', " : "'"); + $hruid = isset($params['hruid']) ? "'" . $params['hruid'] . "'" : ''; return '
' . '

' - . '
' + . ' ' + . ' ' . '
' . '
' . '
';