[PLUGINS] ~formidable 1.3.6 --> 1.9.1
[lhc/web/www.git] / www / plugins / formidable_1_0 / traiter / enregistrement.php
index 8277067..6496789 100644 (file)
@@ -50,7 +50,7 @@ function traiter_enregistrement_dist($args, $retours){
                 'id_formulaire' => $id_formulaire,
                 'id_auteur' => $id_auteur,
                 'cookie' => $cookie,
-                'ip' => $GLOBALS['ip'],
+                'ip' => $args['options']['ip'] == 'on' ? $GLOBALS['ip'] : '',
                 'date' => 'NOW()',
                 'statut' => $statut
             )
@@ -100,8 +100,8 @@ function traiter_enregistrement_dist($args, $retours){
                 $insertions
             );
         }
+        $retours['message_ok'] .= "\n"._T('formidable:traiter_enregistrement_message_ok');
     }
-
     return $retours;
 }