[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc/class.accounts.inc.php, 1.17
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc/class.accounts.inc.php, 1.17 |
Date: |
Thu, 30 Dec 2004 07:47:30 +0100 |
Update of /phpgwapi/inc
Added Files:
Branch:
class.accounts.inc.php
date: 2004/12/30 06:47:30; author: skwashd; state: Exp; lines: +46 -638
Log Message:
new HEAD
=====================================================================
<?php
/**
* Shared functions for other account repository managers and loader
* @author Joseph Engo <address@hidden>
* @author Bettina Gille <address@hidden>
* @author Philipp Kamps <address@hidden>
* @copyright Copyright (C) 2000-2004 Free Software Foundation, Inc.
http://www.fsf.org/
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General
Public License
* @package phpgwapi
* @subpackage accounts
* @version $Id: class.accounts.inc.php,v 1.17 2004/12/30 06:47:30
skwashd Exp $
*/
if (empty($GLOBALS['phpgw_info']['server']['account_repository']))
{
if (!empty($GLOBALS['phpgw_info']['server']['auth_type']))
{
$GLOBALS['phpgw_info']['server']['account_repository']
= $GLOBALS['phpgw_info']['server']['auth_type'];
}
else
{
$GLOBALS['phpgw_info']['server']['account_repository']
= 'sql';
}
}
/**
* Include child class
*/
/**
* @internal Moved again at least temporarily since sql and ldap use it.
*/
$GLOBALS['phpgw_info']['server']['global_denied_users'] = array(
'root' => True, 'bin' => True, 'daemon' => True,
'adm' => True, 'lp' => True, 'sync' => True,
'shutdown' => True, 'halt' => True, 'ldap' => True,
'mail' => True, 'news' => True, 'uucp' => True,
'operator' => True, 'games' => True, 'gopher' => True,
'nobody' => True, 'xfs' => True, 'pgsql' => True,
'mysql' => True, 'postgres' => True, 'oracle' => True,
'ftp' => True, 'gdm' => True, 'named' => True,
'alias' => True, 'web' => True, 'sweep' => True,
'cvs' => True, 'qmaild' => True, 'qmaill' => True,
'qmaillog' => True, 'qmailp' => True, 'qmailq' => True,
'qmailr' => True, 'qmails' => True, 'rpc' => True,
'rpcuser' => True, 'amanda' => True, 'apache' => True,
'pvm' => True, 'squid' => True, 'ident' => True,
'nscd' => True, 'mailnull' => True, 'cyrus' => True,
'backup' => True
);
$GLOBALS['phpgw_info']['server']['global_denied_groups'] = array(
'root' => True, 'bin' => True, 'daemon' => True,
'sys' => True, 'adm' => True, 'tty' => True,
'disk' => True, 'lp' => True, 'mem' => True,
'kmem' => True, 'wheel' => True, 'mail' => True,
'uucp' => True, 'man' => True, 'games' => True,
'dip' => True, 'ftp' => True, 'nobody' => True,
'floppy' => True, 'xfs' => True, 'console' => True,
'utmp' => True, 'pppusers' => True, 'popusers' => True,
'slipusers' => True, 'slocate' => True, 'mysql' => True,
'dnstools' => True, 'web' => True, 'named' => True,
'dba' => True, 'oinstall' => True, 'oracle' => True,
'gdm' => True, 'sweep' => True, 'cvs' => True,
'postgres' => True, 'qmail' => True, 'nofiles' => True,
'ldap' => True, 'backup' => True
);
/**
* Class for handling user and group accounts
*
* @package phpgwapi
* @subpackage accounts
* @abstract
*/
class accounts
{
/**
* Standard constructor for setting account_id
*
* This constructor sets the account id, if string is set,
converts to id
* @param integer $account_id Account id defaults to current
account id
* @param string $account_type Account type 'u': account; 'g' :
group; defaults to current account type
* @internal I might move this to the accounts_shared if it
stays around
*/
function accounts($account_id = null, $account_type = null)
{
switch($GLOBALS['phpgw_info']['server']['account_repository'])
{
case 'ldap':
include_once(PHPGW_API_INC .
'/accounts/class.accounts_ldap.inc.php');
$this = new Accounts_LDAP ($account_id,
$account_type);
break;
case 'sqlldap':
include_once(PHPGW_API_INC .
'/accounts/class.accounts_SQLLDAP.inc.php');
$this = new Accounts_SQLLDAP ($account_id,
$account_type);
break;
default:
include_once(PHPGW_API_INC .
'/accounts/class.accounts_sql.inc.php');
$this = new Accounts_sql ($account_id,
$account_type);
}
}
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc/class.accounts.inc.php, 1.17,
nomail <=