The 'rewritten' code is what's in the
svn right now.
It originated as a kind of injected code using #ifdef's and was rewritten as class/object code.
In the translation from old to new, some features were lost, like raids, and some new ones added like bots zone with you.
There are a few servers running the new and some running the old, but the official source is at the link above.