There is an error:
writeini auth.ini $2 user $3
writeini auth.ini $2 pass $encode( $+ $3 $+ )
--
Why u addded the username as password ($3)
and... the username is not necessary because he is already writed in the parameter two
writeini auth.ini $2
this $2 is the username...
so remove the line: writeini auth.ini $2 user $3
--
This is one of the errors ...
good luck