svn commit: r361 - trunk/mapbender/http/php/mod_mapOV.php

uli at osgeo.org uli at osgeo.org
Tue May 30 04:13:30 EDT 2006


Author: uli
Date: 2006-05-30 08:13:30+0000
New Revision: 361

Modified:
   trunk/mapbender/http/php/mod_mapOV.php

Log:
first open db-connection

Modified: trunk/mapbender/http/php/mod_mapOV.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_mapOV.php?view=diff&rev=361&p1=trunk/mapbender/http/php/mod_mapOV.php&p2=trunk/mapbender/http/php/mod_mapOV.php&r1=360&r2=361
==============================================================================
--- trunk/mapbender/http/php/mod_mapOV.php	(original)
+++ trunk/mapbender/http/php/mod_mapOV.php	2006-05-30 08:13:30+0000
@@ -19,6 +19,9 @@
 
 session_start();
 require_once("../../conf/mapbender.conf");
+$con = db_connect(DBSERVER,OWNER,PW);
+db_select_db(DB,$con);
+
 if(isset($_REQUEST["wms"])){
 	$rank = $_REQUEST["wms"];
 }
@@ -42,10 +45,6 @@
 ?>
 <?php
 $gui_id = $_SESSION["mb_user_gui"];
-
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
 $sql = "SELECT e_width,e_height, e_target FROM gui_element WHERE e_id = 'overview' AND fkey_gui_id = '".$gui_id."'";
 $res = db_query($sql);
 $cnt = 0;
@@ -63,13 +62,13 @@
 <script type="text/javascript">
 <!--
 function init_mod_mapOV(){
-   parent.mb_registerMapObj('overview', 'maps', mod_overview_rank, mod_overview_width, mod_overview_height);
-    document.onmouseover = mod_ov_setHandler;
-   document.onmousedown = parent.mod_box_start;
-   document.onmouseup = mod_ov_getExtent;
-   document.onmousemove = parent.mod_box_run;
-   document.getElementById("maps").style.width = mod_overview_width;
-   document.getElementById("maps").style.height = mod_overview_height;   
+	parent.mb_registerMapObj('overview', 'maps', mod_overview_rank, mod_overview_width, mod_overview_height);
+	document.onmouseover = mod_ov_setHandler;
+	document.onmousedown = parent.mod_box_start;
+	document.onmouseup = mod_ov_getExtent;
+	document.onmousemove = parent.mod_box_run;
+	document.getElementById("maps").style.width = mod_overview_width;
+	document.getElementById("maps").style.height = mod_overview_height;   
 }
 function mod_ov_setHandler(e){
    parent.mb_isBF = "overview";




More information about the Mapbender_commits mailing list