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_Admin is meant to be used with the LiveUser package. 8 * It is composed of all the classes necessary to administrate 9 * data used by LiveUser. 10 * 11 * You'll be able to add/edit/delete/get things like: 12 * * Rights 13 * * Users 14 * * Groups 15 * * Areas 16 * * Applications 17 * * Subgroups 18 * * ImpliedRights 19 * 20 * And all other entities within LiveUser. 21 * 22 * At the moment we support the following storage containers: 23 * * DB 24 * * MDB 25 * * MDB2 26 * 27 * But it takes no time to write up your own storage container, 28 * so if you like to use native mysql functions straight, then it's possible 29 * to do so in under a hour! 30 * 31 * PHP version 4 and 5 32 * 33 * LICENSE: This library is free software; you can redistribute it and/or 34 * modify it under the terms of the GNU Lesser General Public 35 * License as published by the Free Software Foundation; either 36 * version 2.1 of the License, or (at your option) any later version. 37 * 38 * This library is distributed in the hope that it will be useful, 39 * but WITHOUT ANY WARRANTY; without even the implied warranty of 40 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 41 * Lesser General Public License for more details. 42 * 43 * You should have received a copy of the GNU Lesser General Public 44 * License along with this library; if not, write to the Free Software 45 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 46 * MA 02111-1307 USA 47 * 48 * 49 * @category authentication 50 * @package LiveUser_Admin 51 * @author Markus Wolff <wolff@21st.de> 52 * @author Helgi �ormar �orbj�rnsson <dufuz@php.net> 53 * @author Lukas Smith <smith@pooteeweet.org> 54 * @author Arnaud Limbourg <arnaud@php.net> 55 * @author Christian Dickmann <dickmann@php.net> 56 * @author Matt Scifo <mscifo@php.net> 57 * @author Bjoern Kraus <krausbn@php.net> 58 * @copyright 2002-2006 Markus Wolff 59 * @license http://www.gnu.org/licenses/lgpl.txt 60 * @version CVS: $Id: MDB.php 208328 2006-03-01 12:10:30Z lsmith $ 61 * @link http://pear.php.net/LiveUser_Admin 62 */ 63 64 65/** 66 * Require parent class definition. 67 */ 68require_once 'LiveUser/Admin/Storage/MDB.php'; 69 70/** 71 * This is a PEAR::MDB backend storage driver for the LiveUser Admin auth class. 72 * All it does is read the Globals.php file and the container and database config on 73 * 74 * @category authentication 75 * @package LiveUser_Admin 76 * @permor Lukas Smith <smith@pooteeweet.org> 77 * @permor Bjoern Kraus <krausbn@php.net> 78 * @copyright 2002-2006 Markus Wolff 79 * @license http://www.gnu.org/licenses/lgpl.txt 80 * @version Release: @package_version@ 81 * @link http://pear.php.net/LiveUser_Admin 82 */ 83class LiveUser_Admin_Auth_Storage_MDB extends LiveUser_Admin_Storage_MDB 84{ 85 /** 86 * Initializes database storage container. 87 * 88 * @param array Storage Configuration 89 * @return void 90 * 91 * @access public 92 * @uses LiveUser_Admin_Storage_DB::init 93 */ 94 function init(&$storageConf) 95 { 96 require_once 'LiveUser/Auth/Storage/Globals.php'; 97 parent::init($storageConf, $GLOBALS['_LiveUser']['auth']); 98 } 99} 100?> 101