fixes
This commit is contained in:
18
config.php
18
config.php
@@ -4,8 +4,8 @@
|
||||
* Ideenmelder
|
||||
* Autor: Walter Hupfeld, Hamm
|
||||
* E-Mail: info@hupfeld-software.de
|
||||
* Version: 1.0
|
||||
* Datum: 18.05.2021
|
||||
* Version: 1.1
|
||||
* Datum: 18.02.2024
|
||||
******************************** */
|
||||
|
||||
require_once("config.db.php");
|
||||
@@ -13,6 +13,7 @@
|
||||
$strSQL = "select * from config";
|
||||
$result = $db->query($strSQL);
|
||||
|
||||
// Allegemeine Konfiguration
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
switch ($row['key']) {
|
||||
case "uploaddir" :
|
||||
@@ -67,8 +68,8 @@
|
||||
$boolUserinfo = ($row['value']=="1");
|
||||
break;
|
||||
|
||||
default:
|
||||
echo "Fehler bei ".$row['key'];
|
||||
default: ;
|
||||
//echo "Fehler bei ".$row['key'];
|
||||
// Ende Lokalisierung
|
||||
|
||||
break;
|
||||
@@ -76,6 +77,7 @@
|
||||
|
||||
}
|
||||
|
||||
// Falls der Parameter district fehlt => Hamm
|
||||
$result= $db->prepare("SELECT count(*) FROM district WHERE district=:district");
|
||||
$result->bindParam(":district",$strDistrict);
|
||||
$result->execute();
|
||||
@@ -83,7 +85,7 @@
|
||||
if ($row[0]==0) $strDistrict="hamm";
|
||||
}
|
||||
|
||||
//$result = $db->query($strSQL);
|
||||
// Spezifische Konfiguration für Districtt
|
||||
$result= $db->prepare("SELECT * FROM district WHERE district=:district");
|
||||
$result->bindParam(":district",$strDistrict);
|
||||
$result->execute();
|
||||
@@ -110,8 +112,9 @@
|
||||
$strLocation .= "AND UGEMEINDE=$numUGEMEINDE";
|
||||
}
|
||||
}
|
||||
$arrDisctrict = array ();
|
||||
|
||||
// Arrax mit allen Distrikten für Auswahl
|
||||
$arrDisctrict = array ();
|
||||
$strSQL = "SELECT district,title FROM district ORDER BY title ASC";
|
||||
$result=$db->query($strSQL);
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
@@ -119,6 +122,8 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$arrTopic = array (
|
||||
2 => "Radverkehr",
|
||||
1 => "Fußverkehr",
|
||||
@@ -171,7 +176,6 @@ $arrDefect = array (
|
||||
22 => "Ampelspiegel installieren"
|
||||
);
|
||||
|
||||
|
||||
$arrTransport = array (
|
||||
0 => "keine Angabe",
|
||||
1 => "kein Auto",
|
||||
|
||||
Reference in New Issue
Block a user