LiveUser
[ class tree: LiveUser ] [ index: LiveUser ] [ all elements ]

Source for file Globals.php

Documentation is available at Globals.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3.  
  4. /**
  5.  * A framework for authentication and authorization in PHP applications
  6.  *
  7.  * LiveUser is an authentication/permission framework designed
  8.  * to be flexible and easily extendable.
  9.  *
  10.  * Since it is impossible to have a
  11.  * "one size fits all" it takes a container
  12.  * approach which should enable it to
  13.  * be versatile enough to meet most needs.
  14.  *
  15.  * PHP version 4 and 5
  16.  *
  17.  * LICENSE: This library is free software; you can redistribute it and/or
  18.  * modify it under the terms of the GNU Lesser General Public
  19.  * License as published by the Free Software Foundation; either
  20.  * version 2.1 of the License, or (at your option) any later version.
  21.  *
  22.  * This library is distributed in the hope that it will be useful,
  23.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  24.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  25.  * Lesser General Public License for more details.
  26.  *
  27.  * You should have received a copy of the GNU Lesser General Public
  28.  * License along with this library; if not, write to the Free Software
  29.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  30.  * MA  02111-1307  USA
  31.  *
  32.  *
  33.  * @category authentication
  34.  * @package LiveUser
  35.  * @author  Markus Wolff <wolff@21st.de>
  36.  * @author  Helgi Þormar Þorbjörnsson <dufuz@php.net>
  37.  * @author  Lukas Smith <smith@pooteeweet.org>
  38.  * @author  Arnaud Limbourg <arnaud@php.net>
  39.  * @author  Pierre-Alain Joye  <pajoye@php.net>
  40.  * @author  Bjoern Kraus <krausbn@php.net>
  41.  * @copyright 2002-2006 Markus Wolff
  42.  * @license http://www.gnu.org/licenses/lgpl.txt
  43.  * @version CVS: $Id: Globals.php,v 1.7 2006/02/27 18:05:28 lsmith Exp $
  44.  * @link http://pear.php.net/LiveUser
  45.  */
  46.  
  47.  
  48. /**
  49.  * This file holds all our default table/fields name/types/relations,
  50.  * if they should be checked and more which are needed by both
  51.  * LiveUser and LiveUser_Admin
  52.  *
  53.  * You can add to those table or modify options via our table/field
  54.  * options in the config.
  55.  */
  56.  
  57.  
  58. $GLOBALS['_LiveUser']['auth']['tables'= array(
  59.     'users' => array(
  60.         'fields' => array(
  61.             'auth_user_id' => 'seq',
  62.             'handle' => 'unique',
  63.             'passwd' => true,
  64.         ),
  65.     ),
  66. );
  67.  
  68. $GLOBALS['_LiveUser']['auth']['fields'= array(
  69.     'auth_user_id' => 'text',
  70.     'handle' => 'text',
  71.     'passwd' => 'text',
  72. );
  73.  
  74. $GLOBALS['_LiveUser']['auth']['alias'= array(
  75.     'auth_user_id' => 'auth_user_id',
  76.     'handle' => 'handle',
  77.     'passwd' => 'passwd',
  78.     'users' => 'users',
  79. );
  80.  
  81. ?>

Documentation generated on Mon, 28 Jan 2008 03:30:15 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.