devilbox/.devilbox/www/htdocs/db_redis.php

60 lines
1.3 KiB
PHP
Raw Normal View History

2017-04-23 12:08:54 +00:00
<?php require '../config.php'; ?>
<?php loadClass('Helper')->authPage(); ?>
2017-04-23 12:08:54 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
2017-05-15 06:56:17 +00:00
<?php echo loadClass('Html')->getHead(); ?>
2017-04-23 12:08:54 +00:00
</head>
<body>
2017-05-15 06:56:17 +00:00
<?php echo loadClass('Html')->getNavbar(); ?>
2017-04-23 12:08:54 +00:00
<div class="container">
<h1>Redis Keys</h1>
<br/>
<br/>
<div class="row">
<div class="col-md-12">
2017-05-15 06:56:17 +00:00
<?php if (!loadClass('Redis')->isAvailable()): ?>
2017-05-08 07:43:43 +00:00
<p>Redis container is not running.</p>
<?php else: ?>
<table class="table table-striped ">
<thead class="thead-inverse ">
2017-04-23 12:08:54 +00:00
<tr>
2018-08-12 08:26:51 +00:00
<th>DB</th>
2017-05-08 07:43:43 +00:00
<th>Key</th>
<th>Value</th>
</th>
</thead>
<tbody>
2018-08-12 08:26:51 +00:00
<?php foreach (loadClass('Redis')->getKeys() as $db_name => $keys): ?>
<tr class="table-info">
<th colspan="3">
<?php echo $db_name;?>
</th>
2017-05-08 07:43:43 +00:00
</tr>
2018-08-12 08:26:51 +00:00
<?php foreach ($keys as $key=> $val): ?>
<tr>
<td></td>
<td><?php echo $key;?></td>
<td><code><?php print_r($val);?></code></td>
</tr>
<?php endforeach; ?>
2017-05-08 07:43:43 +00:00
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
2017-04-23 12:08:54 +00:00
</div>
</div>
</div><!-- /.container -->
2017-05-15 06:56:17 +00:00
<?php echo loadClass('Html')->getFooter(); ?>
2017-04-23 12:08:54 +00:00
</body>
</html>