5 public function show($sText,$e=null){
14 $sCode=highlight_string( file_get_contents($e->getFile()),
true);
15 $tFile=explode(
'<br />',$sCode);
18 $iLine=$e->getLine()-1;
20 $iLineCurrent=$iLine-1;
24 $sCode.=
'<p><strong>Fichier :</strong> '.$e->getFile().
' <strong>ligne</strong> '.$e->getLine().
'</p>';
25 $sCode.=
'<p><strong>Message : </strong> '.$e->getMessage().
'</p>';
29 background:#eee;border-collapse:collapse;border:2px solid #777;
32 text-align:right;color:#777;
34 .code .selected, .code .selected span{
40 $sCode.=
'<table class="code">';
42 for($i=-18;$i<18;$i++){
44 $iLineCurrent=$iLine+$i;
45 if(!isset($tFile[$iLineCurrent])){
54 $sCodeLine=$tFile[$iLineCurrent];
56 $sCodeLine=preg_replace(
'/\t/',
' ',$sCodeLine);
59 $sCode.=
'<td class="line '.$class.
'" >'.($iLineCurrent+1).
'</td>';
60 $sCode.=
'<td class="'.$class.
'">'.$sCodeLine.
'</td>';
67 $sText.=
'<hr/>'.$sCode;
70 $sText.=
'<h2>$_GET</h2>';
71 $sText.=nl2br(print_r($_GET,
true));
72 $sText.=
'<h2>$_POST</h2>';
73 $sText.=nl2br(print_r($_POST,
true));
75 $sText.=
'<h2>$_SESSION</h2>';
76 $sText.=nl2br(print_r($_SESSION,
true));
81 echo
'<html><head><style>*{ font-family:arial;font-size:12px;}</style></head></html>';