From dd117521106e4f04333de205da141275b3d148cc Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Mon, 19 Jul 2004 21:10:07 +0000
Subject: [PATCH] =?UTF-8?q?gros=20hack=20anti-duplication=20;=20ce=20que?=
 =?UTF-8?q?=20je=20ne=20comprends=20pas=20c'est=20que=20fopen(wb)=20est=20?=
 =?UTF-8?q?cens=C3=A9=20remettre=20le=20fichier=20=C3=A0=20taille=200.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 inc-cache.php3 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/inc-cache.php3 b/inc-cache.php3
index 2e82dd9107..7a973fce6a 100644
--- a/inc-cache.php3
+++ b/inc-cache.php3
@@ -89,6 +89,8 @@ function ramener_squelette($squelette)
   $r = calculer_squelette($r, $nom, $e);
   $timer_b = explode(" ", microtime());
   $timer = ceil(1000*($timer_b[0] + $timer_b[1]-$timer_a[0]-$timer_a[1]));
+
+	if (file_exists($phpfile)) unlink($phpfile); // eviter tout probleme de duplication de contenu !!
   $f=fopen($phpfile, "wb"); 
   fwrite($f,"<?php # $squelette pid: " .  getmypid() ."\n");
   fwrite($f,$r);
-- 
GitLab