54 lines
1.5 KiB
PHP
54 lines
1.5 KiB
PHP
|
|
<?php
|
|
session_start();
|
|
if (!isset($abs_path)) {
|
|
require_once "path.php";
|
|
}
|
|
require_once $abs_path . "/php/controller/index-controller.php";
|
|
?>
|
|
|
|
<!--
|
|
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">
|
|
<link rel="stylesheet" href="css/article.css">
|
|
<title>EduForge</title>
|
|
</head>
|
|
|
|
|
|
<body>
|
|
<?php if (isset($_SESSION["message"]) && $_SESSION["message"] == "new_article"): ?>
|
|
<p style="color:green">
|
|
Dein Beitrag wurde erfolgreich veröffentlicht!
|
|
</p>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
include_once $abs_path . '/includes/navbar.php';
|
|
//Dynamischer Inhalt:
|
|
if (isset($_GET["pfad"])) {
|
|
if (file_exists($abs_path . '/content/' . $_GET["pfad"] . '.php')) {
|
|
include_once $abs_path . '/content/' . $_GET["pfad"] . '.php';
|
|
} else {
|
|
include_once $abs_path . '/content/404.php';
|
|
}
|
|
} else {
|
|
include_once $abs_path . '/content/home.php';
|
|
}
|
|
include_once $abs_path . '/includes/footer.php';
|
|
?>
|
|
</body>
|
|
|
|
</html>
|