[SPIP] ~v3.0.20-->v3.0.25
[lhc/web/clavette_www.git] / www / plugins-dist / statistiques / public / stats.php
index 11a755f..27f3cd3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -87,6 +87,10 @@ function public_stats_dist() {
 
                ecrire_fichier($fichier, serialize($content));
        }
+       else {
+               $flood = sous_repertoire(_DIR_TMP, 'flood') . $GLOBALS['ip'];
+               @touch($flood);
+       }
 }
 
 ?>