diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3 index d50c1df13e1d653470feaf0cb3aeb48f6f906eb6..b0356c3e344402616264f9acbc09b3f5edb52ff3 100644 --- a/ecrire/inc_texte.php3 +++ b/ecrire/inc_texte.php3 @@ -6,11 +6,21 @@ if (defined("_ECRIRE_INC_TEXTE")) return; define("_ECRIRE_INC_TEXTE", "1"); +function tester_variable($nom_var, $val){ + if ($_GET[$nom_var]) { + $GLOBALS[$nom_var] = $val; + } + else if (!$GLOBALS[$nom_var]) { + $GLOBALS[$nom_var] = $val; + } +} + + // // Initialisation de quelques variables globales // (on peut les modifier dans mes_fonctions.php3) // - +/* $GLOBALS['debut_intertitre'] = "\n <h3 class=\"spip\">\n"; // sale mais historique $GLOBALS['fin_intertitre'] = "\n</h3><br>\n"; $GLOBALS['ouvre_ref'] = ' ['; @@ -19,13 +29,23 @@ $GLOBALS['ouvre_note'] = '['; $GLOBALS['ferme_note'] = '] '; $GLOBALS['les_notes'] = ''; $GLOBALS['compt_note'] = 0; +*/ + +tester_variable('debut_intertitre', "\n <h3 class=\"spip\">\n"); // sale mais historique +tester_variable('fin_intertitre', "\n</h3><br>\n"); +tester_variable('ouvre_ref', ' ['); +tester_variable('ferme_ref', ']'); +tester_variable('ouvre_note', '['); +tester_variable('ferme_note', '] '); +tester_variable('les_notes', ''); +tester_variable('compt_note', 0); if (file_exists("puce.gif")) { $imgsize = getimagesize('puce.gif'); - $GLOBALS['puce'] = "<img src='puce.gif' align='top' alt='- ' ".$imgsize[3]." border='0'> "; + tester_variable('puce', "<img src='puce.gif' align='top' alt='- ' ".$imgsize[3]." border='0'> "); } else { - $GLOBALS['puce'] = "- "; + tester_variable('puce', "- "); } diff --git a/inc-calcul.php3 b/inc-calcul.php3 index 73c168284ba1ca6b91adbb8e53cbe71777ffa852..de2c6b8f701a2eac166d9a4ae84fc524a52ee31f 100644 --- a/inc-calcul.php3 +++ b/inc-calcul.php3 @@ -5,15 +5,18 @@ if (defined("_INC_CALCUL")) return; define("_INC_CALCUL", "1"); -// Globales a redefinir si l'on veut dans mes_fonctions.php3 -$GLOBALS['espace_logos'] = 3; // HSPACE=xxx VSPACE=xxx pour les logos (#LOGO_ARTICLE) -$GLOBALS['espace_images'] = 3; // HSPACE=xxx VSPACE=xxx pour les images integrees (<IMG1>) include_ecrire("inc_index.php3"); include_ecrire("inc_texte.php3"); include_ecrire("inc_filtres.php3"); +// Globales a redefinir si l'on veut dans mes_fonctions.php3 +//$GLOBALS['espace_logos'] = 3; // HSPACE=xxx VSPACE=xxx pour les logos (#LOGO_ARTICLE) +//$GLOBALS['espace_images'] = 3; // HSPACE=xxx VSPACE=xxx pour les images integrees (<IMG1>) +tester_variable('espace_logos',3); // HSPACE=xxx VSPACE=xxx pour les logos (#LOGO_ARTICLE) +tester_variable('espace_images',3); // HSPACE=xxx VSPACE=xxx pour les images integrees (<IMG1>) + include_local("inc-forum.php3"); if (file_exists("inc-urls.php3")) { diff --git a/spip_style.css b/spip_style.css index 8332bbff70158bdfb06408cf69071d87b80c4cba..741cd00f2f18a7141535739a2eb78bb77acbf6db 100644 --- a/spip_style.css +++ b/spip_style.css @@ -50,7 +50,6 @@ table.spip td { } hr.spip { } - b.spip { } i.spip { }