| Procedural File: security.incSource Location: /lib/security.inc
 
 
 
 Page Details:This file includes functions to perform several security checks on each page load.
 
 
 
 Tags:
 
 Includes:
 
 
 
 
 
 checkClientIP [line 75]
    
		Checks if the client's IP address is on the list of allowed IPs. The script is stopped if the host is not valid. 
 checkIfPasswordChangeIsAllowed [line 202]
    | | boolean checkIfPasswordChangeIsAllowed(
) | 
 | 
 
		Checks if passwords may be changed.
 Tags: 
 checkIfWriteAccessIsAllowed [line 187]
    | | boolean checkIfWriteAccessIsAllowed(
) | 
 | 
 
		Checks if write access to LDAP is allowed.
 Tags: 
 logNewMessage [line 150]
    | | void logNewMessage(
string $level, string $message) | 
 | 
 
		Puts a new message in the log file.    
	
    		 Parameters
		      
        | string | $level | log level (LOG_NOTICE, LOG_WARNING, LOG_ERR) |  
        | string | $message | log message |  
 logoffAndBackToLoginPage [line 103]
    | | void logoffAndBackToLoginPage(
) | 
 | 
 
		Logs off the user and displays the login page.    
	
    	 
 startSecureSession [line 43]
    | | void startSecureSession(
) | 
 | 
 
		Starts a session and checks the environment. The script is stopped if one of the checks fail. |