userdata["acclevel"] < 100) die ("Access denied!"); $edlist = new EditList("username", "hlstats_Users", "user", false); $edlist->columns[] = new EditListColumn("username", "Username", 15, true, "text", "", 16); $edlist->columns[] = new EditListColumn("password", "Password", 15, true, "password", "", 16); $edlist->columns[] = new EditListColumn("acclevel", "Access Level", 25, true, "select", "0/No Access;80/Restricted;100/Administrator"); if ($_POST) { if ($edlist->update()) message("success", "Operation successful."); else message("warning", $edlist->error()); } ?> Usernames and passwords can be set up for access to this HLstats Admin area. For most sites you will only want one admin user - yourself. Some sites may however need to give administration access to several people.

Note Passwords are encrypted in the database and so cannot be viewed. However, you can change a user's password by entering a new plain text value in the Password field.

Access Levels
Restricted users only have access to the Host Groups, Clan Tag Patterns, Weapons, Teams, Awards and Actions configuration areas. This means these users cannot set Options or add new Games, Servers or Admin Users to HLstats, or use any of the admin Tools.
Administrator users have full, unrestricted access.

query(" SELECT username, IF(password='','','(encrypted)') AS password, acclevel FROM hlstats_Users ORDER BY username "); $edlist->draw($result); ?>