echo $currentFileName == $file->getFullName() ? 'active' : '';
        ?>
">
                        <?php 
        echo $file->getBaseName();
        ?>
</a>
                    <span class="label label-info"><?php 
        echo $file->hits;
        ?>
</span>
                </div>
            <?php 
    }
}
if (isset($trace)) {
    try {
        $fm = new TraceOutputDir();
        drawFileHierarchy($fm->getTrace($trace)->fileHierarchy(), $trace, isset($file) ? $file : null);
    } catch (Exception $ex) {
        ?>
<div class="panel panel-danger"><div class="panel-heading">
                    <?php 
        echo $ex->getMessage();
        ?>
                </div></div><?php 
    }
}
?>
    </div>
</div>
Ejemplo n.º 2
0
<?php

use Vtk13\LibXdebugTrace\Db\DbTraceList;
use Vtk13\LibXdebugTrace\FileUtil\TraceOutputDir;
use Vtk13\TraceView\Registry;
$fileTraces = new TraceOutputDir();
?>
<div class="row">
    <?php 
if (TRACEVIEW_MYSQL) {
    ?>
        <div class="col-md-4">
            <div class="panel panel-default">
                <div class="panel-heading">Choose trace file to analyse:</div>
                <div class="list-group">
                    <?php 
    foreach ($fileTraces->listTracesInfo() as $traceInfo) {
        ?>
                        <div class="list-group-item">
                            <form method="post" action="/file-trace/delete/<?php 
        echo urlencode($traceInfo->fileName);
        ?>
" class="pull-right" onsubmit="return confirm('Delete trace?');">
                                <button type="submit" title="Remove trace"><span class="glyphicon glyphicon-remove"></span></button>
                            </form>
                            <form method="post" action="/file-trace/import/<?php 
        echo urlencode($traceInfo->fileName);
        ?>
" class="pull-right">
                                <button type="submit" title="Import trace file into the database"><span class="glyphicon glyphicon-import"></span></button>
                            </form>