Attributes were hardcoded in some part of the php script
Correct the possibility to have the value from an array or from the field value directly.

Tested with username and uid
Merge pull request #2 from qcastel/bugfixAttributesHardcoded

Attributes were hardcoded in some part of the php script