Ignore:
Timestamp:
02/10/10 09:58:44 (14 years ago)
Author:
valmir.sena
Message:

Ticket #902 - Permitir que seja definido um dominio diferente por organizacao

Location:
trunk/expressoAdmin1_2/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.bosectors.inc.php

    r1850 r1991  
    4747                        $sector_info['objectClass'][0]  = 'top'; 
    4848                        $sector_info['objectClass'][1]  = 'organizationalUnit'; 
    49                          
     49 
     50                        if( isset($_POST['associated_domain']) ) 
     51                        { 
     52                                if ( $_POST['associated_domain'] != "") { 
     53                                        $sector_info['objectClass'][2]  = 'domainRelatedObject'; 
     54                                        $sector_info['associatedDomain'] = trim($_POST['associated_domain']); 
     55                                } 
     56                        } 
     57                 
    5058                        /* 
    5159                         Insere as informações sobre quota total por usuários e por gigabytes de espaço em disco  
  • trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php

    r1975 r1991  
    15321532        } 
    15331533 
     1534        function get_associated_domain($params) 
     1535        { 
     1536                        $justthese = array("associatedDomain"); 
     1537                        $filter="(objectClass=domainRelatedObject)";; 
     1538                        $context = $params['context']; 
     1539                        $search = ldap_search($this->ldap,$context, $filter, $justthese); 
     1540                        $entry = ldap_get_entries($this->ldap, $search); 
     1541                        return $entry[0]['associateddomain'][0]; 
     1542        } 
    15341543         
    15351544        function change_user_context($dn, $newrdn, $newparent) 
  • trunk/expressoAdmin1_2/inc/class.uisectors.inc.php

    r1684 r1991  
    185185                                'context'                       => $context == '' ? $GLOBALS['phpgw_info']['server']['ldap_context'] : $context, 
    186186                                'sector'                        => $_POST['sector'], 
     187                                'associated_domain'             => $_POST['associated_domain'], 
    187188                                'disk_quota'        => $_POST['disk_quota'], 
    188189                                'users_quota'       => $_POST['users_quota'], 
     
    242243                                $sector_disk_quota = $sector_info[0]['diskquota'][0]; 
    243244                                $sector_users_quota = $sector_info[0]['usersquota'][0]; 
     245                                $sector_associated_domain = $sector_info[0]['associateddomain'][0]; 
    244246                                $_POST['sector_visible'] = $sector_info[0]['phpgwaccountvisible'][0]; 
    245247                        }  
     
    254256                                'manager_org'           => $combo_manager_org, 
    255257                                'sector_visible_checked'=> $_POST['sector_visible'] ? 'checked' : '', 
     258                                'associated_domain'        => $_POST['associated_domain'] == '' ? $sector_associated_domain : $_POST['associated_domain'], 
    256259                                'disk_quota'        => $_POST['disk_quota'] == '' ? $sector_disk_quota : $_POST['disk_quota'], 
    257260                                'users_quota'       => $_POST['users_quota'] == '' ? $sector_users_quota : $_POST['users_quota'], 
    258                                  
    259261                                'lang_add'                      => lang('Add'), 
    260262                                'disable'                       => 'disabled', 
Note: See TracChangeset for help on using the changeset viewer.