session cookie
This commit is contained in:
23
index.php
23
index.php
@@ -13,15 +13,18 @@
|
||||
header("Location: setup.php");
|
||||
}
|
||||
*/
|
||||
// Starte die Session
|
||||
session_start();
|
||||
if (isset($_GET['d'])) {
|
||||
$strDistrict=$_GET['d'];
|
||||
$_SESSION['district'] = $_GET['d'];
|
||||
} else if (isset($_SESSION['district'])) {
|
||||
$strDistrict=$_SESSION['district'];
|
||||
}
|
||||
else {
|
||||
header("Location: start.php");
|
||||
}
|
||||
|
||||
if (isset($_GET['d'])) {
|
||||
$strDistrict=$_GET['d'];
|
||||
} else {
|
||||
header("Location: start.php");
|
||||
}
|
||||
|
||||
|
||||
require("config.db.php");
|
||||
require("config.php");
|
||||
require_once("lib/functions.php");
|
||||
|
||||
@@ -103,10 +106,10 @@
|
||||
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="index.php?ref=1?d=<?=$strDistrict?>">Karte <span class="sr-only">(current)</span></a>
|
||||
<a class="nav-link" href="index.php?ref=1">Karte <span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="liste.php?d=<?=$strDistrict?>">Liste</a>
|
||||
<a class="nav-link" href="liste.php">Liste</a>
|
||||
</li>
|
||||
<!-- District -->
|
||||
<form method="GET" action="index.php">
|
||||
|
||||
Reference in New Issue
Block a user