Anpassung Startseite
This commit is contained in:
+21
-20
@@ -1,16 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
// admin/bootstrap.php
|
|
||||||
ob_start(); // fängt zufälligen Output ab, verhindert "headers already sent" Folgeschäden
|
|
||||||
if (session_status() !== PHP_SESSION_ACTIVE) {
|
|
||||||
session_start();
|
session_start();
|
||||||
}
|
|
||||||
|
|
||||||
require_once(__DIR__ . "/../inc/config.inc.php");
|
// WICHTIG: Pfade aus /admin heraus korrekt auflösen
|
||||||
require_once(__DIR__ . "/../inc/functions.inc.php");
|
require_once __DIR__ . "/../inc/config.inc.php";
|
||||||
|
require_once __DIR__ . "/../inc/functions.inc.php";
|
||||||
|
|
||||||
|
// Login prüfen
|
||||||
|
$user = check_admin_user();
|
||||||
|
|
||||||
|
include __DIR__ . "/templates/header.inc.php";
|
||||||
|
|
||||||
$user = check_admin_user();
|
$user = check_admin_user();
|
||||||
$internUserId = (int)$_SESSION['auth']['id'];
|
$internUserId = (int)$_SESSION['auth']['id'];
|
||||||
include("templates/header.inc.php");
|
|
||||||
if (!$user) { echo "<div class='container main-container'><h3>Erst anmelden: <a href=login.php>Login</a></h3><br>";
|
if (!$user) { echo "<div class='container main-container'><h3>Erst anmelden: <a href=login.php>Login</a></h3><br>";
|
||||||
|
|
||||||
include("templates/footer.inc.php");
|
include("templates/footer.inc.php");
|
||||||
@@ -18,22 +20,21 @@ include("templates/footer.inc.php");
|
|||||||
?>
|
?>
|
||||||
<script src="/admin/js/tinymce/tinymce.min.js" referrerpolicy="origin"></script>
|
<script src="/admin/js/tinymce/tinymce.min.js" referrerpolicy="origin"></script>
|
||||||
<div class="container main-container">
|
<div class="container main-container">
|
||||||
<?php
|
<div style="display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap;">
|
||||||
##test2
|
<div>
|
||||||
echo '<div style="float: right; width: 200px; ">';
|
|
||||||
echo "<form action='". $_SERVER['PHP_SELF'] . "' id='formbenutzersuche' method=POST>";
|
|
||||||
echo '<input type="hidden" name="aktion" value="benutzersuche" />';
|
|
||||||
echo '<input type="hidden" name="userid_input" id="userid_input" />';
|
|
||||||
echo '<label>Benutzersuche Anfragen:</label>
|
|
||||||
<input type="text" id="user_input" name="skill_input" width="48"/>';
|
|
||||||
//echo '<input type="submit" class="btn btn-primary" id="submitbox" value="" />';
|
|
||||||
echo "</form>";
|
|
||||||
echo '</div>';
|
|
||||||
?>
|
|
||||||
<h2>Administration - Anfragen</h2>
|
<h2>Administration - Anfragen</h2>
|
||||||
|
|
||||||
Hallo <?php echo htmlentities($user['vorname']); ?>,<br>
|
Hallo <?php echo htmlentities($user['vorname']); ?>,<br>
|
||||||
Herzlich Willkommen im internen Bereich!<br><br>
|
Herzlich Willkommen im internen Bereich!<br><br>
|
||||||
|
</div>
|
||||||
|
<div style="width:200px;">
|
||||||
|
<form action="<?php echo htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8'); ?>" id="formbenutzersuche" method="POST">
|
||||||
|
<input type="hidden" name="aktion" value="benutzersuche" />
|
||||||
|
<input type="hidden" name="userid_input" id="userid_input" />
|
||||||
|
<label>Benutzersuche Anfragen:</label>
|
||||||
|
<input type="text" id="user_input" name="skill_input" width="48" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user