[Mapbender-commits] r2280 - branches/2.5/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Mar 20 09:00:14 EDT 2008
Author: christoph
Date: 2008-03-20 09:00:14 -0400 (Thu, 20 Mar 2008)
New Revision: 2280
Modified:
branches/2.5/http/php/mb_listKMLs.php
branches/2.5/http/php/mb_listWMCs.php
branches/2.5/http/php/mod_changeEPSG.php
branches/2.5/http/php/mod_changeEPSG_dynamic.php
branches/2.5/http/php/mod_changePassword.php
branches/2.5/http/php/mod_deleteGUI.php
branches/2.5/http/php/mod_deleteWFS.php
branches/2.5/http/php/mod_editElementVars.php
branches/2.5/http/php/mod_editSelf.php
branches/2.5/http/php/mod_editWMS_Metadata.php
branches/2.5/http/php/mod_edit_element_vars.php
branches/2.5/http/php/mod_edit_metadata.php
branches/2.5/http/php/mod_getStyles.php
branches/2.5/http/php/mod_newGui.php
branches/2.5/http/php/mod_saveWKT.php
branches/2.5/http/php/mod_switchLocale_noreload.php
branches/2.5/http/php/mod_updateWMS.php
branches/2.5/http/php/mod_zoomCoords.php
branches/2.5/http/php/mod_zoomCoords_en.php
branches/2.5/http/php/nestedSets.php
Log:
set form action to $self
Modified: branches/2.5/http/php/mb_listKMLs.php
===================================================================
--- branches/2.5/http/php/mb_listKMLs.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mb_listKMLs.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -31,7 +31,7 @@
$clientFilename = $_FILES["local_kml_filename"]["tmp_name"];
$kmlUrl = $_POST["local_kml_url"];
-$form_target = $_SERVER["PHP_SELF"] . "?" . SID;
+$form_target = $self;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
Modified: branches/2.5/http/php/mb_listWMCs.php
===================================================================
--- branches/2.5/http/php/mb_listWMCs.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mb_listWMCs.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -29,7 +29,6 @@
$delWmcId = $_POST["del_wmc_id"];
$clientFilename = $_FILES['local_wmc_filename']['tmp_name'];
-$form_target = $_SERVER["PHP_SELF"] . "?" . SID;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -41,7 +40,7 @@
<title>Select web map contect document from list</title>
</head>
<body>
- <form name='delete_wmc' action='<?php echo $form_target; ?>' method='POST'>
+ <form name='delete_wmc' action='<?php echo $self; ?>' method='POST'>
<input type='hidden' id='delete_wmc' name='del_wmc_id' value ='' >
</form>
@@ -161,14 +160,14 @@
// load a WMC from file
?>
<h2 style='font-family: Arial, Helvetica, sans-serif; color: #808080;background-color: White;'><font align='left' color='#000000'>load WMC from file</font></h2>
-<form enctype="multipart/form-data" action="<?php echo $form_target;?>" method=POST target="_self">
+<form enctype="multipart/form-data" action="<?php echo $self;?>" method=POST target="_self">
<input type='file' name='local_wmc_filename'>
<input type='submit' value='load'>
</form>
<?php
// load a WMC from list
-echo mb_listWMCs($wmcIdArray, $form_target);
+echo mb_listWMCs($wmcIdArray, $self);
if ($wmcId && in_array($wmcId, $wmcIdArray)){
if ($action == "delete") {
Modified: branches/2.5/http/php/mod_changeEPSG.php
===================================================================
--- branches/2.5/http/php/mod_changeEPSG.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_changeEPSG.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -195,7 +195,7 @@
</script>
</head>
<body leftmargin="1" topmargin="1" onload="mod_changeEPSG_init()" bgcolor="red">
-<form action="<?php echo $PHP_SELF .'?'.SID ?>" method='POST'>
+<form action="<?php echo $self; ?>" method='POST'>
<select class='epsg' name='epsg' onchange='mod_changeEPSG()'>
<option value="">undefined</option>
<option value="EPSG:4326">EPSG:4326</option>
Modified: branches/2.5/http/php/mod_changeEPSG_dynamic.php
===================================================================
--- branches/2.5/http/php/mod_changeEPSG_dynamic.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_changeEPSG_dynamic.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -229,7 +229,7 @@
<?php
/*insert EPSG into selectbox************************************************************************************/
-echo "<form action='" . $PHP_SELF . "?".SID."' method='post'>";
+echo "<form action='" . $self ."' method='post'>";
echo "<select class='epsg' name='epsg' onChange='mod_changeEPSG()'>";
for($i=0; $i<$cnt_epsg_wms; $i++){
echo "<option value='" . $epsg_code[$i] . "' ";
Modified: branches/2.5/http/php/mod_changePassword.php
===================================================================
--- branches/2.5/http/php/mod_changePassword.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_changePassword.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -143,7 +143,7 @@
/* HTML */
echo "<fieldset><legend>Change password:</legend>";
-echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>";
+echo "<form name='form1' action='" . $self ."' method='post'>";
echo "<table cellpadding='5' cellspacing='0' border='0'>";
echo "<td>";
echo "new password:";
Modified: branches/2.5/http/php/mod_deleteGUI.php
===================================================================
--- branches/2.5/http/php/mod_deleteGUI.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_deleteGUI.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -68,7 +68,7 @@
$res_gui = db_query($sql_gui);
$cnt_gui = 0;
-echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>";
+echo "<form name='form1' action='" . $self ."' method='post'>";
echo "<select class='guiList' size='20' name='guiList' class='guiList'>";
while($row = db_fetch_array($res_gui)){
Modified: branches/2.5/http/php/mod_deleteWFS.php
===================================================================
--- branches/2.5/http/php/mod_deleteWFS.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_deleteWFS.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -79,7 +79,7 @@
$res_wfs = db_query($sql_wfs);
$cnt_wfs = 0;
-echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>";
+echo "<form name='form1' action='" . $self ."' method='post'>";
echo "<br><b>WFS List: <b><br><br>";
echo "<select class='wfsList' size='20' name='wfsList' >";
Modified: branches/2.5/http/php/mod_editElementVars.php
===================================================================
--- branches/2.5/http/php/mod_editElementVars.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_editElementVars.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -167,7 +167,7 @@
<body>
<?php
- echo "<form name='form1' action='" . $PHP_SELF . "?".$sParams."' method='POST'>\n";
+ echo "<form name='form1' action='" . $self ."' method='POST'>\n";
$fkey_gui_id = $_REQUEST["fkey_gui_id"];
$fkey_e_id = $_REQUEST["fkey_e_id"];
Modified: branches/2.5/http/php/mod_editSelf.php
===================================================================
--- branches/2.5/http/php/mod_editSelf.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_editSelf.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -210,7 +210,7 @@
/*HTML*****************************************************************************************************/
-echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>";
+echo "<form name='form1' action='" . $self ."' method='post'>";
echo "<input type='hidden' name='selected_user' value='" . $_SESSION["mb_user_id"] . "'>";
echo "<table border='0'>";
Modified: branches/2.5/http/php/mod_editWMS_Metadata.php
===================================================================
--- branches/2.5/http/php/mod_editWMS_Metadata.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_editWMS_Metadata.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -290,7 +290,7 @@
die("Preview has been deleted!</body></html>");
}
?>
-<form name='form1' action='<?php $self ?>' method='post'>
+<form name='form1' action='<?php echo $self; ?>' method='post'>
<table border='0'>
<tr>
Modified: branches/2.5/http/php/mod_edit_element_vars.php
===================================================================
--- branches/2.5/http/php/mod_edit_element_vars.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_edit_element_vars.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -277,7 +277,7 @@
<body>
<?php
-echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='get'>";
+echo "<form name='form1' action='" . $self ."' method='get'>";
#Gui to edit
if(!isset($guiList1)){
Modified: branches/2.5/http/php/mod_edit_metadata.php
===================================================================
--- branches/2.5/http/php/mod_edit_metadata.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_edit_metadata.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -355,7 +355,7 @@
$admin = new administration();
$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"],true);
$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"],true);
-echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>\n";
+echo "<form name='form1' action='" . $self ."' method='post'>\n";
$sql = "SELECT * from gui WHERE gui.gui_id IN (";
$v = $ownguis;
Modified: branches/2.5/http/php/mod_getStyles.php
===================================================================
--- branches/2.5/http/php/mod_getStyles.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_getStyles.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -134,7 +134,7 @@
$sql = "SELECT * FROM wms ORDER BY wms_title";
$res = db_query($sql);
$cnt = 0;
-echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>";
+echo "<form name='form1' action='" . $self ."' method='post'>";
echo "<select class='wmsList' size='20' name='wmsList' class='wmsList' onchange='submit()'>";
while($row = db_fetch_array($res)){
# getStyle - Request:
Modified: branches/2.5/http/php/mod_newGui.php
===================================================================
--- branches/2.5/http/php/mod_newGui.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_newGui.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -85,7 +85,7 @@
</script>
</head>
<body onload='setFocus()'>
-<form name='form1' action="<?php echo $self ?>" method="POST">
+<form name='form1' action="<?php echo $self; ?>" method="POST">
<table>
<tr><td>Name: </td><td><input type='text' name='newGui'></td></tr>
<tr><td>Description: </td><td><input type='text' name='newDesc'></td></tr>
Modified: branches/2.5/http/php/mod_saveWKT.php
===================================================================
--- branches/2.5/http/php/mod_saveWKT.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_saveWKT.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -92,7 +92,7 @@
//$sql = "SELECT f_table_name, f_geometry_column,type,srid FROM geometry_columns";
$res = pg_query($con,$sql);
$cnt = 0;
-echo "<form action='".$PHP_SELF."' method='POST'>";
+echo "<form action='".$self."' method='POST'>";
#echo "Selektieren: <input name='actionType' type='radio' value='select'>";
#echo "Speichern: <input name='actionType' type='radio' value='create'><br>";
echo "<select name='tablenames' onchange='submit()'>";
Modified: branches/2.5/http/php/mod_switchLocale_noreload.php
===================================================================
--- branches/2.5/http/php/mod_switchLocale_noreload.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_switchLocale_noreload.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -24,15 +24,9 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
-<meta name="author" content="V. Diewald">
-<meta http-equiv="cache-control" content="no-cache">
-<meta http-equiv="pragma" content="no-cache">
-<meta http-equiv="expires" content="0">
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<meta name="DC.Rights" content="WhereGroup GmbH & Co.KG, Bonn">
<title>Metadata search</title>
-<?
-include_once(dirname(__FILE__) . "/../include/dyn_css.php");
+<?php
+include(dirname(__FILE__) . "/../include/dyn_css.php");
?>
<script type="text/javascript">
<!--
Modified: branches/2.5/http/php/mod_updateWMS.php
===================================================================
--- branches/2.5/http/php/mod_updateWMS.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_updateWMS.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -50,7 +50,7 @@
</script>
</head>
<body>
-<form name='form1' action='<?php $self ?>' method='POST'>
+<form name='form1' action='<?php echo $self; ?>' method='POST'>
<?php
Modified: branches/2.5/http/php/mod_zoomCoords.php
===================================================================
--- branches/2.5/http/php/mod_zoomCoords.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_zoomCoords.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -143,7 +143,7 @@
<?php
# needs intl'!
- echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>";
+ echo "<form name='form1' action='" . $self ."' method='post'>";
echo "<span class='labelx'>Länge:</span>";
echo "<span class='labely'>Breite:</span>";
echo "<input class='textx' type='text' name='X'>";
Modified: branches/2.5/http/php/mod_zoomCoords_en.php
===================================================================
--- branches/2.5/http/php/mod_zoomCoords_en.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/mod_zoomCoords_en.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -163,7 +163,7 @@
<body bgcolor='#ffffff' onload=''>
<?php
-echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>";
+echo "<form name='form1' action='" . $self ."' method='post'>";
#coordinates
#deutsche Version
Modified: branches/2.5/http/php/nestedSets.php
===================================================================
--- branches/2.5/http/php/nestedSets.php 2008-03-20 12:58:08 UTC (rev 2279)
+++ branches/2.5/http/php/nestedSets.php 2008-03-20 13:00:14 UTC (rev 2280)
@@ -246,7 +246,7 @@
?>
<div style='position:absolute;top:50px;left:350px'>
-<form action='<?php $PHP_SELF ?>' method='POST'>
+<form action='<?php $self; ?>' method='POST'>
<br><br>
<table >
<tr><td></td><td></td></tr>
More information about the Mapbender_commits
mailing list