[Mapbender-commits] r4299 - branches/mifan_dev/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Jul 4 11:32:00 EDT 2009


Author: mifan
Date: 2009-07-04 11:31:59 -0400 (Sat, 04 Jul 2009)
New Revision: 4299

Added:
   branches/mifan_dev/mapbender/http/php/mod_loadCatalog.php
Log:
File to handle loading of catalog to database - called from admin

Added: branches/mifan_dev/mapbender/http/php/mod_loadCatalog.php
===================================================================
--- branches/mifan_dev/mapbender/http/php/mod_loadCatalog.php	                        (rev 0)
+++ branches/mifan_dev/mapbender/http/php/mod_loadCatalog.php	2009-07-04 15:31:59 UTC (rev 4299)
@@ -0,0 +1,39 @@
+<?php
+# $Id$
+# http://www.mapbender.org/index.php/Administration
+# 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 to load a catalog into the system
+
+require_once(dirname(__FILE__) . "/mb_validatePermission.php");
+require_once(dirname(__FILE__) . "/../classes/class_csw.php"); 
+
+//get list of GUIs
+$gui_list = $_REQUEST["guiList"];
+
+//Get Catalog Capabilities XML
+$cat_xml_url = $_REQUEST["xml_file"];
+
+//echo "file: ".$xml;
+
+$catalog = new csw();
+$catalog->createCatObjFromXML($cat_xml_url);
+$catalog->setCatObjToDB($gui_list);
+
+//Display Catalog data
+$catalog->displayCatalog();
+?>
\ No newline at end of file



More information about the Mapbender_commits mailing list