From: <ke...@ne...> - 2003-02-06 06:36:02
|
This field in the DB did not appear to be used elsewhere. It was originally being defaulted to player. i'm changing the use of the field. Sane values will be 0-255. meaning of the values 0: deleted/disabled user same effect as suspension (not currently used) 1: regular Player 2-9: extra space between players and admins. 10-255: admin of some sort. for the time being all admins are set to 10. (if you're not you can fix it) i will be using this field to determine if you are an admin for the purpose of the admin tools i'm going to work on. i would highly suggest that all other locations in the code be updated to use this instead of the AdminAlliance. The reasons for this are that the use of an integer allows for the creation of admin levels. This would allow some admins access to some tools and higher level admins access to more tools. The benefit to this is in the future when there will perhaps be a larger team of admins who don't all need access to all of the tools. The tools I intend to create will be able to do anything from the GUI. so this could be a real concern. We wouldn't want an admin to start rampantly editing his buds ships so that they all have increasead max holds or anything along those lines. The i believe that the admins we currently have would not so this sort of thing but in the future with a larger admin team this may not be the case and we may wish to limit temptation. Chris has committed to placing a function in the ME_Player class to get the player's perm by their player_id. I'll probably copy what he does and create one to set their perms as well so that the suspension code can call this as well if it's decided to use the perms instead of the seperate field for suspensions or whatever else we decide to use the permission levels for. I'm considering creating some sort of table that would keep the configuration of what level was required by each tool so that it is easy to add/update but that's a seperate issue. Comments, questions, flames? KevKev ------------------------------------------------------------ NEW - FREE Nettaxi 56kbs Dial-up INTERNET ACCESS with NO ADS or Ad Bars! http://www.nettaxi.com/isp/ |