Ignore:
Timestamp:
04/12/10 16:21:32 (14 years ago)
Author:
pedroerp
Message:

Ticket #993 - Trocando acessos à GLOBALS por acessos à Settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/993/inc/class.external_bridge.inc.php

    r2372 r2492  
    6565                $tmpOrg = ""; 
    6666 
    67                 $tmpUser = $GLOBALS['phpgw_info']['user']['account_lid']; 
    68                 $tmpOrg = explode(",ou=", $GLOBALS['phpgw_info']['user']['account_dn']); 
     67                $tmpUser = Settings::get('expresso', 'user', 'account_lid'); 
     68                $tmpOrg = explode(",ou=", Settings::get('expresso', 'user', 'account_dn')); 
    6969                $tmpOrg = explode(",", $tmpOrg[1]); 
    7070                $tmpOrg = $tmpOrg[0]; 
     
    7373                                        '%user%' => $tmpUser, 
    7474                                        '%organization%' => $tmpOrg, 
    75                                         '%password%' => $GLOBALS['phpgw_info']['user']['passwd']); 
     75                                        '%password%' => Settings::get('expresso', 'user', 'passwd')); 
    7676 
    7777                /* select the required form values for submission */ 
     
    130130                        /* check if the user has the permission to access the requested site */ 
    131131                        $site = (int) $site; 
    132                         if (!$this->acl->checkUserGroupAccessToResource('APX', $GLOBALS['phpgw_info']['user']['account_id'], $site)) 
     132                        if (!$this->acl->checkUserGroupAccessToResource('APX', Settings('expresso', 'user', 'account_id'), $site)) 
    133133                                $redirect = true; 
    134134                } 
Note: See TracChangeset for help on using the changeset viewer.