MyBB Hacks

Full Version: control_object - what does it do?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm applying some custom patches to some XThreads features to suit my own needs. I started reverse-engineering the logic behind them in the plugin, and saw your control_object function used in many contexts.

How does it work? I think I've misunderstood its purpose. Could you just give me an explanation of its utility? Thank you.
It gains control over an existing object, or more specifically, allow you to inject code into it.
So I could inject my own code into the $mybb object if I'm not mistaken, right?
If you really wanted to, yes.
I really don't see the point in injecting anything into the $mybb object though.
Reference URL's