.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 ''; if(!empty($debug['info'])) { echo ''; } if(!empty($debug['explain'])) { echo ''; } echo '
'.($dkey+1).''.$debug['time'].' ms'. dhtmlspecialchars($debug['sql']).'
Info'.$debug['info'].'
Explain'; foreach ($debug['explain'] as $ekey => $explain) { ($ekey == 'id')?$tdclass = ' class="firsttd"':$tdclass=''; if(empty($explain)) $explain = '-'; echo ''.$explain.''; } echo '
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
'; } if($values = $_COOKIE) { ($class == 'tclass')?$class = 'tclass2':$class = 'tclass'; $i = 1; echo ''; foreach ($values as $ckey => $cookie) { echo ''; $i++; } echo '
'.$i.'$_COOKIE[\''.$ckey.'\']'.$cookie.'
'; } if($files = get_included_files()) { ($class == 'tclass')?$class = 'tclass2':$class = 'tclass'; echo ''; foreach ($files as $fkey => $file) { echo ''; } echo '
'.($fkey+1).''.$file.'
'; } if($values = $_SERVER) { ($class == 'tclass')?$class = 'tclass2':$class = 'tclass'; $i = 1; echo ''; foreach ($values as $ckey => $cookie) { echo ''; $i++; } echo '
'.$i.'$_SERVER[\''.$ckey.'\']'.$cookie.'
'; } echo '
'; } ?>