[Mapbender-commits] r7296 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sun Dec 12 09:43:22 EST 2010
Author: christoph
Date: 2010-12-12 06:43:22 -0800 (Sun, 12 Dec 2010)
New Revision: 7296
Modified:
trunk/mapbender/http/php/mod_filteredWms_topic.php
Log:
done
Modified: trunk/mapbender/http/php/mod_filteredWms_topic.php
===================================================================
--- trunk/mapbender/http/php/mod_filteredWms_topic.php 2010-12-12 14:37:50 UTC (rev 7295)
+++ trunk/mapbender/http/php/mod_filteredWms_topic.php 2010-12-12 14:43:22 UTC (rev 7296)
@@ -20,11 +20,14 @@
require_once(dirname(__FILE__) . "/../php/mb_validatePermission.php");
/*
- * @security_patch irv open
+ * @security_patch irv done
*/
-require_once(dirname(__FILE__) . "/../php/mb_validatePermission.php");
-security_patch_log(__FILE__,__LINE__);
-import_request_variables("PG");
+//security_patch_log(__FILE__,__LINE__);
+$postvars = explode(",", "selected_wms,selected_topic,insert,remove,remove_topic");
+foreach ($postvars as $value) {
+ $$value = $_POST[$value];
+}
+
require_once(dirname(__FILE__) . "/../classes/class_administration.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -157,8 +160,8 @@
echo "</select>";
/*insert all groups in selectbox*******************************************************************/
-echo "<div class='text2'>TOPICS:</div><br>";
-echo "<select style='background:#ffffff' class='select2' multiple='multiple' name='selected_topic[]' size='$fieldHeight' >";
+echo "<div class='text3'>TOPICS:</div><br>";
+echo "<select style='background:#ffffff' class='select3' multiple='multiple' name='selected_topic[]' size='$fieldHeight' >";
for($i=0; $i<$cnt_topic; $i++){
echo "<option value='" . $topic_id[$i] . "'>" . $topic_name[$i] . "</option>";
}
@@ -173,8 +176,8 @@
echo "<input type='hidden' name='remove'>";
/*insert wms_topic_dependence and container_group_dependence in selectbox**************************************************/
-echo "<div class='text3'>SELECTED TOPICS:</div>";
-echo "<select style='background:#ffffff' class='select3' multiple='multiple' name='remove_topic[]' size='$fieldHeight' >";
+echo "<div class='text4'>SELECTED TOPICS:</div>";
+echo "<select style='background:#ffffff' class='select4' multiple='multiple' name='remove_topic[]' size='$fieldHeight' >";
for($i=0; $i<$cnt_wms_topic; $i++){
echo "<option value='" . $topic_id_wms[$i] . "'>" . $topic_name_wms[$i] . "</option>";
}
More information about the Mapbender_commits
mailing list