Changeset 6697
- Timestamp:
- 07/02/12 16:55:44 (11 years ago)
- Location:
- trunk/expressoAdmin1_2/inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.bosectors.inc.php
r6686 r6697 60 60 if ($_POST['sector_visible']) 61 61 { 62 $sector_info['objectClass'][ 2] = 'phpgwAccount';62 $sector_info['objectClass'][] = 'phpgwAccount'; 63 63 $sector_info['phpgwaccountvisible'] = '-1'; 64 64 } … … 150 150 $manager_context = $_POST['manager_context']; 151 151 152 $sector_dn = utf8_encode($sector_dn);152 $sector_dn = $sector_dn; 153 153 154 154 $sector_users = $this->so->get_sector_users($sector_dn); -
trunk/expressoAdmin1_2/inc/class.functions.inc.php
r6553 r6697 538 538 539 539 reset ( $array_dn ); 540 $display .= ' ' . (current ( $array_dn ));540 $display .= ' ' . urldecode( str_replace('\\', '%', current ( $array_dn ))); 541 541 542 542 $info_retorno['display'] = $display; -
trunk/expressoAdmin1_2/inc/class.uisectors.inc.php
r6553 r6697 105 105 ); 106 106 107 $var['sector_name'] = utf8_decode($var['sector_name']);107 $var['sector_name'] = utf8_decode($var['sector_name']); 108 108 109 109 … … 233 233 234 234 $combo_manager_org = substr( $combo_manager_org, 0, ( strpos($combo_manager_org, '</option>') + 9 ) ); 235 236 $a_tmp = explode(",", ldap_dn2ufn($context));237 $sector_name = $a_tmp[0];235 $combo_manager_org =utf8_decode($combo_manager_org); 236 $a_tmp = explode(",", $context); 237 $sector_name = utf8_decode( str_replace('ou=' , '' ,$a_tmp[0])); 238 238 239 239 // Verifica se tem acesso a este modulo … … 255 255 if (!$_POST) 256 256 { 257 $sector_info = $this->so->get_info($ context);257 $sector_info = $this->so->get_info($_GET['context']); 258 258 $sector_disk_quota = $sector_info[0]['diskquota'][0]; 259 259 $sector_users_quota = $sector_info[0]['usersquota'][0]; … … 299 299 function view_cota() 300 300 { 301 $context = $_GET['context'];302 $a_tmp = explode(",", ldap_dn2ufn($context));301 $context = utf8_decode($_GET['context']); 302 $a_tmp = explode(",", $context); 303 303 304 $sector_name = $a_tmp[0];304 $sector_name = str_replace('ou=' , '' ,$a_tmp[0]); 305 305 if($this->functions->db_functions->use_cota_control()) { 306 $sector_info = $this->so->get_info($ context);306 $sector_info = $this->so->get_info($_GET['context']); 307 307 $sector_disk_cota = $sector_info[0]['diskquota'][0]; 308 308 $sector_users_cota = $sector_info[0]['usersquota'][0]; … … 442 442 'sectors_list' => $subsectors_list 443 443 ); 444 $var['sector_name'] = preg_replace("/\\\([0-9A-Fa-f]{2})/e", "''.chr(hexdec('\\1')).''",$var['sector_name']);444 $var['sector_name'] =utf8_decode( preg_replace("/\\\([0-9A-Fa-f]{2})/e", "''.chr(hexdec('\\1')).''",$var['sector_name'])); 445 445 446 446 $p->set_var($var);
Note: See TracChangeset
for help on using the changeset viewer.