public static function isAnonymousEnabled( $files = false )
	{
		if ( ! isset( self::$auth['anonymous'] ) ) return false;
		if ( ! is_array( self::$auth['anonymous'] ) ) return false;

		if ( $files === false ) {
			return ( count( self::$auth['anonymous'] ) > 0 );
		}

		$found = 0;
		foreach( self::$auth['anonymous'] as $file ) {
			if ( isset( $files[ $file ] ) ) $found++;
		}

		return ( $found > 0 );
	}
public static function isAnonymousEnabled( $files = false )
	{
		if ( ! isset( self::$auth['anonymous'] ) ) return false;
		if ( ! is_array( self::$auth['anonymous'] ) ) return false;

		if ( $files === false ) {
			return ( count( self::$auth['anonymous'] ) > 0 );
		}

		$found = 0;
		foreach( self::$auth['anonymous'] as $file ) {
			if ( isset( $files[ $file ] ) ) $found++;
		}

		return ( $found > 0 );
	}
public static function isAnonymousEnabled ( $ files = false ) { if ( ! isset ( self :: $ auth [ 'anonymous' ] ) ) return false ; if ( ! is_array ( self :: $ auth [ 'anonymous' ] ) ) return false ; if ( $ files === false ) { return ( count ( self :: $ auth [ 'anonymous' ] ) > 0 ) ; } $ found = 0 ; foreach ( self :: $ auth [ 'anonymous' ] as $ file ) { if ( isset ( $ files [ $ file ] ) ) $ found ++ ; } return ( $ found > 0 ) ; }
Tell if at least one log file is accessible anonymously

The $files parameter is optional. If given, it will check if all anonymous files still exist.
If they do not exist, they must be erased and they do not count for this check.

@param   array    $files  The files configuration

@return  boolean
Tell if at least one log file is accessible anonymously