devilbox/.devilbox/www/htdocs/debug.php

53 lines
1.2 KiB
PHP
Raw Normal View History

2016-11-06 12:36:07 +00:00
<?php require '../config.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php require '../include/head.php'; ?>
</head>
<body>
2016-11-15 18:39:11 +00:00
<?php require '../include/navbar.php'; ?>
2016-11-06 12:36:07 +00:00
<div class="container">
<h1>Devilbox Debug</h1>
<br/>
<br/>
<div class="row">
<div class="col-md-12">
2017-04-19 17:48:44 +00:00
<?php $errors = loadClass('Logger')->getAll(); ?>
2016-11-06 12:36:07 +00:00
<?php if ($errors === false): ?>
<p>Writing to logfile is not possible. Errors will be sent as mail instead. Check the mail section.</p>
<?php elseif (count($errors) === 0): ?>
<p>No errors detected.</div>
2016-11-06 12:36:07 +00:00
<?php else: ?>
<?php $total = count($errors); ?>
<table class="table table-striped">
<thead class="thead-inverse">
<tr>
<th>#</th>
<th>Errors (<?php echo $total;?>)</th>
</tr>
</thead>
<tbody>
<?php for ($i=($total-1); $i>=0; --$i): ?>
<tr>
<td><?php echo ($i+1);?></td>
<td><code><?php echo $errors[$i];?></code></td>
</tr>
<?php endfor; ?>
</tbody>
</table>
<?php endif; ?>
</div>
</div>
</div><!-- /.container -->
<?php require '../include/footer.php'; ?>
</body>
</html>