MyBB Community Forums
lastip encrypted issue with custom application form - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: lastip encrypted issue with custom application form (/thread-179190.html)



lastip encrypted issue with custom application form - Infinito - 2015-09-15

Hello,

My name is Tobias. I am a new user to this forum, but definitely not to MyBB.
I'm using a custom application form that allowed officers to log in by verifying the IP using the LastIp from the database.

After upgrading to 1.8.6 my LastIP is scrambled and I can no longer use my application form.
Is there a way to disable IP encryption or a way to hook from my application form?



Thanks in advance,
Tobias

I have already tried commenting the bin2hex part of the escape_binary function but that didn't work out too well.

/**
* Binary database fields require special attention.
*
* @param string $string Binary value
* @return string Encoded binary value
*/
function escape_binary($string)
{
return "X'".$this->escape_string(bin2hex($string))."'";
}

/**
* Unescape binary data.
*
* @param string $string Binary value
* @return string Encoded binary value
*/
function unescape_binary($string)
{
// Nothing to do
return $string;
}