laserlight;10913230 wrote:Of course, I assume that for flexibility you have some amount of database abstraction so that you can later more easily swap to use say, PostgreSQL.
Well, to tell the truth it's not really a project meant for distribution, but I suppose I could use database abstraction if it's not too much extra work. As it is now I'm using mysqli.
What is the interface (i.e., non-private member functions, but no need to show their implementation) and member variables of your current user class? What kind of permission system are you using?
The User class has fields for the id, name, level, user group, and two other fields from the database that aren't relevant to the log-in. It's got methods to add, remove, and edit a user, along with one to fetch the user's information from the database to fill the class's fields.