[ŧicket/223] Set correct permissions to uploaded files (644)

phpbb_chmod() only sets the owner permissions. As we need to set the
permissions for all users, it is not possible to use phpbb_chmod().

B3P-223
Merge pull request #142 from marc1706/ticket/223

[ŧicket/223] Set correct permissions to uploaded files (644)