mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-23 14:42:25 +00:00
49 lines
998 B
PHP
49 lines
998 B
PHP
<?php require '../config.php'; ?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<?php echo loadClass('Html')->getHead(); ?>
|
|
</head>
|
|
|
|
<body>
|
|
<?php echo loadClass('Html')->getNavbar(); ?>
|
|
|
|
<div class="container">
|
|
|
|
<h1>Redis Keys</h1>
|
|
<br/>
|
|
<br/>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<?php if (!loadClass('Redis')->isAvailable()): ?>
|
|
<p>Redis container is not running.</p>
|
|
<?php else: ?>
|
|
<table class="table table-striped ">
|
|
<thead class="thead-inverse ">
|
|
<tr>
|
|
<th>Key</th>
|
|
<th>Value</th>
|
|
</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach (loadClass('Redis')->getKeys() as $key => $value): ?>
|
|
<tr>
|
|
<td><?php echo $key;?></td>
|
|
<td><?php print_r($value);?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- /.container -->
|
|
|
|
<?php echo loadClass('Html')->getFooter(); ?>
|
|
</body>
|
|
</html>
|