svn commit: r127 - trunk/mapbender/http/php

arnulf at osgeo.org arnulf at osgeo.org
Sun Apr 23 05:21:36 EDT 2006


Author: arnulf
Date: 2006-04-23 09:21:36+0000
New Revision: 127

Modified:
   trunk/mapbender/http/php/database-mysql.php
   trunk/mapbender/http/php/database-pgsql.php

Log:
added license ref, formatting

Modified: trunk/mapbender/http/php/database-mysql.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/database-mysql.php?view=diff&rev=127&p1=trunk/mapbender/http/php/database-mysql.php&p2=trunk/mapbender/http/php/database-mysql.php&r1=126&r2=127
==============================================================================
--- trunk/mapbender/http/php/database-mysql.php	(original)
+++ trunk/mapbender/http/php/database-mysql.php	2006-04-23 09:21:36+0000
@@ -1,5 +1,6 @@
 <?php
 # $Id$
+# http://www.mapbender.org/index.php/Installation
 # Copyright (C) 2002 CCGIS
 #
 # This program is free software; you can redistribute it and/or modify
@@ -53,20 +54,17 @@
  *  in other functions in this library
  */
 include_once("../classes/class_mb_exception.php");
-function db_escapestring($unescaped_string)
-{
+function db_escapestring($unescaped_string){
 	return @mysql_escape_string($unescaped_string);
 }
- 
-function db_escape_string($unescaped_string)
-{
+function db_escape_string($unescaped_string){
 	return @mysql_escape_string($unescaped_string);
 }
-
 function db_connect($DBSERVER="",$OWNER="",$PW="") {
 	global $sys_dbhost,$sys_dbuser,$sys_dbpasswd,$sys_dbname,
 		$conn,$conn_update,$sys_db_use_replication,$sys_dbreadhost;
 
+
 	if ($DBSERVER)
 		$sys_dbhost = $DBSERVER; 
 	if ($OWNER)

Modified: trunk/mapbender/http/php/database-pgsql.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/database-pgsql.php?view=diff&rev=127&p1=trunk/mapbender/http/php/database-pgsql.php&p2=trunk/mapbender/http/php/database-pgsql.php&r1=126&r2=127
==============================================================================
--- trunk/mapbender/http/php/database-pgsql.php	(original)
+++ trunk/mapbender/http/php/database-pgsql.php	2006-04-23 09:21:36+0000
@@ -1,5 +1,22 @@
 <?php
 # $Id$
+# http://www.mapbender.org/index.php/Installation
+# Copyright (C) 2002 CCGIS
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# 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.
+
 /**
  * \file
  * \brief MySQL database connection/querying layer
@@ -38,17 +55,14 @@
  */
 include_once("../classes/class_mb_exception.php");
  
-function db_escape_string($unescaped_string)
-{
-	
+function db_escape_string($unescaped_string){
 	return @pg_escape_string(stripslashes($unescaped_string));
-
 }
 $DB = DB;
+
 function db_connect($DBSERVER="",$OWNER="",$PW="") {
 	global $sys_dbhost,$sys_dbuser,$sys_dbpasswd,$sys_dbname,$db_debug;
-	global $conn,$conn_update,$DB;
-	
+	global $conn,$conn_update,$DB;	
 	//global DBSERVER,OWNER,PW,DB;
 	$db_debug=0;
 	if ($DBSERVER)




More information about the Mapbender_commits mailing list