mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	fix line indenting
This commit is contained in:
		
							parent
							
								
									4114bd9557
								
							
						
					
					
						commit
						fb98eb948d
					
				|  | @ -59,7 +59,7 @@ if(isset($_POST['pwd'])) { | |||
| 
 | ||||
| if($settings->_enableGuestLogin && (int) $settings->_guestID) { | ||||
| 	$guestUser = $dms->getUser((int) $settings->_guestID); | ||||
| 	if ((!isset($pwd) || strlen($pwd)==0) && ($login != $guestUser->getLogin()))  { | ||||
| 	if ((!isset($pwd) || strlen($pwd)==0) && ($login != $guestUser->getLogin())) { | ||||
| 		_printMessage(getMLText("login_error_title"),	getMLText("login_error_text")."\n"); | ||||
| 		exit; | ||||
| 	} | ||||
|  | @ -117,11 +117,11 @@ if (!$user && isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) { | |||
| 		$dn = false; | ||||
| 		/* If bind succeed, then get the dn of for the user */ | ||||
| 		if ($bind) { | ||||
|             if (isset($settings->_ldapFilter) && strlen($settings->_ldapFilter) > 0) { | ||||
| 			    $search = ldap_search($ds, $settings->_ldapBaseDN, "(&(".$ldapSearchAttribut.$login.")".$settings->_ldapFilter.")"); | ||||
|             } else { | ||||
| 			    $search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut.$login); | ||||
|             } | ||||
| 			if (isset($settings->_ldapFilter) && strlen($settings->_ldapFilter) > 0) { | ||||
| 				$search = ldap_search($ds, $settings->_ldapBaseDN, "(&(".$ldapSearchAttribut.$login.")".$settings->_ldapFilter.")"); | ||||
| 			} else { | ||||
| 				$search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut.$login); | ||||
| 			} | ||||
| 			if (!is_bool($search)) { | ||||
| 				$info = ldap_get_entries($ds, $search); | ||||
| 				if (!is_bool($info) && $info["count"]>0) { | ||||
|  | @ -146,11 +146,11 @@ if (!$user && isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) { | |||
| 			$user = $dms->getUserByLogin($login); | ||||
| 			if (is_bool($user) && !$settings->_restricted) { | ||||
| 				// Retrieve the user's LDAP information.
 | ||||
|                 if (isset($settings->_ldapFilter) && strlen($settings->_ldapFilter) > 0) { | ||||
| 			        $search = ldap_search($ds, $settings->_ldapBaseDN, "(&(".$ldapSearchAttribut.$login.")".$settings->_ldapFilter.")"); | ||||
|                 } else { | ||||
| 			        $search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut.$login); | ||||
|                 } | ||||
| 				if (isset($settings->_ldapFilter) && strlen($settings->_ldapFilter) > 0) { | ||||
| 					$search = ldap_search($ds, $settings->_ldapBaseDN, "(&(".$ldapSearchAttribut.$login.")".$settings->_ldapFilter.")"); | ||||
| 				} else { | ||||
| 					$search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut.$login); | ||||
| 				} | ||||
| 
 | ||||
| 				if (!is_bool($search)) { | ||||
| 					$info = ldap_get_entries($ds, $search); | ||||
|  | @ -290,7 +290,7 @@ if (isset($_COOKIE["mydms_session"])) { | |||
| 	setcookie("mydms_session", $id, $lifetime, $settings->_httpRoot, null, null, !$settings->_enableLargeFileUpload); | ||||
| } | ||||
| 
 | ||||
| // TODO: by the PHP manual: The superglobals $_GET and $_REQUEST  are already decoded.
 | ||||
| // TODO: by the PHP manual: The superglobals $_GET and $_REQUEST are already decoded.
 | ||||
| // Using urldecode() on an element in $_GET or $_REQUEST could have unexpected and dangerous results.
 | ||||
| 
 | ||||
| if (isset($_POST["referuri"]) && strlen($_POST["referuri"])>0) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann