intro
This commit is contained in:
parent
2d055ac66a
commit
69ab1ac004
30
config.php
30
config.php
@ -8,13 +8,13 @@
|
||||
* Datum: 18.02.2024
|
||||
******************************** */
|
||||
|
||||
require_once("config.db.php");
|
||||
require_once("config.db.php");
|
||||
|
||||
$strSQL = "select * from config";
|
||||
$result = $db->query($strSQL);
|
||||
$strSQL = "select * from config";
|
||||
$result = $db->query($strSQL);
|
||||
|
||||
// Allegemeine Konfiguration
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
// Allegemeine Konfiguration
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
switch ($row['key']) {
|
||||
case "uploaddir" :
|
||||
$uploaddir=$row['value'];
|
||||
@ -40,6 +40,10 @@
|
||||
case "contactEmail":
|
||||
$contactEmail =$row['value'];
|
||||
break;
|
||||
case "introText":
|
||||
$strIntroText =$row['value'];
|
||||
break;
|
||||
|
||||
case "impressum":
|
||||
$strImpressum =$row['value'];
|
||||
break;
|
||||
@ -72,15 +76,15 @@
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Falls der Parameter district fehlt => Hamm
|
||||
$result= $db->prepare("SELECT count(*) FROM district WHERE district=:district");
|
||||
$result->bindParam(":district",$strDistrict);
|
||||
$result->execute();
|
||||
if ($row=$result->fetch(PDO::FETCH_NUM)) {
|
||||
// Falls der Parameter district fehlt => Hamm
|
||||
$result= $db->prepare("SELECT count(*) FROM district WHERE district=:district");
|
||||
$result->bindParam(":district",$strDistrict);
|
||||
$result->execute();
|
||||
if ($row=$result->fetch(PDO::FETCH_NUM)) {
|
||||
if ($row[0]==0) $strDistrict="hamm";
|
||||
}
|
||||
}
|
||||
|
||||
// Spezifische Konfiguration für Districtt
|
||||
$result= $db->prepare("SELECT * FROM district WHERE district=:district");
|
||||
@ -103,7 +107,7 @@
|
||||
$numZoom=$row['zoom'];
|
||||
|
||||
$strTitle = "ADFC Meldeportal $strTitle ";
|
||||
$strIntroText = ($boolActive) ? $strIntroText = "$strTitle" : "Dateneingabe nicht möglich";
|
||||
$strIntroText = ($boolActive) ? $strIntroText : "Dateneingabe nicht möglich";
|
||||
$fileGeojson ="geojson/$strGeojson";
|
||||
$strLocation = " AND ULAND=$numULAND AND UREGBEZ=$numUREGBEZ AND UKREIS=$numUKREIS ";
|
||||
if ($numUGEMEINDE>0) {
|
||||
|
Loading…
Reference in New Issue
Block a user