Dude I told you on IRC: /help $readini
Secondly there is supposed to have as many opening braces { as closing ones } if not, you've done something wrong and you need to balance them.
Thirdly, you're supposed to have something inside the if statement so it isn't redundant.
If I actually knew what you was trying to do I would have recoded it for you but in all honesty I haven't got a clue.