[Mapbender-commits] r2931 - branches/beck_dev/mapbender/conf

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Sep 15 05:50:07 EDT 2008


Author: beck
Date: 2008-09-15 05:50:06 -0400 (Mon, 15 Sep 2008)
New Revision: 2931

Added:
   branches/beck_dev/mapbender/conf/mapbender.conf
Log:


Added: branches/beck_dev/mapbender/conf/mapbender.conf
===================================================================
--- branches/beck_dev/mapbender/conf/mapbender.conf	                        (rev 0)
+++ branches/beck_dev/mapbender/conf/mapbender.conf	2008-09-15 09:50:06 UTC (rev 2931)
@@ -0,0 +1,166 @@
+<?php
+# $Id: mapbender.conf-dist 2407 2008-04-23 16:00:49Z christoph $
+# http://www.mapbender.org/index.php/Mapbender.conf
+# Copyright (C) 2002 CCGIS 
+ 
+# --------------------------------------------
+# type of mapbender database
+# --------------------------------------------
+
+
+#define("SYS_DBTYPE", "mysql");
+define("SYS_DBTYPE", "pgsql");
+
+# --------------------------------------------
+# database information
+# --------------------------------------------
+
+if(SYS_DBTYPE=="mysql")
+{
+	define("DBSERVER", "<HOST>");
+	define("PORT", "3306");
+	define("DB", "<database>");
+	define("OWNER", "<owner>");
+	define("PW", "<password>");
+	
+	include_once(dirname(__FILE__) . "/../http/php/database-mysql.php"); 
+	
+	# --------------------------------------------
+	# database with geos functions
+	# --------------------------------------------
+
+	define("GEOS_DBSERVER", "<HOST>");
+	define("GEOS_PORT", "5432");
+	define("GEOS_DB", "<database with geos functions>");
+	define("GEOS_OWNER", "<owner>");
+	define("GEOS_PW", "<password>");
+	
+}
+else {
+	define("DBSERVER", "localhost");
+	define("PORT", "5432");
+	define("DB", "entw_mapbender_beck_dev");
+	define("OWNER", "postgres");
+	define("PW", "postgres");
+	
+	include_once(dirname(__FILE__) . "/../http/php/database-pgsql.php"); 
+}
+
+# --------------------------------------------
+# prepared statements (PHP > 5.1.x, PostgreSQL > 7.4)
+# --------------------------------------------
+define("PREPAREDSTATEMENTS",true);
+
+# --------------------------------------------
+# encoding - default characterset UTF-8 / ISO-8859-1
+# --------------------------------------------
+define("CHARSET","UTF-8");
+
+# --------------------------------------------
+# error_reporting
+# --------------------------------------------
+
+//ini_set('error_reporting', 'E_ALL & ~ E_NOTICE');
+
+# --------------------------------------------
+# directory for temporary files
+# --------------------------------------------
+
+define("TMPDIR", "../tmp");
+
+# --------------------------------------------
+# URL to login
+# --------------------------------------------
+
+define("LOGIN", "http://localhost/entw/mapbender/branches/beck_dev/mapbender/http/frames/login.php");
+define("MAXLOGIN", 100);
+$login = LOGIN;
+
+# --------------------------------------------
+# URL to owsproxy
+# (no terminating slash)
+# --------------------------------------------
+
+define("OWSPROXY", "http://<ip or name>/owsproxy");
+
+# --------------------------------------------
+# type of server-connection
+# curl, socket, http
+# --------------------------------------------
+
+#define("CONNECTION", "curl");
+define("CONNECTION", "http");
+#define("CONNECTION", "socket");
+
+define("CONNECTION_PROXY", "<ip>");
+define("CONNECTION_PORT", "<port>");
+define("CONNECTION_USER", "<user>");
+define("CONNECTION_PASSWORD", "<password>");
+
+# --------------------------------------------
+# security: path to modules
+# --------------------------------------------
+
+define("CHECK", false);
+
+# --------------------------------------------
+# enable/disable portal
+# --------------------------------------------
+
+define("PORTAL", false);
+
+# --------------------------------------------
+# mail settings for internal mapbender mails 
+# smtp mailing
+# for further settings check 'class_administration.php'
+# please check phpmailer for more information
+# --------------------------------------------
+
+define("USE_PHP_MAILING", "false");
+define("MAILHOST", "<host>");
+define("MAILUSERNAME", "<user>");
+define("MAILPASSWORD", "<password>");
+define("MAILADMIN", "<mailaddress of the mailadmin>");
+define("MAILADMINNAME", "<mailadminname>");
+
+$mailHost = MAILHOST;
+$mailUsername =  MAILUSERNAME;
+$mailPassword =  MAILPASSWORD;
+ 
+# --------------------------------------------
+# wms monitoring
+# --------------------------------------------
+
+define("AUTO_UPDATE", "0");
+define("TIME_LIMIT", "300");
+define("PHP_PATH", "/usr/bin/");
+
+# --------------------------------------------
+# Mapbender error logging
+# --------------------------------------------
+
+define("LOG_LEVEL", "error"); //"off","error","warning","notice" or "all"
+define("LOG_JS", "on"); // "on", "alert", "console" or "off"
+
+# --------------------------------------------
+# Internationalization
+# --------------------------------------------
+
+define("USE_I18N", false);  // requires gettext for PHP. 
+							// If "false", LANGUAGE is set to english
+define("LANGUAGE", "de");   // only available if USE_I18N is "true". 
+							// "en", "de", "bg", "gr", "nl", "it", es"
+require_once(dirname(__FILE__) . "/../lib/i18n.php");
+
+###HACK for GLOBALS
+$DBSERVER=DBSERVER;
+  $DB=DB;
+  $OWNER=OWNER;
+  $PW=PW;
+  
+  $GEOS_DBSERVER=GEOS_DBSERVER;
+  $GEOS_DB=GEOS_DB;
+  $GEOS_PORT =GEOS_PORT;
+  $GEOS_OWNER=GEOS_OWNER;
+  $GEOS_PW=GEOS_PW;
+?>
\ No newline at end of file



More information about the Mapbender_commits mailing list