Skip to content
Extraits de code Groupes Projets
Valider 26d48c14 rédigé par esj's avatar esj
Parcourir les fichiers

Remplacement de la version citante de la fonctionnalisation des scripts php

par le script shell suivant

for i in $(grep -l 'href=" *, *http_php_script *([^)]*) *, *"' *)
do
sed -f f.sed "$i" > "$i.php"
mv $i.php $i
done

le fichier f.sed etant:

s/href=\(" *, *http_php_script\) *\(([^)]*) *, *"\)/href=\'\1nq\2\'/
parent 9103f7c2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -306,7 +306,7 @@ global $connect_statut, $options,
// nom
echo "</td><td class='verdana11' style='border-top: 1px solid #cccccc;'>";
echo "<a href=", http_php_script('auteurs_edit',"id_auteur=".$row['id_auteur']), ">",typo($row['nom']),'</a>';
echo "<a href='", http_php_scriptnq('auteurs_edit',"id_auteur=".$row['id_auteur']), "'>",typo($row['nom']),'</a>';
if ($connect_statut == '0minirezo' AND $row['restreint'])
echo " &nbsp;<small>"._T('statut_admin_restreint')."</small>";
......
......@@ -291,7 +291,7 @@ $query_forum ORDER BY F.date_heure DESC LIMIT $limitnb OFFSET $limitdeb");
echo "<div class='serif2'>";
$i = $limitdeb;
if ($i>0) echo "<a href=", http_php_script('controle_forum', $args),">0</a> ... | ";
if ($i>0) echo "<a href='", http_php_scriptnq('controle_forum', $args),"'>0</a> ... | ";
$controle = '';
while ($row = spip_fetch_array($result_forum)) {
......
......@@ -217,7 +217,7 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot,
echo "<LI><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2><B><FONT SIZE=3>".typo($titre_mot)."</FONT></B>";
if ($type_mot) echo " ($type_mot)";
echo " | <A href=", http_php_script($url_base, "$id_table=$id_objet&nouv_mot=$id_mot#mots"), ">",_T('info_ajouter_mot'),"</A>";
echo " | <A href='", http_php_scriptnq($url_base, "$id_table=$id_objet&nouv_mot=$id_mot#mots"), "'>",_T('info_ajouter_mot'),"</A>";
if (strlen($descriptif_mot) > 1) {
echo "<BR><FONT SIZE=1>".propre(couper($descriptif_mot, 100))."</FONT>\n";
......@@ -417,7 +417,7 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot,
if ($nombre_mots_associes > 3) {
echo "<div align='right' class='arial1'>";
echo "<a href=", http_php_script($url_base, "$id_table=$id_objet&supp_mot=-1#mots"), ">",_T('info_retirer_mots'),"</a>";
echo "<a href='", http_php_scriptnq($url_base, "$id_table=$id_objet&supp_mot=-1#mots"), "'>",_T('info_retirer_mots'),"</a>";
echo "</div><br />\n";
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter