Good script, I used it to migrate to WordPress from e107.