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