Problem is that it’s bit tightly integrated with some other stuff from all over the site, like the user profile system, the file upload system, the tinymce editor, etc. so I would have to spend some time to extract it cleanly and to be sure it still works afterwards.
I was actually thinking of maybe turning this into some kinda cms system since I am allready planning on using the same code on another site with some changes specific to that site and would then be able to determine what kinda features one would like to have configurable.