[Mapbender-commits] r2605 - in branches/2.5: . core
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 8 09:18:17 EDT 2008
Author: christoph
Date: 2008-07-08 09:18:16 -0400 (Tue, 08 Jul 2008)
New Revision: 2605
Added:
branches/2.5/core/
branches/2.5/core/globalSettings.php
branches/2.5/core/i18n.php
branches/2.5/core/system.php
Log:
Added: branches/2.5/core/globalSettings.php
===================================================================
--- branches/2.5/core/globalSettings.php (rev 0)
+++ branches/2.5/core/globalSettings.php 2008-07-08 13:18:16 UTC (rev 2605)
@@ -0,0 +1,52 @@
+<?php
+//
+// start the session
+//
+session_start();
+
+//
+//
+// All data Mapbender handles internally are UTF-8
+mb_internal_encoding("UTF-8");
+
+//
+// constants
+//
+require_once(dirname(__FILE__)."/../core/system.php");
+
+//
+// configuration file
+//
+require_once(dirname(__FILE__)."/../conf/mapbender.conf");
+
+//
+// database wrapper
+//
+if(SYS_DBTYPE=="mysql") {
+ require_once(dirname(__FILE__) . "/../lib/database-mysql.php");
+}
+else {
+ require_once(dirname(__FILE__) . "/../lib/database-pgsql.php");
+}
+
+
+//
+// class for error handling
+//
+require_once(dirname(__FILE__)."/../lib/exception.php");
+
+//
+// I18n wrapper function, gettext
+//
+require_once(dirname(__FILE__) . "/../core/i18n.php");
+require_once(dirname(__FILE__) . "/../lib/locale.php");
+$localeObj = new Mb_locale($_SESSION["mb_lang"]);
+
+
+//
+// establish database connection
+//
+$con = db_connect($DBSERVER, $OWNER, $PW);
+db_select_db(DB, $con);
+
+?>
Added: branches/2.5/core/i18n.php
===================================================================
--- branches/2.5/core/i18n.php (rev 0)
+++ branches/2.5/core/i18n.php 2008-07-08 13:18:16 UTC (rev 2605)
@@ -0,0 +1,8 @@
+<?php
+ function _mb ($someString) {
+ if (USE_I18N) {
+ return _($someString);
+ }
+ return $someString;
+ }
+?>
\ No newline at end of file
Added: branches/2.5/core/system.php
===================================================================
--- branches/2.5/core/system.php (rev 0)
+++ branches/2.5/core/system.php 2008-07-08 13:18:16 UTC (rev 2605)
@@ -0,0 +1,37 @@
+<?php
+# $Id:$
+# 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.
+
+#
+# mapbender version
+#
+define("MB_VERSION_NUMBER", "2.5.0");
+define("MB_VERSION_APPENDIX", "RC2");
+define("MB_RELEASE_DATE", mktime(0,0,0,4,21,2008));//h, min,sec,month,day,year
+
+#
+# constants from map.js
+#
+define("MB_RESOLUTION", "28.35");
+define("MB_FEATURE_COUNT", "100");
+define("MB_SECURITY_PROXY", "http://wms1.ccgis.de/mapbender/tools/security_proxy.php?mb_ows_security_proxy=");
+#
+# available log levels
+#
+define("LOG_LEVEL_LIST", "off,error,warning,notice,all");
+
+define("ZOOM_MOUSEWHEEL", "1.1");
\ No newline at end of file
More information about the Mapbender_commits
mailing list