[Mapbender-commits] r2168 - branches/2.4.5/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Mar 4 05:47:22 EST 2008


Author: christoph
Date: 2008-03-04 05:47:22 -0500 (Tue, 04 Mar 2008)
New Revision: 2168

Modified:
   branches/2.4.5/http/classes/class_administration.php
Log:
use constant CHECK from mapbender.conf if it is defined

Modified: branches/2.4.5/http/classes/class_administration.php
===================================================================
--- branches/2.4.5/http/classes/class_administration.php	2008-03-04 10:29:41 UTC (rev 2167)
+++ branches/2.4.5/http/classes/class_administration.php	2008-03-04 10:47:22 UTC (rev 2168)
@@ -123,7 +123,7 @@
 
 		for ($i=0;$i <= $max;$i++) {
 			//die ASCII-Zeichen 48 - 57 sind die zahlen 0-9
-			//die ASCII-Zeichen 65 - 90 sind die buchstaben A-Z (Groß)
+			//die ASCII-Zeichen 65 - 90 sind die buchstaben A-Z (Gro�)
 			//die ASCII-Zeichen 97 - 122 sind die buchstaben a-z (Klein)
 			$ascii = 0;
 			do {
@@ -761,6 +761,14 @@
 
    	function checkModulePermission($arrayGuis, $modulePath, $column){
    		$check = true;
+		try {
+			$check = CHECK;
+		}
+		catch ($error) {
+			$msg = "Constant CHECK undefined in mapbender.conf, assuming 'true'";
+			$e = new mb_exception($msg);
+		}
+		
    		if($check == true){
 	   		$perm = false;
 	   		if(count($arrayGuis)>0){



More information about the Mapbender_commits mailing list