Changeset 1991 for trunk/expressoAdmin1_2/inc
- Timestamp:
- 02/10/10 09:58:44 (14 years ago)
- Location:
- trunk/expressoAdmin1_2/inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.bosectors.inc.php
r1850 r1991 47 47 $sector_info['objectClass'][0] = 'top'; 48 48 $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 50 58 /* 51 59 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 1532 1532 } 1533 1533 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 } 1534 1543 1535 1544 function change_user_context($dn, $newrdn, $newparent) -
trunk/expressoAdmin1_2/inc/class.uisectors.inc.php
r1684 r1991 185 185 'context' => $context == '' ? $GLOBALS['phpgw_info']['server']['ldap_context'] : $context, 186 186 'sector' => $_POST['sector'], 187 'associated_domain' => $_POST['associated_domain'], 187 188 'disk_quota' => $_POST['disk_quota'], 188 189 'users_quota' => $_POST['users_quota'], … … 242 243 $sector_disk_quota = $sector_info[0]['diskquota'][0]; 243 244 $sector_users_quota = $sector_info[0]['usersquota'][0]; 245 $sector_associated_domain = $sector_info[0]['associateddomain'][0]; 244 246 $_POST['sector_visible'] = $sector_info[0]['phpgwaccountvisible'][0]; 245 247 } … … 254 256 'manager_org' => $combo_manager_org, 255 257 'sector_visible_checked'=> $_POST['sector_visible'] ? 'checked' : '', 258 'associated_domain' => $_POST['associated_domain'] == '' ? $sector_associated_domain : $_POST['associated_domain'], 256 259 'disk_quota' => $_POST['disk_quota'] == '' ? $sector_disk_quota : $_POST['disk_quota'], 257 260 'users_quota' => $_POST['users_quota'] == '' ? $sector_users_quota : $_POST['users_quota'], 258 259 261 'lang_add' => lang('Add'), 260 262 'disable' => 'disabled',
Note: See TracChangeset
for help on using the changeset viewer.