Ignore:
Timestamp:
09/12/08 11:39:24 (16 years ago)
Author:
niltonneto
Message:

Alterações feitas por João Alfredo.
Email: jakjr@…

File:
1 edited

Legend:

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

    r396 r414  
    123123                        { 
    124124                                $result['status'] = false; 
    125                                 $result['msg'] = 'Falha na conexao com o ldap.'; 
     125                                $result['msg'] = $this->functions->lang('Connection with ldap fail') . "."; 
    126126                                return $result; 
    127127                        } 
     
    148148                { 
    149149                        $result['status'] = false; 
    150                         $result['msg'] = 'Este LOGIN não pode ser usado pois é uma conta de sistema.'; 
     150                        $result['msg'] = $this->functions->lang('This LOGIN can not be used because is a System Account') . "."; 
    151151                        return $result; 
    152152                } 
     
    197197                                 
    198198                                $result['status'] = false; 
    199                                 $result['msg'] = "LOGIN já está sendo utilizado por:\n" . $users; 
     199                                $this->functions->lang('This LOGIN is already used by') . ":\n" . $users; 
    200200                                return $result; 
    201201                        } 
     
    209209                        { 
    210210                                $result['status'] = false; 
    211                                 $result['msg'] = 'LOGIN do usuário já esta sendo usado por um grupo.'; 
     211                                $result['msg'] = $this->functions->lang('This LOGIN is being used by a group') . "."; 
    212212                                return $result; 
    213213                        } 
     
    255255                                        { 
    256256                                                $result['status'] = false; 
    257                                                 $result['msg'] = 'LOGIN já esta sendo usado por outro usuário em outra organização.'; 
     257                                                $result['msg'] = $this->functions->lang('This LOGIN is already used by a user in another organization') . "."; 
    258258                                                ldap_close($ldap_connection2); 
    259259                                                return $result; 
     
    277277                        if ($entries[0]['uid'][0] != $uid){ 
    278278                                $result['status'] = false; 
    279                                 $result['msg'] = 'E-MAIL está sendo usado por 1 usuário: ' . $entries[0]['uid'][0]; 
    280                                 //ldap_close($ldap_connection); 
     279                                $result['msg'] = $this->functions->lang('Email is being used by 1 user') . ": " . $entries[0]['uid'][0]; 
    281280                                return $result; 
    282281                        } 
     
    284283                else if ($entries['count'] > 1){ 
    285284                        $result['status'] = false; 
    286                         $result['msg'] = 'E-MAIL está sendo usado por 2 ou mais usuários.'; 
    287                         //ldap_close($ldap_connection); 
     285                        $result['msg'] = $this->functions->lang('Email is being used by 2 or more users') . "."; 
    288286                        return $result; 
    289287                } 
     
    297295                        if ($entries[0]['uid'][0] != $uid){ 
    298296                                $result['status'] = false; 
    299                                 $result['msg'] = "E-MAIL alternativo está sendo usado por 1 usuário: " . $entries[0]['uid'][0]; 
    300                                 //ldap_close($ldap_connection); 
     297                                $result['msg'] = $this->functions->lang('Alternative email is being used by 1 user') . ": " . $entries[0]['uid'][0]; 
    301298                                return $result; 
    302299                        } 
     
    304301                else if ($entries['count'] > 1){ 
    305302                        $result['status'] = false; 
    306                         $result['msg'] = 'E-MAIL alternativo está sendo usado por 2 ou mais usuários.'; 
     303                        $result['msg'] = $this->functions->lang('Alternative email is being used by 2 or more users') . "."; 
    307304                        return $result; 
    308305                } 
     
    334331                                        { 
    335332                                                $result['status'] = false; 
    336                                                 $result['msg'] = 'Falha na conexao com o ldap.'; 
     333                                                $result['msg'] = $this->functions->lang('Connection with ldap fail') . "."; 
    337334                                                return $result; 
    338335                                        } 
     
    389386                        { 
    390387                                $result['status'] = false; 
    391                                 $result['msg'] = 'Falha na conexao com o ldap.'; 
     388                                $result['msg'] = $this->functions->lang('Connection with ldap fail') . "."; 
    392389                                return $result; 
    393390                        } 
     
    408405                { 
    409406                        $result['status'] = false; 
    410                         $result['msg'] = 'Este nome de grupo não pode ser usado pois é um grupo de sistema.'; 
     407                        $result['msg'] = $this->functions->lang('This group name can not be used because is a System Account') . "."; 
    411408                        return $result; 
    412409                } 
     
    420417                { 
    421418                        $result['status'] = false; 
    422                         $result['msg'] = 'NOME do grupo já está sendo usado.'; 
     419                        $result['msg'] = $this->functions->lang('This name is already used') . "."; 
    423420                        return $result; 
    424421                } 
     
    432429                { 
    433430                        $result['status'] = false; 
    434                         $result['msg'] = 'NOME do grupo já esta sendo usado por um usuário.'; 
     431                        $result['msg'] = $this->functions->lang('This grupo name is already used by an user') . "."; 
    435432                        return $result; 
    436433                } 
     
    456453                        { 
    457454                                $result['status'] = false; 
    458                                 $result['msg'] = 'Falha na conexao com o ldap.'; 
     455                                $result['msg'] = $this->functions->lang('Connection with ldap fail') . "."; 
    459456                                return $result; 
    460457                        } 
     
    476473                { 
    477474                        $result['status'] = false; 
    478                         $result['msg'] = 'Este LOGIN não pode ser usado pois é uma conta de sistema.'; 
     475                        $result['msg'] = $this->functions->lang('This LOGIN can not be used because is a System Account') . "."; 
    479476                        return $result; 
    480477                } 
     
    488485                { 
    489486                        $result['status'] = false; 
    490                         $result['msg'] = 'LOGIN da lista já está sendo usado.'; 
     487                        $result['msg'] = $this->functions->lang('This email list LOGIN is already used') . "."; 
    491488                        return $result; 
    492489                } 
     
    500497                { 
    501498                        $result['status'] = false; 
    502                         $result['msg'] = 'E-MAIL da lista já está sendo usado.'; 
     499                        $result['msg'] = $this->functions->lang('EMAIL is already used') . "."; 
    503500                        return $result; 
    504501                } 
     
    543540        return $options; 
    544541        } 
    545  
    546         //Busca usuários de um contexto e já retorna as options do select; 
    547         /* 
    548         function get_available_users_and_maillist($params) 
    549         { 
    550                 $context = $params['context']; 
    551                 $recursive = $params['recursive']; 
    552                 $justthese = array("cn", "uidNumber"); 
    553                 $filter="(|(phpgwAccountType=u)(phpgwAccountType=l))"; 
    554                  
    555                 if ($recursive == 'true') 
    556                         $groups_list=ldap_search($this->ldap, $context, $filter, $justthese); 
    557                 else 
    558                 $groups_list=ldap_list($this->ldap, $context, $filter, $justthese); 
    559          
    560         $entries = ldap_get_entries($this->ldap, $groups_list); 
    561          
    562                 for ($i=0; $i<$entries["count"]; $i++){ 
    563                         $u_tmp[$entries[$i]["uidnumber"][0]] = $entries[$i]["cn"][0]; 
    564                 } 
    565                          
    566                 if (count($u_tmp)) 
    567                         natcasesort($u_tmp); 
    568  
    569                 $i = 0; 
    570                 $users = array(); 
    571                          
    572                 if (count($u_tmp)) 
    573                 { 
    574                         foreach ($u_tmp as $uidnumber => $cn) 
    575                         { 
    576                                 $options .= "<option value=$uidnumber>$cn</option>"; 
    577                         } 
    578                         unset($u_tmp); 
    579                 } 
    580  
    581         return $options; 
    582         } 
    583         */ 
    584542 
    585543        //Busca usuários e listas de um contexto e já retorna as options do select; 
     
    722680                        $result['status']               = false; 
    723681                        $result['error_number'] = ldap_errno($this->ldap); 
    724                         $result['msg']                  = "Erro na funcao ldap_functions->ldap_add_entry ($dn).\nRetorno do servidor:" . ldap_errno($this->ldap) . ldap_error($this->ldap); 
     682                        $result['msg']                  = $this->functions->lang('Error on function') . " ldap_functions->ldap_add_entry ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_errno($this->ldap) . ldap_error($this->ldap); 
    725683                } 
    726684                else 
     
    750708                { 
    751709                        $result['status'] = false; 
    752                         $result['msg'] = "Erro na funcao ldap_functions->ldap_save_photo ($dn).\nRetorno do servidor:" . ldap_error($this->ldap); 
     710                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->ldap_save_photo ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    753711                } 
    754712                 
     
    768726                { 
    769727                        $result['status'] = false; 
    770                         $result['msg'] = "Erro na funcao ldap_functions->ldap_remove_photo ($dn).\nRetorno do servidor:" . ldap_error($this->ldap); 
     728                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->ldap_remove_photo ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    771729                } 
    772730                 
     
    793751                { 
    794752                        $result['status'] = false; 
    795                         $result['msg'] = "Erro na funcao ldap_functions->add_user2group ($memberUid).\nRetorno do servidor:" . ldap_error($this->ldap); 
     753                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->add_user2group ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    796754                } 
    797755                return $result; 
     
    808766                $res = @ldap_mod_del($this->ldap, $group_dn, $attrs); 
    809767                 
    810                 /*echo 'usuarios recebidos para remocao no ldap'; 
    811                 echo '<pre>'; 
    812                 print_r($memberUid);*/ 
    813                  
    814768                if ($res) 
    815769                { 
     
    819773                { 
    820774                        $result['status'] = false; 
    821                         $result['msg'] = "Erro na funcao ldap_functions->remove_user2group ($memberUid).\nRetorno do servidor:" . ldap_error($this->ldap); 
     775                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->remove_user2group ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    822776                } 
    823777                return $result; 
     
    829783                { 
    830784                        $result['status'] = false; 
    831                         $result['msg'] = "Falha de conexão com o openLDAP.\n\nRetorno do servidor:" . ldap_error($ldapMasterConnect); 
     785                        $result['msg'] = $this->functions->lang('Ldap connection fail') . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($ldapMasterConnect); 
    832786                        return $result; 
    833787                } 
     
    850804                        if (ldap_errno($ldapMasterConnect) == '50') 
    851805                        { 
    852                                 $result['msg'] = "Erro na funcao ldap_functions->add_user2maillist.\n" . 
    853                                                                  "O usuário utilizado para gravação no LDAP, DEVE ter direito de escrita.\n". 
    854                                                                  "O usuário " . $_SESSION['phpgw_info']['expresso']['cc_ldap_server']['acc'] . " não tem este direito.\n". 
    855                                                                  "Edite \"Configuração Global do Catálogo\", no módulo Administrador, Catálogo de Endereços e adicione um usuário com direitos de escrita."; 
     806                                $result['msg'] =        $this->functions->lang('Error on the function') . ' ldap_functions->add_user2maillist' . ".\n" . 
     807                                                                        $this->functions->lang('The user used for record on LPDA, must have write access') . ".\n"; 
     808                                                                        $this->functions->lang('The user') . ' ' . $_SESSION['phpgw_info']['expresso']['cc_ldap_server']['acc'] . ' ' . $this->functions->lang('does not have this access') . ".\n"; 
     809                                                                        $this->functions->lang('Edit Global Catalog Config, in the admin module, and add an user with write access') . ".\n"; 
    856810                        }                                         
    857811                        else 
    858                                 $result['msg'] = "Erro na funcao ldap_functions->add_user2maillist.\nRetorno do servidor:" . ldap_error($ldapMasterConnect); 
     812                                $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->add_user2maillist ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($ldapMasterConnect); 
    859813                } 
    860814                 
     
    878832                { 
    879833                        $result['status'] = false; 
    880                         $result['msg'] = "Erro na funcao ldap_functions->add_user2maillist_scp ($dn).\n\nRetorno do servidor:" . ldap_error($this->ldap); 
     834                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->add_user2maillist_scp ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    881835                } 
    882836                return $result; 
     
    888842                { 
    889843                        $result['status'] = false; 
    890                         $result['msg'] = "Falha de conexão com o openLDAP.\n\nRetorno do servidor:" . ldap_error($ldapMasterConnect); 
     844                        $result['msg'] = $this->functions->lang('Ldap connection fail') . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($ldapMasterConnect); 
    891845                        return $result; 
    892846                } 
     
    909863                        if (ldap_errno($ldapMasterConnect) == '50') 
    910864                        { 
    911                                 $result['msg'] = "Erro na funcao ldap_functions->add_user2maillist.\n" . 
    912                                                                  "O usuário utilizado para gravação no LDAP, DEVE ter direito de escrita.\n". 
    913                                                                  "O usuário " . $_SESSION['phpgw_info']['expresso']['cc_ldap_server']['acc'] . " não tem este direito.\n". 
    914                                                                  "Edite \"Configuração Global do Catálogo\", no módulo Administrador, Catálogo de Endereços e adicione um usuário com direitos de escrita."; 
     865                                 
     866                                $return['msg'] = $this->functions->lang('You do not have right to create institutional accounts') . "."; 
     867 
     868                                $result['msg'] =        $this->functions->lang('Error on the function') . ' ldap_functions->add_user2maillist' . ".\n" . 
     869                                                                        $this->functions->lang('The user used for record on LPDA, must have write access') . ".\n"; 
     870                                                                        $this->functions->lang('The user') . ' ' . $_SESSION['phpgw_info']['expresso']['cc_ldap_server']['acc'] . ' ' . $this->functions->lang('does not have this access') . ".\n"; 
     871                                                                        $this->functions->lang('Edit Global Catalog Config, in the admin module, and add an user with write access') . ".\n"; 
    915872                        }                                         
    916873                        else 
    917                                 $result['msg'] = "Erro na funcao ldap_functions->add_user2maillist.\nRetorno do servidor:" . ldap_error($ldapMasterConnect); 
     874                                $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->add_user2maillist ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($ldapMasterConnect); 
    918875                } 
    919876                ldap_close($ldapMasterConnect); 
     
    933890                { 
    934891                        $result['status'] = false; 
    935                         $result['msg'] = "Erro na funcao ldap_functions->remove_user2maillist_scp ($dn).\n\nRetorno do servidor:" . ldap_error($this->ldap); 
     892                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->remove_user2maillist_scp ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    936893                } 
    937894                return $result; 
     
    955912                        { 
    956913                                $result['status'] = false; 
    957                                 $result['msg'] = "Erro na funcao ldap_functions->replace_user2maillists ($old_mail).\nRetorno do servidor:" . ldap_error($this->ldap); 
     914                                $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->replace_user2maillists ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    958915                        } 
    959916                } 
     
    1025982                                        $result['corporative_information_rg']                   = $entry[0]['rg'][0]; 
    1026983                                        $result['corporative_information_rguf']                 = $entry[0]['rguf'][0]; 
     984                                        $result['corporative_information_description']  = utf8_decode($entry[0]['description'][0]); 
    1027985                                } 
    1028986                                 
     
    13791337                { 
    13801338                        $return['status'] = false; 
    1381                         $return['msg'] = 'Erro em ldap_funcitons->change_user_context: ' . ldap_error($this->ldap); 
     1339                        $return['msg'] = $this->functions->lang('Error on function') . " ldap_functions->change_user_context ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    13821340                } 
    13831341                else 
     
    13931351                        $return['status'] = false; 
    13941352                        $return['error_number'] = ldap_errno($this->ldap); 
    1395                         $return['msg'] = 'Erro em ldap_funcitons->replace_user_attributes: ' . ldap_error($this->ldap); 
     1353                        $return['msg'] = $this->functions->lang('Error on function') . " ldap_functions->replace_user_attributes ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    13961354                } 
    13971355                else 
    13981356                        $return['status'] = true; 
    13991357                 
     1358                print_r($return); 
    14001359                return $return; 
    14011360        } 
     
    14071366                        $return['status'] = false; 
    14081367                        $return['error_number'] = ldap_errno($this->ldap); 
    1409                         $return['msg'] = 'Erro em ldap_funcitons->add_user_attributes: ' . ldap_error($this->ldap); 
     1368                        $return['msg'] = $this->functions->lang('Error on function') . " ldap_functions->add_user_attributes ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    14101369                } 
    14111370                else 
     
    14201379                { 
    14211380                        $return['status'] = false; 
    1422                         $return['msg'] = 'Erro em ldap_funcitons->remove_user_attributes: ' . ldap_error($this->ldap); 
     1381                        $return['msg'] = $this->functions->lang('Error on function') . " ldap_functions->remove_user_attributes ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    14231382                } 
    14241383                else 
     
    14561415                { 
    14571416                        $return['status'] = false; 
    1458                         $return['msg'] .= 'Você não tem acesso para deletar este usuário.'; 
     1417                        $result['msg'] = $this->functions->lang('You do not have access to delete this user') . "."; 
    14591418                        return $return; 
    14601419                } 
     
    14811440                                { 
    14821441                                        $return['status'] = false; 
    1483                                         $return['msg'] .= "Erro em ldap_functions->delete_user from group ($dn): " . ldap_error($this->ldap); 
     1442                                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->delete_user from group ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    14841443                                } 
    14851444                        } 
     
    15001459                        { 
    15011460                                $result['status'] = false; 
    1502                                 $result['msg'] = "Erro na funcao ldap_functions->delete_user, instutional_accounts.\nRetorno do servidor:" . ldap_error($this->ldap); 
     1461                                $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->delete_user, institutional accounts ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    15031462                        } 
    15041463                } 
     
    15141473                        { 
    15151474                                $return['status'] = false; 
    1516                                 $return['msg'] .= 'Erro ao conectar ao ldap_master: ' . ldap_error($this->ldap); 
     1475                                $result['msg'] = $this->functions->lang('Connection with ldap_master fail') . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    15171476                                return $return; 
    15181477                        } 
     
    15321491                                        if (ldap_errno($ldapMasterConnect) == '50') 
    15331492                                        { 
    1534                                                 $result['msg'] = "Erro na funcao ldap_functions->delete_user.\n" . 
    1535                                                                                  "O usuário utilizado para gravação no LDAP, DEVE ter direito de escrita.\n". 
    1536                                                                                  "O usuário " . $_SESSION['phpgw_info']['expresso']['cc_ldap_server']['acc'] . " não tem este direito.\n". 
    1537                                                                                  "Edite \"Configuração Global do Catálogo\", no módulo Administrador, Catálogo de Endereços e adicione um usuário com direitos de escrita."; 
     1493                                                $result['msg'] =        $this->functions->lang('Error on the function') . ' ldap_functions->add_user2maillist' . ".\n" . 
     1494                                                                                        $this->functions->lang('The user used for record on LPDA, must have write access') . ".\n"; 
     1495                                                                                        $this->functions->lang('The user') . ' ' . $_SESSION['phpgw_info']['expresso']['cc_ldap_server']['acc'] . ' ' . $this->functions->lang('does not have this access') . ".\n"; 
     1496                                                                                        $this->functions->lang('Edit Global Catalog Config, in the admin module, and add an user with write access') . ".\n"; 
    15381497                                        } 
    15391498                                        else 
    1540                                                 $result['msg'] = "Erro na funcao ldap_functions->add_user2maillist.\nRetorno do servidor:" . ldap_error($ldapMasterConnect); 
     1499                                                $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->delete_user, email lists ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($ldapMasterConnect); 
    15411500                                } 
    15421501                        } 
     
    15491508                { 
    15501509                        $return['status'] = false; 
    1551                         $return['msg'] .= 'Erro em ldap_funcitons->delete_user, listas de email: ' . ldap_error($this->ldap); 
     1510                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->delete_user, email lists ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($ldapMasterConnect); 
    15521511                } 
    15531512                 
     
    15801539                { 
    15811540                        $return['status'] = false; 
    1582                         $return['msg'] .= 'Erro em ldap_funcitons->delete_maillist, listas de email: ' . ldap_error($this->ldap); 
     1541                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->delete_maillist ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    15831542                } 
    15841543                 
     
    15991558                { 
    16001559                        $return['status'] = false; 
    1601                         $return['msg'] .= 'Erro em ldap_funcitons->delete_maillist, listas de email: ' . ldap_error($this->ldap); 
     1560                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->delete_group ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    16021561                } 
    16031562                 
     
    16601619                { 
    16611620                        $return['status'] = false; 
    1662                         $return['msg'] .= 'Erro em ldap_funcitons->rename_uid: ' . ldap_error($this->ldap); 
     1621                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->rename_uid ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    16631622                } 
    16641623                 
     
    17971756                { 
    17981757                        $return['status'] = false; 
    1799                         $return['msg'] = "Erro ao adicionar Samba Domain"; 
     1758                        $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->add_sambadomain ($dn)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    18001759                } 
    18011760                else 
     
    18191778                        { 
    18201779                                $return['status'] = false; 
    1821                                 $return['msg'] .= "Erro em ldap_funcitons->delete_sambadomain ($sambadomainname).\nRetorno do servidor: " . ldap_error($this->ldap); 
     1780                                $result['msg'] = $this->functions->lang('Error on function') . " ldap_functions->delete_sambadomain ($sambadomainname)" . ".\n" . $this->functions->lang('Server returns') . ': ' . ldap_error($this->ldap); 
    18221781                        } 
    18231782            } 
     
    18351794        { 
    18361795                $return['status'] = 'false'; 
    1837                 $return['msg'] = 'Nenhum resultado encontrado.'; 
     1796                $result['msg'] = $this->functions->lang('Any result was found') . '.'; 
    18381797                return $return; 
    18391798        } 
     
    20181977                        { 
    20191978                                $result['status'] = false; 
    2020                                 $result['msg']  = $this->functions->lang('Error in function') . ' ldap_functions->save_institutional_accounts: ldap_rename'; 
     1979                                $result['msg']  = $this->functions->lang('Error on function') . ' ldap_functions->save_institutional_accounts: ldap_rename'; 
    20211980                                $result['msg'] .= "\n" . $this->functions->lang('Server return') . ': ' . ldap_error($this->ldap); 
    20221981                        } 
     
    20542013                { 
    20552014                        $result['status'] = false; 
    2056                         $result['msg']  = $this->functions->lang('Error in function') . ' ldap_functions->save_institutional_accounts: ldap_modify'; 
     2015                        $result['msg']  = $this->functions->lang('Error on function') . ' ldap_functions->save_institutional_accounts: ldap_modify'; 
    20572016                        $result['msg'] .= "\n" . $this->functions->lang('Server return') . ': ' . ldap_error($this->ldap); 
    20582017                } 
     
    21192078                { 
    21202079                        $return['status'] = 'false'; 
    2121                         $return['msg'] = 'Problemas carregando dados.'; 
     2080                        $result['msg'] = $this->functions->lang('Problems loading datas') . '.'; 
    21222081                } 
    21232082                else 
     
    22022161                { 
    22032162                        $return['status'] = false; 
    2204                         $return['msg']  = $this->functions->lang('Error in function') . " ldap_functions->delete_institutional_accounts: ldap_delete"; 
     2163                        $return['msg']  = $this->functions->lang('Error on function') . " ldap_functions->delete_institutional_accounts: ldap_delete"; 
    22052164                        $return['msg'] .= "\n" . $this->functions->lang('Server return') . ': ' . ldap_error($this->ldap); 
    22062165                        return $return; 
     
    22272186                        { 
    22282187                                $result['status'] = false; 
    2229                                 $return['msg']  = $this->functions->lang('Error in function') . " ldap_functions->replace_mail_from_institutional_account."; 
     2188                                $return['msg']  = $this->functions->lang('Error on function') . " ldap_functions->replace_mail_from_institutional_account."; 
    22302189                        } 
    22312190                } 
Note: See TracChangeset for help on using the changeset viewer.