2008-10-13, 09:26 AM
MyBB 1.4.2
Ban for user is not lifted by class_session.php. Probably because of bad array in data cache.
class_session.php is using $UID as a key:
Ban for user is not lifted by class_session.php. Probably because of bad array in data cache.
class_session.php is using $UID as a key:
// Read the banned cache
$bannedcache = $cache->read("banned");
...
...
if($bannedcache[$uid])
{
But in class_datacache.php we have: function update_banned()
{
global $db;
$bans = array();
$query = $db->simple_select("banned");
while($ban = $db->fetch_array($query))
{
$bans[] = $ban;
}
}
And result - banned cache is not indexed by UIDs.
www.kozik.net.pl
- So... Maybe you shouldn't have hacked it.
- And why don't you try not breathing. Hurts, dunnit. (userfriendly.org)
- So... Maybe you shouldn't have hacked it.
- And why don't you try not breathing. Hurts, dunnit. (userfriendly.org)