[Mapbender-commits] r1051 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 25 09:17:08 EST 2007


Author: christoph
Date: 2007-01-25 09:17:08 -0500 (Thu, 25 Jan 2007)
New Revision: 1051

Removed:
   trunk/mapbender/http/php/mod_displayImage.php
Log:
obsolete: layer previews are now stored on the harddisk and no longer in the db

Deleted: trunk/mapbender/http/php/mod_displayImage.php
===================================================================
--- trunk/mapbender/http/php/mod_displayImage.php	2007-01-25 14:14:09 UTC (rev 1050)
+++ trunk/mapbender/http/php/mod_displayImage.php	2007-01-25 14:17:08 UTC (rev 1051)
@@ -1,16 +0,0 @@
-<?php
-	require_once("../../conf/mapbender.conf");
-	$con = db_connect(DBSERVER,OWNER,PW);
-	db_select_db(DB,$con);
-
-	$column = $_GET['col'];
-	$layer_id = $_GET['id'];
-	$sql_p = "SELECT * FROM layer_preview WHERE fkey_layer_id = $1 LIMIT 1";
-	$v_p = array($layer_id);
-	$t_p = array('i');
-	$res_p = db_prep_query($sql_p, $v_p, $t_p);
-	$row_p = db_fetch_array($res_p);
-
-	header("Content-type: image/png");
-	echo pg_unescape_bytea($row_p[$column]);
-?>
\ No newline at end of file



More information about the Mapbender_commits mailing list