From da697e6f1d3262d5e6b9cc605f74e181784d47b7 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Mon, 19 Dec 2005 17:09:26 +0000
Subject: [PATCH] utilisation, pour les cas automatisables, de la fonction
 http_php_script(script, args); 2e tour: action= apres href=

---
 ecrire/inc_admin_effacer.php     |  2 +-
 ecrire/inc_admin_tech.php        |  6 +++---
 ecrire/inc_admin_vider.php       |  6 +++---
 ecrire/inc_articles.php          |  8 ++++----
 ecrire/inc_articles_tous.php     |  2 +-
 ecrire/inc_auteurs.php3          |  4 ++--
 ecrire/inc_config-contenu.php3   |  2 +-
 ecrire/inc_config-fonctions.php  |  2 +-
 ecrire/inc_config-lang.php       |  2 +-
 ecrire/inc_config-multilang.php3 |  2 +-
 ecrire/inc_configuration.php     |  2 +-
 ecrire/inc_forum_envoi.php       |  4 ++--
 ecrire/inc_install.php           | 26 +++++++++++++-------------
 ecrire/inc_logos.php3            |  2 +-
 ecrire/inc_message.php           |  2 +-
 ecrire/inc_mots_edit.php         |  2 +-
 ecrire/inc_mots_type.php         |  2 +-
 ecrire/inc_presentation.php3     |  2 +-
 ecrire/inc_recherche.php         |  2 +-
 ecrire/inc_rubriques_edit.php    |  4 ++--
 20 files changed, 42 insertions(+), 42 deletions(-)

diff --git a/ecrire/inc_admin_effacer.php b/ecrire/inc_admin_effacer.php
index b7d3da7465..fea3452f66 100644
--- a/ecrire/inc_admin_effacer.php
+++ b/ecrire/inc_admin_effacer.php
@@ -68,7 +68,7 @@ debut_boite_alerte();
 echo "\n<div class='serif'>";
 echo "\n<p align='justify'><b>"._T('avis_suppression_base')."&nbsp;!</b>";
 
-echo "\n<FORM ACTION='delete_all.php3' METHOD='get'>";
+echo "\n<FORM action=" . http_php_script("delete_all","") . " METHOD='get'>";
 echo "\n<p><DIV align='right'><INPUT CLASS='fondo' TYPE='submit' NAME='valider' VALUE='"._T('bouton_effacer_tout')."'></div></FORM>";
 
 echo "\n</div>";
diff --git a/ecrire/inc_admin_tech.php b/ecrire/inc_admin_tech.php
index e84ac32990..fe2fb89642 100644
--- a/ecrire/inc_admin_tech.php
+++ b/ecrire/inc_admin_tech.php
@@ -59,7 +59,7 @@ echo _T('texte_sauvegarde')."</FONT></B></TD></TR>";
 
 echo "<tr><td class='serif'>";
 
-echo "\n<FORM ACTION='export_all.php3' METHOD='get'>";
+echo "\n<FORM action=" . http_php_script("export_all","") . " METHOD='get'>";
 
 echo "\n<p align='justify'>";
 echo http_img_pack('warning.gif', _T('info_avertissement'), "width='48' height='48' align='right'");
@@ -94,7 +94,7 @@ echo _T('texte_restaurer_base')."</FONT></B></TD></TR>";
 
 echo "<TR><td class='serif'>";
 
-echo "\n<FORM ACTION='import_all.php3' METHOD='get'>";
+echo "\n<FORM action=" . http_php_script("import_all","") . " METHOD='get'>";
 
 echo "\n<p align='justify'> "._T('texte_restaurer_sauvegarde');
 
@@ -131,7 +131,7 @@ if ($options == "avancees") {
 
 		echo "<TR><TD class='serif'>";
 
-		echo "\n<FORM ACTION='admin_repair.php3' METHOD='get'>";
+		echo "\n<FORM action=" . http_php_script("admin_repair","") . " METHOD='get'>";
 
 		echo "\n<p align='justify'>"._T('texte_crash_base');
 
diff --git a/ecrire/inc_admin_vider.php b/ecrire/inc_admin_vider.php
index 908a46f917..014eefdeda 100644
--- a/ecrire/inc_admin_vider.php
+++ b/ecrire/inc_admin_vider.php
@@ -101,7 +101,7 @@ if ($quota_cache) {
 }
 echo ' ('._T('cache_modifiable_webmestre').')</p>';
 
-echo "\n<FORM ACTION='../spip_cache.php3' METHOD='post'>";
+echo "\n<FORM action=" . http_php_script("../spip_cache","") . " METHOD='post'>";
 echo "\n<INPUT TYPE='hidden' NAME='id_auteur' VALUE='$connect_id_auteur'>";
 echo "\n<INPUT TYPE='hidden' NAME='hash' VALUE='" . calculer_action_auteur("purger_cache") . "'>";
 echo "\n<INPUT TYPE='hidden' NAME='purger_cache' VALUE='oui'>";
@@ -116,7 +116,7 @@ debut_cadre_relief("image-24.gif", false, "", _T('info_images_auto'));
 	echo "<iframe width='530px' height='65px' src='../spip_cache.php3?id_auteur=$connect_id_auteur&hash=".calculer_action_auteur("afficher_cache_images")."&afficher_cache_images=oui&lang=$spip_lang'></iframe>";
 	echo "</div>";
 
-echo "\n<FORM ACTION='../spip_cache.php3' METHOD='post'>";
+echo "\n<FORM action=" . http_php_script("../spip_cache","") . " METHOD='post'>";
 echo "\n<INPUT TYPE='hidden' NAME='id_auteur' VALUE='$connect_id_auteur'>";
 echo "\n<INPUT TYPE='hidden' NAME='hash' VALUE='" . calculer_action_auteur("purger_cache_images") . "'>";
 echo "\n<INPUT TYPE='hidden' NAME='purger_cache_images' VALUE='oui'>";
@@ -144,7 +144,7 @@ debut_cadre_trait_couleur("racine-site-24.gif", false, "", _T('texte_effacer_don
 	
 	}
 	
-	echo "\n<FORM ACTION='admin_vider.php3' METHOD='post'>";
+	echo "\n<FORM action=" . http_php_script("admin_vider","") . " METHOD='post'>";
 	
 	$hash = calculer_action_auteur("purger_index");
 	
diff --git a/ecrire/inc_articles.php b/ecrire/inc_articles.php
index 3cd4676a62..4eea199b51 100644
--- a/ecrire/inc_articles.php
+++ b/ecrire/inc_articles.php
@@ -456,7 +456,7 @@ function boites_de_config_articles($id_article, $flag_editable,
 	else
 		echo debut_block_invisible("redirection");
 
-	echo "<form action='articles.php3?id_article=$id_article' method='post'>";
+	echo "<form action=" . http_php_script("articles","id_article=$id_article") . " method='post'>";
 	echo "\n<INPUT TYPE='hidden' NAME='id_article' VALUE='$id_article'>";
 	echo "\n<INPUT TYPE='hidden' NAME='changer_virtuel' VALUE='oui'>";
 	$virtuelhttp = ($virtuel ? "" : "http://");
@@ -677,7 +677,7 @@ function dates_articles($id_article, $flag_editable, $statut_article, $date, $an
   if ($flag_editable AND $options == 'avancees') {
 	debut_cadre_couleur();
 
-	echo "<FORM ACTION='articles.php3' METHOD='GET' style='margin: 0px; padding: 0px;'>";
+	echo "<FORM action=" . http_php_script("articles","") . " METHOD='GET' style='margin: 0px; padding: 0px;'>";
 	echo "<INPUT TYPE='hidden' NAME='id_article' VALUE='$id_article'>";
 
 	if ($statut_article == 'publie') {
@@ -1218,7 +1218,7 @@ function ajouter_auteurs_articles($id_article, $les_auteurs, $flag_editable, $ru
 
 
 	if (spip_num_rows($result) > 0) {
-		echo "<FORM ACTION='articles.php3?id_article=$id_article#auteurs' METHOD='post'>";
+		echo "<FORM action=" . http_php_script("articles","id_article=$id_article#auteurs") . " METHOD='post'>";
 		echo "<span class='verdana1'><B>"._T('titre_cadre_ajouter_auteur')."&nbsp; </B></span>\n";
 		echo "<DIV><INPUT TYPE='Hidden' NAME='id_article' VALUE=\"$id_article\">";
 
@@ -1389,7 +1389,7 @@ function afficher_statut_articles($id_article, $rubrique_article, $statut_articl
   global $connect_statut;
 
   if ($connect_statut == '0minirezo' AND acces_rubrique($rubrique_article)) {
-	echo "<FORM ACTION='articles.php3' METHOD='get'>";
+	echo "<FORM action=" . http_php_script("articles","") . " METHOD='get'>";
 	debut_cadre_relief("racine-site-24.gif");
 	echo "<CENTER>";
 	
diff --git a/ecrire/inc_articles_tous.php b/ecrire/inc_articles_tous.php
index 0127a692a3..30a77c9d80 100644
--- a/ecrire/inc_articles_tous.php
+++ b/ecrire/inc_articles_tous.php
@@ -139,7 +139,7 @@ function http_label_img($statut, $etat, $var, $img, $texte) {
 function formulaire_affiche_tous($aff_art, $aff_statut,$sel_lang)
 {
 	global $spip_lang_right;
-echo "<form action='articles_tous.php3' method='get'>";
+echo "<form action=" . http_php_script("articles_tous","") . " method='get'>";
 echo "<input type='hidden' name='aff_art[]' value='x'>";
 
 debut_boite_info();
diff --git a/ecrire/inc_auteurs.php3 b/ecrire/inc_auteurs.php3
index c59a1d1cac..0880a708e4 100644
--- a/ecrire/inc_auteurs.php3
+++ b/ecrire/inc_auteurs.php3
@@ -190,7 +190,7 @@ if ($debut_suivant < $nombre_auteurs OR $debut > 0) {
 	echo "<tr bgcolor='white'><td align='left'>";
 	if ($debut > 0) {
 		$debut_prec = max($debut - $max_par_page, 0);
-		echo "\n<form action='auteurs.php3'>",
+		echo "\n<form action=" . http_php_script("auteurs","") . ">",
 		  "\n<input type='hidden' name='tri' value='$tri' />",
 		  "\n<input type='hidden' name='debut' value='$debut_prec' />",
 		  "\n<input type='submit' value='&lt;&lt;&lt;' class='fondo' />",
@@ -198,7 +198,7 @@ if ($debut_suivant < $nombre_auteurs OR $debut > 0) {
 	}
 	echo "</td><td style='text-align: $spip_lang_right'>";
 	if ($debut_suivant < $nombre_auteurs) {
-		echo "\n<form action='auteurs.php3'>",
+		echo "\n<form action=" . http_php_script("auteurs","") . ">",
 		  "\n<input type='hidden' name='tri' value='$tri' />",
 		  "\n<input type='hidden' name='debut' value='$debut_suivant' />",
 		  "\n<input type='submit' value='&gt;&gt;&gt;' class='fondo' />",
diff --git a/ecrire/inc_config-contenu.php3 b/ecrire/inc_config-contenu.php3
index 097fbb83c4..2d31e77f74 100644
--- a/ecrire/inc_config-contenu.php3
+++ b/ecrire/inc_config-contenu.php3
@@ -45,7 +45,7 @@ debut_gauche();
 
 debut_droite();
 
-echo "<form action='config-contenu.php3' method='post'>";
+echo "<form action=" . http_php_script("config-contenu","") . " method='post'>";
 echo "<input type='hidden' name='changer_config' value='oui'>";
 
 
diff --git a/ecrire/inc_config-fonctions.php b/ecrire/inc_config-fonctions.php
index 2d44d68410..1058fe1419 100644
--- a/ecrire/inc_config-fonctions.php
+++ b/ecrire/inc_config-fonctions.php
@@ -39,7 +39,7 @@ function config_fonctions_dist()
 	debut_droite();
 	lire_metas();
 
-	echo "<form action='config-fonctions.php3' method='post'>";
+	echo "<form action=" . http_php_script("config-fonctions","") . " method='post'>";
 	echo "<input type='hidden' name='changer_config' value='oui'>";
 
 //
diff --git a/ecrire/inc_config-lang.php b/ecrire/inc_config-lang.php
index a23a31fc45..2ad0aa346f 100644
--- a/ecrire/inc_config-lang.php
+++ b/ecrire/inc_config-lang.php
@@ -48,7 +48,7 @@ if ($changer_config == 'oui') {
 lire_metas();
 
 
-echo "<form action='config-lang.php3' method='post'>";
+echo "<form action=" . http_php_script("config-lang","") . " method='post'>";
 echo "<input type='hidden' name='changer_config' value='oui'>";
 
 
diff --git a/ecrire/inc_config-multilang.php3 b/ecrire/inc_config-multilang.php3
index 116bc297de..e7bb13e824 100644
--- a/ecrire/inc_config-multilang.php3
+++ b/ecrire/inc_config-multilang.php3
@@ -50,7 +50,7 @@ debut_gauche();
 	
 debut_droite();
 
-echo "<form action='config-multilang.php3' method='post'>";
+echo "<form action=" . http_php_script("config-multilang","") . " method='post'>";
 echo "<input type='hidden' name='changer_config' value='oui'>";
 
 debut_cadre_couleur("traductions-24.gif", false, "", _T('info_multilinguisme'));
diff --git a/ecrire/inc_configuration.php b/ecrire/inc_configuration.php
index d67a405caa..69a4698ad1 100644
--- a/ecrire/inc_configuration.php
+++ b/ecrire/inc_configuration.php
@@ -62,7 +62,7 @@ avertissement_config();
 // Afficher les options de config
 //
 
-echo "<form action='configuration.php3' method='post'>";
+echo "<form action=" . http_php_script("configuration","") . " method='post'>";
 echo "<input type='hidden' name='changer_config' value='oui'>";
 debut_cadre_couleur("racine-site-24.gif");
 
diff --git a/ecrire/inc_forum_envoi.php b/ecrire/inc_forum_envoi.php
index 18c5659ee2..3cc431744b 100644
--- a/ecrire/inc_forum_envoi.php
+++ b/ecrire/inc_forum_envoi.php
@@ -149,7 +149,7 @@ if ($modif_forum == "oui") {
 		echo "<p><a href='$url_site'>$nom_site</a>";
 	}
 
-	echo "<form action='forum_envoi.php3' name='formulaire' method='post'>";
+	echo "<form action=" . http_php_script("forum_envoi","") . " name='formulaire' method='post'>";
 	echo "<p><div align='right'><INPUT CLASS='fondo' TYPE='submit' NAME='valider_forum' VALUE='"._T('bouton_envoyer_message')."'></div>";
 
 	fin_cadre_thread_forum();
@@ -163,7 +163,7 @@ if ($modif_forum == "oui") {
 	}
 }
 else {
-	echo "<FORM ACTION='forum_envoi.php3' name='formulaire' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("forum_envoi","") . " name='formulaire' METHOD='post'>";
 }
 
 	echo "<div>&nbsp;</div>";
diff --git a/ecrire/inc_install.php b/ecrire/inc_install.php
index 06823aa39e..4df3312a15 100644
--- a/ecrire/inc_install.php
+++ b/ecrire/inc_install.php
@@ -158,7 +158,7 @@ function install_6()
 		@unlink(_FILE_CONNECT_INS . _FILE_TMP . _EXTENSION_PHP);
 	}
 
-	echo "<FORM ACTION='index.php3' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("index","") . " METHOD='post'>";
 	echo "<DIV align='$spip_lang_right'><INPUT TYPE='submit' CLASS='fondl'  VALUE='"._T('bouton_suivant')." >>'>";
 	echo "</FORM>";
 
@@ -183,7 +183,7 @@ function install_5()
 	echo "<p>\n"._T('texte_informations_personnelles_2')." ";
 	echo _T('info_laisser_champs_vides');
 
-	echo "<FORM ACTION='install.php3' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("install","") . " METHOD='post'>";
 	echo "<INPUT TYPE='hidden' NAME='etape' VALUE='6'>";
 
 	echo "<fieldset><label><B>"._T('info_identification_publique')."</B><BR />\n</label>";
@@ -211,7 +211,7 @@ function install_5()
 		echo "<div style='border: 1px solid #404040; padding: 10px; text-align: left;'>";
 		echo "<b>"._T('info_authentification_externe')."</b>";
 		echo "<p>\n"._T('texte_annuaire_ldap_1');
-		echo "<FORM ACTION='install.php3' METHOD='post'>";
+		echo "<FORM action=" . http_php_script("install","") . " METHOD='post'>";
 		echo "<INPUT TYPE='hidden' NAME='etape' VALUE='ldap1'>";
 		echo "<DIV align='$spip_lang_right'><INPUT TYPE='submit' CLASS='fondl'  VALUE=\""._T('bouton_acces_ldap')."\">";
 		echo "</FORM>";
@@ -298,7 +298,7 @@ function install_4()
 
 		echo "<B>"._T('info_base_installee')."</B><P>\n"._T('info_etape_suivante_1');
 
-		echo "<FORM ACTION='install.php3' METHOD='post'>";
+		echo "<FORM action=" . http_php_script("install","") . " METHOD='post'>";
 		echo "<INPUT TYPE='hidden' NAME='etape' VALUE='5'>";
 
 		echo "<DIV align='$spip_lang_right'><INPUT TYPE='submit' CLASS='fondl'  VALUE='"._T('bouton_suivant')." >>'>";
@@ -326,7 +326,7 @@ function install_3()
 	echo aide ("install2");
 	echo "<P>\n";
 
-	echo "<FORM ACTION='install.php3' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("install","") . " METHOD='post'>";
 	echo "<INPUT TYPE='hidden' NAME='etape' VALUE='4'>";
 	echo "<INPUT TYPE='hidden' NAME='adresse_db'  VALUE=\"$adresse_db\" SIZE='40'>";
 	echo "<INPUT TYPE='hidden' NAME='login_db' VALUE=\"$login_db\">";
@@ -414,7 +414,7 @@ function install_2()
 	if (($db_connect=="0") && $link){
 		echo "<B>"._T('info_connexion_ok')."</B><P> "._T('info_etape_suivante_2');
 
-		echo "<FORM ACTION='install.php3' METHOD='post'>";
+		echo "<FORM action=" . http_php_script("install","") . " METHOD='post'>";
 		echo "<INPUT TYPE='hidden' NAME='etape' VALUE='3'>";
 		echo "<INPUT TYPE='hidden' NAME='adresse_db'  VALUE=\"$adresse_db\" SIZE='40'>";
 		echo "<INPUT TYPE='hidden' NAME='login_db' VALUE=\"$login_db\">";
@@ -464,7 +464,7 @@ function install_1()
 		}
 	}
 
-	echo "<p><FORM ACTION='install.php3' METHOD='post'>";
+	echo "<p><FORM action=" . http_php_script("install","") . " METHOD='post'>";
 	echo "<INPUT TYPE='hidden' NAME='etape' VALUE='2'>";
 	echo "<fieldset><label><B>"._T('entree_base_donnee_1')."</B><BR />\n</label>";
 	echo _T('entree_base_donnee_2')."<BR />\n";
@@ -506,7 +506,7 @@ function install_()
 
 		echo "<p><div align='center'>".$menu_langues."</div>";
 
-		echo "<p><FORM ACTION='../spip_test_dirs.php3' METHOD='get'>";
+		echo "<p><FORM action=" . http_php_script("../spip_test_dirs","") . " METHOD='get'>";
 		echo "<DIV align='$spip_lang_right'><INPUT TYPE='submit' CLASS='fondl'  VALUE='"._T('bouton_suivant')." >>'>";
 		echo "</FORM>";
 		install_fin_html();
@@ -527,7 +527,7 @@ function install_ldap5()
 	echo "<B>"._T('info_ldap_ok')."</B>";
 	echo "<P>"._T('info_terminer_installation');
 
-	echo "<FORM ACTION='install.php3' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("install","") . " METHOD='post'>";
 	echo "<INPUT TYPE='hidden' NAME='etape' VALUE='5'>";
 
 	echo "<DIV align='$spip_lang_right'><INPUT TYPE='submit' CLASS='fondl'  VALUE='"._T('bouton_suivant')." >>'>";
@@ -578,7 +578,7 @@ function install_ldap4()
 		fputs($myFile, $conn);
 		fclose($myFile);
 
-		echo "<p><FORM ACTION='install.php3' METHOD='post'>";
+		echo "<p><FORM action=" . http_php_script("install","") . " METHOD='post'>";
 		echo "<INPUT TYPE='hidden' NAME='etape' VALUE='ldap5'>";
 		echo "<fieldset><label><B>"._T('info_statut_utilisateurs_1')."</B></label><BR />\n";
 		echo _T('info_statut_utilisateurs_2')." ";
@@ -614,7 +614,7 @@ function install_ldap3()
 	$result = @ldap_read($ldap_link, "", "objectclass=*", array("namingContexts"));
 	$info = @ldap_get_entries($ldap_link, $result);
 
-	echo "<FORM ACTION='install.php3' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("install","") . " METHOD='post'>";
 	echo "<INPUT TYPE='hidden' NAME='etape' VALUE='ldap4'>";
 	echo "<INPUT TYPE='hidden' NAME='adresse_ldap' VALUE=\"$adresse_ldap\">";
 	echo "<INPUT TYPE='hidden' NAME='port_ldap' VALUE=\"$port_ldap\">";
@@ -678,7 +678,7 @@ function install_ldap2()
 	if ($ldap_link && ($r || !$login_ldap)) {
 		echo "<B>"._T('info_connexion_ldap_ok');
 
-		echo "<FORM ACTION='install.php3' METHOD='post'>";
+		echo "<FORM action=" . http_php_script("install","") . " METHOD='post'>";
 		echo "<INPUT TYPE='hidden' NAME='etape' VALUE='ldap3'>";
 		echo "<INPUT TYPE='hidden' NAME='adresse_ldap' VALUE=\"$adresse_ldap\">";
 		echo "<INPUT TYPE='hidden' NAME='port_ldap' VALUE=\"$port_ldap\">";
@@ -719,7 +719,7 @@ function install_ldap1()
 		}
 	}
 
-	echo "<p><FORM ACTION='install.php3' METHOD='post'>";
+	echo "<p><FORM action=" . http_php_script("install","") . " METHOD='post'>";
 	echo "<INPUT TYPE='hidden' NAME='etape' VALUE='ldap2'>";
 	echo "<fieldset><label><B>"._T('entree_adresse_annuaire')."</B><BR />\n</label>";
 	echo _T('texte_adresse_annuaire_1')."<BR />\n";
diff --git a/ecrire/inc_logos.php3 b/ecrire/inc_logos.php3
index 8741d20347..83fe1902b6 100644
--- a/ecrire/inc_logos.php3
+++ b/ecrire/inc_logos.php3
@@ -115,7 +115,7 @@ function afficher_logo($racine, $titre, $logo, $id_objet, $id, $redirect) {
 		$hash = calculer_action_auteur("ajouter $racine");
 		echo debut_block_invisible(md5($titre));
 
-		echo "\n\n<FORM ACTION='../spip_image.php3' METHOD='POST'
+		echo "\n\n<FORM action=" . http_php_script("../spip_image","") . " METHOD='POST'
 			ENCTYPE='multipart/form-data'>
 			<div>";
 		echo "\n<INPUT NAME='redirect' TYPE=Hidden VALUE='$redirect' />";
diff --git a/ecrire/inc_message.php b/ecrire/inc_message.php
index 73cc7a6266..06d83bfe7a 100644
--- a/ecrire/inc_message.php
+++ b/ecrire/inc_message.php
@@ -184,7 +184,7 @@ function http_ajouter_participants($ze_auteurs, $id_message)
 
     if (spip_num_rows($result_ajout_auteurs) > 0) {
 
-      echo "<FORM ACTION='message.php3' METHOD='post'>";
+      echo "<FORM action=" . http_php_script("message","") . " METHOD='post'>";
       echo "<DIV align=left><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2><b>"._T('bouton_ajouter_participant')." &nbsp; </b></FONT>\n";
       echo "<input TYPE='Hidden' NAME='id_message' VALUE=\"$id_message\">";
 
diff --git a/ecrire/inc_mots_edit.php b/ecrire/inc_mots_edit.php
index c7fd4e4bb3..5412d87d2e 100644
--- a/ecrire/inc_mots_edit.php
+++ b/ecrire/inc_mots_edit.php
@@ -242,7 +242,7 @@ if ($connect_statut =="0minirezo"  AND $connect_toutes_rubriques){
 	echo "<P>";
 	debut_cadre_formulaire();
 
-	echo "<FORM ACTION='mots_edit.php3' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("mots_edit","") . " METHOD='post'>";
 	echo "<div class='serif'>";
 	
 	if ($id_mot)
diff --git a/ecrire/inc_mots_type.php b/ecrire/inc_mots_type.php
index f01c25b3e3..7c3266e3e6 100644
--- a/ecrire/inc_mots_type.php
+++ b/ecrire/inc_mots_type.php
@@ -85,7 +85,7 @@ echo aide("motsgroupes");
 if ($connect_statut =="0minirezo"){
 	$type=entites_html(urldecode($type));
 	echo "<p><font face='Verdana,Arial,Sans,sans-serif'>";
-	echo "<FORM ACTION='mots_tous.php3' METHOD='post'>\n";
+	echo "<FORM action=" . http_php_script("mots_tous","") . " METHOD='post'>\n";
 	echo "<INPUT TYPE='Hidden' NAME='modifier_groupe' VALUE=\"oui\">\n";
 	echo "<INPUT TYPE='Hidden' NAME='id_groupe' VALUE=\"$id_groupe\">\n";
 	echo "<INPUT TYPE='Hidden' NAME='ancien_type' VALUE=\"$ancien_type\">\n";
diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3
index 5ef0912044..463422b889 100644
--- a/ecrire/inc_presentation.php3
+++ b/ecrire/inc_presentation.php3
@@ -2848,7 +2848,7 @@ if (true /*$gadgets*/) {
 		global $recherche;
 				$recherche_aff = _T('info_rechercher');
 			//	$onfocus = "onfocus=this.value='';";
-			echo "<form method='get' style='margin: 0px; position: relative;' action='recherche.php3'>";
+			echo "<form method='get' style='margin: 0px; position: relative;' action=" . http_php_script("recherche","") . ">";
 			
 
 			
diff --git a/ecrire/inc_recherche.php b/ecrire/inc_recherche.php
index 5d1fcd80c0..60788d0e17 100644
--- a/ecrire/inc_recherche.php
+++ b/ecrire/inc_recherche.php
@@ -28,7 +28,7 @@ function recherche_dist()
 
  $recherche_aff = _T('info_rechercher');
  $onfocus = "onfocus=this.value='';";
-			echo "<form method='get' style='margin: 0px;' action='recherche.php3'>";
+			echo "<form method='get' style='margin: 0px;' action=" . http_php_script("recherche","") . ">";
 			echo '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="spip_recherche" accesskey="r" '.$onfocus.'>';
 			echo "</form>";
 
diff --git a/ecrire/inc_rubriques_edit.php b/ecrire/inc_rubriques_edit.php
index 62a22e17a3..d59fbda61b 100644
--- a/ecrire/inc_rubriques_edit.php
+++ b/ecrire/inc_rubriques_edit.php
@@ -102,9 +102,9 @@ echo "</td></tr></table>";
 echo "<p>";
 
 if ($id_rubrique > 0)
-	echo "<FORM ACTION='naviguer.php3?id_rubrique=$id_rubrique' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("naviguer","id_rubrique=$id_rubrique") . " METHOD='post'>";
 else
-	echo "<FORM ACTION='naviguer.php3' METHOD='post'>";
+	echo "<FORM action=" . http_php_script("naviguer","") . " METHOD='post'>";
 
 $titre = entites_html($titre);
 
-- 
GitLab