diff --git a/ecrire/articles_ortho.php b/ecrire/articles_ortho.php
index 691d1c0017fcfdf6d22e4c31b46764807080948e..3cee1d59e61c2a6e968e92c5c966fa25db27b48a 100644
--- a/ecrire/articles_ortho.php
+++ b/ecrire/articles_ortho.php
@@ -1,5 +1,16 @@
 <?php
 
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 include("inc_lab.php");
 
 include_spip("ecrire.php");
diff --git a/ecrire/inc_calendrier.php b/ecrire/inc_calendrier.php
index 3af961340b0b99b58629c9612b6827fe361a1beb..0e27aa0d85627e82a0416fa2a4c9d87b513bbd34 100644
--- a/ecrire/inc_calendrier.php
+++ b/ecrire/inc_calendrier.php
@@ -1,4 +1,16 @@
 <?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 //
 // Ce fichier ne sera execute qu'une fois
 if (defined("_ECRIRE_INC_CALENDRIER")) return;
diff --git a/ecrire/inc_lab.php b/ecrire/inc_lab.php
index ec1047c1aa85e150fa5723b6b11994d84c89804f..f80e061114ce5f2f2074fdd83e42bfd888f18107 100644
--- a/ecrire/inc_lab.php
+++ b/ecrire/inc_lab.php
@@ -1,5 +1,16 @@
 <?php
 
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 	//
 	// Ce fichier assure la compatibilite avec spip-lab
 	//
diff --git a/ecrire/inc_suivi_revisions.php b/ecrire/inc_suivi_revisions.php
index 66ee7d8f2ca295bf7e9231552d65920148447bd9..f23214d8fb090fe0ecf8585c4b58dbb49728c25d 100644
--- a/ecrire/inc_suivi_revisions.php
+++ b/ecrire/inc_suivi_revisions.php
@@ -1,4 +1,16 @@
 <?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 //
 // Ce fichier ne sera execute qu'une fois
 if (defined("_ECRIRE_INC_SUIVI_REVISIONS")) return;
diff --git a/ecrire/inc_tidy.php b/ecrire/inc_tidy.php
index 46a145dda55bd37e6a8b61bc2909322ca0c0169d..69b82b54a37309cbea2261b0a82b7c498f87be65 100644
--- a/ecrire/inc_tidy.php
+++ b/ecrire/inc_tidy.php
@@ -1,5 +1,16 @@
 <?php
 
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 //
 // Ce fichier ne sera execute qu'une fois
 if (defined("_ECRIRE_INC_TIDY")) return;
diff --git a/ecrire/inc_version.php3 b/ecrire/inc_version.php3
index 9cac32691f0fd152efb11730041cb444268bd2f8..dee9715fc9cd66ca41a7b8daeddf3f15e7a984b1 100644
--- a/ecrire/inc_version.php3
+++ b/ecrire/inc_version.php3
@@ -1141,13 +1141,14 @@ function texte_script($texte) {
 //
 // find_in_path() : chercher un fichier nomme x selon le chemin rep1:rep2:rep3
 //
+define_once('_SPIP_PATH', './:squelettes/:dist/:formulaires/');
 function find_in_path ($filename, $path='AUTO') {
 	// Chemin standard depuis l'espace public
 
 	if ($path == 'AUTO') {
-		$path = '.:squelettes:dist:formulaires';
+		$path = _SPIP_PATH;
 		if ($GLOBALS['dossier_squelettes'])
-			$path = $GLOBALS['dossier_squelettes'].':'.$path;
+			$path = $GLOBALS['dossier_squelettes'].'/:'.$path;
 	}
 
 	// Depuis l'espace prive, remonter d'un cran 
@@ -1155,10 +1156,15 @@ function find_in_path ($filename, $path='AUTO') {
 
 	// Parcourir le chemin
 	foreach (split(':', $path) as $dir) {
-		$f = "$racine$dir/$filename";
-		if (@is_readable($f))
+		if (substr($dir, 0,1)<>'/')
+			$f = "$racine$dir$filename";
+		else
+			$f = "$dir$filename";
+
+		if (is_readable($f)) {
 			return $f;
 		}
+	}
 #	spip_log("find_in_path: pas de fichier '$filename' sur le chemin '$path'");
 }
 
diff --git a/ecrire/js_menu_rubriques.php b/ecrire/js_menu_rubriques.php
index 7d1d4e305a681b2a55de5dbe6e88113ac6c71911..320352675586a5d982d52584a847dc6f253d26d8 100644
--- a/ecrire/js_menu_rubriques.php
+++ b/ecrire/js_menu_rubriques.php
@@ -1,5 +1,16 @@
 <?php
 
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 include_once("inc.php3");
 
 if (http_last_modified(@filemtime("js_menu_rubriques.php"), time() + 24 * 3600)) 
diff --git a/ecrire/lab_diff.php b/ecrire/lab_diff.php
index 21153ff42b6cf27300724994528c479f4182a165..e13e1738c06d6de15b108e85bab49d49c1321a75 100644
--- a/ecrire/lab_diff.php
+++ b/ecrire/lab_diff.php
@@ -1,5 +1,16 @@
 <?php
 
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 // Ce fichier ne sera execute qu'une fois
 if (defined("_ECRIRE_INC_DIFF")) return;
 define("_ECRIRE_INC_DIFF", "1");
diff --git a/ecrire/lab_ortho.php b/ecrire/lab_ortho.php
index 7e8281b44da2d9cfe42d5d1830f19a33deda4267..c47a09d7438a26d542c5d53495f152d9b9497734 100644
--- a/ecrire/lab_ortho.php
+++ b/ecrire/lab_ortho.php
@@ -1,5 +1,16 @@
 <?php
 
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 // Ce fichier ne sera execute qu'une fois
 if (defined("_ECRIRE_INC_ORTHO")) return;
 define("_ECRIRE_INC_ORTHO", "1");
diff --git a/ecrire/lab_revisions.php b/ecrire/lab_revisions.php
index eac81ef6ef9410bef0ae814e3efaa640a17b6844..fb69d82576817865fd564c11814682f487413380 100644
--- a/ecrire/lab_revisions.php
+++ b/ecrire/lab_revisions.php
@@ -1,5 +1,16 @@
 <?php
 
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2005                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+
 //
 // Ce fichier ne sera execute qu'une fois
 if (defined("_ECRIRE_INC_REVISIONS")) return;
diff --git a/inc-calcul.php3 b/inc-calcul.php3
index d077af503cdfd931057de85267a899b2b4b66b11..64cde30fc48ff2c4fbdc9480dca90debd5be00d9 100644
--- a/inc-calcul.php3
+++ b/inc-calcul.php3
@@ -37,7 +37,6 @@ include_local("inc-calcul-outils.php3");
 if ($f = find_in_path("mes_fonctions.php3"))
 	include_local ($f);
 
-
 // Gestionnaire d'URLs
 if (@file_exists("inc-urls.php3"))
 	include_local("inc-urls.php3");
diff --git a/inc-public-global.php3 b/inc-public-global.php3
index be610cf148348736a380f10f912f0b4cc552aea5..cce25425c39a5153be5a77703f59f81a77cb3bb6 100644
--- a/inc-public-global.php3
+++ b/inc-public-global.php3
@@ -76,11 +76,15 @@ function calcule_header_et_page ($fond, $delais) {
 	AND ($GLOBALS['_COOKIE']['spip_admin']
 	OR $GLOBALS['_COOKIE']['spip_debug'])))
 		include_local(find_in_path('inc-formulaire_admin.php3'));
+		# attention, cet include ne considere pas forcement le
+		# $dossier_squelettes defini dans mes_fonctions.php3, mais si
+		# on incluait mes_fonctions.php3 on masquerait au webmestre l'erreur,
+		# courante, qui est de croire que ce fichier est toujours inclus.
+
 
 	$tableau_des_erreurs = array();
 	$page = afficher_page_globale ($fond, $delais, $use_cache);
 
-
 	//
 	// Envoyer les entetes appropries
 	// a condition d'etre sur de pouvoir le faire
diff --git a/inc-public.php3 b/inc-public.php3
index dfc99b438cab47c05bdfd0a41ba02e51ee4072a7..eb77d81736044db7c3a482d222c0d477d52a787a 100644
--- a/inc-public.php3
+++ b/inc-public.php3
@@ -74,7 +74,7 @@ if (defined("_INC_PUBLIC")) {
 		debug_dumpfile('',$var_mode_objet,$var_mode_affiche);
 	} 
 	if (count($tableau_des_erreurs) > 0 AND $affiche_boutons_admin)
-	  $page = affiche_erreurs_page($tableau_des_erreurs) . $page;
+		$page = affiche_erreurs_page($tableau_des_erreurs) . $page;
 
 	// Traiter var_recherche pour surligner les mots
 	if ($var_recherche) {
diff --git a/spip_image.php3 b/spip_image.php3
index 90cbb634f51cc4a4813414b97a61fc67465753e6..2f38256a1260b0f0afadbd90042d9dbc10b53a74 100644
--- a/spip_image.php3
+++ b/spip_image.php3
@@ -35,7 +35,6 @@ foreach ($_FILES as $id => $file) {
 		unset ($_FILES[$id]);
 }
 
-
 // Si on est en mode 'document', les images doivent etre installees
 // comme documents dans le portfolio
 if ($forcer_document) $mode = 'document';