예제 #1
0
파일: _footer.php 프로젝트: norrest/test
<!--[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>
예제 #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;
}