stripped
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>LAMP STACK</title>
|
||||
<title>GIMME PET</title>
|
||||
<link rel="shortcut icon" href="/assets/images/favicon.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="/assets/css/bulma.min.css">
|
||||
</head>
|
||||
@@ -12,10 +12,10 @@
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<h1 class="title">
|
||||
LAMP STACK
|
||||
:O
|
||||
</h1>
|
||||
<h2 class="subtitle">
|
||||
Your local development environment
|
||||
NEVER EXPECT ANYTHING
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
@@ -23,51 +23,13 @@
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<h3 class="title is-3 has-text-centered">Environment</h3>
|
||||
<hr>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<li><?= apache_get_version(); ?></li>
|
||||
<li>PHP <?= phpversion(); ?></li>
|
||||
<li>
|
||||
<?php
|
||||
$link = mysqli_connect("database", "root", $_ENV['MYSQL_ROOT_PASSWORD'], null);
|
||||
|
||||
/* check connection */
|
||||
if (mysqli_connect_errno()) {
|
||||
printf("MySQL connecttion failed: %s", mysqli_connect_error());
|
||||
} else {
|
||||
/* print server version */
|
||||
printf("MySQL Server %s", mysqli_get_server_info($link));
|
||||
}
|
||||
/* close connection */
|
||||
mysqli_close($link);
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<h3 class="title is-3 has-text-centered">Quick Links</h3>
|
||||
<hr>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<li><a href="/phpinfo.php">phpinfo()</a></li>
|
||||
<li><a href="http://localhost:<? print $_ENV['PMA_PORT']; ?>">phpMyAdmin</a></li>
|
||||
<li><a href="/test_db.php">Test DB Connection with mysqli</a></li>
|
||||
<li><a href="/test_db_pdo.php">Test DB Connection with PDO</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="footer">
|
||||
<div class="content has-text-centered">
|
||||
<p>
|
||||
<strong><a href="https://www.sprintcube.com" target="_blank">SprintCube</a></strong><br>
|
||||
The source code is released under the <a href="https://github.com/sprintcube/docker-compose-lamp/blob/master/LICENSE" target="_blank">MIT license</a>.
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user