[Mapbender-commits] r8948 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jun 30 03:02:12 PDT 2014
Author: hwbllmnn
Date: 2014-06-30 03:02:12 -0700 (Mon, 30 Jun 2014)
New Revision: 8948
Modified:
trunk/mapbender/http/php/uploadKml.php
Log:
use the connector to load files
Modified: trunk/mapbender/http/php/uploadKml.php
===================================================================
--- trunk/mapbender/http/php/uploadKml.php 2014-06-30 09:55:30 UTC (rev 8947)
+++ trunk/mapbender/http/php/uploadKml.php 2014-06-30 10:02:12 UTC (rev 8948)
@@ -18,11 +18,13 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
require_once(dirname(__FILE__) . "/../classes/class_kml_ows.php");
+require_once(dirname(__FILE__) . "/../classes/class_connector.php");
header("Content-Type: text/plain");
$kml = new KML();
-$content = file_get_contents($_FILES['kml']['tmp_name']);
+$con = new connector();
+$content = $con->load($_FILES['kml']['tmp_name']);
try {
if(preg_match('/.kml$/', $_FILES['kml']['name'])) {
header("Content-Type: text/plain");
More information about the Mapbender_commits
mailing list