PHP Code:
#define AUTHOR "MaHu"
Ok, not even gonna try and help you, cause 90% of this code is ripped off 4eRT and you didn't even bother looking over variables that you've modified, I bet you just compiled it once and brushed it off as "someone else's work" judging by your past posts. You removed g_has_hook, added g_class and removed the models, but you forgot to add him as the original author.
LOOK, STUDY & TRY TO IMITATE.
Never copy & paste without understanding basic concepts.