devilbox/.devilbox/www/htdocs/info_mysql.php

57 lines
1.7 KiB
PHP
Raw Normal View History

2016-11-06 12:36:07 +00:00
<?php require '../config.php'; ?>
2017-05-08 07:43:43 +00:00
<?php $MySQL = loadClass('Mysql'); ?>
2016-10-09 16:47:49 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
2016-10-22 14:39:08 +00:00
<?php require '../include/head.php'; ?>
2016-10-09 16:47:49 +00:00
</head>
<body>
2016-11-15 18:39:11 +00:00
<?php require '../include/navbar.php'; ?>
2016-10-09 16:47:49 +00:00
<div class="container">
<h1>MySQL Info</h1>
2016-10-22 17:07:09 +00:00
<br/>
<br/>
2016-10-09 16:47:49 +00:00
<div class="row">
<div class="col-md-12">
2017-05-08 07:43:43 +00:00
<?php if (!\devilbox\Mysql::isAvailable($GLOBALS['MYSQL_HOST_NAME'])): ?>
<p>MySQL container is not running.</p>
<?php else: ?>
<p>For reference see here:</p>
<ul>
<li><a target="_blank" href="https://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html">https://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html</a></li>
<li><a target="_blank" href="https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html">https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html</a></li>
<li><a target="_blank" href="https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html">https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html</a></li>
</ul>
<table class="table table-striped">
<thead class="thead-inverse">
<tr>
2017-05-08 07:43:43 +00:00
<th>Variable</th>
<th>Value</th>
</tr>
2017-05-08 07:43:43 +00:00
</thead>
<tbody>
<?php foreach (loadClass('Mysql')->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-10-09 16:47:49 +00:00
</div>
</div>
</div><!-- /.container -->
<?php require '../include/footer.php'; ?>
2016-10-09 16:47:49 +00:00
</body>
</html>