Layout improvements

This commit is contained in:
cytopia 2016-10-22 17:38:21 +02:00
parent 1212447225
commit 94e0df976f
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
10 changed files with 86 additions and 34 deletions

View File

@ -33,4 +33,6 @@ $MY_MYSQL_LINK = NULL;
require $MY_DIR . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR .'functions.php'; require $MY_DIR . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR .'functions.php';
$MY_MYSQL_LINK = my_mysql_connect($MY_MYSQL_ERR); if (isset($CONNECT) && $CONNECT) {
$MY_MYSQL_LINK = my_mysql_connect($MY_MYSQL_ERR);
}

View File

@ -1,4 +1,5 @@
<?php <?php
$CONNECT = TRUE;
require '../config.php'; require '../config.php';
if (isset($_GET['size'])) { if (isset($_GET['size'])) {

View File

@ -1,5 +1,9 @@
/* Fix tables /* Bootstrap overwrites
-------------------------------------------------- */ -------------------------------------------------- */
html, body {
font-size: 14px;
}
td { td {
word-break: break-all; word-break: break-all;
} }
@ -99,3 +103,5 @@ nav.navbar {
color: #373a3c; color: #373a3c;
background-color: #fff; background-color: #fff;
} }

View File

@ -0,0 +1,55 @@
<?php require '../config.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php require '../include/head.php'; ?>
</head>
<body>
<?php require '../include/navigation.php'; ?>
<div class="container">
<h1>Credits</h1>
<div class="row">
<div class="col-md-12">
<table class="table table-striped ">
<thead class="thead-inverse ">
<tr>
<th>Vendor</th>
<th>License</th>
<th>Url</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bootstrap</td>
<td>MIT</td>
<td><a href="https://github.com/twbs/bootstrap">https://github.com/twbs/bootstrap</a></td>
</tr>
<tr>
<td>Opcache GUI</td>
<td>MIT</td>
<td><a href="https://github.com/amnuts/opcache-gui">https://github.com/amnuts/opcache-gui</a></td>
</tr>
<tr>
<td>phpMyAdmin</td>
<td>GPL 2.0</td>
<td><a href="https://github.com/phpmyadmin/phpmyadmin">https://github.com/phpmyadmin/phpmyadmin</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div><!-- /.container -->
<?php require '../include/footer.php'; ?>
</body>
</html>

View File

@ -1,4 +1,4 @@
<?php require '../config.php'; ?> <?php $CONNECT = TRUE; require '../config.php'; ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -14,11 +14,9 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<?php
$databases = getDatabases(); <table class="table table-striped ">
?> <thead class="thead-inverse ">
<table class="table table-striped">
<thead class="thead-inverse">
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Charset</th> <th>Charset</th>
@ -28,7 +26,7 @@
</th> </th>
</thead> </thead>
<tbody> <tbody>
<?php foreach ($databases as $name => $keys): ?> <?php foreach (getDatabases() as $name => $keys): ?>
<tr> <tr>
<td><?php echo $name;?></td> <td><?php echo $name;?></td>
<td><?php echo $keys['charset'];?></td> <td><?php echo $keys['charset'];?></td>

View File

@ -1,4 +1,4 @@
<?php require '../config.php'; ?> <?php $CONNECT = TRUE; require '../config.php'; ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -39,7 +39,7 @@
<div class="bg-danger"> <div class="bg-danger">
<div> <div>
<div> <div>
<?php echo getHttpVersion();?> <h3><?php echo getHttpVersion();?></h3>
</div> </div>
</div> </div>
</div> </div>
@ -56,7 +56,7 @@
<div class="bg-info"> <div class="bg-info">
<div> <div>
<div> <div>
<?php echo getPHPVersion(); ?> <h3><?php echo getPHPVersion(); ?></h3>
</div> </div>
</div> </div>
</div> </div>
@ -73,7 +73,7 @@
<div class="bg-warning"> <div class="bg-warning">
<div> <div>
<div> <div>
<?php echo getMySQLVersion();?> <h3><?php echo getMySQLVersion();?></h3>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,4 +1,4 @@
<?php require '../config.php'; ?> <?php $CONNECT = TRUE; require '../config.php'; ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -22,7 +22,7 @@
<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> <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> </ul>
<table class="table table-striped table-sm"> <table class="table table-striped">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th>Variable</th> <th>Variable</th>
@ -45,12 +45,5 @@
</div><!-- /.container --> </div><!-- /.container -->
<?php require '../include/footer.php'; ?> <?php require '../include/footer.php'; ?>
<script>
// self executing function here
(function() {
// your page initialization code here
// the DOM will be available here
})();
</script>
</body> </body>
</html> </html>

View File

@ -18,12 +18,5 @@
</div><!-- /.container --> </div><!-- /.container -->
<?php require '../include/footer.php'; ?> <?php require '../include/footer.php'; ?>
<script>
// self executing function here
(function() {
// your page initialization code here
// the DOM will be available here
})();
</script>
</body> </body>
</html> </html>

View File

@ -16,7 +16,7 @@
<div class="col-md-12"> <div class="col-md-12">
<?php $vHosts = getVirtualHosts(); ?> <?php $vHosts = getVirtualHosts(); ?>
<?php if ($vHosts): ?> <?php if ($vHosts): ?>
<table class="table table-striped table-sm"> <table class="table table-striped">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th>Project</th> <th>Project</th>

View File

@ -1,9 +1,13 @@
<nav class="navbar navbar-full footer navbar-dark bg-inverse"> <nav class="navbar navbar-full footer navbar-dark bg-inverse">
<div class="container"> <div class="container">
<p class="text-muted">Render time: <?php echo round((microtime(true) - $TIME_START), 2); ?> sec</p> <ul class="nav navbar-nav">
<li class="nav-item nav-link">Render time: <?php echo round((microtime(true) - $TIME_START), 2); ?> sec</li>
<li class="nav-item float-xs-right"><a class="nav-link" href="/credits.php"><code>Credits</code></a></li>
<li class="nav-item float-xs-right"><a class="nav-link" href="https://github.com/cytopia/devilbox"><code>Github</code></a></li>
</div> </div>
</nav> </nav>
<?php my_mysqli_close($GLOBALS['MY_MYSQL_LINK']); ?>
<?php if ($GLOBALS['MY_MYSQL_LINK']) { my_mysqli_close($GLOBALS['MY_MYSQL_LINK']); } ?>
<?php /* <?php /*
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
@ -11,4 +15,4 @@
<!-- Include all compiled plugins (below), or include individual files as needed --> <!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/vendor/bootstrap/bootstrap.min.js"></script> <script src="/vendor/bootstrap/bootstrap.min.js"></script>
*/ */
?>