Ignore:
Timestamp:
06/17/08 14:43:30 (16 years ago)
Author:
niltonneto
Message:

Versionamento feito pelo desenvolvedor (jakjr).

File:
1 edited

Legend:

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

    r309 r317  
    178178                                return; 
    179179                        } 
    180                          
    181                         $return = $this->ldap_functions->add_sambadomain(strtoupper($_POST['sambadomainname']), $_POST['sambasid'], $_POST['context']); 
    182                         if (!$return['status']) 
    183                         { 
    184                                 $_POST['error_messages'] = $return['msg']; 
    185                                 ExecMethod('expressoAdmin1_2.uidomains.add'); 
    186                                 return; 
     180 
     181                        if (!$this->ldap_functions->exist_domain_name_sid($_POST['sambadomainname'], $_POST['sambasid'])) 
     182                        { 
     183                                $return = $this->ldap_functions->add_sambadomain(strtoupper($_POST['sambadomainname']), $_POST['sambasid'], $_POST['context']); 
     184                                if (!$return['status']) 
     185                                { 
     186                                        $_POST['error_messages'] = $return['msg']; 
     187                                        ExecMethod('expressoAdmin1_2.uidomains.add'); 
     188                                        return; 
     189                                } 
    187190                        } 
    188191                         
Note: See TracChangeset for help on using the changeset viewer.