public static function setLogAnonymous( $log , $anonymous )
	{
		if ( ! is_array( self::$auth ) ) throw new Exception( 'Authentication not initialized' );

		$anon = array();

		if ( isset( self::$auth['anonymous'] ) ) {
			$anon = self::$auth['anonymous'];
		}

		if ( $anonymous === true ) {
			$anon[] = $log;
			$anon = array_unique( $anon );
		}
		else {
			$anon = array_diff( $anon, array( $log ) );
		}

		self::$auth['anonymous'] = $anon;

		return true;
	}
public static function setLogAnonymous( $log , $anonymous )
	{
		if ( ! is_array( self::$auth ) ) throw new Exception( 'Authentication not initialized' );

		$anon = array();

		if ( isset( self::$auth['anonymous'] ) ) {
			$anon = self::$auth['anonymous'];
		}

		if ( $anonymous === true ) {
			$anon[] = $log;
			$anon = array_unique( $anon );
		}
		else {
			$anon = array_diff( $anon, array( $log ) );
		}

		self::$auth['anonymous'] = $anon;

		return true;
	}
public static function setLogAnonymous ( $ log , $ anonymous ) { if ( ! is_array ( self :: $ auth ) ) throw new Exception ( 'Authentication not initialized' ) ; $ anon = array ( ) ; if ( isset ( self :: $ auth [ 'anonymous' ] ) ) { $ anon = self :: $ auth [ 'anonymous' ] ; } if ( $ anonymous === true ) { $ anon [ ] = $ log ; $ anon = array_unique ( $ anon ) ; } else { $ anon = array_diff ( $ anon , array ( $ log ) ) ; } self :: $ auth [ 'anonymous' ] = $ anon ; return true ; }
Set a log anonymous or not

@param   string   $log       the fileid
@param   boolean  $anonymous true or false

@return boolean true
Set a log anonymous or not