Example #1
0
<?php

if (bu::config('rc/debugBar')) {
    BuStatistic::printa();
}
$pages = bu::session('pages');
$pages['num_redirects'] = 0;
bu::session('pages', $pages);
Example #2
0
}
.bu_debug_bar_log_time{
    display: none;
}
</style>

<div id='bu_debug_bar_log_block'>
    <?php 
echo buLogger::getLog();
?>
    <a href='javascript:$("#bu_debug_bar_log_block").css("display","none")' class='bu_debug_bar_close'></a>
</div>
<div id='bu_debug_bar_timer_block'>
    <?php 
$statistic = BuStatistic::getTimerStatistic();
$statisticGroups = BuStatistic::getTimerGroups();
$ft = false;
$lt = false;
foreach ($statistic as $k => $v) {
    if (!$ft) {
        $ft = $k;
    }
    $lt = $k;
    ?>
        <div class="bu_timer_<?php 
    echo $statisticGroups[$k];
    ?>
">
        <b><?php 
    echo sprintf('%.4f', $k - $ft);
    ?>