svn commit: r11 - trunk/mapbender/conf
uli at osgeo.org
uli at osgeo.org
Thu Apr 13 15:32:13 EDT 2006
Author: uli
Date: 2006-04-13 19:32:12+0000
New Revision: 11
Added:
trunk/mapbender/conf/
trunk/mapbender/conf/mapbender.conf-dist
trunk/mapbender/conf/session.conf
Log:
import Mapbender source without history
Added: trunk/mapbender/conf/mapbender.conf-dist
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/conf/mapbender.conf-dist?view=auto&rev=11
==============================================================================
--- (empty file)
+++ trunk/mapbender/conf/mapbender.conf-dist 2006-04-13 19:32:12+0000
@@ -0,0 +1,128 @@
+<?php
+
+# --------------------------------------------
+# 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("../php/database-mysql.php");
+
+ # --------------------------------------------
+ # database with geos functions
+ # --------------------------------------------
+
+ define("GEOS_DBSERVER", "localhost");
+ 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", "<database>");
+ define("OWNER", "<owner>");
+ define("PW", "<password>");
+
+ define("MD5", "false");
+
+
+ include_once("../php/database-pgsql.php");
+}
+
+# --------------------------------------------
+# encoding - default characterset UTF-8 / ISO-8859-1
+# --------------------------------------------
+define("CHARSET","UTF-8");
+
+# --------------------------------------------
+# error_reporting
+# --------------------------------------------
+
+//ini_set('error_reporting', 'E_ALL & ~ E_NOTICE');
+
+# --------------------------------------------
+# dirctory for temporary files
+# --------------------------------------------
+
+define("TMPDIR", "../tmp");
+
+# --------------------------------------------
+# URL to login
+# --------------------------------------------
+
+define("LOGIN", "http://localhost/mapbender/frames/login.php");
+define("MAXLOGIN", 3);
+$login = LOGIN;
+
+# --------------------------------------------
+# 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);
+
+
+# --------------------------------------------
+# 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;
+
+# --------------------------------------------
+# sets the session variables
+# --------------------------------------------
+
+###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;
+?>
Added: trunk/mapbender/conf/session.conf
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/conf/session.conf?view=auto&rev=11
==============================================================================
--- (empty file)
+++ trunk/mapbender/conf/session.conf 2006-04-13 19:32:12+0000
@@ -0,0 +1,8 @@
+<?php
+$_SESSION["mb_user_password"] = $password;
+$_SESSION["mb_user_id"] = db_result($res,0,"mb_user_id");
+$_SESSION["mb_user_resolution"] = db_result($res,0,"mb_user_resolution");
+$_SESSION["mb_user_name"] = $name;
+$_SESSION["mb_user_ip"] = $_SERVER['REMOTE_ADDR'];
+$_SESSION["mb_myBBOX"] = $_REQUEST["mb_myBOOX"];
+?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list