svn commit: r161 - trunk/mapbender/http/classes/class_connector.php

uli at osgeo.org uli at osgeo.org
Wed May 3 05:10:58 EDT 2006


Author: uli
Date: 2006-05-03 09:10:57+0000
New Revision: 161

Modified:
   trunk/mapbender/http/classes/class_connector.php   (contents, props changed)

Log:
header keywords added
identation


Modified: trunk/mapbender/http/classes/class_connector.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_connector.php?view=diff&rev=161&p1=trunk/mapbender/http/classes/class_connector.php&p2=trunk/mapbender/http/classes/class_connector.php&r1=160&r2=161
==============================================================================
--- trunk/mapbender/http/classes/class_connector.php	(original)
+++ trunk/mapbender/http/classes/class_connector.php	2006-05-03 09:10:57+0000
@@ -1,6 +1,6 @@
 <?php
-# $Id: class_connector.php,v 1.1 2005/11/07 17:00:28 uli_rothstein Exp $
-# $Header: /cvsroot/mapbender/mapbender/http/classes/class_connector.php,v 1.1 2005/11/07 17:00:28 uli_rothstein Exp $
+# $Id$
+# http://www.mapbender.org/index.php/class_connector
 # Copyright (C) 2002 CCGIS 
 #
 # This program is free software; you can redistribute it and/or modify
@@ -16,6 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
 require_once("../../conf/mapbender.conf");
 
 class connector{
@@ -53,17 +54,15 @@
 		$fp = fsockopen (CONNECTION_PROXY, CONNECTION_PORT, $errno, $errstr, 30);
 		if (!$fp) {
 			echo "$errstr ($errno)<br />\n";
-		} else {
-    		fputs ($fp, "GET ".$url." HTTP/1.0\r\n\r\n");
+		} 
+		else {
+			fputs ($fp, "GET ".$url." HTTP/1.0\r\n\r\n");
 			while (!feof($fp)) {
 				$r .= fgets($fp,4096);
 			}
-    		fclose($fp);
-    		return $r;
+			fclose($fp);
+			return $r;
 		}
 	}
 }
-#$x = new connector("http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/mapbender_user/mapbender_user.map&&VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS");
-#$x = new connector("http://www.ccgis.de/img/header_02.gif");
-#echo $x->file;
 ?>
\ No newline at end of file




More information about the Mapbender_commits mailing list