From 63d77df00779b94161976ffd71c7cc2ee77e19ac Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Mon, 19 Dec 2005 17:26:55 +0000 Subject: [PATCH] utilisation, pour les cas automatisables, de la fonction http_php_script(script, args); 3e tour: action= avec des arguments --- ecrire/inc_breves_edit.php | 2 +- ecrire/inc_message_edit.php | 2 +- ecrire/inc_sites.php3 | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ecrire/inc_breves_edit.php b/ecrire/inc_breves_edit.php index 62eeeadf86..148ce43503 100644 --- a/ecrire/inc_breves_edit.php +++ b/ecrire/inc_breves_edit.php @@ -93,7 +93,7 @@ if ($new != "oui") { if ($connect_statut=="0minirezo" OR $statut=="prop" OR $new == "oui") { if ($id_breve) $lien = "?id_breve=$id_breve"; - echo "<FORM ACTION='breves_voir.php3$lien' METHOD='post' name='formulaire'>"; + echo "<FORM action=" . http_php_script("breves_voir","$lien") . " METHOD='post' name='formulaire'>"; echo "<INPUT TYPE='Hidden' NAME='modifier_breve' VALUE=\"oui\">"; echo "<INPUT TYPE='Hidden' NAME='id_breve' VALUE=\"$id_breve\">"; diff --git a/ecrire/inc_message_edit.php b/ecrire/inc_message_edit.php index 19f5c015d0..108c3e00b4 100644 --- a/ecrire/inc_message_edit.php +++ b/ecrire/inc_message_edit.php @@ -109,7 +109,7 @@ if ($type == 'affich') { $logo = "annonce"; } -echo "<form action='message.php3?id_message=$id_message' method='post'>"; +echo "<form action=" . http_php_script("message","id_message=$id_message") . " method='post'>"; debut_gauche(); diff --git a/ecrire/inc_sites.php3 b/ecrire/inc_sites.php3 index 5a0b8814ea..c87ce5ed4e 100644 --- a/ecrire/inc_sites.php3 +++ b/ecrire/inc_sites.php3 @@ -430,7 +430,7 @@ if ($syndication == "oui" OR $syndication == "off" OR $syndication == "sus") { .".</div>\n"; echo "<div align='right'>\n" - . "<form method='post' action='sites.php3?id_syndic=$id_syndic'>" + . "<form method='post' action=" . http_php_script("sites","id_syndic=$id_syndic") . ">" . "<input type='submit' name='reload' value=\"" . attribut_html(_T('lien_mise_a_jour_syndication')) . "\" class='fondo' style='font-size:9px;' /></form></div>\n"; @@ -441,7 +441,7 @@ if ($syndication == "oui" OR $syndication == "off" OR $syndication == "sus") { debut_cadre_relief(); echo "<u>"._T('syndic_options')."</u>" . aide('artsyn')."\n" - . "<form method='POST' action='sites.php3?id_syndic=$id_syndic' class='verdana2'>\n"; + . "<form method='POST' action=" . http_php_script("sites","id_syndic=$id_syndic") . " class='verdana2'>\n"; // modifier la moderation if ($moderation == 'oui' OR $moderation == 'non') @@ -521,7 +521,7 @@ if ($syndication == "oui" OR $syndication == "off" OR $syndication == "sus") { // Cas d'un site ayant un feedfinder detecte else if (preg_match(',^select: (.*),', $url_syndic, $regs)) { echo "<br /><br />\n"; - echo "<form method='post' action='sites.php3?id_syndic=$id_syndic'>"; + echo "<form method='post' action=" . http_php_script("sites","id_syndic=$id_syndic") . ">"; foreach ( array('id_rubrique', 'nom_site', 'url_site', 'descriptif', 'statut') as $var) { -- GitLab