How to unpack IP address v1.8x
#1
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 ?  
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er

Reply
#2
You can just check how it's done in core.. For example: https://github.com/mybb/mybb/blob/featur...t.php#L667
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)