File/program/lib/useraccount.class.php

Description

/program/lib/useraccount.class.php - taking care of useraccounts

This file defines a class for dealing with users. Also, the global job permission constants and access control constants are defined. This file is always included, even when a visitor is anonymous (ie. not logged in).

  • author: Peter Fokker <peter@berestijn.nl>
  • version: $Id: useraccount.class.php,v 1.3 2011-05-09 19:39:37 pfokker Exp $
  • copyright: Copyright (C) 2008-2011 Ingenieursbureau PSD/Peter Fokker
  • license: GNU AGPLv3+Additional Terms
Classes
Class Description
 class Useraccount Methods to access properties of the account of the logged in user
Constants
ACL_ROLE_GURU = -1 (line 99)
ACL_ROLE_INTRANET_ACCESS = 1 (line 100)
ACL_ROLE_NONE = 0 (line 98)
ACL_ROLE_PAGEMANAGER_AREAMASTER = ACL_ROLE_PAGEMANAGER_SECTIONMASTER|
PERMISSION_AREA_DROP_PAGE|
PERMISSION_AREA_ADD_PAGE|
PERMISSION_AREA_DROP_SECTION|
PERMISSION_AREA_ADD_SECTION|
PERMISSION_AREA_EDIT_AREA (line 112)
ACL_ROLE_PAGEMANAGER_CONTENTMASTER = PERMISSION_NODE_EDIT_CONTENT (line 101)
ACL_ROLE_PAGEMANAGER_PAGEMASTER = ACL_ROLE_PAGEMANAGER_CONTENTMASTER|
PERMISSION_NODE_DROP_CONTENT|
PERMISSION_NODE_ADD_CONTENT|
PERMISSION_NODE_EDIT_PAGE (line 102)
ACL_ROLE_PAGEMANAGER_SECTIONMASTER = ACL_ROLE_PAGEMANAGER_PAGEMASTER|
PERMISSION_NODE_DROP_PAGE|
PERMISSION_NODE_ADD_PAGE|
PERMISSION_NODE_DROP_SECTION|
PERMISSION_NODE_ADD_SECTION|
PERMISSION_NODE_EDIT_SECTION (line 106)
ACL_ROLE_PAGEMANAGER_SITEMASTER = ACL_ROLE_PAGEMANAGER_AREAMASTER|
PERMISSION_SITE_DROP_AREA|
PERMISSION_SITE_ADD_AREA|
PERMISSION_SITE_EDIT_SITE (line 118)
JOB_PERMISSION_ACCOUNTMANAGER = 16 (line 47)

This (dangerous) permission allows access to add/edit/delete users and groups (including escalate privileges)

JOB_PERMISSION_BACKUPTOOL = 256 (line 59)

This allows the user to download a backup of the database

JOB_PERMISSION_CONFIGURATIONMANAGER = 32 (line 50)

This permission allows the user to access the configuration manager and change the site configuration

JOB_PERMISSION_FILEMANAGER = 4 (line 41)

This permission allows the user to access the file manager and upload/delete files in selected places

JOB_PERMISSION_GURU = -1 (line 32)

Guru permissions = all permission bits are set, even the unused ones

JOB_PERMISSION_LOGVIEW = 512 (line 62)

This allows the user to view the contents of the log table

JOB_PERMISSION_MASK = JOB_PERMISSION_NEXT_AVAILABLE_VALUE-1 (line 74)

This mask can be used to isolate only the 'official' permissions from an integer value

JOB_PERMISSION_MODULEMANAGER = 8 (line 44)

This permission allows the user to access the module manager and configure modules

JOB_PERMISSION_NEXT_AVAILABLE_VALUE = 2048 (line 71)

NOTE: This quasi-permission should always be defined to be the highest permission 1

JOB_PERMISSION_PAGEMANAGER = 2 (line 38)

This permission allows the user to access the page manager and add/edit/delete nodes according to the user's ACLs

JOB_PERMISSION_STARTCENTER = 1 (line 35)

This permission is required for every user that is to logon to admin.php

JOB_PERMISSION_STATISTICS = 64 (line 53)

This permissions allows the user to access the site statistics

JOB_PERMISSION_TOOLS = JOB_PERMISSION_TRANSLATETOOL|JOB_PERMISSION_BACKUPTOOL|JOB_PERMISSION_LOGVIEW|JOB_PERMISSION_UPDATE (line 68)

combine the permssions for the tools in a single bit mask for convenient testing

JOB_PERMISSION_TRANSLATETOOL = 128 (line 56)

This allows the user to translate the program, by modifying existing translations or adding new languages

JOB_PERMISSION_UPDATE = 1024 (line 65)

This allows the user to perform a system upgrade (see also was_version_check() and main_admin())

PERMISSION_AREA_ADD_PAGE = 1024 (line 89)
PERMISSION_AREA_ADD_SECTION = 4096 (line 91)
PERMISSION_AREA_DROP_PAGE = 512 (line 88)
PERMISSION_AREA_DROP_SECTION = 2048 (line 90)
PERMISSION_AREA_EDIT_AREA = 8192 (line 92)
PERMISSION_NODE_ADD_CONTENT = 4 (line 79)
PERMISSION_NODE_ADD_PAGE = 32 (line 83)
PERMISSION_NODE_ADD_SECTION = 128 (line 85)
PERMISSION_NODE_DROP_CONTENT = 2 (line 78)
PERMISSION_NODE_DROP_PAGE = 16 (line 82)
PERMISSION_NODE_DROP_SECTION = 64 (line 84)
PERMISSION_NODE_EDIT_CONTENT = 1 (line 76)
PERMISSION_NODE_EDIT_PAGE = 8 (line 80)
PERMISSION_NODE_EDIT_SECTION = 256 (line 86)
PERMISSION_SITE_ADD_AREA = 32768 (line 95)
PERMISSION_SITE_DROP_AREA = 16384 (line 94)
PERMISSION_SITE_EDIT_SITE = 65536 (line 96)

Documentation generated on Wed, 11 May 2011 23:45:42 +0200 by phpDocumentor 1.4.0