Changeset 5864 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 04/03/12 09:24:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5862 r5864 4389 4389 { 4390 4390 $useracl = $params['user']; 4391 4392 $return = array();4393 $return[$useracl] = 'false';4394 $mbox_stream = $this->open_mbox();4395 $mbox_acl = imap_getacl($mbox_stream, 'INBOX');4396 4397 foreach ($mbox_acl as $user => $acl)4398 {4399 if (($user != $this->username) && ($user == $useracl))4400 {4401 $return[$user] = $acl;4402 }4403 }4404 return $return;4405 }4406 4407 function getacltouser($user)4408 {4409 4391 $return = array(); 4410 4392 $mbox_stream = $this->open_mbox(); 4393 if($params['getShared']){ 4394 $mbox_acl = imap_getacl($mbox_stream, 'user'.$this->imap_delimiter.$useracl); 4395 foreach ($mbox_acl as $user => $acl) 4396 { 4397 if (($user == $this->username) && ($user != $useracl)) 4398 { 4399 $return[$useracl] = $acl; 4400 } 4401 } 4402 }else { 4403 $mbox_acl = imap_getacl($mbox_stream, 'INBOX'); 4404 foreach ($mbox_acl as $user => $acl) 4405 { 4406 if (($user != $this->username) && ($user == $useracl)) 4407 { 4408 $return[$user] = $acl; 4409 } 4410 } 4411 } 4412 if(count($return) == 0) 4413 $return[$useracl] = 'false'; 4414 4415 return $return; 4416 } 4417 4418 function getacltouser($user) 4419 { 4420 $return = array(); 4421 $mbox_stream = $this->open_mbox(); 4422 4411 4423 //Alterado, antes era 'imap_getacl($mbox_stream, 'user'.$this->imap_delimiter.$user); 4412 4424 //Afim de tratar as pastas compartilhadas, verificandos as permissoes de operacao sobre as mesmas … … 4416 4428 else 4417 4429 $mbox_acl = @imap_getacl($mbox_stream, $user); 4430 4418 4431 if(isset($mbox_acl[$this->username])) 4419 4432 return $mbox_acl[$this->username];
Note: See TracChangeset
for help on using the changeset viewer.