Exemple #1
0
<!--[if lt IE 8]>
<script src="js/icon-font-ie7.js"></script>
<script src="js/icon-font-ie7-24.js"></script>
<![endif]-->

<?php 
// write backend response on UI Notify popup
if (isset($_SESSION['notify']) && $_SESSION['notify'] != '') {
    sleep(1);
    ui_notify($_SESSION['notify']);
    session_start();
    $_SESSION['notify'] = '';
    session_write_close();
}
?>

<div id="debug" <?php 
if ($_SESSION['hiddendebug'] == 1 or $_SESSION['debug'] == 0) {
    echo "class=\"hide\"";
}
?>
>
	<pre>
		<?php 
debug_footer($db);
?>
	</pre>
</div>
</body>
</html>
Exemple #2
0
function debug_sql()
{
    global $_URL, $_DEBUGITEMS;
    ob_start();
    echo debug_header($_URL->file);
    foreach ($_DEBUGITEMS as $debug) {
        echo debug_item($debug['backtrace'], $debug['query'], &$debug['result']);
    }
    echo debug_footer();
    $debug_contents = ob_get_contents();
    ob_end_clean();
    print $debug_contents;
    exit;
}