FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » The user's options bitmask...
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
The user's options bitmask... [message #23193] Tue, 08 March 2005 21:22 Go to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
How does the bitmask stored in the 'users_opt' column in the users table work? I assume it is used to determine the access privileges of the user somewhat like the old 'is_admin' column used to. Am I correct in assuming that anding the value of that column with 1048576 will tell me if the user is an administrator?
Re: The user's options bitmask... [message #23196 is a reply to message #23193] Tue, 08 March 2005 21:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The meaning of the masks stored inside users_opt can be found by looking @ the sql/fud_users.tbl file.

FUDforum Core Developer
Re: The user's options bitmask... [message #23197 is a reply to message #23193] Tue, 08 March 2005 21:48 Go to previous message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
Ah ha! I was hunthing through the source code. Thanks, that table of values is exactly what I needed.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: sql: display latest topics on homepage
Next Topic: russian translation fixes
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 22:52:51 GMT 2024

Total time taken to generate the page: 0.02124 seconds