[Mapbender-commits] r6118 - branches/3_dev/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun May 9 11:59:28 EDT 2010


Author: astrid_emde
Date: 2010-05-09 11:59:25 -0400 (Sun, 09 May 2010)
New Revision: 6118

Added:
   branches/3_dev/http/php/mod_map_messages.php
Log:
for template-basic from trunk

Added: branches/3_dev/http/php/mod_map_messages.php
===================================================================
--- branches/3_dev/http/php/mod_map_messages.php	                        (rev 0)
+++ branches/3_dev/http/php/mod_map_messages.php	2010-05-09 15:59:25 UTC (rev 6118)
@@ -0,0 +1,37 @@
+<?php
+#$Id: mod_insertWmcIntoDb.php 507 2006-11-20 10:55:57Z christoph $
+#$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_insertWmcIntoDb.php,v 1.19 2006/03/09 14:02:42 uli_rothstein Exp $
+# 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.
+
+require_once(dirname(__FILE__)."/../../core/validateSession.php");
+require_once(dirname(__FILE__)."/../../core/lib/class_Json.php");
+
+$e = new mb_notice("locale: " . Mapbender::session()->get("mb_locale") . "; lang: " . Mapbender::session()->get("mb_lang"));
+$e = new mb_notice(setlocale(LC_ALL, Mapbender::session()->get("mb_locale")));
+
+//
+// Messages
+//
+$msg_obj = array();
+$msg_obj["srsNotSupported"] = _mb("The following WMS do not support the current SRS");
+
+$json = new Mapbender_JSON();
+$output = $json->encode($msg_obj);
+
+header("Content-type:application/x-json; charset=utf-8");
+echo $output;
+?>



More information about the Mapbender_commits mailing list