Fix anon posting bug allowing posting when disabled

This commit is contained in:
Retro_Guy 2021-02-09 22:18:28 -07:00
parent 085c6378e3
commit 2962cd1456
1 changed files with 4 additions and 0 deletions

View File

@ -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')) if ($userFileHandle = @fopen($userFilename, 'r'))
{ {
$userFileInfo = fread($userFileHandle, filesize($userFilename)); $userFileInfo = fread($userFileHandle, filesize($userFilename));