Example #1
0
function get_blocked_queries_count()
{
    return count(get_blocked_queries());
}
Example #2
0
                                            text-overflow: ellipsis;
                                            padding-left: 8px;
                                            padding-right: 8px;
                                        }
                                    </style>
                                    <table id="blocked_queries" class="table table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th>Time</th>
                                                <th>Method</th>
                                                <th>Request</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php 
$blocked_queries = get_blocked_queries();
foreach ($blocked_queries as $blocked_query) {
    ?>
                                                <tr>
                                                    <td class="query-ellipsis query-time"><span><?php 
    echo date("d M Y \\- H:i:s", $blocked_query[0]);
    ?>
</span></td>
                                                    <td class="query-ellipsis query-method"><span><?php 
    echo $blocked_query[1];
    ?>
</span></td>
                                                    <td class="query-ellipsis"><span title="<?php 
    echo $blocked_query[2];
    ?>
"><?php