/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2012 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
// Requete erronee
$err = "<b>" . _T('avis_erreur_mysql') . " $errno</b><br /><tt>\n"
- . htmlspecialchars($msg)
+ . spip_htmlspecialchars($msg)
. "\n<br /><span style='color: red'><b>"
- . htmlspecialchars($query)
+ . spip_htmlspecialchars($query)
. "</b></span></tt><br />";
//. aide('erreur_mysql');
}
else
return strlen(trim($res))
- ? "<img src='".chemin_image('compat-16.png')."' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res</div>"
+ ? "<img src='".chemin_image('compat-16.png')."' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res</div>"
// cas de l'appel sur erreur: montre la page
: $GLOBALS['debug_objets']['resultat']['tout'];
}
$res = $id = '';
}
return !trim($texte) ? '' : (
- "<img src='".chemin_image('compat-16.png')."' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res"
+ "<img src='".chemin_image('compat-16.png')."' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res"
. "<div id='debug_boucle'><fieldset$id><legend>"
. "<a href='".$self."#f_".substr($fonc, 0, 37)."'> ↑ "
. ($legend ? $legend : $mode)
"</td><td>\n" .
$req .
"</td><td>\n" .
- htmlspecialchars($crit) .
+ spip_htmlspecialchars($crit) .
"</td></tr>";
}
}
$brut_sql .= "<h3>" . ($num==1 ? $num . " sur " . sql_count($ress_req) : $num) . "</h3>";
$brut_sql .= "<p>";
foreach ($retours_sql as $key => $val){
- $brut_sql .= "<strong>" . $key . "</strong> => " . htmlspecialchars(couper($val, 150)) . "<br />\n";
+ $brut_sql .= "<strong>" . $key . "</strong> => " . spip_htmlspecialchars(couper($val, 150)) . "<br />\n";
}
$brut_sql .= "</p>";
}