User info - Mstcool/Elkarte GitHub Wiki
$user_info, 'is_activated', $_SESSION['mc'] - mod cache - are widely used variables. For more details, please refer to the code documentation. This is a quick list that may come in handy.
'is_activated'
- 0 - waiting for email activation
- 1 - activated
- 2 - waiting email activation after email change
- 3 - waiting for admin approval
- 4 - waiting for deletion
- 5 - pending COPPA +10 for banned users
$user_info['mod_cache'] and $_SESSION['mc']
- time - the last time (timestamp) the mod_cache array has been rebuilt;
- id - the user id;
- gq - __g__roup __q__uery, contains a pre-made query for groups the user is moderator of, it can be:
- 0=1 - moderator of no groups;
- 1=1 - allowedTo('manage_membergroups');
- id_group IN ({list_of_groups}) - list_of_groups is a list (comma separated) of groups the user is moderator of;
- bq - __b__oards __q__uery, contains a pre-made query of boards the user has moderation powers, it can be:
- 0=1 - moderator of no boards;
- 1=1 - allowedTo('moderate_forum');
- id_board IN ({list_of_boards}) - list_of_boards is a list (comma separated) of boards the user has moderation powers;
- ap - __a__pprove __p__osts, an array of boards the user can approve posts in, in other words the return of boardsAllowedTo('approve_posts');
- mb - __m__oderator __b__oards, an array of boards the user is moderator of;
- mq - __m__oderator __q__uery, a pre-made query of boards the user is moderator of, it can be:
- 0=1 - moderator of no boards;
- 1=1 - allowedTo('moderate_forum');
- b.id_board IN ({list_of_boards}) - list_of_boards is a list (comma separated) of boards the user is moderator of.