Fix anon posting bug allowing posting when disabled
This commit is contained in:
parent
085c6378e3
commit
2962cd1456
@ -1022,6 +1022,10 @@ function check_bbs_auth($username, $password) {
|
||||
}
|
||||
}
|
||||
|
||||
if(trim($username) == strtolower($CONFIG['anonusername']) && $CONFIG['anonuser'] != true) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ($userFileHandle = @fopen($userFilename, 'r'))
|
||||
{
|
||||
$userFileInfo = fread($userFileHandle, filesize($userFilename));
|
||||
|
Loading…
x
Reference in New Issue
Block a user