Source Location: /php/auth/auth_functions.php
auth/auth_functions.php
holds all of the functions related to auth within ARK
PHP versions 4 and 5
LICENSE: ARK - The Archaeological Recording Kit. An open-source framework for displaying and working with archaeological data Copyright (C) 2008 L - P : Partnership Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
array getAuthItems(
[array $modules = FALSE], [array $filter = FALSE])
[line 167]
creates an array containing the items that the user is able to view. If the item is not in the array then the user will not be able to even view it.
[ Top ]
array getAuthorisedPages(
array $sgrp_arr)
[line 92]
retrieves an array of authorised pages (with associated information) for the user, dependent on their security group
[ Top ]
integer getPermUserId(
integer $user_id, [string $auth_container = 'ARK_USERS'])
[line 52]
retrieves the permUserId from the liveuser tables. Use this function when you need to know what a ARK user id is when mapped to the liveuser tables.
[ Top ]
array getSfilter(
integer $sfilter_id)
[line 233]
checks if a security filter is set for the user and if so it runs the filter and returns the results array. This can then be sent to the getAuthItems function.
[ Top ]