I'm just pondering here, but I was just wondering why is there a settings.php if all the settings are already stored in the database?
settings.php is an cache of the values from the database.
It gets updated each time anyone changes some settings.
The cache reduces the load on the database.
And means if the database is unavailable, information such as the board name, url, email etc are all available.
Chris, if the database is unavailable, MyBB wouldn't work >.>
Yea wouldn't it just return an die message then? "Couldn't connect to the database" or something?
The board name might be useful to display on the error page, and visitors could use the admin e-mail address to complain about the error.
Ok WDZ you win
lol. Now I understand why its there
Too bad an mysql error doesn't show the name of the board though