MyBB Community Forums

Full Version: 1.4.12 - functions,php update
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Your update:

"Important Update: April 13, 2010
If you applied the MyBB 1.4.12 update before April 13, 2010 10:00 UTC we recommend you redownload the changed file package and reupdate the inc/functions.php file to your forum. The change improves the entropy of a fix included within MyBB 1.4.12."

If we're not sure whether we have right version of functions.php, is there any reason as to why we can't simply re-upload this newer one? Do we need to run anything that was in "upgrade.php" again after re-uploading this changed file?
If you already upgraded, you can just upload inc/functions.php.

I choose not to, though.
I have redownloaded the package but i have always

Parse error: syntax error, unexpected '{' in /inc/functions.php on line 5605

Confused

http://community.mybboard.net/thread-67850.html
when you say, I choose not too, why? what are the differences and is functions.php still OK as the originally downloaded one?
I think these are the only changes: http://dev.mybboard.net/projects/mybb/re...ev_to=4868
The "changed_file_1412.zip" file still contains the functions.php that contains:

// Just call it again here instead of saving extra bytes...
$obfuscator = secure_seed_rng();

$seeded = true;
}

if($min !== null && $max !== null)
{
$val = mt_rand($min, $max) + $obfuscator;
$val = $min + (($val - $min) % ($max+1-$min));
return $val;
}
else
{
$val = mt_rand() + $obfuscator;
$val %= mt_getrandmax() + 1;
return $val;
}
}

?>


Is that correct because it appears to be missing the "return mt_rand($min, $max);". Is this correct now?
Yes that is the latest file, but some people have reported problems with it. We're testing a new one here: http://community.mybboard.net/thread-678...#pid490164