MyBB Community Forums

Full Version: How to unpack IP address v1.8x
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am coding a plugin that manipulates the user table, as of mybb 1.8 the IP addresses are 'packed' so can anyone say how they are packed ? I am currently using the PHP function ntop to unpack the ip address ... however this fails.... Am I missing a pre process on the data before calling ntop ?  
You can just check how it's done in core.. For example: https://github.com/mybb/mybb/blob/featur...t.php#L667