MyBB Community Forums

Full Version: lastip encrypted issue with custom application form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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;
}