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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
The user's options bitmask... [message #23193] Tue, 08 March 2005 16:22 Go to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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 16: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
add to buddy list
ignore all messages by this user
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 16:48 Go to previous message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Ah ha! I was hunthing through the source code. Thanks, that table of values is exactly what I needed.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Sun Dec 17 16:40:40 EST 2017

Total time taken to generate the page: 0.00638 seconds