From 908f1c0d8b3d5738476fd41aa4dfe41c94bad7ac Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Tue, 10 Jan 2006 21:01:15 +0000 Subject: [PATCH] contrer le chargement de plusieurs inc-urls (Paolo #73) --- inc-urls-html.php3 | 7 ++++--- inc-urls-propres.php3 | 6 +++--- inc-urls-standard.php3 | 7 +++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/inc-urls-html.php3 b/inc-urls-html.php3 index bfba4a9c1f..ce2982b834 100644 --- a/inc-urls-html.php3 +++ b/inc-urls-html.php3 @@ -33,8 +33,8 @@ pouvez l'editer pour ne conserver que la partie concernant les URLS 'html'. */ -// executer une seule fois -if (!defined("_ECRIRE_INC_VERSION")) return; +if (!defined("_ECRIRE_INC_VERSION")) return; // securiser +if (!function_exists('generer_url_article')) { // si la place n'est pas prise function generer_url_article($id_article) { return "article$id_article.html"; @@ -70,6 +70,7 @@ function generer_url_document($id_document) { return ''; } + function recuperer_parametres_url($fond, $url) { global $contexte; @@ -108,5 +109,5 @@ function generer_url_forum($id_forum, $show_thread=false) { include_ecrire('inc_forum'); return generer_url_forum_dist($id_forum, $show_thread); } - + } ?> diff --git a/inc-urls-propres.php3 b/inc-urls-propres.php3 index 2024152c0a..e969d644b1 100644 --- a/inc-urls-propres.php3 +++ b/inc-urls-propres.php3 @@ -10,9 +10,8 @@ * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ - -// executer une seule fois -if (!defined("_ECRIRE_INC_VERSION")) return; +if (!defined("_ECRIRE_INC_VERSION")) return; // securiser +if (!function_exists('generer_url_article')) { // si la place n'est pas prise /* @@ -283,5 +282,6 @@ preg_match(',(^|/)((article|breve|rubrique|mot|auteur|site)(\.php3?|[0-9]+\.html return; } + } ?> diff --git a/inc-urls-standard.php3 b/inc-urls-standard.php3 index f9e73d64ae..29f2a2230c 100644 --- a/inc-urls-standard.php3 +++ b/inc-urls-standard.php3 @@ -10,9 +10,8 @@ * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ - -// executer une seule fois -if (!defined("_ECRIRE_INC_VERSION")) return; +if (!defined("_ECRIRE_INC_VERSION")) return; // securiser +if (!function_exists('generer_url_article')) { // si la place n'est pas prise function generer_url_article($id_article) { return "article.php3?id_article=$id_article"; @@ -84,5 +83,5 @@ function generer_url_forum($id_forum, $show_thread=false) { include_ecrire('inc_forum'); return generer_url_forum_dist($id_forum, $show_thread); } - + } ?> -- GitLab