From 9d512cc840fa2311533ecc878e745874cb533acf Mon Sep 17 00:00:00 2001 From: "kent1@arscenic.info" <> Date: Fri, 7 Oct 2011 11:38:27 +0000 Subject: [PATCH] =?UTF-8?q?if=20(!defined("=5FECRIRE=5FINC=5FVERSION"))=20?= =?UTF-8?q?return;=20sur=20tout=20fichier=20PHP=20pour=20s=C3=A9curit?= =?UTF-8?q?=C3=A9=20future=20principalement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/date_gestion.php | 1 + inc/exporter_csv.php | 2 ++ inc/importer_csv.php | 4 +++- lang/spip_bonux_ar.php | 1 + lang/spip_bonux_en.php | 1 + lang/spip_bonux_fr.php | 1 + public/spip_bonux_balises.php | 1 + public/spip_bonux_criteres.php | 3 +-- spip_bonux_fonctions.php | 1 + spip_bonux_options.php | 2 ++ 10 files changed, 14 insertions(+), 3 deletions(-) diff --git a/inc/date_gestion.php b/inc/date_gestion.php index c5dfdc8..5fd2c99 100644 --- a/inc/date_gestion.php +++ b/inc/date_gestion.php @@ -6,6 +6,7 @@ * Licence GPL */ +if (!defined('_ECRIRE_INC_VERSION')) return; /** * Recuperer les champs date_xx et heure_xx, verifier leur coherence et les reformater diff --git a/inc/exporter_csv.php b/inc/exporter_csv.php index c2556f0..bad0aed 100644 --- a/inc/exporter_csv.php +++ b/inc/exporter_csv.php @@ -11,6 +11,8 @@ * */ +if (!defined('_ECRIRE_INC_VERSION')) return; + include_spip('inc/charsets'); include_spip('inc/filtres'); include_spip('inc/texte'); diff --git a/inc/importer_csv.php b/inc/importer_csv.php index fd94029..0e1a4cf 100644 --- a/inc/importer_csv.php +++ b/inc/importer_csv.php @@ -9,6 +9,8 @@ * */ +if (!defined('_ECRIRE_INC_VERSION')) return; + include_spip('inc/charsets'); /** @@ -46,7 +48,7 @@ function importer_csv_importcharset($texte){ */ function importer_csv_nettoie_key($key){ return translitteration($key); - /*$accents=array('é','è','ê','à','ù',"ô","ç","'"); + /*$accents=array('�','�','�','�','�',"�","�","'"); $accents_rep=array('e','e','e','a','u',"o","c","_"); return str_replace($accents,$accents_rep,$key);*/ } diff --git a/lang/spip_bonux_ar.php b/lang/spip_bonux_ar.php index e5a2b5d..62efddd 100644 --- a/lang/spip_bonux_ar.php +++ b/lang/spip_bonux_ar.php @@ -1,6 +1,7 @@