I do see that createBoard() calls modifyBoard(), which itself reassigns 'order' values to the boards, but it doesn't touch id_board values at all... I think the id_board=101 is a MySQL thing. Basically, if AUTO_INCREMENT <= MAX(auto_increment_column), it resets it to MAX(auto_increment_column) + 1. Now, maybe there's a SQL option somewhere to avoid that... Or we could just as well drop the AUTO_INCREMENT thingy and simply add our id_board manually for each new board -- at worst it's only an extra query to do.
Okay I've committed my latest changes, hopefully you'll like them... (I really do, but I understand it's a matter of taste.)
Unrelated, but I have to go to bed so I can't bother to look for the right topic -- I'm thinking of renaming the 'css' folder to something that doesn't say 'css' really. Or rename 'scripts' to 'js' because that'd make more sense. But I'd rather rename 'css' to either 'styles' or 'stylings', so that themers aren't frightened at the idea of putting their graphic files into their styling subfolders. (Which I'd recommend doing, if only because it's easier to manage for themers, as well as users who have plenty of stylings.) Any ideas on your side?