Dateien in richtige Ordner + statische HTML vom content entfernt

This commit is contained in:
NOrtmann1
2026-05-21 17:19:40 +02:00
parent b616251511
commit be35a00cef
8 changed files with 7 additions and 258 deletions
-28
View File
@@ -2,27 +2,6 @@
Form: Login-Bereich Form: Login-Bereich
Funktion: Benutzerauthentifizierung und Zugang zum eigenen Profil, Erstellen von Beiträgen, etc. 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">
<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 class="login-page"> <main class="login-page">
<div class="login-container"> <div class="login-container">
@@ -51,10 +30,3 @@ include_once 'includes/navbar.php';
</form> </form>
</div> </div>
</main> </main>
<?php
include_once 'includes/footer.php';
?>
</body>
</html>
-27
View File
@@ -2,27 +2,6 @@
Form: Registrierung Form: Registrierung
Funktion: Erstellung neuer Benutzerkonten 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">
<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 class="login-page"> <main class="login-page">
<div class="login-container"> <div class="login-container">
@@ -51,9 +30,3 @@ include_once 'includes/navbar.php';
</form> </form>
</div> </div>
</main> </main>
<?php
include_once 'includes/footer.php';
?>
</body>
</html>
@@ -2,28 +2,6 @@
Seite: Datenschutzerklärung Seite: Datenschutzerklärung
Inhalt: Informationen zur Datenverarbeitung gemäß DSGVO 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">
<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> <main>
<h1>Datenschutz</h1> <h1>Datenschutz</h1>
@@ -38,10 +16,3 @@ include_once 'includes/navbar.php';
</p> </p>
</main> </main>
<?php
include_once 'includes/footer.php';
?>
</body>
</html>
-28
View File
@@ -2,27 +2,6 @@
Seite: Impressum Seite: Impressum
Inhalt: wer wie was auf der Webseite 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">
<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> <main>
@@ -38,10 +17,3 @@ include_once 'includes/navbar.php';
</p> </p>
</main> </main>
<?php
include_once 'includes/footer.php';
?>
</body>
</html>
+1 -28
View File
@@ -2,26 +2,6 @@
Seite: Informatik Seite: Informatik
Inhalt: Eine Übersicht über alle Beiträge zum Fach Inhalt: Eine Übersicht über alle Beiträge zum Fach
--> -->
<!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> <main>
<h1>Informatik</h1> <h1>Informatik</h1>
@@ -36,13 +16,6 @@ include_once 'includes/navbar.php';
</p> </p>
<h2>Artikel:</h2> <h2>Artikel:</h2>
<div> <div>
<a href="datenschutzVSdatensicherheit.php">Datenschutz vs. Datensicherheit</a> <a href="../datenschutzVSdatensicherheit.php">Datenschutz vs. Datensicherheit</a>
</div> </div>
</main> </main>
<?php
include_once 'includes/footer.php';
?>
</body>
</html>
+1 -29
View File
@@ -2,27 +2,6 @@
Seite: Mathe Seite: Mathe
Inhalt: Eine Übersicht über alle Beiträge zum Fach Inhalt: Eine Übersicht über alle Beiträge zum Fach
--> -->
<!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> <main>
<h1>Mathe</h1> <h1>Mathe</h1>
@@ -38,13 +17,6 @@ include_once 'includes/navbar.php';
<h2>Artikel:</h2> <h2>Artikel:</h2>
<div> <div>
<a href="pythagoras.php">Satz des Pythagoras</a> <a href="../pythagoras.php">Satz des Pythagoras</a>
</div> </div>
</main> </main>
<?php
include_once 'includes/footer.php';
?>
</body>
</html>
+1 -29
View File
@@ -2,27 +2,6 @@
Seite: Physik Seite: Physik
Inhalt: Eine Übersicht über alle Beiträge zum Fach Inhalt: Eine Übersicht über alle Beiträge zum Fach
--> -->
<!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> <main>
<h1>Physik</h1> <h1>Physik</h1>
@@ -38,14 +17,7 @@ include_once 'includes/navbar.php';
<h2>Artikel:</h2> <h2>Artikel:</h2>
<div> <div>
<a href="tunneleffekt.php">Der Tunneleffekt</a> <a href="../tunneleffekt.php">Der Tunneleffekt</a>
</div> </div>
</main> </main>
<?php
include_once 'includes/footer.php';
?>
</body>
</html>
-56
View File
@@ -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');