devilbox/.devilbox/www/htdocs/info_pgsql.php

50 lines
1.0 KiB
PHP
Raw Normal View History

2016-11-15 18:39:11 +00:00
<?php require '../config.php'; ?>
<?php loadClass('Helper')->authPage(); ?>
2016-11-15 18:39:11 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
2017-05-15 06:56:17 +00:00
<?php echo loadClass('Html')->getHead(); ?>
2016-11-15 18:39:11 +00:00
</head>
<body>
2017-05-15 06:56:17 +00:00
<?php echo loadClass('Html')->getNavbar(); ?>
2016-11-15 18:39:11 +00:00
<div class="container">
<h1>PostgreSQL Info</h1>
<br/>
<br/>
<div class="row">
<div class="col-md-12">
2017-05-15 06:56:17 +00:00
<?php if (!loadClass('Pgsql')->isAvailable()): ?>
2017-05-08 07:43:43 +00:00
<p>PgSQL container is not running.</p>
<?php else: ?>
<table class="table table-striped">
<thead class="thead-inverse">
2016-11-15 18:39:11 +00:00
<tr>
2017-05-08 07:43:43 +00:00
<th>Variable</th>
<th>Value</th>
2016-11-15 18:39:11 +00:00
</tr>
2017-05-08 07:43:43 +00:00
</thead>
<tbody>
<?php foreach (loadClass('Pgsql')->getConfig() 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 endif; ?>
2016-11-15 18:39:11 +00:00
</div>
</div>
</div><!-- /.container -->
2017-05-15 06:56:17 +00:00
<?php echo loadClass('Html')->getFooter(); ?>
2016-11-15 18:39:11 +00:00
</body>
</html>