.tclass, .tclass2 {
text-align:left;width:900px;border:0;border-collapse:collapse;margin-bottom:5px;table-layout: fixed; word-wrap: break-word;background:#FFF;}
.tclass table, .tclass2 table {width:100%;border:0;table-layout: fixed; word-wrap: break-word;}
.tclass table td, .tclass2 table td {border-bottom:0;border-right:0;border-color: #ADADAD;}
.tclass th, .tclass2 th {border:1px solid #000;background:#CCC;padding: 2px;font-family: Courier New, Arial;font-size: 11px;}
.tclass td, .tclass2 td {border:1px solid #000;background:#FFFCCC;padding: 2px;font-family: Courier New, Arial;font-size: 11px;}
.tclass2 th {background:#D5EAEA;}
.tclass2 td {background:#FFFFFF;}
.firsttr td {border-top:0;}
.firsttd {border-left:none !important;}
.bold {font-weight:bold;}
EOF;
$class = 'tclass2';
if(empty($_G['debug_query'])) $_G['debug_query'] = array();
foreach ($_G['debug_query'] as $dkey => $debug) {
($class == 'tclass')?$class = 'tclass2':$class = 'tclass';
echo '
'.($dkey+1).' | '.$debug['time'].' ms | '. dhtmlspecialchars($debug['sql']).' |
';
if(!empty($debug['info'])) {
echo 'Info | '.$debug['info'].' |
';
}
if(!empty($debug['explain'])) {
echo 'Explain | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | ';
foreach ($debug['explain'] as $ekey => $explain) {
($ekey == 'id')?$tdclass = ' class="firsttd"':$tdclass='';
if(empty($explain)) $explain = '-';
echo ''.$explain.' | ';
}
echo '
|
';
}
echo '
';
}
if($values = $_COOKIE) {
($class == 'tclass')?$class = 'tclass2':$class = 'tclass';
$i = 1;
echo '
';
foreach ($values as $ckey => $cookie) {
echo ''.$i.' | $_COOKIE[\''.$ckey.'\'] | '.$cookie.' |
';
$i++;
}
echo '
';
}
if($files = get_included_files()) {
($class == 'tclass')?$class = 'tclass2':$class = 'tclass';
echo '
';
foreach ($files as $fkey => $file) {
echo ''.($fkey+1).' | '.$file.' |
';
}
echo '
';
}
if($values = $_SERVER) {
($class == 'tclass')?$class = 'tclass2':$class = 'tclass';
$i = 1;
echo '
';
foreach ($values as $ckey => $cookie) {
echo ''.$i.' | $_SERVER[\''.$ckey.'\'] | '.$cookie.' |
';
$i++;
}
echo '
';
}
echo '
';
}
?>