2 if (!defined('_ECRIRE_INC_VERSION')) return;
4 include_spip('inc/config');
6 function formulaires_configurer_souscription_verifier_dist() {
7 /* FIXME: vérifier le format de 'adhesion_montants' et 'don_montants' */
10 $type_saisies = array("input", "radio", "selection");
12 if(_request("adhesion_activer")) {
13 if(!_request("adhesion_type_saisie")) {
14 $erreurs["adhesion_type_saisie"] = _T("souscription:message_nok_champ_obligatoire");
17 if(!in_array(_request("adhesion_type_saisie"), $type_saisies)) {
18 $erreurs["adhesion_type_saisie"] = _T("souscription:message_nok_champ_invalide");
22 if(_request("don_activer")) {
24 if(!_request("don_type_saisie")) {
25 $erreurs["don_type_saisie"] = _T("souscription:message_nok_champ_obligatoire");
28 if(!in_array(_request("don_type_saisie"), $type_saisies)) {
29 $erreurs["don_type_saisie"] = _T("souscription:message_nok_champ_invalide");