diff --git a/inc-urls-html.php3 b/inc-urls-html.php3 index bfba4a9c1f1058c1fcc738e4c08c6480b94651fe..ce2982b834dc7f045689aa39c36aa2fe940a266f 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 2024152c0aab9fed3eba993b408a1e2b8f4fe8fe..e969d644b197eb38f0d6b384c6655ac031b190a9 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 f9e73d64aedf40bfc57fa94569762bba5108476d..29f2a2230c24c9b04ddbe4253c3b19b9cfdebcc1 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); } - + } ?>