[Mapbender-commits] r6732 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 10 05:38:20 EDT 2010


Author: christoph
Date: 2010-08-10 09:38:20 +0000 (Tue, 10 Aug 2010)
New Revision: 6732

Modified:
   trunk/mapbender/http/php/mod_abo_show.php
Log:
replaced $_SERVER["PHP_SELF"] or $PHP_SELF (or even $_PHP_SELF!) by $_SERVER["SCRIPT_NAME"]

Modified: trunk/mapbender/http/php/mod_abo_show.php
===================================================================
--- trunk/mapbender/http/php/mod_abo_show.php	2010-08-10 09:37:55 UTC (rev 6731)
+++ trunk/mapbender/http/php/mod_abo_show.php	2010-08-10 09:38:20 UTC (rev 6732)
@@ -81,7 +81,7 @@
 		//Show wmslist to be noticed
 		echo $wms_id_list;
 		//generate form to send email
-		echo "<form name = 'form2' method='post' action='".$PHP_SELF."'>";
+		echo "<form name = 'form2' method='post' action='".$_SERVER["SCRIPT_NAME"]."'>";
 		//textfield for text to send
 		echo "<br><textarea name='emailtext' cols='120' rows='20'></textarea>";
 		//submit button for send email
@@ -249,19 +249,19 @@
 	$str = "<span style='font-size:30'>" . 
 		$mail_header . 
 		"</span><hr><br>\n" . 
-		"<form name = 'form1' method='post' action='" . $PHP_SELF . "?sortby=" . 
+		"<form name = 'form1' method='post' action='" . $_SERVER["SCRIPT_NAME"] . "?sortby=" . 
 		$_GET['sortby']."'>\n\t" . 
 		"\n\t<input type=submit value='" . $email_create_text . 
 		"'>\n<br/><br/>\n" . 
 		"<table cellpadding=10 cellspacing=0 border=0>" . 
 		"<tr bgcolor='#dddddd'>" . 
 		"<th align='left'>" . $notify_text . "</a></th>" . 
-		"<th align='left'><a href='" . $PHP_SELF . "?sortby=wms'>wms</a></th>" . 
-		"<th align='left' colspan = 2><a href='" . $PHP_SELF . 
+		"<th align='left'><a href='" . $_SERVER["SCRIPT_NAME"] . "?sortby=wms'>wms</a></th>" . 
+		"<th align='left' colspan = 2><a href='" . $_SERVER["SCRIPT_NAME"] . 
 		"?sortby=status'>current status</a></th>" . 
-		"<th align='left'><a href='" . $PHP_SELF . 
+		"<th align='left'><a href='" . $_SERVER["SCRIPT_NAME"] . 
 		"?sortby=avgresp'>avg. response time</a></th>" . 
-		"<th align='left'><a href='" . $PHP_SELF . 
+		"<th align='left'><a href='" . $_SERVER["SCRIPT_NAME"] . 
 		"?sortby=avail'>overall availability</a></th>" .
 		"<th align='left'>" . $number_of_subscribers_text . "</th><th></th>" . 
 		"</tr>";



More information about the Mapbender_commits mailing list