+ if(sizeof($arg) != 5)
+ throw new Exception();
+
+ $type_souscription = $arg[0];
+ if($type_souscription && !in_array($type_souscription, array('don', 'adhesion')))
+ throw new Exception();
+
+ $statut = $arg[1];
+ if($statut && !in_array($statut, array('paye', 'commande', 'erreur')))
+ throw new Exception();
+
+ $id_campagne = $arg[2];
+ if($id_campagne && !ctype_digit($id_campagne))
+ throw new Exception();
+
+ $date_debut = $arg[3];
+ $date_fin = $arg[4];
+
+ if(($date_debut && !ctype_digit($date_debut)) || ($date_fin && !ctype_digit($date_fin)))
+ throw new Exception();
+ }
+ catch(Exception $e) {
+ include_spip('inc/minipres');
+ echo minipres();
+ exit;
+ }