admin improvements
This commit is contained in:
@@ -5,14 +5,12 @@
|
||||
if (!$boolLogin) {
|
||||
header("Location: login.php");
|
||||
}
|
||||
|
||||
if (isset($_SESSION['superadmin'])) {
|
||||
$boolSuperAdmin = $_SESSION['superadmin']==true;
|
||||
} else {
|
||||
$boolSuperAdmin=false;
|
||||
$boolSuperAdmin = (bool)$_SESSION['superadmin'];
|
||||
}
|
||||
|
||||
|
||||
// Für lokale Administration keine Konfiguration
|
||||
if (!$boolSuperAdmin) { header("Location: index.php"); }
|
||||
$strDistrict = $_SESSION['district'];
|
||||
require_once("../config.php");
|
||||
$boolError=false;
|
||||
?>
|
||||
@@ -27,10 +25,9 @@
|
||||
<script src="../js/jquery.min.js"></script>
|
||||
<title>Konfigruation</title>
|
||||
<style>
|
||||
.leftlabel { width: 10em;}
|
||||
input[type="text"] { width: 18em;}
|
||||
input.wide {width: 24em;}
|
||||
|
||||
.leftlabel { width: 10em;}
|
||||
input[type="text"] { width: 18em;}
|
||||
input.wide {width: 24em;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -59,7 +56,6 @@
|
||||
<a class="nav-link" href="password.php">Passwort ändern </a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div>
|
||||
<ul class="navbar-nav mr-auto right">
|
||||
<li class="nav-item">
|
||||
@@ -70,8 +66,6 @@
|
||||
</nav>
|
||||
<!-- Ende Navbar -->
|
||||
|
||||
|
||||
|
||||
<div class="container" style="margin-top:5em;">
|
||||
<h1>Konfiguration</h1>
|
||||
<form method="post" id="myform" action="configuration_chk.php">
|
||||
@@ -98,8 +92,6 @@
|
||||
<label for="districtSelection">Auswahl Kreise in Navigation</label><br>
|
||||
<input type="checkbox" id="approve" name="approve" <?= ($boolApprove) ? "checked=\"checked\"" :"" ?> >
|
||||
<label for="approve">Eingaben genehmigen</label>
|
||||
|
||||
|
||||
<br>
|
||||
<label class="leftlabel">Uplaod-Pfad:</label>
|
||||
<input type="text" class="wide" name="uploaddir" id="uploaddir" value="<?=$uploaddir?>">
|
||||
@@ -107,7 +99,6 @@
|
||||
</div>
|
||||
<br>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3>Anbieterinformation</h3>
|
||||
@@ -120,7 +111,6 @@
|
||||
<label class="leftlabel">Url-Text:</label><input type="text" class="wide" name="urlBez" id="urlBez" value="<?=$strUrlBez?>"><br>
|
||||
<label>Impressum: (HTML erlaubt)</label>
|
||||
<textarea id="impressum" name="impressum" rows="8" style="width:35em;"><?= stripslashes($strImpressum) ?></textarea>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
@@ -141,8 +131,9 @@
|
||||
<input type="submit" class="btn btn-primary" value="Konfiguration ändern">
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<br><br><br>
|
||||
<br><br><br>
|
||||
|
||||
<!-- Auswahl der Kreise -->
|
||||
<h2>Auswahl Kreise und kreisfreie Städte</h2>
|
||||
<form method="post" id="districtform" action="district_chk.php">
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user