2015-02-18 23:03:23 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$total_queries = count($sql_debug);
|
2015-02-18 23:03:23 +00:00
|
|
|
$total_php_issues = count($php_debug);
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="modal fade" id="sql_debug" tabindex="-1" role="dialog" aria-labelledby="sql_debug_label" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title" id="myModalLabel">SQL Debug</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<table class="table table-condensed table-hover">
|
|
|
|
<?php
|
|
|
|
foreach ($sql_debug as $sql_error) {
|
2015-07-13 20:10:26 +02:00
|
|
|
echo "
|
2015-02-18 23:03:23 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
$sql_error
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-07-13 20:10:26 +02:00
|
|
|
";
|
2015-02-18 23:03:23 +00:00
|
|
|
}
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo "
|
2015-02-18 23:03:23 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
$total_queries total SQL queries run.
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-07-13 20:10:26 +02:00
|
|
|
";
|
2015-02-18 23:03:23 +00:00
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal fade" id="php_debug" tabindex="-1" role="dialog" aria-labelledby="php_debug_label" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2015-04-13 03:12:01 -07:00
|
|
|
<h4 class="modal-title" id="myModalLabel">PHP Debug</h4>
|
2015-02-18 23:03:23 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<table class="table table-condensed table-hover">
|
|
|
|
<?php
|
|
|
|
foreach ($php_debug as $php_error) {
|
2015-07-13 20:10:26 +02:00
|
|
|
echo '
|
2015-02-18 23:03:23 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
2015-07-13 20:10:26 +02:00
|
|
|
';
|
2015-02-18 23:03:23 +00:00
|
|
|
print_r($php_error);
|
2015-07-13 20:10:26 +02:00
|
|
|
echo '
|
2015-02-18 23:03:23 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2015-07-13 20:10:26 +02:00
|
|
|
';
|
2015-02-18 23:03:23 +00:00
|
|
|
}
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo "
|
2015-02-18 23:03:23 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
$total_php_issues total PHP issues / errors.
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-07-13 20:10:26 +02:00
|
|
|
";
|
2015-02-18 23:03:23 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<nav class="navbar navbar-default navbar-fixed-bottom navbar-debug">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<p><strong>Debug options:</strong> <a href="#" data-toggle="modal" data-target="#sql_debug">Show SQL Debug</a> / <a href="#" data-toggle="modal" data-target="#php_debug">Show PHP Debug</a></p>
|
|
|
|
</div>
|
|
|
|
</nav>
|