svn commit: r705 - trunk/mapbender/http/javascripts/mod_home.php
uli at osgeo.org
uli at osgeo.org
Thu Jul 27 07:23:35 EDT 2006
Author: uli
Date: 2006-07-27 11:23:35+0000
New Revision: 705
Modified:
trunk/mapbender/http/javascripts/mod_home.php
Log:
form instead of get params for username and password
Modified: trunk/mapbender/http/javascripts/mod_home.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_home.php?view=diff&rev=705&p1=trunk/mapbender/http/javascripts/mod_home.php&p2=trunk/mapbender/http/javascripts/mod_home.php&r1=704&r2=705
==============================================================================
--- trunk/mapbender/http/javascripts/mod_home.php (original)
+++ trunk/mapbender/http/javascripts/mod_home.php 2006-07-27 11:23:35+0000
@@ -21,8 +21,19 @@
include("../../conf/mapbender.conf");
echo "var url = '".LOGIN."';";
echo "var name = '".urlencode($_SESSION["mb_user_name"])."';";
-echo "var pw = '".urlencode($_SESSION["mb_user_password"])."';";
+echo "var pw = '".$_SESSION["mb_user_password"]."';";
?>
- document.location.href = url + "?name=" + name + "&password=" + pw;
+ var str = "<form name='myGuiList_form' method='POST' action='' target='_self'>";
+ str += "<input type='text' name='name' value='"+name+"'";
+ str += "<input type='text' name='password' value='"+pw+"'";
+ str += "</form>";
+
+ var mod_home_div = document.createElement('div');
+ mod_home_div.setAttribute("id","mod_home_d");
+ var tmp = document.body.appendChild(mod_home_div);
+ document.getElementById("mod_home_d").innerHTML = str;
+ document.forms.myGuiList_form.action = url;
+ document.forms.myGuiList_form.submit();
+// document.location.href = url + "?name=" + name + "&password=" + pw;
}
\ No newline at end of file
More information about the Mapbender_commits
mailing list