on tente une dissuasion de plus face aux spams d'inscription à la liste
This commit is contained in:
parent
1018d151ea
commit
444ba6a0ad
@ -53,6 +53,7 @@ function formulaires_abomailman_mini_une_liste_verifier_dist($id_abomailman = ""
|
||||
function formulaires_abomailman_mini_une_liste_traiter_dist($id_abomailman = ""){
|
||||
include_spip('inc/abomailmans');
|
||||
|
||||
function baz_april_abo() {
|
||||
$nom = _request('nom');
|
||||
$email = _request('email');
|
||||
|
||||
@ -89,4 +90,17 @@ function formulaires_abomailman_mini_une_liste_traiter_dist($id_abomailman = "")
|
||||
} else {
|
||||
return array('message_erreur' => $message_listes);
|
||||
}
|
||||
}
|
||||
|
||||
// conditionner l'action au rechargement de la page
|
||||
// https://contrib.spip.net/NoSPAM#S-assurer-que-l-internaute-recharge-la-page-avant-de-lancer-l-action
|
||||
include_spip('inc/nospam');
|
||||
if (function_exists('nospam_confirm_action_html')) {
|
||||
$html_confirm = nospam_confirm_action_html("baz_april_abo", "action abomailmans", $args);
|
||||
$res['message_ok'] .= $html_confirm;
|
||||
}
|
||||
else {
|
||||
// ICI lancer normalement mafonction()
|
||||
baz_april_abo();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user