border-color: #8B0000;
}
.sqlHighlight {
	background: #FFE4E1;
}
</style>

<?php 
if (!empty($_COOKIE['explain'])) {
    foreach ($DBS->srv as $srv_name => $db_obj) {
        if (!empty($db_obj->do_explain)) {
            $db_obj->explain('display');
        }
    }
}
$sql_log = !empty($_COOKIE['sql_log']) ? get_sql_log() : '';
echo '
<script type="text/javascript">
function fixSqlLog() {
	if ($("#sqlLog").height() > 400) {
		$("#sqlLog").height(400);
	}
	$("#sqlLog div.sqlLogRow")
		.hover(
			function(){ $(this).addClass("sqlHover"); },
			function(){ $(this).removeClass("sqlHover"); }
		)
		.click(
			function(){ $(this).toggleClass("sqlHighlight"); }
		)
	;
Exemple #2
0
 /**
  *  Send data
  */
 function send()
 {
     $this->response['action'] = $this->action;
     if (DBG_USER && SQL_DEBUG && !empty($_COOKIE['sql_log'])) {
         $this->response['sql_log'] = get_sql_log();
     }
     // sending output will be handled by $this->ob_handler()
     exit;
 }