View Single Post
Old 27 Aug 2019, 22:45
vbSuperfan vbSuperfan is offline
Join Date: Jun 2019
Hello Dave, thanks a million for this information, a very useful starting point for looking into this deeper, which I will absolutely do!

Do you (or anyone else here) know which PHP script in vBulletin that the Mobile Suite mobile apps use for their API calls? That would be a very good starting point for me to begin tracing/reversing code in order to know where to best place my new custom hooks...

--------------- Added 27 Aug 2019 at 23:20 ---------------

Ok, a few moments of web server access log tracing and PHP code reversing later, it would seem that a good target for a custom hook would be the print_apioutput($data) function of the file /core/api.php.

I'll start gently and try to use the hook methodology listed above to insert a hook in it. If it won't work, I'll just patch the hell out of it locally for now, since I've got no time to lose in this matter.

I'll let you know how it goes!

I assume that it won't be possible to use the new fancy-schmancy subclassing extension system of vB5 to get direct access to this function directly from a "product" without any code PHP file patching having to be done at all? Seeing that:

1) This function (print_apioutput()) isn't even inside any object oriented code to begin with.


2) What are the odds of that working as advertised to begin with either way, right...?

Or would that actually be able to work somehow? Anyone knows, yes or no?
Reply With Quote