Probably with reverse engineering. Im not sure how the phpBB licence works. In any case it is not so easy to modify (far less understand) other people's code. Maybe there is some API for this making it easy? But i doubt it
For now just try upload in reverse order to make them appear in your desired way
If you can't beat them, join them ..