added first version of the subpages
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
FROM php:fpm
|
||||
|
||||
# update the image
|
||||
RUN apt update && apt upgrade -y
|
||||
|
||||
# install pdo mysql extension
|
||||
RUN docker-php-ext-install pdo pdo_mysql
|
||||
|
||||
# install xdebug for php
|
||||
RUN pecl install xdebug && docker-php-ext-enable xdebug
|
||||
|
||||
# install ldap module
|
||||
RUN apt install -y libldap2-dev
|
||||
RUN docker-php-ext-install ldap
|
||||
1
app/database_queries.php
Normal file
1
app/database_queries.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php
|
||||
@@ -1,8 +1,19 @@
|
||||
<?php
|
||||
$pdo = new PDO('mysql:dbname=tutorial;host=mysql', 'grisu', 'secret', [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Punktesystem</title>
|
||||
</head>
|
||||
|
||||
$query = $pdo->query('SHOW VARIABLES like "version"');
|
||||
<header>
|
||||
<nav>
|
||||
<p><a href="mannschaft.php">Mannschaftsverwaltung</a></p>
|
||||
<p><a href="stationen.php">Stationen</a></p>
|
||||
<p><a href="statistik.php">Statistik</a></p>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
$row = $query->fetch();
|
||||
|
||||
echo 'MySQL version:' . $row['Value'];
|
||||
<body>
|
||||
<h1></h1>
|
||||
<p><?php phpinfo() ?></p>
|
||||
</body>
|
||||
</html>
|
||||
11
app/public/mannschaft.php
Normal file
11
app/public/mannschaft.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Punktesystem</title>
|
||||
</head>
|
||||
<header>
|
||||
<nav>
|
||||
<p><a href="index.php">Startseite</a></p>
|
||||
<p><a href="stationen.php">Stationen</a></p>
|
||||
<p><a href="statistik.php">Statistik</a></p>
|
||||
</nav>
|
||||
</header>
|
||||
11
app/public/stationen.php
Normal file
11
app/public/stationen.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Punktesystem</title>
|
||||
</head>
|
||||
<header>
|
||||
<nav>
|
||||
<p><a href="mannschaft.php">Mannschaftsverwaltung</a></p>
|
||||
<p><a href="index.php">Startseite</a></p>
|
||||
<p><a href="statistik.php">Statistik</a></p>
|
||||
</nav>
|
||||
</header>
|
||||
11
app/public/statistik.php
Normal file
11
app/public/statistik.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Punktesystem</title>
|
||||
</head>
|
||||
<header>
|
||||
<nav>
|
||||
<p><a href="mannschaft.php">Mannschaftsverwaltung</a></p>
|
||||
<p><a href="stationen.php">Stationen</a></p>
|
||||
<p><a href="index.php">Startseite</a></p>
|
||||
</nav>
|
||||
</header>
|
||||
Reference in New Issue
Block a user