User:Emanuele/codedoc From Online Manual

< User:Emanuele
Revision as of 18:32, 9 August 2012 by Emanuele (talk | contribs) (Created page with "== $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'''rou...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$user_info['mod_cache'] and $_SESSION['mc']

  • time - the last time (timestamp) the mod_cache array has been rebuilt;
  • id - the user id;
  • gq - group query, 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 - boards query, 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 - approve posts, an array of boards the user can approve posts in, in other words the return of boardsAllowedTo('approve_posts');
  • mb - moderator boards, an array of boards the user is moderator of;
  • mq - moderator query, 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.


Advertisement: