mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-22 14:12:25 +00:00
53 lines
1.2 KiB
PHP
53 lines
1.2 KiB
PHP
<?php require '../config.php'; ?>
|
|
<?php loadClass('Helper')->authPage(); ?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<?php echo loadClass('Html')->getHead(); ?>
|
|
</head>
|
|
|
|
<body>
|
|
<?php echo loadClass('Html')->getNavbar(); ?>
|
|
|
|
<div class="container">
|
|
|
|
<h1>Memcached Info</h1>
|
|
<br/>
|
|
<br/>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<?php if (!loadClass('Memcd')->isAvailable()): ?>
|
|
<p>Memcahed container is not running.</p>
|
|
<?php else: ?>
|
|
<?php foreach (loadClass('Memcd')->getInfo() as $srv => $data): ?>
|
|
<h2><?php echo $srv; ?></h2>
|
|
<table class="table table-striped">
|
|
<thead class="thead-inverse">
|
|
<tr>
|
|
<th>Variable</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($data as $key => $val): ?>
|
|
<tr>
|
|
<td><?php echo $key;?></td>
|
|
<td class="break-word"><code><?php echo $val;?></code></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- /.container -->
|
|
|
|
<?php echo loadClass('Html')->getFooter(); ?>
|
|
</body>
|
|
</html>
|