mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
ldapmodify was not working any more, fixed it now: phpgw --> egw
This commit is contained in:
parent
1c2bc536dd
commit
ae3da17939
@ -28,19 +28,19 @@
|
|||||||
}
|
}
|
||||||
/* Does not return unless user is authorized */
|
/* Does not return unless user is authorized */
|
||||||
|
|
||||||
class phpgw
|
class egw
|
||||||
{
|
{
|
||||||
var $common;
|
var $common;
|
||||||
var $accounts;
|
var $accounts;
|
||||||
var $applications;
|
var $applications;
|
||||||
var $db;
|
var $db;
|
||||||
}
|
}
|
||||||
$phpgw = new phpgw;
|
$GLOBALS['egw'] = new egw;
|
||||||
$phpgw->common = CreateObject('phpgwapi.common');
|
$GLOBALS['egw']->common = CreateObject('phpgwapi.common');
|
||||||
|
|
||||||
$common = $phpgw->common;
|
$common = $GLOBALS['egw']->common;
|
||||||
$GLOBALS['egw_setup']->loaddb();
|
$GLOBALS['egw_setup']->loaddb();
|
||||||
copyobj($GLOBALS['egw_setup']->db,$phpgw->db);
|
$GLOBALS['egw']->db = clone($GLOBALS['egw_setup']->db);
|
||||||
|
|
||||||
$tpl_root = $GLOBALS['egw_setup']->html->setup_tpl_dir('setup');
|
$tpl_root = $GLOBALS['egw_setup']->html->setup_tpl_dir('setup');
|
||||||
$setup_tpl = CreateObject('setup.Template',$tpl_root);
|
$setup_tpl = CreateObject('setup.Template',$tpl_root);
|
||||||
@ -64,8 +64,8 @@
|
|||||||
$phpgw_info['server']['account_repository'] = $config['account_repository'];
|
$phpgw_info['server']['account_repository'] = $config['account_repository'];
|
||||||
$phpgw_info['server']['ldap_version3'] = $config['ldap_version3'];
|
$phpgw_info['server']['ldap_version3'] = $config['ldap_version3'];
|
||||||
|
|
||||||
$phpgw->accounts = CreateObject('phpgwapi.accounts');
|
$GLOBALS['egw']->accounts = CreateObject('phpgwapi.accounts');
|
||||||
$acct = $phpgw->accounts;
|
$acct = $GLOBALS['egw']->accounts;
|
||||||
|
|
||||||
/* connect to ldap server */
|
/* connect to ldap server */
|
||||||
if(!$ldap = $common->ldapConnect())
|
if(!$ldap = $common->ldapConnect())
|
||||||
|
Loading…
Reference in New Issue
Block a user