Changeset 422 for trunk/info/info/alkisn/alkisinlayausk.php
- Timestamp:
- 06/24/21 15:59:16 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/info/info/alkisn/alkisinlayausk.php
r412 r422 11 11 Version: 12 12 2016-02-24 Version fuer norGIS-ALKIS-Import 13 2016-11-29 HTML5, Gemeinsam genutzte Datenbanken ermöglichen (Berechtigung fÃŒr Gemeinde prÃŒfen) 14 2017-06-01 Function "eigentuemer" ohne Parameter $con 15 2017-06-08 Validierung Eingabeparameter, Feinkorrekturen 16 2017-10-09 Sauber filtern auf endet IS NULL 17 2017-12-20 Fehlerkorrektur: Link StraÃe ohne gml_id, Bessere Title fÃŒr Links, Icon an Lage. 18 2018-04-23 FÃŒr GB-Teil Function benutzen 19 2018-04-24 Feinschliff 20 2018-05-03 neuer GrundstÃŒcksnachweis 21 2018-11-09 Umstellung Full-Schema 13 .... 14 2020-02-03 Fenster-Weite 15 2020-02-20 Authentifizierung ausgelagert in Function darf_ich() 16 2020-10-14 include ohne Klammer 17 2020-12-15 Input-Validation und Strict Comparisation (===) 18 2021-03-09 Link zum GebÀudenachweis auch mit "Bauwerke" betiteln 22 19 */ 20 ini_set("session.cookie_httponly", 1); 23 21 session_start(); 24 22 $cntget = extract($_GET); // Parameter in Variable umwandeln 25 23 26 24 // strikte Validierung aller Parameter 27 if (!isset($gmlid) or !preg_match('#^[0-9A-Za-z]{16}$#', $gmlid)) {die("Eingabefehler gmlid");} 28 if (!isset($gkz) or !preg_match('#^[0-9]{3}$#', $gkz)) {die("Eingabefehler gkz");} 29 30 require_once("alkis_conf_location.php"); 31 if ($auth == "mapbender") {require_once($mapbender);} 32 include("alkisfkt.php"); 33 25 if (isset($gmlid)) { 26 if (!preg_match('#^[0-9A-Za-z]{16}$#', $gmlid)) {die("Eingabefehler gmlid");} 27 } else { 28 die("Fehlender Parameter"); 29 } 30 if (isset($gkz)) { 31 if (!preg_match('#^[0-9]{3}$#', $gkz)) {die("Eingabefehler gkz");} 32 } else { 33 die("Fehlender Parameter"); 34 } 35 36 include "alkis_conf_location.php"; 37 include "alkisfkt.php"; 38 39 // Wert fÃŒr "width=" aus der Function "imFenster" synchron halten mit "@media screen body width" aus "alkisauszug.css" 34 40 echo <<<END 35 41 <!doctype html> … … 41 47 <link rel="shortcut icon" type="image/x-icon" href="ico/Flurstueck.ico"> 42 48 <title>ALKIS-Auskunft</title> 43 <script >49 <script type="text/javascript" language="JavaScript"> 44 50 function imFenster(dieURL) { 45 51 var link = encodeURI(dieURL); … … 48 54 </script> 49 55 </head> 50 <body >56 <body class ="mbfi"> 51 57 END; 58 // <body style='width: 98%;'> 59 $erlaubnis = darf_ich(); if ($erlaubnis === 0) { die('<p class="stop1">Abbruch</p></body>'); } 60 61 // Body des Inlay muss in Mapbender-Feature-Info-PopUp passen. Kleiner als 750 aus css. 52 62 $con = pg_connect($dbconn." options='--application_name=ALKIS-Auskunft_alkisinlayausk.php'"); 53 63 if (!$con) {echo "<br>Fehler beim Verbinden der DB.\n<br>";} … … 63 73 if (!$res) { 64 74 echo "\n<p class='err'>Fehler bei Flurstuecksdaten.</p>"; 65 if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities( $sql, ENT_QUOTES, "UTF-8")."<br>$1 = gml_id = '".$gmlid."'</p>";}75 if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 66 76 } 67 77 … … 122 132 // Gebaeude-NW zum FS 123 133 echo "\n\t\t\t\t<a href='javascript:imFenster(\"alkisgebaeudenw.php?gkz=".$gkz."&gmlid=".$gmlid."\")' " 124 ."title='Gebäude nachweis'>Gebäude "134 ."title='Gebäude oder Bauwerke'>Gebäude/Bauw. " 125 135 ."<img src='ico/Haus.png' width='16' height='16' alt=''>" 126 136 ."</a>"; … … 139 149 if (!$res) { 140 150 echo "\n<p class='err'>Fehler bei Lagebezeichnung mit Hausnummer.</p>"; 141 if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities( $sql, ENT_QUOTES, "UTF-8")."<br>$1 = gml_id = '".$gmlid."'</p>";}151 if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 142 152 } 143 153 $j=0; … … 145 155 while($row = pg_fetch_assoc($res)) { 146 156 $sname=htmlentities($row["bezeichnung"], ENT_QUOTES, "UTF-8"); // Str.-Name 147 if (substr($sname, strlen($sname) -3, 3) == 'weg') { // Versuch fuer korrekten Satzbau157 if (substr($sname, strlen($sname) -3, 3) === 'weg') { // Versuch fuer korrekten Satzbau 148 158 $slink=" am ".$sname; 149 159 } else { … … 153 163 echo "\n\t<tr>" 154 164 ."\n\t\t<td class='ll'>"; 155 if ($j == 0) {echo "<img src='ico/Lage_mit_Haus.png' width='16' height='16' alt='MIT'> Lage:";}165 if ($j === 0) {echo "<img src='ico/Lage_mit_Haus.png' width='16' height='16' alt='MIT'> Lage:";} 156 166 echo "</td>" 157 167 ."\n\t\t<td class='lr'>".$sname." ".$hsnr."</td>" … … 182 192 if (!$res) { 183 193 echo "\n<p class='err'>Fehler bei Lagebezeichnung ohne Hausnummer.</p>"; 184 if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities( $sql, ENT_QUOTES, "UTF-8")."<br>$1 = gml_id = '".$gmlid."'</p>";}194 if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 185 195 } 186 196 $kgmlalt=''; … … 188 198 $sname=htmlentities($row["bezeichnung"], ENT_QUOTES, "UTF-8"); // Str.-Name 189 199 190 if (substr($sname, strlen($sname) -3, 3) == 'weg') { // Versuch fuer korrekten Satzbau200 if (substr($sname, strlen($sname) -3, 3) === 'weg') { // Versuch fuer korrekten Satzbau 191 201 $slink=" am ".$sname; 192 202 } else {
Note: See TracChangeset
for help on using the changeset viewer.