[Mapbender-commits] r2226 - branches/2.5/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Mar 13 06:05:49 EDT 2008


Author: verenadiewald
Date: 2008-03-13 06:05:49 -0400 (Thu, 13 Mar 2008)
New Revision: 2226

Modified:
   branches/2.5/http/php/mod_renameGUI.php
Log:
replaced with latest version from MB 2.4.5 with permission/session check, correct form action..

Modified: branches/2.5/http/php/mod_renameGUI.php
===================================================================
--- branches/2.5/http/php/mod_renameGUI.php	2008-03-13 10:01:11 UTC (rev 2225)
+++ branches/2.5/http/php/mod_renameGUI.php	2008-03-13 10:05:49 UTC (rev 2226)
@@ -17,12 +17,12 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
+require_once(dirname(__FILE__)."/../php/mb_validatePermission.php");
 import_request_variables("PG");
-require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-require_once(dirname(__FILE__)."/../classes/class_administration.php");
-require_once(dirname(__FILE__)."/../classes/class_gui.php");
 ?>
+
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
 <html>
 <head>
 <meta name="author-mail" content="info at ccgis.de">
@@ -145,9 +145,11 @@
 }
 </script>
 </head>
-<body onLoad='document.form1.newGuiName.focus()'>
+<body>
 <?php
 
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
+require_once(dirname(__FILE__)."/../classes/class_gui.php");
 
 ###rename
 if($rename || $copy){
@@ -184,16 +186,16 @@
 	$res = db_prep_query($sql,$v,$t);
 	$count=0;
 	while($row = db_fetch_array($res)){
-		$gui_id[$count]=$row["gui_id"];
+		$gui_id_[$count]=$row["gui_id"];
 		$count++;
 	}
 	echo "<select class='guiList' size='20' name='guiList' onchange='document.form1.guiList.value = this.value;submit();'>";
 	for ($i=0; $i<$count;$i++){
-		echo "<option value='".$gui_id[$i]."' ";
-		if($guiList && $guiList == $gui_id[$i]){
+		echo "<option value='".$gui_id_[$i]."' ";
+		if($guiList && $guiList == $gui_id_[$i]){
 			echo "selected";
 		}
-		echo ">".$gui_id[$i]."</option>";
+		echo ">".$gui_id_[$i]."</option>";
 	}
 	echo "</select><br><br><br>";
 }
@@ -207,7 +209,7 @@
 echo "<tr><td class='newName_str'>Name: </td><td><input class='newName' type='text' id='newGuiName' name='newGuiName'></td></tr>\n";
 echo "<tr>";
 echo " <td><input class='button_rename' type='button' value='rename' onclick='validate_rename()'></td>";
-echo " <td><input class='button_copy' type='button' value='copy' onclick='validate_copy()'><div  class='button_copy_checkbox'>(<input name='withUsers' type='checkbox' /> copy users and groups)</div></td>";
+echo " <td><input class='button_copy' type='button' value='copy' onclick='validate_copy()'><div  class='button_copy_checkbox'>(<input name='withUsers' type='checkbox' /> copy users)</div></td>";
 echo "</tr>\n";
 echo "</table>";
 }



More information about the Mapbender_commits mailing list