From b8cb6dae5290d458258c229de275e7b65ff75f6a Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Tue, 11 Jan 2005 14:23:06 +0000 Subject: [PATCH] des couleurs moins flash pour le debugguuer (artistes bienvenus) --- ecrire/aide_index.php3 | 3 ++- ecrire/inc_debug_sql.php3 | 3 ++- spip_admin.css | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ecrire/aide_index.php3 b/ecrire/aide_index.php3 index 6f1fb97a61..471547b6ba 100644 --- a/ecrire/aide_index.php3 +++ b/ecrire/aide_index.php3 @@ -426,7 +426,8 @@ else { // On n'a pas d'aide du tout if (!$html) { // Renvoyer sur l'aide en ligne du serveur externe - if ($help_server) + // (hack: sauf sur SPIP.NET) + if ($help_server AND !defined('SPIP.NET_PAS_DE_BOUCLE_AIDE')) @Header("Location: $help_server/?lang=$spip_lang"); // Ou alors message d'erreur else { diff --git a/ecrire/inc_debug_sql.php3 b/ecrire/inc_debug_sql.php3 index e49ccccda7..cd9118ff80 100644 --- a/ecrire/inc_debug_sql.php3 +++ b/ecrire/inc_debug_sql.php3 @@ -170,13 +170,14 @@ function debug_dumpfile ($texte, $fonc, $type) { "<link rel='stylesheet' href='spip_admin.css' type='text/css' />", "</head>\n<body>", "<div id='spip-debug' style='position: absolute; top: 20; z-index: 1000;'><ul>\n"; + foreach ($debug_objets['sourcefile'] as $nom_skel => $sourcefile) { echo "<li><b>",$sourcefile,"</b>"; echo " <a href='",$self, "&var_mode_objet=$nom_skel&var_mode_affiche=resultat'>resultat</a>"; echo " <a href='", $self, "&var_mode_objet=$nom_skel&var_mode_affiche=code'>code</a>"; echo "<table width='100%'>\n"; $i = 0; - $colors = array('#ff00ff', '#00ff00'); + $colors = array('#c0c0c0', '#c0cad4'); if (is_array($debug_objets['pretty'])) foreach ($debug_objets['pretty'] as $nom => $pretty) if (substr($nom, 0, strlen($nom_skel)) == $nom_skel) { diff --git a/spip_admin.css b/spip_admin.css index 72bec25106..e5b93e41e6 100644 --- a/spip_admin.css +++ b/spip_admin.css @@ -53,7 +53,7 @@ a:active.spip-admin-boutons { /* Style pour le mode debug */ #spip-debug { - background-color: #FFECD9; + background-color: #f0f0f0; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; } #spip-debug ul table { -- GitLab