Bifurcation depuis
spip / spip
18038 validations de retard le dépôt en amont.
-
esj a rédigé
renomme_en_exec_et_en_php () { mv index.php3 i3; mv index.php i; mv forum.php3 f; mv statistiques.php3 s; for i in *.php*; do if [ -f inc_${i%3} ]; then $MVCOMMAND inc_${i%3} exec_${i%3}; else if [ -f inc_$i ]; then $MVCOMMAND inc_$i exec_${i%3}; fi; fi; done; mv i3 index.php3; mv i index.php; mv f forum.php3; mv s statistiques.php3; $MVCOMMAND inc_auth.php3 exec_auth.php; $MVCOMMAND inc_accueil.php exec_accueil.php; for i in inc_spip_action*; do $MVCOMMAND $i exec_${i#inc_}; done; for i in inc_*.php3; do $MVCOMMAND $i ${i%3}; done; $MVCOMMAND exec_config-contenu.php exec_config_contenu.php; $MVCOMMAND exec_config-multilang.php exec_config_multilang.php; $MVCOMMAND exec_config-fonctions.php exec_config_fonctions.php; $MVCOMMAND exec_config-lang.php exec_config_lang.php }
esj a rédigérenomme_en_exec_et_en_php () { mv index.php3 i3; mv index.php i; mv forum.php3 f; mv statistiques.php3 s; for i in *.php*; do if [ -f inc_${i%3} ]; then $MVCOMMAND inc_${i%3} exec_${i%3}; else if [ -f inc_$i ]; then $MVCOMMAND inc_$i exec_${i%3}; fi; fi; done; mv i3 index.php3; mv i index.php; mv f forum.php3; mv s statistiques.php3; $MVCOMMAND inc_auth.php3 exec_auth.php; $MVCOMMAND inc_accueil.php exec_accueil.php; for i in inc_spip_action*; do $MVCOMMAND $i exec_${i#inc_}; done; for i in inc_*.php3; do $MVCOMMAND $i ${i%3}; done; $MVCOMMAND exec_config-contenu.php exec_config_contenu.php; $MVCOMMAND exec_config-multilang.php exec_config_multilang.php; $MVCOMMAND exec_config-fonctions.php exec_config_fonctions.php; $MVCOMMAND exec_config-lang.php exec_config_lang.php }
exec_brouteur.php 3,92 Kio
<?php
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
* Copyright (c) 2001-2006 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
\***************************************************************************/
if (!defined("_ECRIRE_INC_VERSION")) return;
include_ecrire("inc_presentation");
function brouteur_dist()
{
global $spip_ecran, $spip_lang_left,$id_rubrique;
if ($spip_ecran == "large") {
$largeur_table = 974;
$hauteur_table = 400;
$nb_col = 4;
} else {
$largeur_table = 750;
$hauteur_table = 300;
$nb_col = 3;
}
$largeur_col = round($largeur_table/$nb_col);
debut_page(_T('titre_page_articles_tous'), "asuivre", "tout-site", " hauteurFrame($nb_col);");
echo "<div> </div>";
echo "<table border='0' cellpadding='0' cellspacing='2' width='$largeur_table'>";
if ($id_rubrique) {
$j = $nb_col;
while ($id_rubrique > 0) {
$query = "SELECT * FROM spip_rubriques WHERE id_rubrique='$id_rubrique' ORDER BY 0+titre, titre";
$result=spip_query($query);
while($row=spip_fetch_array($result)){
$j = $j-1;
$ze_rubrique = $row['id_rubrique'];
$titre = typo($row['titre']);
$id_rubrique =$row['id_parent'];
$dest[$j] = $ze_rubrique;
}
}
$dest[$j-1] = 0;
while (!$dest[1]) {
for ($i = 0; $i < $nb_col; $i++) {
$dest[$i] = $dest[$i+1];
}
}
if ($dest[0] > 0 AND $dest[$nb_col-2]) {
// Afficher la hierarchie pour "remonter"
echo "<tr><td colspan='$nb_col' style='text-align: $spip_lang_left;'>";
echo "<div id='brouteur_hierarchie'>"; // pour calculer hauteur de iframe
$la_rubrique = $dest[0];
$query = "SELECT * FROM spip_rubriques WHERE id_rubrique ='$la_rubrique'";
$result = spip_query($query);
while ($row = spip_fetch_array($result)) {
$la_rubrique =$row['id_parent'];
}
while ($la_rubrique > 0) {
$query = "SELECT * FROM spip_rubriques WHERE id_rubrique ='$la_rubrique'";
$result = spip_query($query);
while ($row = spip_fetch_array($result)) {
$compteur = $compteur + 1;
$ze_rubrique = $row['id_rubrique'];
$titre = typo($row['titre']);
$la_rubrique =$row['id_parent'];
$lien = $dest[$nb_col-$compteur-1];
if ($la_rubrique == 0) $icone = "secteur-24.gif";
else $icone = "rubrique-24.gif";
$ret = "<div " .
http_style_background($icone,
"$spip_lang_left no-repeat; padding-top: 5px; padding-bottom: 5px; padding-$spip_lang_left: 28px") . "><a href='" . generer_url_ecrire("brouteur","id_rubrique=$lien") . "'>$titre</a></div><div style='margin-$spip_lang_left: 28px;'>$ret</div>";
}
}
$lien = $dest[$nb_col-$compteur-2];
$ret = "<div " .
http_style_background("racine-site-24.gif",
"$spip_lang_left no-repeat; padding-top: 5px; padding-bottom: 5px; padding-$spip_lang_left: 28px") . "><a href='" . generer_url_ecrire("brouteur","id_rubrique=$lien") . "'>"._T('info_racine_site')."</a></div><div style='margin-$spip_lang_left: 28px;'>$ret</div>";
echo $ret;
echo "</div>";
echo "</td></tr>";
}
} else {
$id_rubrique = 0;
$dest[0] = "$id_rubrique";
}
echo "<tr width='$largeur_table'>";
for ($i=0; $i < $nb_col; $i++) {
echo "<td valign='top' width='$largeur_col'>";
echo "<iframe width='100%' id='iframe$i' name='iframe$i'",
"src='", generer_url_ecrire('brouteur_frame',"id_rubrique=".$dest[$i]."&frame=$i"), "' class='iframe-bouteur' height='",
$hauteur_table,
"'></iframe>";
echo "</td>";
}
fin_page();
}
?>