diff --git a/.htaccess b/.htaccess index 1f3eeb2..05edb90 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,5 @@ -php_value upload_max_filesize 10M -php_value post_max_size 10M +#php_value upload_max_filesize 10M +#php_value post_max_size 10M RedirectMatch 404 /\.git RedirectMatch 404 /db diff --git a/config.php b/config.php index 53d1335..df02e47 100644 --- a/config.php +++ b/config.php @@ -4,7 +4,7 @@ date_default_timezone_set('UTC'); $dbFilename = "db/unfallorte"; $db = new SQLite3($dbFilename); -$strTitle = "Unfallkarte Hamm 2019"; +$strTitle = "Unfallkarte Hamm "; $strIntroText = "Unfallkarte für die Stadt Hamm basierend auf den Daten des Statistischen Bundesamtes."; $numInfoLat =51.66; $numInfoLng =7.825; diff --git a/db/unfallorte b/db/unfallorte index 56a0b47..09bbc18 100644 Binary files a/db/unfallorte and b/db/unfallorte differ diff --git a/index.php b/index.php index 323d2b6..08f3708 100644 --- a/index.php +++ b/index.php @@ -5,8 +5,10 @@ $strIntro ="

".$strTitle."

"; $strIntro .= nl2br2($strIntroText); + $numYear=2020; $numVehicle = (isset($_GET['v'])) ? (int) $_GET['v'] : 1; + $numYear = (isset($_GET['year'])) ? (int) $_GET['year'] : $numYear; switch ($numVehicle) { case 1: @@ -38,7 +40,9 @@ $topic=2; } - $strSQL="SELECT * FROM Unfallorte2019_Hamm WHERE ".$strWhere; + $strYear = " AND UJAHR='".$numYear."' "; + + $strSQL="SELECT * FROM Unfallorte_Hamm WHERE ".$strWhere.$strYear; $result = $db->query($strSQL); @@ -96,6 +100,8 @@