Compare commits
150 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c62ff5b2c0 | |||
| ad422a134d | |||
| 9fce9ec8dd | |||
| a329137de2 | |||
| 21bdb0d66d | |||
| 5db4ad3e63 | |||
| 2ce13cef72 | |||
| 02551049e0 | |||
| 55e9fa6a20 | |||
| c82378baa8 | |||
| 541d5b4c5e | |||
| f9ab3f8db2 | |||
| 6c5047be30 | |||
| 25f6d2bf4a | |||
| 4d8f338649 | |||
| 46a307a5b0 | |||
| 7706c7dfbf | |||
| a946cee891 | |||
| 4d4b8aeb99 | |||
| ee7986bef3 | |||
| 8de1b1bdb5 | |||
| 4a663391ef | |||
| 4cd877ea4c | |||
| 0f573d30ae | |||
| fdd56c10b8 | |||
| 46daf72a14 | |||
| 896e6abcd8 | |||
| 95e5cf0908 | |||
| be35a00cef | |||
| b616251511 | |||
| 3f5313dd00 | |||
| f909d0453b | |||
| d5f4f2b8a5 | |||
| 87a8e9b7d2 | |||
| 729b0f08a1 | |||
| 2907bcdd67 | |||
| 65935c644b | |||
| 8645900035 | |||
| 49a8d49296 | |||
| bc1051e4a2 | |||
| d8f8fbbdd4 | |||
| baf3f88e1e | |||
| 480b6cd4ae | |||
| 29b588babb | |||
| a29e48efad | |||
| 84a9f7063a | |||
| 58f7be9d52 | |||
| 8fa91e74da | |||
| a33824a935 | |||
| d497ea4fc3 | |||
| 80316e080a | |||
| bf06df461d | |||
| 0f529bae05 | |||
| 526ae0cf17 | |||
| cdd3a8a5a6 | |||
| 48c855de7b | |||
| 51d38b1d42 | |||
| e61cb0dc1f | |||
| fccd00e959 | |||
| facddf3e42 | |||
| a43dc50cf1 | |||
| 143b78b45d | |||
| 4aef921299 | |||
| 1db44ade6f | |||
| a76cb0bb0a | |||
| e3aeeb7fdd | |||
| 1fb181d83c | |||
| 8d3a18ee86 | |||
| 76fac30a5f | |||
| 882cfb28d2 | |||
| 8e3d11a607 | |||
| 1fc687ffc9 | |||
| bde79ace3a | |||
| 299140da94 | |||
| f7ddde6860 | |||
| bde258859c | |||
| cdc7611dc5 | |||
| 160150d2fe | |||
| 012b21449b | |||
| 70b1191eda | |||
| 5c0b9b4d44 | |||
| 0b518db97f | |||
| eb87cfa2fa | |||
| 279a5329cf | |||
| 2252ec2646 | |||
| b2c79c636a | |||
| f97f345939 | |||
| 673f171e8b | |||
| 5c4a1d1d91 | |||
| 76928e78e7 | |||
| e6412ef2cd | |||
| d577bd11f1 | |||
| 793f1e0e96 | |||
| 78f669e857 | |||
| 99374dae3c | |||
| a1aa191cf7 | |||
| 615330e8e6 | |||
| 6fec6ebfa3 | |||
| 9a4d25776c | |||
| b1705e5497 | |||
| 132f7866d1 | |||
| 532ec22811 | |||
| 59ef5b8bc2 | |||
| 7940cc3b3c | |||
| 2a8a801749 | |||
| ea02066644 | |||
| 1171fed5cd | |||
| 36cb2c03f1 | |||
| 44f647c60b | |||
| 7e09860826 | |||
| 2d9b146517 | |||
| bbc7e7297e | |||
| c7f2288f8e | |||
| e9d1d017e1 | |||
| bf2aff1f77 | |||
| f4fcf7b387 | |||
| d37e6460ab | |||
| 3e03f0aa90 | |||
| 4809a10327 | |||
| df316263eb | |||
| b9eb97a842 | |||
| 86daa175fa | |||
| 134b439fd3 | |||
| d3303de510 | |||
| b13b713e43 | |||
| f687347e11 | |||
| fa70550ca2 | |||
| 2ff947e62e | |||
| 7267ad4498 | |||
| 5381368af0 | |||
| 6c4041ba16 | |||
| 99f874820f | |||
| 46a609e4b7 | |||
| f5c8f4adab | |||
| 314fd8e26e | |||
| a1b61ddc47 | |||
| 5b0fa08c81 | |||
| 044f2f8248 | |||
| 333d19e3e2 | |||
| f4171c69ea | |||
| 4a9c4ae462 | |||
| 37b0376a38 | |||
| f4156d16c5 | |||
| cd74f7a963 | |||
| 49ed423eaf | |||
| 1b7802a2ac | |||
| 6e449912ab | |||
| 8fe32f6245 | |||
| f52022d098 | |||
| e67a350857 |
Generated
+1
@@ -10,6 +10,7 @@
|
||||
<option name="highlightLevel" value="WARNING" />
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PhpProjectSharedConfiguration" php_language_level="8.5" />
|
||||
<component name="PhpStanOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
|
||||
@@ -7,4 +7,7 @@ Abgabe zu Aufgabenblatt 1
|
||||
|
||||
Hinweise:
|
||||
index.html wurde zu einer index.php umbenannt.
|
||||
webhook.php bitte ignorieren. Diese dient nur als zukünftige Automatisierung des Repo-Pulls (s. https://docs.gitea.com/usage/webhooks)
|
||||
webhook.php bitte ignorieren. Diese dient nur als zukünftige Automatisierung des Repo-Pulls (s. https://docs.gitea.com/usage/webhooks)
|
||||
|
||||
Beim Verwenden der Navbar-Links bitte Folgendes beachten: nur die Kategorien Physik, Mathe, Informatik führen exemplarisch auf eine Beispiel-Seite.
|
||||
Die anderen Links sind erstmal Platzhalter, dessen dynamischer Inhalt später mit PHP in die index.php eingefügt wird. Alle anderen Links führen auf eine 404-Seite.
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
<!--
|
||||
Artikel: Datenschutz vs Datensicherheit
|
||||
Funktion: Inhalt zum Fach Informatik
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
<main>
|
||||
|
||||
<h1>Datenschutz vs Datensicherheit</h1>
|
||||
|
||||
<p>
|
||||
Datenschutz ist in unserer digital vernetzten Welt allgegenwärtig – ob in sozialen Netzwerken, beim
|
||||
Online-Shopping oder dem Einsatz von Bonuskarten, bei der Auswertung von Konsumverhalten und selbstverständlich
|
||||
auch im schulischen Kontext.
|
||||
</p>
|
||||
<h2>
|
||||
Was ist Datenschutz?
|
||||
</h2>
|
||||
<p>
|
||||
Datenschutz bedeutet, dass persönliche Daten nur gesammelt, gespeichert und verwendet werden dürfen, wenn
|
||||
es wirklich nötig ist – und nur für klar festgelegte Zwecke. Es geht darum, die Privatsphäre von Menschen
|
||||
zu schützen.
|
||||
</p>
|
||||
<h2>
|
||||
Was ist Datenschutz?
|
||||
</h2>
|
||||
<p>
|
||||
Datensicherheit umfasst alle technischen und organisatorischen Maßnahmen, die verhindern sollen, dass Daten
|
||||
verloren gehen, beschädigt oder unbemerkt verändert werden. Sie schützt Informationen vor Missbrauch.
|
||||
</p>
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../../legal/impressum.php">Impressum</a>
|
||||
<a href="../../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,72 +0,0 @@
|
||||
<!--
|
||||
Artikel: Satz des Pythagoras
|
||||
Funktion: Inhalt zum Fach Mathe
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
<main>
|
||||
|
||||
<h1>Satz des Pythagoras</h1>
|
||||
|
||||
<p>
|
||||
Der Satz des Pythagoras wurde von dem griechischen Philosophen Pythagoras von Samos formuliert und im
|
||||
dritten Jahrhundert vor Christus veröffentlicht.
|
||||
</p>
|
||||
<figure>
|
||||
<img src="https://cdn8.picryl.com/photo/2016/05/14/pythagoras-e9560b-1024.jpg" alt="Trulli" style="width:10%">
|
||||
<figcaption><a href="https://cdn8.picryl.com/photo/2016/05/14/pythagoras-e9560b-1024.jpg">Quelle</a></figcaption>
|
||||
</figure>
|
||||
<p>
|
||||
In der beigefügten Abbildung sehen wir ein rechtwinkliges Dreieck, dessen drei Seiten die Längen a, b und c
|
||||
besitzen. Auf jeder Seite ist ein Quadrat konstruiert. Das Quadrat auf der Seite a hat die Fläche a2, das
|
||||
Quadrat auf der Seite b hat die Fläche b2 und das Quadrat auf der Seite c hat die Fläche c2. Der Satz des
|
||||
Pythagoras besagt, dass die Summe der Flächen der beiden kleineren Quadrate gleich der Fläche des größten
|
||||
Quadrats ist. Das bedeutet, dass a^2+b^2=c^2 (Satz des Pythagoras).
|
||||
</p>
|
||||
<a href="../docs/Uebungsaufgaben_Pythagoras.pdf">Lernzettel-Download</a>
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../../legal/impressum.php">Impressum</a>
|
||||
<a href="../../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,66 +0,0 @@
|
||||
<!--
|
||||
Artikel: Tunneleffekt
|
||||
Funktion: Inhalt zum Fach Physik
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
<main>
|
||||
|
||||
<h1>Tunneleffekt</h1>
|
||||
|
||||
<p>
|
||||
Der Tunneleffekt ist ein quantenmechanisches Phänomen, bei dem Teilchen – vor allem Elektronen – eine
|
||||
Energiebarriere überwinden können, obwohl sie nach den Regeln der klassischen Physik nicht genügend Energie
|
||||
dafür besitzen. In der klassischen Vorstellung müsste ein Elektron entweder genügend Energie haben, um über
|
||||
eine Barriere zu „springen“, oder es würde vollständig zurückgeworfen. In der Quantenphysik wird ein Elektron
|
||||
jedoch nicht als punktförmiges Teilchen beschrieben, sondern als Wellenfunktion, die sich räumlich ausdehnt.
|
||||
Dadurch besteht eine endliche Wahrscheinlichkeit, dass sich das Elektron auf der anderen Seite einer Barriere
|
||||
befindet (Griffiths & Schroeter, 2018).
|
||||
</p>
|
||||
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../../legal/impressum.php">Impressum</a>
|
||||
<a href="../../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,83 +0,0 @@
|
||||
<!--
|
||||
Form: Login-Bereich
|
||||
Funktion: Benutzerauthentifizierung und Zugang zum eigenen Profil, Erstellen von Beiträgen, etc.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="login-page">
|
||||
<div class="login-container">
|
||||
<div class="logo-wrapper">
|
||||
<img src="../images/logo.png" alt="Logo" class="login-logo">
|
||||
</div>
|
||||
|
||||
<h1>Bitte anmelden</h1>
|
||||
|
||||
<form>
|
||||
<label id ="inputEmail" class="screenreader-only">E-Mail Adresse / </label>
|
||||
|
||||
<p class="input-label">Benutzername/E-Mail-Adresse:</p>
|
||||
<input type="email" name="email" class="login-input" placeholder="E-Mail-Adresse" required autofocus>
|
||||
|
||||
<p class="input-label">Passwort:</p>
|
||||
<input type="password" name="password" class="login-input" placeholder="Passwort" required>
|
||||
|
||||
<div class="checkbox-wrapper">
|
||||
<label>
|
||||
<input type="checkbox" name="remember-me" value="1"> angemeldet bleiben
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button type="submit" value="anmelden" name="loginSubmit" class="login-button">anmelden</button>
|
||||
|
||||
<div class="register-link">
|
||||
<a href="register.php">Noch keinen Account? Jetzt hier registrieren!</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../legal/impressum.php">Impressum</a>
|
||||
<a href="../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,83 +0,0 @@
|
||||
<!--
|
||||
Form: Registrierung
|
||||
Funktion: Erstellung neuer Benutzerkonten
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="login-page">
|
||||
<div class="login-container">
|
||||
<div class="logo-wrapper">
|
||||
<img src="../images/logo.png" alt="Logo" class="login-logo">
|
||||
</div>
|
||||
|
||||
<h1>Jetzt Registrieren!</h1>
|
||||
|
||||
<form>
|
||||
<p class="input-label">Email:</p>
|
||||
<input type="email" name="email" class="login-input" placeholder="mustermann@web.de" required>
|
||||
|
||||
<p class="input-label">Vorname:</p>
|
||||
<input type="text" name="vorname" class="login-input" placeholder="Max" required>
|
||||
|
||||
<p class="input-label">Nachname:</p>
|
||||
<input type="text" name="nachname" class="login-input" placeholder="Mustermann" required>
|
||||
|
||||
<p class="input-label">Passwort:</p>
|
||||
<input type="password" name="password" class="login-input" placeholder="Passwort" required>
|
||||
|
||||
<div class="checkbox-wrapper">
|
||||
<label>
|
||||
<input type="checkbox" value="remember-me"> angemeldet bleiben
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button type="submit" value="anmelden" name="loginSubmit" class="login-button">kostenlos registrieren</button>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../legal/impressum.php">Impressum</a>
|
||||
<a href="../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!--
|
||||
Seite: 404 Seite nicht gefunden
|
||||
Funktion: Wenn eine Seite nicht gefunden wurde oder noch fehlt, dann wird hierauf verwiesen.
|
||||
-->
|
||||
<main>
|
||||
|
||||
<h1>404 - Seite nicht vorhanden</h1>
|
||||
<p>
|
||||
Später im Projekt sollen über index.php?pfad= ... der Inhalt der index.php dynamisch gesetzt werden.
|
||||
Alle Content-Links der Navbar führen zunächst hier her. Exemplarisch wurden für die Fächer Informatik, Physik, Mathematik der Content als Seite erstellt und kann über die Navbar ausgekundschaftet werden.
|
||||
</p>
|
||||
</main>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!--
|
||||
Seite: Datenschutzerklärung
|
||||
Inhalt: Informationen zur Datenverarbeitung gemäß DSGVO
|
||||
-->
|
||||
<main>
|
||||
|
||||
<h1>Datenschutz</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
</main>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
require_once "php/model/LocalUserDAO.php";
|
||||
|
||||
$dao = new LocalUserDAO();
|
||||
|
||||
/*
|
||||
Deregistrierung
|
||||
Funktion: Entfernt User aus Dummy-Daten und beendet Session
|
||||
*/
|
||||
|
||||
if (isset($_SESSION["user_email"])) {
|
||||
$dao->deleteUser($_SESSION["user_email"]);
|
||||
}
|
||||
|
||||
$_SESSION = [];
|
||||
session_destroy();
|
||||
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
+6
-6
@@ -17,23 +17,23 @@
|
||||
<!-- Flexbox -->
|
||||
<div class="flexbox">
|
||||
<div class="container">
|
||||
<a href="content/informatik.php" class="category-link">Informatik</a>
|
||||
<a href="index.php?pfad=informatik" class="category-link">Informatik</a>
|
||||
<div class="article-link">
|
||||
<a href="articles/datenschutz.php">Datenschutz vs. Datensicherheit</a>
|
||||
<a href="datenschutzVSdatensicherheit.php">Datenschutz vs. Datensicherheit</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<a href="content/mathe.php" class="category-link">Mathe</a>
|
||||
<a href="index.php?pfad=mathe" class="category-link">Mathe</a>
|
||||
<div class="article-link">
|
||||
<a href="articles/pythagoras.php">Satz des Pythagoras</a>
|
||||
<a href="pythagoras.php">Satz des Pythagoras</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<a href="content/physik.php" class="category-link">Physik</a>
|
||||
<a href="index.php?pfad=physik" class="category-link">Physik</a>
|
||||
<div class="article-link">
|
||||
<a href="articles/tunneleffekt.php">Der Tunneleffekt</a>
|
||||
<a href="tunneleffekt.php">Der Tunneleffekt</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<!--
|
||||
Seite: Impressum
|
||||
Inhalt: wer wie was auf der Webseite
|
||||
-->
|
||||
|
||||
<main>
|
||||
|
||||
<h1>Impressum</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
</main>
|
||||
+15
-63
@@ -2,68 +2,20 @@
|
||||
Seite: Informatik
|
||||
Inhalt: Eine Übersicht über alle Beiträge zum Fach
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<main>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
<h1>Informatik</h1>
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<h1>Informatik</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
<h2>Artikel:</h2>
|
||||
<div>
|
||||
<a href="../articles/datenschutz.php">Datenschutz vs. Datensicherheit</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../legal/impressum.php">Impressum</a>
|
||||
<a href="../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
<h2>Artikel:</h2>
|
||||
<div>
|
||||
<a href="datenschutzVSdatensicherheit.php">Datenschutz vs. Datensicherheit</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
$error = $error ?? null;
|
||||
?>
|
||||
|
||||
<!--
|
||||
Form: Login-Bereich
|
||||
Funktion: Benutzerauthentifizierung und Zugang zum eigenen Profil, Erstellen von Beiträgen, etc.
|
||||
-->
|
||||
<main class="login-page">
|
||||
<div class="login-container">
|
||||
|
||||
<h1>Bitte anmelden</h1>
|
||||
|
||||
<?php if ($error): ?>
|
||||
<p style="color:red;">
|
||||
<?php echo htmlspecialchars($error); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="index.php?pfad=login">
|
||||
|
||||
<p class="input-label">Benutzername/E-Mail-Adresse:</p>
|
||||
<input type="email"
|
||||
name="email"
|
||||
class="login-input"
|
||||
placeholder="E-Mail-Adresse"
|
||||
required
|
||||
autofocus>
|
||||
|
||||
<p class="input-label">Passwort:</p>
|
||||
<input type="password"
|
||||
name="password"
|
||||
class="login-input"
|
||||
placeholder="Passwort"
|
||||
required>
|
||||
|
||||
<button type="submit"
|
||||
value="anmelden"
|
||||
name="loginSubmit"
|
||||
class="login-button">
|
||||
anmelden
|
||||
</button>
|
||||
|
||||
<div class="register-link">
|
||||
<a href="index.php?pfad=register">
|
||||
Noch keinen Account? Jetzt hier registrieren!
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$_SESSION = [];
|
||||
session_destroy();
|
||||
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
+15
-63
@@ -2,69 +2,21 @@
|
||||
Seite: Mathe
|
||||
Inhalt: Eine Übersicht über alle Beiträge zum Fach
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<main>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
<h1>Mathe</h1>
|
||||
|
||||
<body>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<h1>Mathe</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
<h2>Artikel:</h2>
|
||||
<div>
|
||||
<a href="../articles/pythagoras.php">Satz des Pythagoras</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../legal/impressum.php">Impressum</a>
|
||||
<a href="../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<h2>Artikel:</h2>
|
||||
<div>
|
||||
<a href="pythagoras.php">Satz des Pythagoras</a>
|
||||
</div>
|
||||
</main>
|
||||
+15
-63
@@ -2,70 +2,22 @@
|
||||
Seite: Physik
|
||||
Inhalt: Eine Übersicht über alle Beiträge zum Fach
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<main>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
<h1>Physik</h1>
|
||||
|
||||
<body>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
<h2>Artikel:</h2>
|
||||
<div>
|
||||
<a href="tunneleffekt.php">Der Tunneleffekt</a>
|
||||
</div>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<h1>Physik</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
<h2>Artikel:</h2>
|
||||
<div>
|
||||
<a href="../articles/tunneleffekt.php">Der Tunneleffekt</a>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../legal/impressum.php">Impressum</a>
|
||||
<a href="../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</main>
|
||||
+37
-80
@@ -1,88 +1,45 @@
|
||||
<!--
|
||||
Seite: Profil
|
||||
Inhalt: Das eigene Profil, wenn man angemeldet ist. Dort hat man die Möglichkeit seine Angaben zu ändern.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<?php
|
||||
include_once 'php/controller/profile-controller.php';
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
$user = $user ?? null;
|
||||
?>
|
||||
|
||||
<body>
|
||||
<main class="form-page">
|
||||
<div class="form-container">
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
<h1>Mein Profil</h1>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
<form>
|
||||
<label class="input-label">Name</label>
|
||||
<input type="text"
|
||||
class="login-input"
|
||||
readonly
|
||||
value="<?php echo htmlspecialchars($user["username"] ?? ""); ?>">
|
||||
|
||||
<main>
|
||||
<label class="input-label">Email-Adresse</label>
|
||||
<input type="email"
|
||||
class="login-input"
|
||||
readonly
|
||||
value="<?php echo htmlspecialchars($user["email"] ?? ""); ?>">
|
||||
|
||||
<hr>
|
||||
<div>
|
||||
<div>
|
||||
<h1>Benutzerdaten ändern</h1>
|
||||
<a href="/users"><img src="../images/logo.png" alt="" width="120" height="72"></a>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<label id="Vorname">Vorname</label>
|
||||
<input type="text" name="Vorname" required placeholder="Vorname" value="<?php //DB-Daten ?>">
|
||||
</div>
|
||||
<div>
|
||||
<label id="Nachname">Nachname</label>
|
||||
<input type="text" name="Nachname" required placeholder="Nachname" value="<?php //DB-Daten ?>">
|
||||
</div>
|
||||
<div>
|
||||
<label id="Email">Email-Adresse</label>
|
||||
<input type="email" name="Email" required placeholder="mustermann@web.de" value="<?php //DB-Daten ?>">
|
||||
</div>
|
||||
<div>
|
||||
<label id="Passwort">Passwort</label>
|
||||
<input type="password" name="Passwort" required placeholder="Passwort">
|
||||
</div>
|
||||
<div>
|
||||
<br>
|
||||
<button type="submit" name="submit"><i></i> Speichern</button>
|
||||
</div>
|
||||
<div>
|
||||
<br>
|
||||
<button type="button" name="NutzerLoeschen">Account löschen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<label class="input-label">Passwort</label>
|
||||
<input type="password"
|
||||
class="login-input"
|
||||
readonly
|
||||
value="********">
|
||||
</form>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="../legal/impressum.php">Impressum</a>
|
||||
<a href="../legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
<br>
|
||||
|
||||
</html>
|
||||
<a href="index.php?pfad=deleteAccount" class="login-button">
|
||||
Account löschen
|
||||
</a>
|
||||
|
||||
<br><br>
|
||||
|
||||
<a href="index.php?pfad=logout" class="login-button">
|
||||
Abmelden
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
include_once 'php/controller/register-controller.php';
|
||||
|
||||
$error = $error ?? null;
|
||||
?>
|
||||
|
||||
<!--
|
||||
Form: Registrierung
|
||||
Funktion: Erstellung neuer Benutzerkonten
|
||||
-->
|
||||
<main class="login-page">
|
||||
<div class="login-container">
|
||||
|
||||
<h1>Jetzt Registrieren!</h1>
|
||||
|
||||
<?php if ($error): ?>
|
||||
<p style="color:red;">
|
||||
<?php echo htmlspecialchars($error); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="index.php?pfad=register">
|
||||
|
||||
<p class="input-label">Email:</p>
|
||||
<input type="email"
|
||||
name="email"
|
||||
class="login-input"
|
||||
placeholder="mustermann@web.de"
|
||||
required>
|
||||
|
||||
<p class="input-label">Vorname:</p>
|
||||
<input type="text"
|
||||
name="vorname"
|
||||
class="login-input"
|
||||
placeholder="Max"
|
||||
required>
|
||||
|
||||
<p class="input-label">Nachname:</p>
|
||||
<input type="text"
|
||||
name="nachname"
|
||||
class="login-input"
|
||||
placeholder="Mustermann"
|
||||
required>
|
||||
|
||||
<p class="input-label">Passwort:</p>
|
||||
<input type="password"
|
||||
name="password"
|
||||
class="login-input"
|
||||
placeholder="Passwort"
|
||||
required>
|
||||
|
||||
<button type="submit"
|
||||
value="register"
|
||||
name="registerSubmit"
|
||||
class="login-button">
|
||||
kostenlos registrieren
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Footer‑Grundlayout */
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background: #333d43;
|
||||
text-align: center;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
margin: 0 12px;
|
||||
transition: color 0.2s ease; /* Farbwechsel */
|
||||
}
|
||||
|
||||
footer a:hover,
|
||||
footer a:focus {
|
||||
color: #0066cc;
|
||||
}
|
||||
+114
-38
@@ -1,48 +1,77 @@
|
||||
|
||||
main {
|
||||
max-width:1200px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
font-family: Arial;
|
||||
max-width:1200px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #eef2f7;
|
||||
color: #1f2937;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a, button, input, select, textarea, label, main{
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.flexbox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
margin-top: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.container {
|
||||
border: 1px solid white;
|
||||
padding: 15px;
|
||||
border-radius: 8px;
|
||||
background-color: coral;
|
||||
transition: transform 0.2s;
|
||||
background-color: white;
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
border: 1px solid #dbe3ec;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.container:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 6px 18px rgba(0,0,0,0.12);
|
||||
}
|
||||
|
||||
.category-link {
|
||||
display: block;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
padding: 10px;
|
||||
background-color: blue;
|
||||
color: white;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 10px;
|
||||
display: block;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
padding: 12px;
|
||||
background-color: #2563eb;
|
||||
color: white;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 10px;
|
||||
transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.category-link:hover {
|
||||
background-color: #1d4ed8;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
.article-link a {
|
||||
color: blue;
|
||||
text-decoration: none;
|
||||
color: #1f2937;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.article-link a:hover {
|
||||
color: #2563eb;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.container {
|
||||
padding: 25px;
|
||||
}
|
||||
.container {
|
||||
padding: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Seite wird horizontal und vertikal zentriert */
|
||||
@@ -58,9 +87,10 @@ main {
|
||||
width: 90%;
|
||||
max-width: 450px;
|
||||
padding: 30px;
|
||||
border: 1px solid white;
|
||||
border: 1px solid #dbe3ec;
|
||||
border-radius: 10px;
|
||||
background-color: white;
|
||||
box-shadow: 0 6px 20px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.logo-wrapper {
|
||||
@@ -76,54 +106,100 @@ main {
|
||||
.login-container h1 {
|
||||
text-align: center;
|
||||
margin-bottom: 25px;
|
||||
font-size: 1.5rem;
|
||||
font-size: 1.7rem;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.input-label {
|
||||
margin-bottom: 5px;
|
||||
font-weight: bold;
|
||||
width: 100%;
|
||||
color: #1f2937;
|
||||
}
|
||||
|
||||
.input-label {
|
||||
margin-bottom: 5px;
|
||||
font-weight: bold;
|
||||
width: 100%;
|
||||
color: #1f2937;
|
||||
}
|
||||
|
||||
.login-input {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid white;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
font-size: 1rem;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.login-input:focus {
|
||||
outline: none;
|
||||
border-color: #2563eb;
|
||||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
|
||||
}
|
||||
|
||||
.checkbox-wrapper {
|
||||
margin-bottom: 20px;
|
||||
color: #1f2937;
|
||||
}
|
||||
|
||||
.login-button {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
background-color: blue;
|
||||
background-color: #2563eb;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
border-radius: 8px;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.login-button:hover {
|
||||
background-color: blue;
|
||||
background-color: #1d4ed8;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
.register-link {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
color: #1f2937;
|
||||
}
|
||||
.register-link a {
|
||||
color: #2563eb;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.register-link a:hover {
|
||||
color: #1d4ed8;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Versteckt das doppelte Label fuer Screenreader/Accessibility */
|
||||
.screenreader-only {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
/* Allgemeine Formularseiten */
|
||||
.form-page {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: coral;
|
||||
}
|
||||
.form-container {
|
||||
width: 90%;
|
||||
max-width: 600px;
|
||||
padding: 30px;
|
||||
background-color: white;
|
||||
border: 1px solid #dbe3ec;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 6px 20px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
+268
@@ -0,0 +1,268 @@
|
||||
/*
|
||||
CSS für die navbar
|
||||
*/
|
||||
.nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: #333d43;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.nav__left,
|
||||
.nav__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.nav__logo img {
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
.nav__center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.nav__item {
|
||||
position: relative;
|
||||
margin: 0 0.5rem;
|
||||
}
|
||||
|
||||
.nav__dropdown-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
padding: 0.5rem 1rem;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav__dropdown-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
background: #f9f9f9;
|
||||
min-width: 12rem;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,.15);
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.nav__dropdown-menu a {
|
||||
padding: 0.5rem 1rem; /* Abstand um den Text */
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav__link {
|
||||
display: inline-block;
|
||||
font-weight: 600;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0.5rem 1rem;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav__button {
|
||||
display: inline-block;
|
||||
background: #fff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 0.5rem 1rem;
|
||||
cursor: pointer;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.nav__search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 4px; /* Abgerundete Ecken */
|
||||
background: #fff;
|
||||
margin: 0 0.5rem;
|
||||
}
|
||||
|
||||
.nav__search-button {
|
||||
display: inline-block;
|
||||
background: #fff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 0.4rem 0.6rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.nav__dropdown:hover .nav__dropdown-menu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nav__checkbox {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav__mobile-submenu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Responsive Anpassung unter 1210px */
|
||||
@media (max-width: 1210px) {
|
||||
.nav {
|
||||
flex-wrap: wrap; /* zweite Nav-Zeile*/
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
.nav__left {
|
||||
order: 1;
|
||||
flex: 1; /* nimmt den Platz ganz links ein */
|
||||
}
|
||||
|
||||
.nav__right {
|
||||
order: 2;
|
||||
flex: 1;
|
||||
justify-content: flex-end; /* schiebt Buttons nach ganz rechts */
|
||||
}
|
||||
|
||||
.nav__center {
|
||||
order: 3;
|
||||
flex-basis: 100%; /* Erzwingt, dass dieses Element eine eigene Zeile einnimmt */
|
||||
justify-content: center; /*zentriert die Links in der zweiten Zeile */
|
||||
padding: 0.5rem 0;
|
||||
border-top: 1px solid rgba(255,255,255,0.1); /* Optionale Trennlinie */
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.nav__item {
|
||||
margin: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
#mobile-nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Responsive Anpassungen unter 760px (für z.B. Smartphones) */
|
||||
@media (max-width: 760px) {
|
||||
.nav {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.nav__logo img {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.nav__left {
|
||||
order: 2;
|
||||
flex: 1;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.nav__right {
|
||||
order: 3;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
#mobile-nav {
|
||||
display: block;
|
||||
order: 1;
|
||||
background: #333d43;
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-size: 1.5rem;
|
||||
padding: 0.5rem 0.1rem;
|
||||
border-radius: 0.2rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav__search {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nav__search-button {
|
||||
display: inline-block;
|
||||
background: #fff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 0.4rem 0.6rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
/* restliche desktop-navbar aus */
|
||||
.nav__center,
|
||||
.nav__right .nav__button,
|
||||
.nav__right .nav__link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* off canvas menu */
|
||||
.nav__mobile-menu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: -100%; /* kommt von links */
|
||||
width: 280px;
|
||||
height: 100vh;
|
||||
background: #333d43;
|
||||
z-index: 1000;
|
||||
transition: left 0.3s ease;
|
||||
padding: 2rem 1rem;
|
||||
box-shadow: 2px 0 10px rgba(0,0,0,0.5);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.nav__checkbox:checked ~ .nav__mobile-menu {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.nav_mobile-menu.is-active {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.nav__mobile-menu a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
display: block;
|
||||
padding: 0.5rem 1rem;
|
||||
border-bottom: 1px solid #333d43;
|
||||
}
|
||||
|
||||
.nav__mobile-submenu {
|
||||
display: block;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.nav__mobile-label {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
padding: 0.8rem 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,55 @@
|
||||
<!--
|
||||
Artikel: Datenschutz vs Datensicherheit
|
||||
Funktion: Inhalt zum Fach Informatik
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/x-icon" href="images/logos/logo_icon.ico">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/navbar.css">
|
||||
<link rel="stylesheet" href="css/footer.css">
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
include_once 'includes/navbar.php';
|
||||
?>
|
||||
<main>
|
||||
|
||||
<h1>Datenschutz vs Datensicherheit</h1>
|
||||
|
||||
<p>
|
||||
Datenschutz ist in unserer digital vernetzten Welt allgegenwärtig – ob in sozialen Netzwerken, beim
|
||||
Online-Shopping oder dem Einsatz von Bonuskarten, bei der Auswertung von Konsumverhalten und selbstverständlich
|
||||
auch im schulischen Kontext.
|
||||
</p>
|
||||
<h2>
|
||||
Was ist Datenschutz?
|
||||
</h2>
|
||||
<p>
|
||||
Datenschutz bedeutet, dass persönliche Daten nur gesammelt, gespeichert und verwendet werden dürfen, wenn
|
||||
es wirklich nötig ist – und nur für klar festgelegte Zwecke. Es geht darum, die Privatsphäre von Menschen
|
||||
zu schützen.
|
||||
</p>
|
||||
<h2>
|
||||
Was ist Datenschutz?
|
||||
</h2>
|
||||
<p>
|
||||
Datensicherheit umfasst alle technischen und organisatorischen Maßnahmen, die verhindern sollen, dass Daten
|
||||
verloren gehen, beschädigt oder unbemerkt verändert werden. Sie schützt Informationen vor Missbrauch.
|
||||
</p>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
include_once 'includes/footer.php';
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 199 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1,5 @@
|
||||
<footer>
|
||||
<a href="impressum.php">Impressum</a>
|
||||
<a href="datenschutz.php">Datenschutz</a>
|
||||
<a href="nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
+166
-22
@@ -1,28 +1,172 @@
|
||||
<?php
|
||||
session_start();
|
||||
?>
|
||||
|
||||
<!--
|
||||
Globales Menü, wird via PHP später in alle Seiten eingebunden
|
||||
-->
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="index.php">
|
||||
<img src="images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once 'search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
<nav class="nav">
|
||||
<div class="nav__left">
|
||||
<a href="index.php" class="nav__logo">
|
||||
<img src="images/logos/logo_full.png" alt="Logo">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Mobile navbar mit Burger-Symbol -->
|
||||
<input type="checkbox" id="nav-toggle" class="nav__checkbox">
|
||||
<label for="nav-toggle" id="mobile-nav">
|
||||
<span>☰</span>
|
||||
</label>
|
||||
|
||||
<ul id="mobile-nav" class="nav__mobile-menu">
|
||||
|
||||
<?php if (isset($_SESSION['user'])): ?>
|
||||
|
||||
<li><a href="index.php?pfad=profile">Profil</a></li>
|
||||
<li><a href="index.php?pfad=logout">Abmelden</a></li>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<li><a href="index.php?pfad=login">Anmelden</a></li>
|
||||
<li><a href="index.php?pfad=register">Registrieren</a></li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<li>
|
||||
<label class="nav__mobile-label">Sprachen</label>
|
||||
<ul class="nav__mobile-submenu">
|
||||
<li><a href="index.php?pfad=deutsch">Deutsch</a></li>
|
||||
<li><a href="index.php?pfad=englisch">Englisch</a></li>
|
||||
<li><a href="index.php?pfad=franzoesisch">Französisch</a></li>
|
||||
<li><a href="index.php?pfad=latein">Latein</a></li>
|
||||
<li><a href="index.php?pfad=literatur">Literatur</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label class="nav__mobile-label">MINT</label>
|
||||
<ul class="nav__mobile-submenu">
|
||||
<li><a href="index.php?pfad=mathe">Mathematik</a></li>
|
||||
<li><a href="index.php?pfad=biologie">Biologie</a></li>
|
||||
<li><a href="index.php?pfad=chemie">Chemie</a></li>
|
||||
<li><a href="index.php?pfad=physik">Physik</a></li>
|
||||
<li><a href="index.php?pfad=informatik">Informatik</a></li>
|
||||
<li><a href="index.php?pfad=astronomie">Astronomie</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label class="nav__mobile-label">Gesellschaft & Werte</label>
|
||||
<ul class="nav__mobile-submenu">
|
||||
<li><a href="index.php?pfad=geschichte">Geschichte</a></li>
|
||||
<li><a href="index.php?pfad=erdkunde">Erdkunde</a></li>
|
||||
<li><a href="index.php?pfad=sozialkunde">Sozialkunde</a></li>
|
||||
<li><a href="index.php?pfad=wirtschaft">Wirtschaftskunde</a></li>
|
||||
<li><a href="index.php?pfad=religion">Religion</a></li>
|
||||
<li><a href="index.php?pfad=ethik">Ethikunterricht</a></li>
|
||||
<li><a href="index.php?pfad=philosophie">Philosophie</a></li>
|
||||
<li><a href="index.php?pfad=psychologie">Psychologie</a></li>
|
||||
<li><a href="index.php?pfad=kunst">Kunst</a></li>
|
||||
<li><a href="index.php?pfad=musik">Musik</a></li>
|
||||
<li><a href="index.php?pfad=theater">Theater</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label class="nav__mobile-label">Technik & Praxis</label>
|
||||
<ul class="nav__mobile-submenu">
|
||||
<li><a href="index.php?pfad=technik">Technik</a></li>
|
||||
<li><a href="index.php?pfad=werken">Werken</a></li>
|
||||
<li><a href="index.php?pfad=hauswirtschaft">Hauswirtschaft</a></li>
|
||||
<li><a href="index.php?pfad=sport">Sport</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- normale Navbar (Desktop) -->
|
||||
<div class="nav__center">
|
||||
<div class="nav__item nav__dropdown">
|
||||
<button class="nav__dropdown-toggle">Sprachen</button>
|
||||
<div class="nav__dropdown-menu">
|
||||
<a href="index.php?pfad=deutsch">Deutsch</a>
|
||||
<a href="index.php?pfad=englisch">Englisch</a>
|
||||
<a href="index.php?pfad=franzoesisch">Französisch</a>
|
||||
<a href="index.php?pfad=latein">Latein</a>
|
||||
<a href="index.php?pfad=literatur">Literatur</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nav__item nav__dropdown">
|
||||
<button class="nav__dropdown-toggle">MINT</button>
|
||||
<div class="nav__dropdown-menu">
|
||||
<a href="index.php?pfad=mathe">Mathematik</a>
|
||||
<a href="index.php?pfad=biologie">Biologie</a>
|
||||
<a href="index.php?pfad=chemie">Chemie</a>
|
||||
<a href="index.php?pfad=physik">Physik</a>
|
||||
<a href="index.php?pfad=informatik">Informatik</a>
|
||||
<a href="index.php?pfad=astronomie">Astronomie</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nav__item nav__dropdown">
|
||||
<button class="nav__dropdown-toggle">Gesellschaft & Werte</button>
|
||||
<div class="nav__dropdown-menu">
|
||||
<a href="index.php?pfad=geschichte">Geschichte</a>
|
||||
<a href="index.php?pfad=erdkunde">Erdkunde</a>
|
||||
<a href="index.php?pfad=sozialkunde">Sozialkunde</a>
|
||||
<a href="index.php?pfad=wirtschaft">Wirtschaftskunde</a>
|
||||
<a href="index.php?pfad=religion">Religion</a>
|
||||
<a href="index.php?pfad=ethik">Ethikunterricht</a>
|
||||
<a href="index.php?pfad=philosophie">Philosophie</a>
|
||||
<a href="index.php?pfad=psychologie">Psychologie</a>
|
||||
<a href="index.php?pfad=kunst">Kunst</a>
|
||||
<a href="index.php?pfad=musik">Musik</a>
|
||||
<a href="index.php?pfad=theater">Theater</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nav__item nav__dropdown">
|
||||
<button class="nav__dropdown-toggle">Technik & Praxis</button>
|
||||
<div class="nav__dropdown-menu">
|
||||
<a href="index.php?pfad=technik">Technik</a>
|
||||
<a href="index.php?pfad=werken">Werken</a>
|
||||
<a href="index.php?pfad=hauswirtschaft">Hauswirtschaft</a>
|
||||
<a href="index.php?pfad=sport">Sport</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nav__right">
|
||||
|
||||
<?php if (isset($_SESSION['user'])): ?>
|
||||
|
||||
<a href="index.php?pfad=profile" class="nav__item nav__link">
|
||||
Profil
|
||||
</a>
|
||||
|
||||
<div class="nav__search">
|
||||
<?php include_once 'search.php'; ?>
|
||||
</div>
|
||||
|
||||
<a href="index.php?pfad=logout" class="nav__item nav__button">
|
||||
Abmelden
|
||||
</a>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<div class="nav__search">
|
||||
<?php include_once 'search.php'; ?>
|
||||
</div>
|
||||
|
||||
<a href="index.php?pfad=login" class="nav__item nav__button">
|
||||
Anmelden
|
||||
</a>
|
||||
|
||||
<a href="index.php?pfad=register" class="nav__item nav__button">
|
||||
Registrieren
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<a href = "auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
+3
-2
@@ -1,5 +1,6 @@
|
||||
<!--
|
||||
Suchleiste. Wird via PHP später in alle Seiten eingebunden
|
||||
-->
|
||||
<input type="search" id="site-search" name="q" placeholder="Suchen...">
|
||||
<button type="submit">Suchen</button>
|
||||
<!--<label for="site-search">Suche</label>-->
|
||||
<input type="search" id="site-search" name="q" placeholder="Suchen..." class="nav__search">
|
||||
<button type="submit" class="nav__search-button">Suchen</button>
|
||||
@@ -1,32 +1,72 @@
|
||||
<!--
|
||||
Seite: Hompage der Lernplattform
|
||||
Funktion: Webseitengerüst, Anzeigen von Beiträgen, Suchfunktion etc.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<?php
|
||||
session_start();
|
||||
ob_start();
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
$pfad = $_GET["pfad"] ?? "home";
|
||||
|
||||
/*
|
||||
Controller für Aktionen werden vor der HTML-Ausgabe geladen,
|
||||
damit Weiterleitungen mit header() funktionieren.
|
||||
*/
|
||||
if ($pfad === "login") {
|
||||
include_once "php/controller/login-controller.php";
|
||||
}
|
||||
|
||||
<body>
|
||||
if ($pfad === "register") {
|
||||
include_once "php/controller/register-controller.php";
|
||||
}
|
||||
|
||||
if ($pfad === "logout") {
|
||||
include_once "content/logout.php";
|
||||
exit();
|
||||
}
|
||||
|
||||
if ($pfad === "deleteAccount") {
|
||||
include_once "content/deleteAccount.php";
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
||||
<!--
|
||||
Seite: Index der Lernplattform
|
||||
Funktion: Webseitengerüst, Anzeigen von Content
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/x-icon" href="images/logos/logo_icon.ico">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/navbar.css">
|
||||
<link rel="stylesheet" href="css/footer.css">
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
include_once 'includes/navbar.php';
|
||||
//Dynamischer Inhalt (später mit php...):
|
||||
include_once 'content/home.php';
|
||||
?>
|
||||
include_once 'includes/navbar.php';
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="legal/impressum.php">Impressum</a>
|
||||
<a href="legal/datenschutz.php">Datenschutz</a>
|
||||
<a href="legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
/*
|
||||
Dynamischer Inhalt:
|
||||
Je nach pfad-Parameter wird die passende Datei aus content geladen.
|
||||
*/
|
||||
if (file_exists('content/' . $pfad . '.php')) {
|
||||
include_once 'content/' . $pfad . '.php';
|
||||
} else {
|
||||
include_once 'content/404.php';
|
||||
}
|
||||
|
||||
</html>
|
||||
include_once 'includes/footer.php';
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
||||
ob_end_flush();
|
||||
?>
|
||||
@@ -1,67 +0,0 @@
|
||||
<!--
|
||||
Seite: Datenschutzerklärung
|
||||
Inhalt: Informationen zur Datenverarbeitung gemäß DSGVO
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<h1>Datenschutz</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="impressum.php">Impressum</a>
|
||||
<a href="datenschutz.php">Datenschutz</a>
|
||||
<a href="nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,67 +0,0 @@
|
||||
<!--
|
||||
Seite: Impressum
|
||||
Inhalt: wer wie was auf der Webseite
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<h1>Impressum</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="impressum.php">Impressum</a>
|
||||
<a href="datenschutz.php">Datenschutz</a>
|
||||
<a href="nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,66 +0,0 @@
|
||||
<!--
|
||||
Seite: Nutzungsbedingungen
|
||||
Inhalt: Regelungen für die Nutzung der Plattform (AGBs und so...)
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<link rel="stylesheet" href="../css/main.css" />
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav style="background:#808080; height: 60px;">
|
||||
<div style="float:left; text-align: center;">
|
||||
<a href="../index.php">
|
||||
<img src="../images/logo.png" alt="" style="height: 44px;">
|
||||
</a>
|
||||
|
|
||||
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
||||
|
|
||||
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
||||
|
|
||||
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
||||
|
|
||||
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
||||
|
|
||||
</div>
|
||||
<div style="float:right; text-align: center;">
|
||||
<?php
|
||||
include_once '../includes/search.php';
|
||||
?>
|
||||
|
|
||||
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
||||
|
||||
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<h1>Nutzungsbedingungen</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
</main>
|
||||
|
||||
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
|
||||
<a href="impressum.php">Impressum</a>
|
||||
<a href="datenschutz.php">Datenschutz</a>
|
||||
<a href="nutzungsbedingungen.php">Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,46 @@
|
||||
<!--
|
||||
Seite: Nutzungsbedingungen
|
||||
Inhalt: Regelungen für die Nutzung der Plattform (AGBs und so...)
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/x-icon" href="images/logos/logo_icon.ico">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/navbar.css">
|
||||
<link rel="stylesheet" href="css/footer.css">
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
include_once 'includes/navbar.php';
|
||||
?>
|
||||
|
||||
<main>
|
||||
|
||||
<h1>Nutzungsbedingungen</h1>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
|
||||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
|
||||
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
|
||||
sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
</p>
|
||||
|
||||
</main>
|
||||
|
||||
<?php
|
||||
include_once 'includes/footer.php';
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
require_once "php/model/LocalUserDAO.php";
|
||||
|
||||
$dao = new LocalUserDAO();
|
||||
$error = null;
|
||||
|
||||
/*
|
||||
Verarbeitung des Login-Formulars
|
||||
Funktion: Prüft Benutzerdaten und erstellt Session für eingeloggten Nutzer
|
||||
*/
|
||||
if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
|
||||
$email = $_POST["email"] ?? "";
|
||||
$password = $_POST["password"] ?? "";
|
||||
|
||||
$user = $dao->findUser($email);
|
||||
|
||||
if ($user && password_verify($password, $user["password"])) {
|
||||
|
||||
$_SESSION["user"] = $user["username"];
|
||||
$_SESSION["user_email"] = $user["email"];
|
||||
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
|
||||
} else {
|
||||
$error = "Login fehlgeschlagen. Bitte überprüfe deine Eingaben.";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
require_once "php/model/LocalUserDAO.php";
|
||||
|
||||
$dao = new LocalUserDAO();
|
||||
|
||||
if (!isset($_SESSION["user"])) {
|
||||
header("Location: index.php?pfad=login");
|
||||
exit();
|
||||
}
|
||||
|
||||
$user = $dao->findUser($_SESSION["user_email"] ?? "");
|
||||
|
||||
if (!$user) {
|
||||
$_SESSION = [];
|
||||
session_destroy();
|
||||
|
||||
header("Location: index.php?pfad=login");
|
||||
exit();
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
require_once "php/model/LocalUserDAO.php";
|
||||
|
||||
$dao = new LocalUserDAO();
|
||||
$error = null;
|
||||
|
||||
/*
|
||||
Verarbeitung des Registrierungs-Formulars
|
||||
Funktion: Erstellt neuen Benutzer und speichert ihn im DAO + Session
|
||||
*/
|
||||
if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
|
||||
$email = $_POST["email"] ?? "";
|
||||
$vorname = $_POST["vorname"] ?? "";
|
||||
$nachname = $_POST["nachname"] ?? "";
|
||||
$password = password_hash(
|
||||
$_POST["password"] ?? "",
|
||||
PASSWORD_DEFAULT
|
||||
);
|
||||
|
||||
if ($dao->findUser($email)) {
|
||||
|
||||
$error = "Diese E-Mail-Adresse ist bereits registriert.";
|
||||
|
||||
} else {
|
||||
|
||||
$dao->addUser(
|
||||
$email,
|
||||
$vorname . " " . $nachname,
|
||||
$password
|
||||
);
|
||||
|
||||
$_SESSION["user"] = $vorname . " " . $nachname;
|
||||
$_SESSION["user_email"] = $email;
|
||||
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
require_once "UserDAOInterface.php";
|
||||
|
||||
class LocalUserDAO implements UserDAOInterface {
|
||||
|
||||
private string $file = "data/users.json";
|
||||
|
||||
private function loadUsers() {
|
||||
if (!file_exists($this->file)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$json = file_get_contents($this->file);
|
||||
$users = json_decode($json, true);
|
||||
|
||||
return is_array($users) ? $users : [];
|
||||
}
|
||||
|
||||
private function saveUsers($users) {
|
||||
file_put_contents(
|
||||
$this->file,
|
||||
json_encode($users, JSON_PRETTY_PRINT)
|
||||
);
|
||||
}
|
||||
|
||||
public function findUser($email) {
|
||||
$users = $this->loadUsers();
|
||||
|
||||
foreach ($users as $user) {
|
||||
if ($user["email"] === $email) {
|
||||
return $user;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function addUser($email, $username, $password) {
|
||||
$users = $this->loadUsers();
|
||||
|
||||
$users[] = [
|
||||
"email" => $email,
|
||||
"username" => $username,
|
||||
"password" => $password
|
||||
];
|
||||
|
||||
$this->saveUsers($users);
|
||||
}
|
||||
|
||||
public function deleteUser($email) {
|
||||
$users = $this->loadUsers();
|
||||
|
||||
foreach ($users as $i => $user) {
|
||||
if ($user["email"] === $email) {
|
||||
unset($users[$i]);
|
||||
$users = array_values($users);
|
||||
$this->saveUsers($users);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Interface für den Zugriff auf Benutzerdaten.
|
||||
*
|
||||
* Definiert die Methoden, die jede UserDAO-Implementierung
|
||||
* bereitstellen muss.
|
||||
*/
|
||||
interface UserDAOInterface {
|
||||
|
||||
/**
|
||||
* Sucht einen Benutzer anhand seiner E-Mail-Adresse.
|
||||
*
|
||||
* @param string $email E-Mail-Adresse des gesuchten Benutzers
|
||||
* @return array|null Benutzerdaten als Array oder null
|
||||
*/
|
||||
public function findUser($email);
|
||||
|
||||
/**
|
||||
* Fügt einen neuen Benutzer hinzu.
|
||||
*
|
||||
* @param string $email E-Mail-Adresse des Benutzers
|
||||
* @param string $username Benutzername des Benutzers
|
||||
* @param string $password Passwort des Benutzers
|
||||
* @return void
|
||||
*/
|
||||
public function addUser($email, $username, $password);
|
||||
|
||||
/**
|
||||
* Löscht einen Benutzer anhand seiner E-Mail-Adresse.
|
||||
*
|
||||
* @param string $email E-Mail-Adresse des zu löschenden Benutzers
|
||||
* @return bool true, wenn der Benutzer gelöscht wurde, sonst false
|
||||
*/
|
||||
public function deleteUser($email);
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<!--
|
||||
Artikel: Satz des Pythagoras
|
||||
Funktion: Inhalt zum Fach Mathe
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/x-icon" href="images/logos/logo_icon.ico">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/navbar.css">
|
||||
<link rel="stylesheet" href="css/footer.css">
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
include_once 'includes/navbar.php';
|
||||
?>
|
||||
<main>
|
||||
|
||||
<h1>Satz des Pythagoras</h1>
|
||||
|
||||
<p>
|
||||
Der Satz des Pythagoras wurde von dem griechischen Philosophen Pythagoras von Samos formuliert und im
|
||||
dritten Jahrhundert vor Christus veröffentlicht.
|
||||
</p>
|
||||
<figure>
|
||||
<img src="https://cdn8.picryl.com/photo/2016/05/14/pythagoras-e9560b-1024.jpg" alt="Trulli" style="width:10%">
|
||||
<figcaption><a href="https://cdn8.picryl.com/photo/2016/05/14/pythagoras-e9560b-1024.jpg">Quelle</a></figcaption>
|
||||
</figure>
|
||||
<p>
|
||||
In der beigefügten Abbildung sehen wir ein rechtwinkliges Dreieck, dessen drei Seiten die Längen a, b und c
|
||||
besitzen. Auf jeder Seite ist ein Quadrat konstruiert. Das Quadrat auf der Seite a hat die Fläche a2, das
|
||||
Quadrat auf der Seite b hat die Fläche b2 und das Quadrat auf der Seite c hat die Fläche c2. Der Satz des
|
||||
Pythagoras besagt, dass die Summe der Flächen der beiden kleineren Quadrate gleich der Fläche des größten
|
||||
Quadrats ist. Das bedeutet, dass a^2+b^2=c^2 (Satz des Pythagoras).
|
||||
</p>
|
||||
<a href="docs/Uebungsaufgaben_Pythagoras.pdf">Lernzettel-Download</a>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
include_once 'includes/footer.php';
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,46 @@
|
||||
<!--
|
||||
Artikel: Tunneleffekt
|
||||
Funktion: Inhalt zum Fach Physik
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="EduForge">
|
||||
<meta name="author" content="Niklas Ortmann">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/x-icon" href="images/logos/logo_icon.ico">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/navbar.css">
|
||||
<link rel="stylesheet" href="css/footer.css">
|
||||
<title>EduForge</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
include_once 'includes/navbar.php';
|
||||
?>
|
||||
<main>
|
||||
|
||||
<h1>Tunneleffekt</h1>
|
||||
|
||||
<p>
|
||||
Der Tunneleffekt ist ein quantenmechanisches Phänomen, bei dem Teilchen – vor allem Elektronen – eine
|
||||
Energiebarriere überwinden können, obwohl sie nach den Regeln der klassischen Physik nicht genügend Energie
|
||||
dafür besitzen. In der klassischen Vorstellung müsste ein Elektron entweder genügend Energie haben, um über
|
||||
eine Barriere zu „springen“, oder es würde vollständig zurückgeworfen. In der Quantenphysik wird ein Elektron
|
||||
jedoch nicht als punktförmiges Teilchen beschrieben, sondern als Wellenfunktion, die sich räumlich ausdehnt.
|
||||
Dadurch besteht eine endliche Wahrscheinlichkeit, dass sich das Elektron auf der anderen Seite einer Barriere
|
||||
befindet (Griffiths & Schroeter, 2018).
|
||||
</p>
|
||||
|
||||
</main>
|
||||
|
||||
<?php
|
||||
include_once 'includes/footer.php';
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
-56
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
// Webhook: erfasst einen push auf dem dev (und aktualisiert das Webverzeichnis des Servers)
|
||||
// Quelle: https://docs.gitea.com/usage/webhooks
|
||||
ini_set('error_log', __DIR__ . '/tmp.log');
|
||||
$secret_key = '763489347';
|
||||
|
||||
// check for POST request
|
||||
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
|
||||
error_log('FAILED - not POST - '. $_SERVER['REQUEST_METHOD']);
|
||||
exit();
|
||||
}
|
||||
|
||||
// get content type
|
||||
$content_type = isset($_SERVER['CONTENT_TYPE']) ? strtolower(trim($_SERVER['CONTENT_TYPE'])) : '';
|
||||
|
||||
if ($content_type != 'application/json') {
|
||||
error_log('FAILED - not application/json - '. $content_type);
|
||||
exit();
|
||||
}
|
||||
|
||||
// get payload
|
||||
$payload = trim(file_get_contents("php://input"));
|
||||
|
||||
if (empty($payload)) {
|
||||
error_log('FAILED - no payload');
|
||||
exit();
|
||||
}
|
||||
|
||||
// get header signature
|
||||
$header_signature = isset($_SERVER['HTTP_X_GITEA_SIGNATURE']) ? $_SERVER['HTTP_X_GITEA_SIGNATURE'] : '';
|
||||
|
||||
if (empty($header_signature)) {
|
||||
error_log('FAILED - header signature missing');
|
||||
exit();
|
||||
}
|
||||
|
||||
// calculate payload signature
|
||||
$payload_signature = hash_hmac('sha256', $payload, $secret_key, false);
|
||||
|
||||
// check payload signature against header signature
|
||||
if ($header_signature !== $payload_signature) {
|
||||
error_log('FAILED - payload signature');
|
||||
exit();
|
||||
}
|
||||
|
||||
// convert json to array
|
||||
$decoded = json_decode($payload, true);
|
||||
|
||||
// check for json decode errors
|
||||
if (json_last_error() !== JSON_ERROR_NONE) {
|
||||
error_log('FAILED - json decode - '. json_last_error());
|
||||
exit();
|
||||
}
|
||||
|
||||
// success, do something
|
||||
error_log('SUCCESS - Webhook hat funktioniert');
|
||||
Reference in New Issue
Block a user