svn commit: r164 - trunk/mapbender/http/php/mod_owsproxy_conf.php

uli at osgeo.org uli at osgeo.org
Wed May 3 06:06:08 EDT 2006


Author: uli
Date: 2006-05-03 10:06:08+0000
New Revision: 164

Added:
   trunk/mapbender/http/php/mod_owsproxy_conf.php   (contents, props changed)

Log:
new module to configure secure wms

Added: trunk/mapbender/http/php/mod_owsproxy_conf.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_owsproxy_conf.php?view=auto&rev=164
==============================================================================
--- (empty file)
+++ trunk/mapbender/http/php/mod_owsproxy_conf.php	2006-05-03 10:06:08+0000
@@ -0,0 +1,62 @@
+<?php
+# $Id$
+# http://www.mapbender.org/index.php/mod_owsproxy_conf.php
+# 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.
+
+include("../php/mb_validateSession.php");
+include("../classes/class_administration.php");
+$admin = new administration();
+$ownwms = $admin->getWmsByOwner($_SESSION["mb_user_id"]);
+if(isset($_REQUEST["wms_id"]) && isset($_REQUEST["status"])){
+	$admin->setWMSOWSstring(intval($_REQUEST["wms_id"]),$_REQUEST["status"]);	
+}
+?>
+<html>
+<head>
+<title></title>
+<style>
+body{
+	font-family: Arial, Helvetica, sans-serif;	
+}
+</style>
+<script language="JavaScript" type="text/javascript">
+function set(wms_id, status){
+	document.location.href = "mod_owsproxy_conf.php?wms_id="+wms_id+"&status="+status; 
+}
+</script>
+  
+</head>
+<body>
+<form>
+<table>
+<?php
+for($i=0; $i<count($ownwms); $i++){
+	echo "<tr>";
+	echo "<td>";
+	echo "<input type='checkbox' onclick='if(this.checked){set(\"".$ownwms[$i]."\",\"on\")}else{set(\"".$ownwms[$i]."\",\"off\")}' ";
+	if($admin->getWMSOWSstring($ownwms[$i]) != false){ echo "checked";  }
+	echo ">";
+	echo "</td>";
+	echo "<td>".$ownwms[$i]."</td>";
+	echo "<td>".$admin->getWmsTitleByWmsId($ownwms[$i])."</td>";
+	echo "</tr>";	
+}
+?>
+</table>
+</form>
+</body>
+</html>
\ No newline at end of file




More information about the Mapbender_commits mailing list