Ignore:
Timestamp:
06/24/21 15:59:16 (3 years ago)
Author:
frank.jaeger
Message:

Aktualisierungen der ALKIS-Buchauskunft, neues Modul für Bauwerke, Härtung

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/info/info/alkisn/alkisausk.php

    r412 r422  
    1111        Version: 
    1212        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-10-11 Sauber filtern auf endet IS NULL 
    15         2018-11-09 Umstellung Full-Schema 
     13        .... 
     14        2020-12-03 function selbstverlinkung() statt $_SERVER['PHP_SELF'] 
     15        2020-12-15 Input-Validation und Strict Comparisation (===) 
    1616 
    1717        H i n w e i s :  Dies Modul wird beim Entwickler nicht mehr produktiv eingesetzt. 
     
    1919                Mangels Praxis bleiben Fehler möglicherweise unerkannt. 
    2020*/ 
     21ini_set("session.cookie_httponly", 1); 
    2122session_start(); 
    2223$cntget = extract($_GET); 
    23  
    24 require_once("alkis_conf_location.php"); 
    25 if ($auth == "mapbender") {require_once($mapbender);} 
    26 include("alkisfkt.php"); 
     24if (isset($gkz)) { 
     25        if (!preg_match('#^[0-9]{3}$#', $gkz)) {die("Eingabefehler gkz");} 
     26} else { 
     27        die("Fehlender Parameter"); 
     28} 
     29include "alkis_conf_location.php"; 
     30include "alkisfkt.php"; 
     31 
    2732$keys = isset($_GET["showkey"]) ? $_GET["showkey"] : "n"; 
    28 if ($keys == "j") {$showkey=true;} else {$showkey=false;} 
     33if ($keys === "j") {$showkey=true;} else {$showkey=false;} 
    2934echo <<<END 
    3035<!doctype html> 
     
    3843<body> 
    3944END; 
     45 
     46$erlaubnis = darf_ich(); if ($erlaubnis === 0) { die('<p class="stop1">Abbruch</p></body>'); } 
     47 
    4048$con = pg_connect($dbconn." options='--application_name=ALKIS-Auskunft_alkisausk.php'"); 
    4149if (!$con) {echo "<br>Fehler beim Verbinden der DB.\n<br>";} 
     
    197205                $blattkey=$rowg["blattart"]; 
    198206                $blattart=$rowg["blattartv"]; 
    199                 if ($blattkey == 1000) { 
     207                if ($blattkey === 1000) { 
    200208                        echo "\n\t<table class='kennzgb' title='Bestandskennzeichen'>"; 
    201209                } else { 
     
    221229                ."\n\t</table>"; 
    222230 
    223                 if ($rowg["zaehler"] <> "") { 
     231                if ($rowg["zaehler"] != "") { 
    224232                        echo "\n<p class='ant'>".$rowg["zaehler"]."/".$rowg["nenner"]."&nbsp;Anteil am Flurst&uuml;ck</p>"; 
    225233                } 
     
    234242 
    235243        // E I G E N T U E M E R 
    236         if ($blattkey == 5000) { // SchlÃŒssel Blatt-Art 
     244        if ($blattkey === 5000) { // SchlÃŒssel Blatt-Art 
    237245                echo "\n<p>Keine Angaben zum Eigentum bei fiktivem Blatt</p>\n" 
    238246                ."\n<p>Siehe weitere Grundbuchbl&auml;tter mit Rechten an dem fiktiven Blatt.</p>"; 
     
    241249                $n = eigentuemer($rowg["gml_id"], false, "imFenster"); // ohne Adressen 
    242250 
    243                 if ($n == 0) { // keine NamNum, kein Eigent. 
     251                if ($n === 0) { // keine NamNum, kein Eigent. 
    244252                        echo "\n<p class='err'>Keine Eigent&uuml;mer gefunden.</p>" 
    245253                        ."\n<p class='err'>Bezirk ".$rowg["bezirk"]." Blatt ".$rowg["blatt"]." Blattart ".$blattkey." (".$blattart.")</p>"; 
     
    248256        $j++; 
    249257} 
    250 if ($j == 0) {echo "\n<p class='err'>Keine Buchungen gefunden.</p>";} 
     258if ($j === 0) {echo "\n<p class='err'>Keine Buchungen gefunden.</p>";} 
    251259echo "\n<hr>"; 
    252260 
    253 footer($gmlid, $_SERVER['PHP_SELF']."?", ""); 
     261footer($gmlid, selbstverlinkung()."?", ""); 
    254262 
    255263?> 
Note: See TracChangeset for help on using the changeset viewer.